Today I upgraded my ubuntu 10.04 to 10.10 through internet. Perhaps it is because my ubuntu 10.04 is installed through wubi, I met several problems after this upgrade. The first one is I can not enter ubuntu any more by selecting “ubuntu” in the boot menu. The machine reboot again and again unless I enter windows. This problem could be solved in the following ways:
1. Boot your machine from a ubuntu CD or USB disk. The version here is not important. In my case, I use a boot USB with ubuntu 10.04. If you do not know how to create the boot disk, see the link: http://www.ubuntu.com/desktop/get-ubuntu/download
2. Change your boot order in your BIOS in order to boot from your CD or USB.
3. Select “run Ubuntu” or something like that (I do not remember the exact phrase). Do NOT install the ubuntu.
4. After a while, you will see a ubuntu interface. From the application menu start a terminal, type the following commands:
sudo mkdir /win
sudo mount /dev/sda1 /win
The sda1 should change to be your partition which the wubi is installed. For me, it is sdc2. To check if you have mounted the right partition, you can type cd /win/ and tab to see if the ubuntu sub directory exists. Verify this until you can find the directory /win/ubuntu/disks/.
Next, type the following commands:
sudo mkdir /vdisk
sudo mount -o loop /win/ubuntu/disks/root.disk /vdisk
If this mount succeeds, you can type the command to edit the grub.cfg file.
gksu gedit /mountpoint/boot/grub/grub.cfg
Remove all contents above the first “menuentry”.
5. Remove the boot CD or USB and reboot. Now you could enter your ubuntu 10.10, but typically you can not enjoy it yet.
If you installed your old version ubuntu by wubi, usually you will mount your disk D: or E: in windows for sharing the data. I found that I can not run any programs in these disks, even the programs I made can not work either. But I can run them if I copy them to the ubuntu home directory. To solve this problem you can do it like this:
1. backup your /etc/fstab file
sudo cp /etc/fstab /etc/fstab.bak
2. open this file
sudo gedit /etc/fstab
3. add one line at the end of the file
UUID=6CF2A73DF2A70A82 /media/AnyName ntfs-3g auto,users,rw,uid=YourUserName,gid=YourGroupName,exec,dmask=027,fmask=027 0 0
the uuid here is the uuid of your disk, you can check this from system->administration->disk tools. Change the ‘AnyName’ to the directory name you want to mount the disk. Remeber to change the uid and gid to your user name and group name. If you do not want this specific mount option you can use the following command instead of the above one:
UUID=6CF2A73DF2A70A82 /media/AnyName ntfs-3g defaults 0 0
4. save the file, and reboot your system. Now you can run any programs in these mounted disks.