Another disk image attempt failed :(

rpowersau at gmail.com rpowersau at gmail.com
Fri Apr 14 01:54:00 UTC 2006


On 4/14/06, Daniel Carrera <daniel.carrera at zmsl.com> wrote:
>
> Hello,
>
> I tried something else to effectively make a "disk image" of an Ubuntu
> OEM installation, but that didn't work either. This is what I did:
>
> Note: /dev/hda is the working installation and /dev/hdb is where I want
> to put the clone.
>
> 1. Boot from a rescue disk.
> 2. dd if=/dev/hda of=/dev/hdb count=1 bs=446
>     This should copy the bootloader part of the MBR without touching the
>     partition part.
> 3. fdisk to create the appropriate partitions that the Ubuntu OEM
>     expects (hdb1 - ext3, hdb2 - extended, hdb5 - swap).
> 5. Mount hda1 and hdb1 and 'cp --archive'.
>
> After this, I still can't boot from hdb (after pulling out hda). It says
> "DISK BOOT FAILURE. INSERT SYSTEM DISK AND PRESS ENTER".


Are you using grub? Could you show us the significant section of your
/boot/grub/menu.lst ? The one with these:

title           Ubuntu, kernel 2.6.12-10-686
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.12-10-686 root=/dev/hda1 ro quiet splash
initrd          /boot/initrd.img-2.6.12-10-686
savedefault
boot

You are copying that over so the root device will be wrong unless you edit.
Pulling out one drive doesn't necessarily change the device of the other
drive. If they are on the same cable and the jumpers are set as cable select
it won't work. If they are on different ide channels it won't work. Do you
switch the jumpers on the other drive to 'master'? Could you supply the
exact details of your setup?



So... the MBR bit didn't work. I don't know what else to try (btw, yes,
> hdb1 has the bootable flag set, but it shouldn't matter if the problem
> is right at the MBR).


That depends on the above.

At this point I'm stuck, I don't know what else to try to get a working
> MBR. Suggestions welcome.
>
> Cheers,
> Daniel.
> --
>       /\/`) http://opendocumentfellowship.org
>      /\/_/
>     /\/_/   A life? Sounds great!
>     \/_/    Do you know where I could download one?
>     /
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>



--
Regards,
Russ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060414/db518c15/attachment.html>


More information about the ubuntu-users mailing list