Kristijan |
06-18-2004 01:22 AM |
I'v gone through that article many times, yet I still get no where.
Code:
[root@neo root]# sfdisk -d /dev/hda | sfdisk --no-reread -H255 /dev/hda
Warning: HDIO_GETGEO says that there are 16 heads
Disk /dev/hda: 155061 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/hda1 0+ 1305- 1306- 10485688+ 7 HPFS/NTFS
/dev/hda2 * 1305+ 9729- 8424- 67665024 83 Linux
/dev/hda3 0 - 0 0 0 Empty
/dev/hda4 0 - 0 0 0 Empty
New situation:
Units = sectors of 512 bytes, counting from 0
Device Boot Start End #sectors Id System
/dev/hda1 63 20971439 20971377 7 HPFS/NTFS
/dev/hda2 * 20971440 156301487 135330048 83 Linux
/dev/hda3 0 - 0 0 Empty
/dev/hda4 0 - 0 0 Empty
Warning: partition 1 does not end at a cylinder boundary
sfdisk: I don't like these partitions - nothing changed.
(If you really want this, use the --force option.)
[root@neo root]#
Then with the --force option
Code:
[root@neo root]# sfdisk -d /dev/hda | sfdisk --force --no-reread -H255 /dev/hda
Warning: HDIO_GETGEO says that there are 16 heads
Disk /dev/hda: 155061 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/hda1 0+ 1305- 1306- 10485688+ 7 HPFS/NTFS
/dev/hda2 * 1305+ 9729- 8424- 67665024 83 Linux
/dev/hda3 0 - 0 0 0 Empty
/dev/hda4 0 - 0 0 0 Empty
New situation:
Units = sectors of 512 bytes, counting from 0
Device Boot Start End #sectors Id System
/dev/hda1 63 20971439 20971377 7 HPFS/NTFS
/dev/hda2 * 20971440 156301487 135330048 83 Linux
/dev/hda3 0 - 0 0 Empty
/dev/hda4 0 - 0 0 Empty
Warning: partition 1 does not end at a cylinder boundary
Successfully wrote the new partition table
Re-reading the partition table ...
BLKRRPART: Device or resource busy
The command to re-read the partition table failed
Reboot your system now, before using mkfs
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
[root@neo root]#
Stumped on why everyone else can get this to work, yet I can't *shrugs*
Regards
Kristijan
|