- [root@xenserver /]# fdisk -4
- fdisk: invalid option -- 4
- Usage: 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
- [root@xenserver /]# fdisk -l
- Disk /dev/sda: 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/sda1 * 1 523 4194304 83 Linux
- Partition 1 does not end on cylinder boundary.
- /dev/sda2 523 1045 4194304 83 Linux
- /dev/sda3 1045 9729 69759553 8e Linux LVM
- Disk /dev/sdb: 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/sdb1 * 1 523 4194304 83 Linux
- Partition 1 does not end on cylinder boundary.
- /dev/sdb2 523 1045 4194304 83 Linux
- /dev/sdb3 1045 9729 69759553 8e Linux LVM
- WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn 't support GPT. Use GNU Parted.
- Disk /dev/sdc: 1599.9 GB, 1599955009536 bytes
- 255 heads, 63 sectors/track, 194516 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Disk /dev/sdc doesn't contain a valid partition table
- WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn 't support GPT. Use GNU Parted.
- Disk /dev/sdd: 999.9 GB, 999978696704 bytes
- 255 heads, 63 sectors/track, 121573 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Disk /dev/sdd doesn't contain a valid partition table