0

My ubuntu 11.10 got corrupted today. I had installed it using wubi installer I copied root.disk file from there.

Now I installed ubuntu 11.10 using wubi on different computer.Can I use my older root.disk under this wubi install on my new computer.

I replaced my newer root.disk with older one but it doesn't work. Help me fast.

1 Answers1

0

Is the root.disk backed up from before the corruption? If not it won't work. It it is (a good copy), then you need to change the UUID to boot. So the first time, hit C to get to a Grub command prompt and enter:

search -s -f -n /ubuntu/disks/root.disk
probe --set=diskuuid -u $root
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /vmlinuz root=UUID=$diskuuid loop=/ubuntu/disks/root.disk ro quiet splash
initrd /initrd.img
boot

This will boot the Wubi install (provided it's good, as I mentioned). Then you just need to update the grub.cfg to get it working normally:

sudo update-grub
bcbc
  • 6,036