Now it works, except the warnings that the partitions are not bound to cylinders.
Code:
ubuntu@ubuntu:~$ sudo sh -c "cat mbrtable | sfdisk /dev/sda"
Checking that no-one is using this disk right now ...
OK
Disk /dev/sda: 15566 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/sda1 0+ 17- 18- 140290+ ee GPT
/dev/sda2 2192+ 4280- 2089- 16777347 af HFS / HFS+
/dev/sda3 17+ 81- 64- 512000 83 Linux
/dev/sda4 1002+ 1003- 1- 3087 7 HPFS/NTFS/exFAT
New situation:
Units = sectors of 512 bytes, counting from 0
Device Boot Start End #sectors Id System
/dev/sda1 280582 1304581 1024000 83 Linux
/dev/sda2 118786048 186845207 68059160 83 Linux
/dev/sda3 186845208 250069679 63224472 83 Linux
/dev/sda4 0 - 0 0 Empty
Warning: partition 1 does not start at a cylinder boundary
Warning: partition 1 does not end at a cylinder boundary
Warning: partition 2 does not start at a cylinder boundary
Warning: partition 2 does not end at a cylinder boundary
Warning: partition 3 does not start at a cylinder boundary
Warning: partition 3 does not end at a cylinder boundary
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table
Re-reading the partition table ...
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).)
Bookmarks