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.

3
  • What doesn't work? You get any error message?
    – Salem
    Apr 6, 2013 at 13:05
  • @salem "no such device found:<deviceid>" and 'no such file found press any key to continue.." Apr 6, 2013 at 15:17
  • If you describe how it got corrupted, maybe you can fix that: askubuntu.com/questions/228709/…
    – bcbc
    Apr 6, 2013 at 18:57

1 Answer 1

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
7
  • how i can get the UUID of older root.disk.... Apr 8, 2013 at 13:49
  • It's the UUID of the old NTFS partition. But grub.cfg within the root.disk uses it to boot and it needs to refer to the new partition.
    – bcbc
    Apr 8, 2013 at 15:09
  • Is there any command in grub command prompt to get UUID of my older root.disk. Apr 8, 2013 at 15:33
  • I got error "no device found:OEA2FFODA2FEF853" on my new computer after I replaced newer root.disk file with older one. Is that the UUID of my older root.disk file. Apr 8, 2013 at 15:39
  • It's not the UUID of the root.disk. It's the UUID of the old partition that is stored on the root.disk.
    – bcbc
    Apr 8, 2013 at 16:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .