Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 16th, 2011  |  syntax: None  |  size: 2.34 KB  |  views: 314  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. [root@xenserver /]# fdisk -4
  2. fdisk: invalid option -- 4
  3.  
  4. Usage: fdisk [-b SSZ] [-u] DISK     Change partition table
  5.        fdisk -l [-b SSZ] [-u] DISK  List partition table(s)
  6.        fdisk -s PARTITION           Give partition size(s) in blocks
  7.        fdisk -v                     Give fdisk version
  8. Here DISK is something like /dev/hdb or /dev/sda
  9. and PARTITION is something like /dev/hda7
  10. -u: give Start and End in sector (instead of cylinder) units
  11. -b 2048: (for certain MO disks) use 2048-byte sectors
  12. [root@xenserver /]# fdisk -l
  13.  
  14. Disk /dev/sda: 80.0 GB, 80026361856 bytes
  15. 255 heads, 63 sectors/track, 9729 cylinders
  16. Units = cylinders of 16065 * 512 = 8225280 bytes
  17.  
  18.    Device Boot      Start         End      Blocks   Id  System
  19. /dev/sda1   *           1         523     4194304   83  Linux
  20. Partition 1 does not end on cylinder boundary.
  21. /dev/sda2             523        1045     4194304   83  Linux
  22. /dev/sda3            1045        9729    69759553   8e  Linux LVM
  23.  
  24. Disk /dev/sdb: 80.0 GB, 80026361856 bytes
  25. 255 heads, 63 sectors/track, 9729 cylinders
  26. Units = cylinders of 16065 * 512 = 8225280 bytes
  27.  
  28.    Device Boot      Start         End      Blocks   Id  System
  29. /dev/sdb1   *           1         523     4194304   83  Linux
  30. Partition 1 does not end on cylinder boundary.
  31. /dev/sdb2             523        1045     4194304   83  Linux
  32. /dev/sdb3            1045        9729    69759553   8e  Linux LVM
  33.  
  34. WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn                                                                                                                                                             't support GPT. Use GNU Parted.
  35.  
  36.  
  37. Disk /dev/sdc: 1599.9 GB, 1599955009536 bytes
  38. 255 heads, 63 sectors/track, 194516 cylinders
  39. Units = cylinders of 16065 * 512 = 8225280 bytes
  40.  
  41. Disk /dev/sdc doesn't contain a valid partition table
  42.  
  43. WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn                                                                                                                                                             't support GPT. Use GNU Parted.
  44.  
  45.  
  46. Disk /dev/sdd: 999.9 GB, 999978696704 bytes
  47. 255 heads, 63 sectors/track, 121573 cylinders
  48. Units = cylinders of 16065 * 512 = 8225280 bytes
  49.  
  50. Disk /dev/sdd doesn't contain a valid partition table
clone this paste RAW Paste Data