Sunday, 15 December 2013

How to access and repair Wubi if it won't boot?


Boot the Ubuntu Desktop CD or another LiveCD.


Then mount the windows partition using the following commands:
sudo mkdir /win
sudo mount /dev/sda1 /win
Replace sda1 with the appropriate device (a = disk, 1 = partition number)


Then mount the virtual disk therein by entering the following command:
sudo mkdir /vdisk
sudo mount -o loop /win/ubuntu/disks/root.disk /vdisk


Now the content of the virtual disk will be visible under /vdisk.
7.04 users will have to install ntfs-3g first and specify it as fstype to gain r/w access.


To check the filesystem you can use, enter the following commands:
sudo fsck /win/ubuntu/disks/root.disk 
 
Note: 
Make sure the root.disk is not mounted while entering the following command.
Using sudo command, asks you to enter the password.