Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 19686  / 3 Years ago, wed, august 25, 2021, 12:57:01

I have installed these OS in the order give below:



Windows7  
Ubuntu 11.04
Fedora 15


Before installation of Fedora 15 all was working fine. Ubuntu grub shows Windows and Ubuntu in the list. When Fedora 15 is installed Ubuntu's grub was lost. I am trying to restore Ubuntu grub from Ubuntu live usb drive.So that the fedora will chainload Ubuntu grub.



ubuntu@ubuntu:~$ sudo grub-install --boot-directory=/media/926afad4-4c2a-4f0f-8b2c->801e07c9ec26/boot /dev/sda2  
/usr/sbin/grub-probe: error: cannot stat `aufs'.


Please help?


More From » 11.04

 Answers
4

The problem might be here:



ubuntu@ubuntu:~$ sudo grub-install --boot-directory=/media/926afad4-4c2a-4f0f-8b2c-801e07c9ec26/boot **/dev/sda2**


The /dev/sda2, which is the second partition (the 2) on your first hard drive (the a), should just be /dev/sda, which refers to just to the hard drive as a whole.



When the computer starts, the BIOS will determine which device to boot from (based on your boot order settings). Should it be your first hard drive (/dev/sda), then the computer will look for a bootloader installed at the very beginning of the Master Boot Record (MBR), the first sector of the HDD. You're trying to install grub probably somewhere deep in the hard drive.



|--|---------------------------------------|--------------------------------|
^ ^ ^
| |__ Start of 1st partition /dev/sda1 |__Start of 2nd partition /dev/sda2
| where you're trying to install
| grub
|
|__Start of hard drive, the MBR starts here, the bootloader should live in
here, the partition tables as well, all before the first partition.


TL;DR change /dev/sda2 to /dev/sda


[#44636] Wednesday, August 25, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tatoethin

Total Points: 377
Total Questions: 110
Total Answers: 98

Location: Saudi Arabia
Member since Sat, Aug 20, 2022
2 Years ago
;