All pastes #18883 Raw Edit

Unnamed

public text v1 · immutable
#18883 ·published 2005-07-30 17:42 UTC
rendered paste body
sage: fdisk [-b SSZ] [-u] DISK     Change partition table
       fdisk -l [-b SSZ] [-u] DISK  List partition table(s)
       fdisk -s PARTITION           Give partition size(s) in blocks
       fdisk -v                     Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder) units
-b 2048: (for certain MO disks) use 2048-byte sectors
puntix@puntix:~$ sudo fdisk -l

Disk /dev/sda: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        9403    75529566   83  Linux
/dev/sda2            9404        9733     2650725    5  Extended
/dev/sda5            9404        9733     2650693+  82  Linux swap / Solaris

Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1        9399    75497436   83  Linux
/dev/hdb2            9400        9729     2650725    5  Extended
/dev/hdb5            9400        9729     2650693+  82  Linux swap / Solaris

Disk /dev/sdc: 6 MB, 6799360 bytes
1 heads, 32 sectors/track, 415 cylinders
Units = cylinders of 32 * 512 = 16384 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1         415        6627+   1  FAT12
Partition 1 has different physical/logical endings:
     phys=(207, 0, 32) logical=(414, 0, 32)