sudo su update-grub
Showing posts with label recovering lost Ubuntu installation. Show all posts
Showing posts with label recovering lost Ubuntu installation. Show all posts
Tuesday, November 1, 2011
Windows not loading from grub menu, what to do??
Sometimes it may happen that after reinstalling grub the windows does appear in the grub menu but does not load. In case you are having such a problem. Boot up your Ubuntu machine
Friday, August 6, 2010
Recovering lost Ubuntu installation after installing windows
You can try installing and using Boot-repair, for instructions on installing and using it refer to the following link. (Note: i have not personally tried it but seems user friendly)
https://help.ubuntu.com/community/Boot-Repair
Or alternately you can choose to do it manually
Boot from a live cd of Ubuntu 10.04.
First, find out about your drives.
Then check to see if the drive is already mounted or not
If it is not mounted then mount it first. This is the drive in which Ubuntu is installed. In this example i will be mounting /dev/sda2 on to the folder /home/mtf
In case you are not sure which drive has Ubuntu installed, you would like to look for a drive with System field as "Linux" in the output of sudo fdisk -l
If you have multiple such drives and are confused, then you can check the drives by mounting each of them and looking at the contents to see which is which. You can mount multiple drives on different folders using the steps mentioned above. You may also mount to the same folder (not consecutively) by unmounting the former drive.In this example /dev/sda2 is unmounted and /dev/sda3 is mounted in its stead
Once the drive is mounted
Replace x with the letter for your hard disk.
In my example, /dev/sda3 is the drive with Ubuntu installation, mounted on /home/mtf so the command would be
Note that in the above case it is /dev/sda and NOT /dev/sda2
Additionally to ensure everything is in order boot into your Ubuntu and then do the following to fix any missing or malfunctioning entries in grub
https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows
https://help.ubuntu.com/community/Boot-Repair
Or alternately you can choose to do it manually
Boot from a live cd of Ubuntu 10.04.
First, find out about your drives.
sudo fdisk -l
df
mkdir /home/mtf sudo mount /dev/sda2 /home/mtf
If you have multiple such drives and are confused, then you can check the drives by mounting each of them and looking at the contents to see which is which. You can mount multiple drives on different folders using the steps mentioned above. You may also mount to the same folder (not consecutively) by unmounting the former drive.In this example /dev/sda2 is unmounted and /dev/sda3 is mounted in its stead
sudo umount /home/mtf sudo mount /dev/sd3 /home/mtf
sudo grub-install --root-directory=/path-of-mounted-drive-with-ubuntu-install /dev/sdx
In my example, /dev/sda3 is the drive with Ubuntu installation, mounted on /home/mtf so the command would be
sudo grub-install --root-directory=/home/mtf /dev/sda
Additionally to ensure everything is in order boot into your Ubuntu and then do the following to fix any missing or malfunctioning entries in grub
sudo update-grub
https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows
Subscribe to:
Posts (Atom)