Assuming the root.disk
you copied wasn't corrupted... you can boot it as follows:
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
After booting, make sure you run sudo update-grub
Wubi corruption is most common on the NTFS
file system (requires running chkdsk /f
from Windows), followed by corruption of the internal ext3/4
filesystem. Since you managed to copy your root.disk
you may have internal corruption, in which case running fsck root.disk
might fix it. But this depends on when you made your backup (i.e. before or after you encountered the problem).
To fsck
the root.disk
you can boot an Ubuntu DVD/USB, Select Try Ubuntu, then mount the partition that contains the root.disk
and then fsck
it as follows (this example assumes the root.disk
is on /dev/sda1
):
sudo mount /dev/sda1 /mnt
sudo fsck -fyv /mnt/ubuntu/disks/root.disk
(flags are f
orce, y
es to fix automatically, v
erbose)
Note: fsck
used in this way does make changes and there's no guarantee it will fix everything without data loss. If recovery is critical it's possible to use photorec
(which comes bundled when you install testdisk
i.e. sudo apt-get install testdisk
). Photorec is read-only (non-destructive) and can recover raw files. The downside is that the recovered files are not named, and it recovers everything e.g. deleted files as well - so there is some manual effort to find the ones you are after. It does provide the ability to target specific file types though. See here for more info: Recover deleted data with rm -rf?