Difference between revisions of "Sfdisk"

From Organic Design wiki
(sfdisk notes)
 
m
Line 2: Line 2:
  
 
==Examples==
 
==Examples==
 +
<pre>
 +
root@turing:~/peerix# sfdisk -l /dev/hda
 +
 +
Disk /dev/hda: 77545 cylinders, 16 heads, 63 sectors/track
 +
Warning: extended partition does not start at a cylinder boundary.
 +
DOS and Linux will interpret the contents differently.
 +
Warning: The partition table looks like it was made
 +
  for C/H/S=*/255/63 (instead of 77545/16/63).
 +
For this listing I'll assume that geometry.
 +
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
 +
 +
  Device Boot Start    End  #cyls    #blocks  Id  System
 +
/dev/hda1  *      0+  4724    4725-  37953531  83  Linux
 +
/dev/hda2      4725    4864    140    1124550    5  Extended
 +
/dev/hda3          0      -      0          0    0  Empty
 +
/dev/hda4          0      -      0          0    0  Empty
 +
/dev/hda5      4725+  4864    140-  1124518+  82  Linux swap / Solaris
 +
</pre>

Revision as of 04:42, 12 April 2006

skdisk is a command line utility to partition hard disks. Important because it can operate in a non-interactive way taking commands from STDIN. It can also produce output about the current state of the partitions on a device. With a little scripting it can be made to do the complex and confusing job of disk paritioning in preparation for installation of Peerix.

Examples

root@turing:~/peerix# sfdisk -l /dev/hda

Disk /dev/hda: 77545 cylinders, 16 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Warning: The partition table looks like it was made
  for C/H/S=*/255/63 (instead of 77545/16/63).
For this listing I'll assume that geometry.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/hda1   *      0+   4724    4725-  37953531   83  Linux
/dev/hda2       4725    4864     140    1124550    5  Extended
/dev/hda3          0       -       0          0    0  Empty
/dev/hda4          0       -       0          0    0  Empty
/dev/hda5       4725+   4864     140-   1124518+  82  Linux swap / Solaris