lost and found ( for me ? )

Triple boot : Fedora17’s grub2 has not recognized Linux MInt 14

Three Operating Systems , Win 7 , Fedora 17 and Linux Mint 14 , has been installed in my desktop PC.
Fedora’s Grub2 , which has been installed in MBR , has not recognized Linux Mint 14...

# rpm -qa | grep grub2
grub2-2.0-0.38.beta6.fc17.x86_64
grub2-tools-2.0-0.38.beta6.fc17.x86_64

# uname -ri
3.6.8-2.fc17.x86_64 x86_64

# cat /etc/fedora-release
Fedora release 17 (Beefy Miracle)

Here’s my “fdisk -l” info
# fdisk -l /dev/sda

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe0a4c958

  Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT  <- Win7
/dev/sda2          206911   308688974   154241032    7  HPFS/NTFS/exFAT <- Win7
/dev/sda3       308690944   615890943   153600000   83  Linux   <-  Fedora 17
/dev/sda4       615892990   976771071   180439041    5  Extended
/dev/sda5       615892992   632276991     8192000   82  Linux swap / Solaris  <- swap for Fedora n’ Mint
/dev/sda6       632279040   976771071   172246016   83  Linux  <- Linux Mint 14

run os-prober command.
Grub detected Win 7 , however did not detect Linux Mint.
# os-prober
 No volume groups found
/dev/sda1:Windows 7 (loader):Windows:chain

Mount the file system in which Linux Mint has been installed. ( /dev/sda6 )
# mount -t ext4 /dev/sda6 tmp_mount_for_Mint

After mounting the filesystem in which Linux MInt has been installed , os-prober detects both Win 7 and Mint.
# os-prober
 No volume groups found
/dev/sda1:Windows 7 (loader):Windows:chain
/dev/sda6:Linux Mint 14 Nadia (14):LinuxMint:linux

I’m not sure the reason ,, however it seems that os-prober seems to detect OSes which have been mounted.

update grub2
# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.6.8-2.fc17.x86_64
Found initrd image: /boot/initramfs-3.6.8-2.fc17.x86_64.img
Found linux image: /boot/vmlinuz-3.6.6-1.fc17.x86_64
Found initrd image: /boot/initramfs-3.6.6-1.fc17.x86_64.img
Found linux image: /boot/vmlinuz-3.6.5-1.fc17.x86_64
Found initrd image: /boot/initramfs-3.6.5-1.fc17.x86_64.img
 No volume groups found
Found Windows 7 (loader) on /dev/sda1
Found Linux Mint 14 Nadia (14) on /dev/sda6
done

unmount
# umount /home/hattori/tmp_mount_for_Mint

If your grub has not recognized OSes installed , it might be worth to try this.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.