Can't boot after cloning

Asked by strikerazde

So I have a dual boot one partition for Win7 NTFS, and another for ubuntu ext4. After cloning the disk in Acronis 2011 (windows program) The cloned disk, I wanted to test the clone. The cloned disk is not bootable.

So I booted to live USB drive and tried to follow directions to get grub working

sudo grub puts me a grub prompt "grub>"

grub> find /boot/grub/stage1
Error 15: File not found

grub> find /grub/stage1
Error 15: File not found
grub>

Not sure where to go from here, the partitions of the drive I cloned are as follows. There is only one hard drive.
   Device Boot Start End Blocks Id System
/dev/sda1 * 1 61192 491516928 7 HPFS/NTFS
/dev/sda2 61192 121602 485244632 5 Extended
/dev/sda5 61192 121085 481088512 83 Linux
/dev/sda6 121085 121602 4153344 82 Linux swap / Solaris

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Why don't use the dd utility to clone hard-disk ....

Example cloning disk /dev/hda to /dev/hdb (hdb size > of hda)

Boot from live cd, select to try Ubuntu without install
open a terminal and type

sudo dd if=/dev/hda of=/dev/hdb bs=...

For optimal size of bs value test yourself here a starting point
http://superuser.com/questions/234199/good-block-size-for-disk-cloning-with-diskdump-dd

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#2

While re-cloning using a method that supports Linux-based systems like Ubuntu (as marcobra suggests) is probably your best option, you might be able to solve this problem by reinstalling GRUB2 to the Master Boot Record (http://www.webtechquery.com/index.php/2010/04/install-grub2-from-live-cd/).

Revision history for this message
strikerazde (strikerazde) said :
#3

well dd does not keep the partition information and UUID's as far as I can tell. This means the drive the working date was cloned on, will not be bootable. Or do I haver that wrong.

Have tried re-installing GRUB, but getting error messages, so that's not working either.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#4

Right you must reinstall grub after clone the hard-disk i usually do this:
- unplug the old original disk from internal cable
- put the new cloned disk as primary

boot from live cd...

use the https://help.ubuntu.com/community/Grub2#ChRoot method to reinstall grub

shutdown the pc
remove the ubuntu live cd
try if it boot

plug the old disk as secondary (or keep it unplugged as old backup copy if you plan to replace it)
and after a while format it using gparted

Hth

Revision history for this message
strikerazde (strikerazde) said :
#5

OK, have tried reinstalling Grub before, but this link marccobra sent provides a different method, so I'll try it. Give the partition table I provided in the beginning, and that Win7 was on the laptop, then I loaded ubuntu. Should the GRUB be reinstalled in sda, or sda5?

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#6

i think master boot record of disk so try sda

Revision history for this message
delance (olivier-delance) said :
#7

"well dd does not keep the partition information and UUID's as far as I can tell."
You are wrong. dd will copy all sectors of disk, including the 1st one which hold partition table.
You must mount sda5 but install MBR on sda.
sda will hold MBR on its first sector, and 63 following ones
sda5 will hold boot files such boot menu, graphic and file system drivers (in /boot/grub folder).

Revision history for this message
strikerazde (strikerazde) said :
#8

OK, so I'll try dd to clone the drive. Will using dd mean I have to have the correct partitions and formatting on the destination drive? or will the dump format on the fly? Also if I use the same disk to dump to monthly, will I need to delete data before attempting a dump, or will the dd overwrite the data?

Revision history for this message
delance (olivier-delance) said :
#9

dd will simply copy each sector of first disk on same location on second disk.
So it will erase all data on second disk INCLUDING partition table. You will lost all data on second disk.
You will have the same partition as in first disk.
The format is done inside file system, and will be "done" implicitly.

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#10

Are you still experiencing this problem, or did you fix it (e.g., by re-cloning, or by re-configuring GRUB after the "bad" clone)?

Revision history for this message
Launchpad Janitor (janitor) said :
#11

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.