Sampsa Riikonen
2010-12-30 17:06:54 UTC
Dear List,
I have duplicated my hard disk using "dd", including the boot partition to
another hard disk (a sata drive in a usb box). Now I am trying to boot from
this duplicated disk, but nothing happens.. grub does not start at all.
I googled around and found these two posts:
http://www.idlecool.net/how-to-clone-the-linux-root-file-system-and-set-up-boot-loader/
http://stackoverflow.com/questions/247030/
Based on those, I tried the following:
1) My current (original) root partition is "/dev/sda4" (mounted at "/")
2) The root partition at the (duplicated) usb drive is "/dev/sdb4",
mounted at "/media/disk-17"
3) I login as the root and give the commands
mount --bind /dev /media/disk-17/dev
mount --bind /proc /media/disk-17/proc
4) Then I give the command
chroot /media/disk-17
If I have understood correctly, now "/" will be "/media/disk-17" = "/dev/sdb4"
But the system sees "/" as "/dev/sda4"
Next I type:
grub-install /dev/sda
And get the following output:
--------------------------------
Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> setup --stage2=/boot/grub/stage2 --force-lba (hd0,3) (hd0,3)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0,3)"... failed (this is not
fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd0,3)"... failed (this is not
fatal)
Running "install --force-lba --stage2=/boot/grub/stage2 /boot/grub/stage1
(hd0,3) /boot/grub/stage2 p /boot/grub/menu.lst "... failed
Error 15: File not found
grub> quit
------------------------------------------
What might be the problem here..?
Regards,
Sampsa
"Growth for the sake of growth is the ideology of a cancer cell."
-- Edward Abbey
I have duplicated my hard disk using "dd", including the boot partition to
another hard disk (a sata drive in a usb box). Now I am trying to boot from
this duplicated disk, but nothing happens.. grub does not start at all.
I googled around and found these two posts:
http://www.idlecool.net/how-to-clone-the-linux-root-file-system-and-set-up-boot-loader/
http://stackoverflow.com/questions/247030/
Based on those, I tried the following:
1) My current (original) root partition is "/dev/sda4" (mounted at "/")
2) The root partition at the (duplicated) usb drive is "/dev/sdb4",
mounted at "/media/disk-17"
3) I login as the root and give the commands
mount --bind /dev /media/disk-17/dev
mount --bind /proc /media/disk-17/proc
4) Then I give the command
chroot /media/disk-17
If I have understood correctly, now "/" will be "/media/disk-17" = "/dev/sdb4"
But the system sees "/" as "/dev/sda4"
Next I type:
grub-install /dev/sda
And get the following output:
--------------------------------
Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> setup --stage2=/boot/grub/stage2 --force-lba (hd0,3) (hd0,3)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0,3)"... failed (this is not
fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd0,3)"... failed (this is not
fatal)
Running "install --force-lba --stage2=/boot/grub/stage2 /boot/grub/stage1
(hd0,3) /boot/grub/stage2 p /boot/grub/menu.lst "... failed
Error 15: File not found
grub> quit
------------------------------------------
What might be the problem here..?
Regards,
Sampsa
"Growth for the sake of growth is the ideology of a cancer cell."
-- Edward Abbey
--
To unsubscribe, e-mail: opensuse+***@opensuse.org
For additional commands, e-mail: opensuse+***@opensuse.org
To unsubscribe, e-mail: opensuse+***@opensuse.org
For additional commands, e-mail: opensuse+***@opensuse.org