[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Nerd talk (was: Re: Replacing fdisk by cfdisk?)



Why bother with emacs, simply boot the rescue disc
 (you'll have to add stty on it), switch to tty2 and do a:

# fdisk -l

Disk /dev/hda: 16 heads, 63 sectors, 826 cylinders
Units = cylinders of 1008 * 512 bytes

   Device Boot   Begin    Start      End   Blocks   Id  System
# # don't input the line break the mailer did to the input line below
# stty raw
# dd > /dev/hda seek=446 bs=1 count=64
^@^A^A^@M-^B^O?^S?^@^@^@M-^AN^@^@^@^@^A^TM-^C^OM-^?9M-@N^@^@M- e^L^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
64+0 poster in
64+0 poster ut
# stty sane
# fdisk -l

Disk /dev/hda: 16 heads, 63 sectors, 826 cylinders
Units = cylinders of 1008 * 512 bytes

   Device Boot   Begin    Start      End   Blocks   Id  System
/dev/hda1            1        1       20    10048+  82  Linux swap
/dev/hda2           21       21      826   406224   83  Linux native
#

To make logical partitions is left as an exercise for the reader.

-------------------------------------------------------------------------------
Karl Hammar		Aspö Data		karl@kalle.csb.ki.se
Lilla Aspö 2340		0173 140 57
S-742 94 Östhammar	070 511 97 84		Professionella Linuxlösningar
Sweden
-------------------------------------------------------------------------------

On Sat, 9 Jan 1999, Richard Braakman wrote:

> Wichert Akkerman wrote:
> 
> > For the real hardcore stuff I wrote my own libfdisk. Still doesn't work,
> > but it does give you ultimate control..
> 
> Am I the only one who rescues disks by editing the partition table with
> emacs in hexl-mode?
> 
> Richard Braakman
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 


Reply to: