Riki:Each
command is followed by an
Enter key press, as a given. I will only show
<Enter> where it's used to accept a default.
The block numbers shown in the
p printouts may be
slightly different from what you show, as I had to calculate them. What's important are the cylinder numbers, (
start and
end) and they should be exact.
-----------------------------------------------------------------------------------------------
[root@localhost ~]# fdisk dev/hdaDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xabb5a3b7.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
The number of cylinders for this disk is set to 155061.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): mCommand action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): oBuilding a new DOS disklabel with disk identifier 0x56f75eda.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
The number of cylinders for this disk is set to 155061.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): nCommand action
e extended
p primary partition (1-4)
pPartition number (1-4):
1First cylinder (1-155061, default 1):
<Enter>Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-155061, default 155061):
12495Command (m for help): nCommand action
e extended
p primary partition (1-4)
pPartition number (1-4):
2First cylinder (12496-155061, default 12496):
<Enter> Using default value 12496
Last cylinder, +cylinders or +size{K,M,G} (12496-155061, default 155061):
64812Command (m for help): nCommand action
e extended
p primary partition (1-4)
ePartition number (1-4):
3First cylinder (64813-155061, default 64813):
<Enter>Using default value 64813
Last cylinder, +cylinders or +size{K,M,G} (64813-155061, default 155061):
<Enter>Using default value 155061
Command (m for help): nCommand action
l logical (5 or over)
p primary partition (1-4)
lFirst cylinder (64813-155061, default 64813):
<Enter>Using default value 64813
Last cylinder, +cylinders or +size{K,M,G} (64813-155061, default 155061):
72938Command (m for help): nCommand action
l logical (5 or over)
p primary partition (1-4)
lFirst cylinder (72939-155061, default 72939):
<Enter>Using default value 72939
Last cylinder, +cylinders or +size{K,M,G} (72939-155061, default 155061):
75018Command (m for help): nCommand action
l logical (5 or over)
p primary partition (1-4)
lFirst cylinder (75019-155061, default 75019):
<Enter>Using default value 75019
Last cylinder, +cylinders or +size{K,M,G} (75019-155061, default 155061):
<Enter>Using default value 155061
Command (m for help): pDisk dev/hda: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0x17df17de
Device Boot Start End Blocks Id System
dev/hda1 1 12495 6297417 83 Linux
dev/hda2 12496 64812 26367768 83 Linux
dev/hda3 64813 155061 45485400+ 5 Extended
dev/hda5 64813 72938 4095472+ 83 Linux
dev/hda6 72939 75018 1048288+ 83 Linux
dev/hda7 75019 155061 40341640+ 83 Linux
Command (m for help): mCommand action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id <-- We use this to change the partitions IDs u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): tPartition number (1-7):
2Hex code (type L to list codes):
7Changed system type of partition 2 to 7 (HPFS/NTFS)
Command (m for help): tPartition number (1-7):
6Hex code (type L to list codes):
82Changed system type of partition 6 to 82 (Linux swap / Solaris)
Command (m for help): pDisk dev/hda: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0x17df17de
Device Boot Start End Blocks Id System
dev/hda1 1 12495 6297417 83 Linux
dev/hda2 12496 64812 26367768 7 HPFS/NTFS
dev/hda3 64813 155061 45485400+ 5 Extended
dev/hda5 64813 72938 4095472+ 83 Linux
dev/hda6 72939 75018 1048288+ 82 Linux swap / Solaris
dev/hda7 75019 155061 40341640+ 83 Linux
Command (m for help) w------------------------------------------------------------------------------------
I can't show the last printout, as I would have destroyed my own partition table to do so.

Basically it should indicate the write was successful, but may say something about not being able to read the new partition table, and using the old, until a reboot. That's a normal output and nothing to worry about. As it had no partition table before, it may not show that output at all.
If it uses the partition table as is that's fine. I would still recommend a reboot, so that the liveCD will create mount point directories for the new partitions. After a reboot, try to mount each of the partitions, to see if all the directories appear to be intact.
Post your results.