Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

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

1 Answer 1

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
share|improve this answer
    
how i can get the UUID of older root.disk.... –  Aathaarv Singh Apr 8 '13 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 '13 at 15:09
    
Is there any command in grub command prompt to get UUID of my older root.disk. –  Aathaarv Singh Apr 8 '13 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. –  Aathaarv Singh Apr 8 '13 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 '13 at 16:20
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.