LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   Problem on reinstalling Fedora (http://www.linuxquestions.org/questions/fedora-35/problem-on-reinstalling-fedora-4175436654/)

satimis 11-11-2012 09:32 AM

Problem on reinstalling Fedora
 
Hi all,

This is a dualboot system (LVM)
1) Ubuntu 12.04 desktop 64bit
2) Fedora 17 desktop 64bit

On original installtion I installed Ubuntu first leaving about half space of the harddrive (160G total capacity) for Fedora. During installing Fedora I deselected "saving bootloader to sda".

Installation went through without problem with dualboot working properly.

About 3 hours before, for an unknown reason Fedora failed boot. Please see my posting on;
http://www.linuxquestions.org/questi...le-4175436632/

Then I reinstalled Fedora without saving the bootloader on sda. After installation completed I couldn't start Grub on reboot.

Then I reinstalled Fedora the 2nd time wiht bootload saved to sda selected. After installation finish on reboot Grub start but I couldn't find Ubuntu on Grub.

Please help to get Ubuntu back to Grub. TIA

B.R.
satimis

yancek 11-11-2012 10:50 AM

Have you tried the steps at fedoraproject link below:

https://fedoraproject.org/wiki/GRUB_2?rd=Grub2

If that doesn't resolve the problem, run the bootinfoscript and review the output or post it here.

John VV 11-11-2012 01:42 PM

with fedora it might be a good idea to have two grub's installed

leave the MBR with ubuntu's bootloaer
make a 1 GIG ( yes gig "preupgrade" NEEDS THAT MUCH) a 1 Gig "/boot" partition on he FIRST Fedora partition ( must be one of the 4 primary's )
then just ad an entry in Ubuntu's bootlader pointing o fedoras /boot partition

or
if you ar NOT going to use the unstable "preupgrade" then fedora's /boot partition only needs to be 100 Meg.

satimis 11-11-2012 06:51 PM

Quote:

Originally Posted by John VV (Post 4827146)
with fedora it might be a good idea to have two grub's installed

leave the MBR with ubuntu's bootloaer
make a 1 GIG ( yes gig "preupgrade" NEEDS THAT MUCH) a 1 Gig "/boot" partition on he FIRST Fedora partition ( must be one of the 4 primary's )
then just ad an entry in Ubuntu's bootlader pointing o fedoras /boot partition

or
if you ar NOT going to use the unstable "preupgrade" then fedora's /boot partition only needs to be 100 Meg.

Hi,

Thanks for your advice. Could you please explain in more detail.

Whether you meant to have 2 bootloaders (one for Ubuntu and another for Fedora)? Then which of them will start first at booting?

Now I can't start Ubuntu.

# fdisk -l
Code:


Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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: 0x000948c6

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *        2048      499711      248832  83  Linux
/dev/sda2          501758  312580095  156039169    5  Extended
/dev/sda5          501760  312580095  156039168  8e  Linux LVM

Disk /dev/mapper/lvm-swap_1: 8317 MB, 8317304832 bytes
255 heads, 63 sectors/track, 1011 cylinders, total 16244736 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 /dev/mapper/lvm-lv01: 1094 MB, 1094713344 bytes
255 heads, 63 sectors/track, 133 cylinders, total 2138112 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 /dev/mapper/lvm-lv00: 79.7 GB, 79691776000 bytes
255 heads, 63 sectors/track, 9688 cylinders, total 155648000 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 /dev/mapper/lvm-root: 70.7 GB, 70678216704 bytes
255 heads, 63 sectors/track, 8592 cylinders, total 138043392 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

In recent few weeks I have made multiple installation Ubuntu12.04 and then Fedora17, dualboot. During installing Fedora don't save bootloader. Then at booting both Ubuntu and Fedora are displayed on Grub.

But this time I can't leave without saving bootloader at installing Fedora. I don't know why. Otherwise at booting Grub can't popup. It is quite strange to me.

B.R.
satimis

satimis 11-11-2012 07:25 PM

Quote:

Originally Posted by yancek (Post 4827060)
Have you tried the steps at fedoraproject link below:

https://fedoraproject.org/wiki/GRUB_2?rd=Grub2

If that doesn't resolve the problem, run the bootinfoscript and review the output or post it here.

Hi,

# cat /boot/grub2/grub.cfg
Code:

# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="${saved_entry}"

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
  font=unicode
else
insmod part_msdos
insmod lvm
insmod ext2
set root='lvm/lvm-lv00'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvm/lvm-lv00'  f93e25e9-ac7a-4bab-8817-b0b34c8460af
else
  search --no-floppy --fs-uuid --set=root f93e25e9-ac7a-4bab-8817-b0b34c8460af
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora Linux' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f93e25e9-ac7a-4bab-8817-b0b34c8460af' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod lvm
        insmod ext2
        set root='lvm/lvm-lv00'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='lvm/lvm-lv00'  f93e25e9-ac7a-4bab-8817-b0b34c8460af
        else
          search --no-floppy --fs-uuid --set=root f93e25e9-ac7a-4bab-8817-b0b34c8460af
        fi
        echo        'Loading Linux 3.3.4-5.fc17.x86_64 ...'
        linux        /boot/vmlinuz-3.3.4-5.fc17.x86_64 root=/dev/mapper/lvm-lv00 ro rd.md=0 rd.dm=0 SYSFONT=True rd.lvm.lv=lvm/lv00 rd.lvm.lv=lvm/lv01  KEYTABLE=us rd.luks=0 rd.lvm.lv=lvm/swap_1 LANG=en_US.UTF-8 rhgb quiet
        echo        'Loading initial ramdisk ...'
        initrd        /boot/initramfs-3.3.4-5.fc17.x86_64.img
}
submenu 'Advanced options for Fedora Linux' $menuentry_id_option 'gnulinux-advanced-f93e25e9-ac7a-4bab-8817-b0b34c8460af' {
        menuentry 'Fedora Linux, with Linux 3.3.4-5.fc17.x86_64' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.3.4-5.fc17.x86_64-advanced-f93e25e9-ac7a-4bab-8817-b0b34c8460af' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos
                insmod lvm
                insmod ext2
                set root='lvm/lvm-lv00'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='lvm/lvm-lv00'  f93e25e9-ac7a-4bab-8817-b0b34c8460af
                else
                  search --no-floppy --fs-uuid --set=root f93e25e9-ac7a-4bab-8817-b0b34c8460af
                fi
                echo        'Loading Linux 3.3.4-5.fc17.x86_64 ...'
                linux        /boot/vmlinuz-3.3.4-5.fc17.x86_64 root=/dev/mapper/lvm-lv00 ro rd.md=0 rd.dm=0 SYSFONT=True rd.lvm.lv=lvm/lv00 rd.lvm.lv=lvm/lv01  KEYTABLE=us rd.luks=0 rd.lvm.lv=lvm/swap_1 LANG=en_US.UTF-8 rhgb quiet
                echo        'Loading initial ramdisk ...'
                initrd        /boot/initramfs-3.3.4-5.fc17.x86_64.img
        }
        menuentry 'Fedora Linux, with Linux 3.3.4-5.fc17.x86_64 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.3.4-5.fc17.x86_64-recovery-f93e25e9-ac7a-4bab-8817-b0b34c8460af' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos
                insmod lvm
                insmod ext2
                set root='lvm/lvm-lv00'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint='lvm/lvm-lv00'  f93e25e9-ac7a-4bab-8817-b0b34c8460af
                else
                  search --no-floppy --fs-uuid --set=root f93e25e9-ac7a-4bab-8817-b0b34c8460af
                fi
                echo        'Loading Linux 3.3.4-5.fc17.x86_64 ...'
                linux        /boot/vmlinuz-3.3.4-5.fc17.x86_64 root=/dev/mapper/lvm-lv00 ro single rd.md=0 rd.dm=0 SYSFONT=True rd.lvm.lv=lvm/lv00 rd.lvm.lv=lvm/lv01  KEYTABLE=us rd.luks=0 rd.lvm.lv=lvm/swap_1 LANG=en_US.UTF-8 rhgb quiet
                echo        'Loading initial ramdisk ...'
                initrd        /boot/initramfs-3.3.4-5.fc17.x86_64.img
        }
}
if [ "x$default" = 'Fedora Linux, with Linux 3.3.4-5.fc17.x86_64' ]; then default='Advanced options for Fedora Linux>Fedora Linux, with Linux 3.3.4-5.fc17.x86_64'; fi;
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###


John VV 11-11-2012 07:50 PM

an example might be something like this
single hdd partition layout
ubuntu / fedora

sda1 /boot- ubuntu
sda2 - ubuntu
sda3 /boot fedora
sda4 fedora
( as long as fedora's /boot is one of the 4 primary partitions any layout will do )

in the gui install do a "custom layout and manually FORCE grub to the first fedora partition
it is in the gui options , but you will need to look for it .

then in the Ubuntu's menu.lis
at the end add something like this
Code:

title Fedora 17
    rootnoverify (hd0,2)
    chainloader +1


the thinking on using this type of set up is that fedora gets kernel updates every week or few days
and that has to edit the menu.lis/grub.conf EVERY TIME

now grub is fine figuring out just what is installed and only one install is NEEDED
but
if fedora royally messes up , and it dose happen , then ubuntu's bootloader will not be touched

a bit more work and a bit more complex but if thing go VERY WRONG with one of the os's then the other will NOT have been changed

this also is better if you have more that 1 drive
on a single drive it can be a bit crowded


or

just use one grub install and sometimes you might have to use the dvd to mount the drive and manually edit the menu.lis manually after you run
" chroot /mnt/sysimage"

if you KNOW the partition locations for everything then that is also easy


there is normally 2 or 3 or 4 different ways to do something

use what YOU like


All times are GMT -5. The time now is 03:27 AM.