LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Grub2 - Triple booting error - 3rd Distro not detected. (http://www.linuxquestions.org/questions/linux-software-2/grub2-triple-booting-error-3rd-distro-not-detected-4175419519/)

flebber 07-31-2012 03:41 AM

Grub2 - Triple booting error - 3rd Distro not detected.
 
I currently on my laptop have Windows7 and Ubuntu 12.04 dual booting. I created some space so I could install and run Sabayon or Kororaa as well.

Basically the drive is set up like this/

/dev/sda1 win7
/dev/sda2 win7
/dev/sda3 win7
/dev/sda4 Ubuntu Swap
/dev/sda5 Ubuntu root
/dev/sda6 Ubuntu home
/dev/sda7 50Gb free space

When i installed fedora the install went fine it actually reinstalled grub without asking and so booted on restart. I went back into ubuntu and reinstalled grub 2 to the MBR and ran update-grub2. However now Fedora was not detected.

Fedora created /sda7 into an LVM of sda7 a 500mb boot and 3 other LVM'd partirions 8/9/10. However when you update grub2 from ubuntu you now do not see Fedora.

So i removed fedora and installed Sabayon, Sabayon uses anaconda and so instal was basically the same as Fedora and the result was also an LVM like Fedora. Again however using update-grub2 Sabayon cannot be seen or booted it does not detect that the LVM existed at all.

So I thought should do an old school non lvm setup so I grabbed the Fedora disk and created a manual install and created
/dev/sda7 /
/dev/sda8 /home
install, nice and simple. When the installer asked to install grub I skipped it so as not to interfere with the grub2 I control from ubuntu.

However still when I ran update-grub2 in ubuntu there was no linux partitions or distro's detected by grub2 and fedora was unable to boot.

How can I get grub2 to recognise newly installed distro's installed after /dev/sda7?

Glennzo 07-31-2012 03:46 AM

I've had instances where the newest OS wasn't recognised by grub2 because the partition wasn't mounted. Mounting the partition and running update-grub2 solved the problem for me. In your case:
Code:

mount -t ext4 /dev/sda7 /mnt/
update-grub2

Reboot and see if Fedora is now part of the menu boot options.

flebber 07-31-2012 06:20 AM

Quote:

Originally Posted by Glennzo (Post 4741993)
I've had instances where the newest OS wasn't recognised by grub2 because the partition wasn't mounted. Mounting the partition and running update-grub2 solved the problem for me. In your case:
Code:

mount -t ext4 /dev/sda7 /mnt/
update-grub2

Reboot and see if Fedora is now part of the menu boot options.

Yes that did it thanks.

shapulani 10-08-2012 06:52 AM

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 92008447 46003200 83 Linux
/dev/sda2 149790121 156248189 3229034+ 5 Extended
/dev/sda3 92008448 93032447 512000 83 Linux
/dev/sda4 93032448 149788671 28378112 8e Linux LVM
/dev/sda5 149790123 156248189 3229033+ 82 Linux swap / Solaris

When I execute that command:

shapulani@shapulani-desktop:~$ sudo mount -t ext4 dev/sda3 /mnt/
mount: special device dev/sda4 does not exist

I need help thanks

yancek 10-08-2012 10:09 AM

Your post shows you are trying to mount sda3 and your error shows sda4 is not present. Typo?? You need a forward slash in front of dev for starters as well as the correct partition:

Quote:

sudo mount -t ext4 /dev/sda3 /mnt/

shapulani 10-09-2012 04:18 AM

shapulani@shapulani-desktop:~$ sudo mount -t ext4 /dev/sda3 /mnt/
shapulani@shapulani-desktop:~$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-31-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-31-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-30-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-30-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-29-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-29-generic-pae
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sdb1
done
shapulani@shapulani-desktop:~$

Still no joy


All times are GMT -5. The time now is 03:05 PM.