Penguin

Differences between current version and previous revision of sfdisk(8).

Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History

Newer page: version 2 Last edited on Saturday, November 6, 2004 12:55:44 pm by YazzAtlas
Older page: version 1 Last edited on Tuesday, June 4, 2002 12:31:19 am by perry Revert
@@ -41,25 +41,25 @@
 or ''/dev/sdb12'', but may also be an entire disk, like 
 ''/dev/xda''. 
  
  
-% sfdisk -s /dev/hda9  
-81599  
-
+ % sfdisk -s /dev/hda9  
+ 81599  
+
  
  
 If the partition argument is omitted, __sfdisk__ will 
 list the sizes of all disks, and the total: 
  
  
-% sfdisk -s  
-/dev/hda: 208896  
-/dev/hdb: 1025136  
-/dev/hdc: 1031063  
-/dev/sda: 8877895  
-/dev/sdb: 1758927  
-total: 12901917 blocks  
-
+ % sfdisk -s  
+ /dev/hda: 208896  
+ /dev/hdb: 1025136  
+ /dev/hdc: 1031063  
+ /dev/sda: 8877895  
+ /dev/sdb: 1758927  
+ total: 12901917 blocks  
+
  
  
 __List Partitions__ 
  
@@ -69,17 +69,20 @@
 device argument is omitted, the partitions on all hard disks 
 are listed. 
  
  
-% sfdisk -l /dev/hdc  
-Disk /dev/hdc: 16 heads, 63 sectors, 2045 cylinders  
-Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from  
-Device Boot Start End #cyls #blocks Id System  
-/dev/hdc1 + 406 407- 205096+ 83 Linux native  
-/dev/hdc2 407 813 407 205128 83 Linux native  
-/dev/hdc3 814 2044 1231 620424 83 Linux native  
-/dev/hdc4 0 - 0 0 0 Empty  
-
+ % sfdisk -l /dev/hdc  
+  
+ Disk /dev/hdc: 16 heads, 63 sectors, 2045 cylinders  
+ Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from  
+ Device Boot Start End #cyls #blocks Id System  
+  
+ /dev/hdc1 + 406 407- 205096+ 83 Linux native  
+ /dev/hdc2 407 813 407 205128 83 Linux native  
+ /dev/hdc3 814 2044 1231 620424 83 Linux native  
+ /dev/hdc4 0 - 0 0 0 Empty  
+ %  
+  
 The trailing - and + signs indicate that rounding has taken place, and that the actual value is slightly less (more). To see the exact values, ask for a listing with sectors as unit. 
  
  
 __Check partitions__ 
@@ -113,20 +116,20 @@
 As a precaution, one can save the sectors changed by 
 __sfdisk__: 
  
  
-% sfdisk /dev/hdd -O hdd-partition-sectors.save  
-...  
-
+ % sfdisk /dev/hdd -O hdd-partition-sectors.save  
+ ...  
+
  
  
 Then, if you discover that you did something stupid before 
 anything else has been written to disk, it may be possible 
 to recover the old situation with 
  
  
-% sfdisk /dev/hdd -I hdd-partition-sectors.save  
-
+ % sfdisk /dev/hdd -I hdd-partition-sectors.save  
+
  
  
 (This is not the same as saving the old partition table: a 
 readable version of the old partition table can be saved 
@@ -211,11 +214,11 @@
 Change only the single partition indicated. For 
 example: 
  
  
-% sfdisk /dev/hdb -N5  
-,,,*  
-
+ % sfdisk /dev/hdb -N5  
+ ,,,*  
+
 will make the fifth partition on /dev/hdb bootable (`active') and change nothing else. (Probably this fifth partition is called /dev/hdb5, but you are free to call it something else, like `/my_equipment/disks/2/5' or so). 
  
  
 __-A__''number'' 
@@ -235,12 +238,12 @@
 This option has the two very long forms --print-id and 
 --change-id. For example: 
  
  
-% sfdisk --print-id /dev/hdb 5  
-6  
-% sfdisk --change-id /dev/hdb 5 83  
-OK 
+ % sfdisk --print-id /dev/hdb 5  
+ 6  
+ % sfdisk --change-id /dev/hdb 5 83  
+ OK 
 first reports that /dev/hdb5 has Id 6, and then changes that into 83. 
  
  
 __-uS__ or __-uB__ or __-uC__ or 
@@ -484,9 +487,9 @@
  
 The command 
  
  
-sfdisk /dev/hdc 
+ sfdisk /dev/hdc 
  
  
 will partition /dev/hdc just as indicated 
 above. 
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.