-
If the disk does NOT have geometry information then:
-
Hit <x> for extra functionality (experts only)
-
Hit <c> to change the number of cylinders (see below).
-
Hit <h> to change the number of heads (see below).
-
Hit <s> to change the number of sectors (see below).
-
Hit <r> to return
-
Hit <n> for new partition
-
Hit <p> for primary partition
-
Hit <1> to indicate the first partititon
-
Hit <1> for the first cylinder
-
Enter +160M for the last cylinder. (This gives 160 megs of swap space)
-
<n><p><2> first number in range for first cylinder, +6M for the
last cylinder
-
<n><p><3> first number in range for first cylinder, last
cylinder number for the last cylinder
-
<t> to change partition type <1> for 1st partition. 82 for partition
type swap
-
<t> to change partition type <2> for 2nd partition. 1 for partition
type FAT (12 bit DOS)
-
<a> to toggle bootable flag, <2> for 2nd partition,
-
<a> to toggle bootable flag, <3> for 3rd partition,
-
<p> to print partition table, check against what is shown below!
Correct if needed, then...
-
<w> to write and exit
Partition table for 2.11 Gbyte disk (160 MB swap):
Disk /dev/sda: 65 heads, 62 sectors, 1023 cylinders
Units = cylinders of 4030 * 512 bytes
Device Boot Begin
Start End Blocks
Id System
/dev/sda1
1 1
82 165199 82 Linux swap
/dev/sda2
83 83
86 8060 4 DOS 16-bit <32M
/dev/sda3
87 87 1023
1888055 83 Linux native
Partition table for 1.28 Gbyte disk (262 MB swap):
Disk /dev/sda: 40 heads, 62 sectors, 1009 cylinders
Units = cylinders of 2480 * 512 bytes
Device Boot Begin
Start End Blocks
Id System
/dev/sda1
1 1
212 262849 82 Linux swap
/dev/sda2
213 213 217
6200 1 DOS 12-bit FAT
/dev/sda3
218 218 1009
982080 83 Linux native
Partition table for 1.28 Gbyte disk (164 MB swap):
Disk /dev/sda: 40 heads, 62 sectors, 1009 cylinders
Units = cylinders of 2480 * 512 bytes
Device Boot Begin
Start End Blocks
Id System
/dev/sda1
1 1
133 164889 82 Linux swap
/dev/sda2
134 134 138
6200 1 DOS 12-bit FAT
/dev/sda3
139 139 1009
1080040 83 Linux native