I am cloning a 1-partition system (3.1/i386)
from /dev/hda5 to /dev/hda6,
and intend to install grub in that partition.
No need to change drivers, etc. - *only* the root device.
I already did the following:
- copied all files in the / tree to a filesystem on /dev/hda6
- amended /etc/fstab to mount /dev/hda6 on /
- amended /boot/grub/menu.lst to have (hd0,5) as root
root=(hd0,5)
kernel=/boot/vmlinuz-2.6.8-2-686 root=(hd0,5)
- PROBLEM (I think):
I also tried to make an initrd image (in the original system)
to reflect the change in root device, thus producing a file
to be later copied in place of the initrd image on the
destination system:
mkinirtd -r /dev/hda6 -o /root/initrd.img-hda6
The process repeatably ends without output,
and without any error message.
I am strictly following the manpage, and even tried
to make another initrd.img with the same root:
mkinirtd -o new-test-initrd-file
but still with no output.
If I install grub on the NEW system manually with a grub floppy,
and specify the new-system kernel and root, but leave old initrd
imgage,
boot succeeds (probably using the NEW kernel etc.)
but the running system eventually pivots onto the OLD partition.
* Why is mkinitrd seemingly not acting as described on the man page?
* How can I get the cloned system to boot using ONLY the new system?