grub2-install ??

Jim binarynut at comcast.net
Mon Apr 21 16:05:34 UTC 2014


On 04/21/2014 06:52 AM, Edward M wrote:
> On 4/20/2014 12:13 PM, Jim wrote:
>> fedora 20
>>
>> I installed Fedora 20 on /dev/sdb1 and after installation was 
>> completed it didn't select /dev/sdb1 and bootup .
>> I have Windows on sda1 so i put a sdb in computer for Linux.
>>
>> Is  the command, grub2-install /dev/sdb1 the correct command for 
>> booting Fedora 20 on sdb1 ?
>
>       this  should be of some help:
>
>
>          http://fedoraproject.org/wiki/GRUB_2
>

Here is the /boot/grub2/grub2.cfg

menuentry 'Fedora, with Linux 3.11.10-301.fc20.i686' --class fedora 
--class gnu-linux --class gnu --class os $menuentry_id_option 
'gnulinux-3.11.10-301.fc20.i686-advanced-372e1768-343a-4c42-93cd-6c5ff9c94c46' 
{
     load_video
     set gfxpayload=keep
     insmod gzio
     insmod part_msdos
     insmod ext2
     set root='hd0,msdos1'
     if [ x$feature_platform_search_hint = xy ]; then
       search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 
--hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd0,msdos1'  
372e1768-343a-4c42-93cd-6c5ff9c94c46
     else
       search --no-floppy --fs-uuid --set=root 
372e1768-343a-4c42-93cd-6c5ff9c94c46
     fi
     linux    /boot/vmlinuz-3.11.10-301.fc20.i686 root=/dev/sdb1 ro 
vconsole.font=latarcyrheb-sun16  rhgb quiet LANG=en_US.UTF-8
     initrd /boot/initramfs-3.11.10-301.fc20.i686.img
}
menuentry 'Fedora, with Linux 0-rescue-8263cafda4694e019c7572777525b630' 
--class fedora --class gnu-linux --class gnu --class os 
$menuentry_id_option 
'gnulinux-0-rescue-8263cafda4694e019c7572777525b630-advanced-372e1768-343a-4c42-93cd-6c5ff9c94c46' 
{
     load_video
     insmod gzio
     insmod part_msdos
     insmod ext2
     set root='hd0,msdos1'
     if [ x$feature_platform_search_hint = xy ]; then
       search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 
--hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd0,msdos1'  
372e1768-343a-4c42-93cd-6c5ff9c94c46
     else
       search --no-floppy --fs-uuid --set=root 
372e1768-343a-4c42-93cd-6c5ff9c94c46
     fi
     linux    /boot/vmlinuz-0-rescue-8263cafda4694e019c7572777525b630 
root=UUID=372e1768-343a-4c42-93cd-6c5ff9c94c46 ro 
vconsole.font=latarcyrheb-sun16  rhgb quiet
     initrd /boot/initramfs-0-rescue-8263cafda4694e019c7572777525b630.img
}


Here is the ID# of

/boot/initramfs-0-rescue-8263cafda4694e019c7572777525b630.img

/boot/vmlinuz-0-rescue-8263cafda4694e019c7572777525b630




More information about the users mailing list