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

Re: FDISK parameters was Re: undelete for partition tables?



Ed Cogburn wrote:
> 
> OK, I'm wrong about -u, it does work; I should have looked
> closer.  The use of 'fdisk -l', without a device parameter, still
> doesn't work even though the man page says it should.
> According to Tom's examples and the man page, "fdisk -l" and
> "fdisk -l -u" should work without a device parameter, but I get:
> 
> **********************************
> 08:00pm /home/ed\> fdisk -v
> fdisk v2.9w
> 08:00pm /home/ed\> fdisk -l
> 
> Usage: fdisk [-l] [-b SSZ] [-u] device
> E.g.: fdisk /dev/hda  (for the first IDE disk)
>   or: fdisk /dev/sdc  (for the third SCSI disk)
>   or: fdisk /dev/eda  (for the first PS/2 ESDI drive)

Ed,

Just for reference, on slink (fdisk v2.9g) I get the output shown below,
and I've never seen fdisk NOT work this way. It also works this way on
my potato installation, but the version I have there is 2.9r I believe.
At any rate, it's not v2.9w version like you have - I have not updated
potato is quite a while.

root@newdebian:~# fdisk -l

Disk /dev/hda: 255 heads, 63 sectors, 784 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot   Start      End   Blocks   Id  System
/dev/hda1            1       65   522081    b  Win95 FAT32
/dev/hda2           66      130   522112+   6  DOS 16-bit >=32M
/dev/hda3          131      212   658665    b  Win95 FAT32
/dev/hda4          213      783  4586557+   5  Extended
/dev/hda5          213      414  1622533+  83  Linux native
/dev/hda6          415      544  1044193+   6  DOS 16-bit >=32M
/dev/hda7          545      560   128488+   6  DOS 16-bit >=32M
/dev/hda8          561      783  1791216    6  DOS 16-bit >=32M

Disk /dev/hdb: 255 heads, 63 sectors, 784 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot   Start      End   Blocks   Id  System
/dev/hdb1            1       65   522081   83  Linux native
/dev/hdb2           66      147   658665    b  Win95 FAT32
/dev/hdb3          148      195   385560    6  DOS 16-bit >=32M
/dev/hdb4          196      783  4723110    5  Extended
/dev/hdb5          196      212   136521   82  Linux swap
/dev/hdb6          213      289   618471   83  Linux native
/dev/hdb7          290      366   618471   83  Linux native
/dev/hdb8          367      398   257008+  83  Linux native
/dev/hdb9          399      523  1004031    6  DOS 16-bit >=32M
/dev/hdb10         524      783  2088418+   6  DOS 16-bit >=32M

Disk /dev/hdc: 255 heads, 63 sectors, 1653 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot   Start      End   Blocks   Id  System
/dev/hdc1            1      255  2048256   83  Linux native
/dev/hdc2   *      256      447  1542240   83  Linux native
/dev/hdc3          448      532   682762+  83  Linux native
/dev/hdc4          533     1651  8988367+   f  Win95 Extended (LBA)
/dev/hdc5          533      549   136521   82  Linux swap
/dev/hdc6          550      651   819283+  83  Linux native
/dev/hdc7          652      779  1028128+  83  Linux native
/dev/hdc8          780      786    56196   83  Linux native
/dev/hdc9          787      850   514048+   7  OS/2 HPFS
/dev/hdc10         851      914   514048+   6  DOS 16-bit >=32M
/dev/hdc11         915     1001   698796    b  Win95 FAT32
/dev/hdc12        1002     1078   618471    6  DOS 16-bit >=32M
/dev/hdc13        1079     1270  1542208+  83  Linux native
/dev/hdc14        1271     1398  1028128+   6  DOS 16-bit >=32M


Reply to: