LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-13-2014, 10:38 AM   #1
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675
Blog Entries: 11

Rep: Reputation: 36
unwanted Fedora grub2 always boots on dual boot system


HI. This is my first post in the fedora section. I am a long time debian user. I had debian testing on my intel laptop and installed fedora 21 on it. After installing fedora grub2 on the laptop booting up always started from the fedora partition. I can update the debian kernel and run '# update-grub' and the fedora options still override the debian ones. I also tried to add a splash screen to the fedora grub, but running '# grub2-mkconfig -o /boot/grub2/grub.cfg' does not change anything.

I looked at gparted and found no special partition for booting. I tried to look for an alternate grub.cfg file in other locations and found none. I specifically looked for something in the '/boot/efi/EFI/fedora' folder. Nothing.

Below is my 'df -h' output:

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda7 101G 21G 75G 22% /
devtmpfs 2.9G 0 2.9G 0% /dev
tmpfs 2.9G 152K 2.9G 1% /dev/shm
tmpfs 2.9G 852K 2.9G 1% /run
tmpfs 2.9G 0 2.9G 0% /sys/fs/cgroup
tmpfs 2.9G 24K 2.9G 1% /tmp
tmpfs 588M 20K 588M 1% /run/user/1000

Below is (some of) my 'bootinfoscript' output. It mostly shows the debian grub info, while the fedora info is definitley the one that is used by the computer.

Code:
                  Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img, but core.img can not be found at this 
    location.

sda3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda4: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info: 

sda5: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda6: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Debian GNU/Linux jessie/sid
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sda7: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Fedora release 21 (Twenty One) 
                       Kernel on an ()
    Boot files:        /boot/grub2/grub.cfg /etc/fstab

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 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

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda3              81,920   629,385,215   629,303,296  83 Linux
/dev/sda4         629,387,262   976,771,071   347,383,810   5 Extended
/dev/sda5         947,476,480   976,771,071    29,294,592  82 Linux swap / Solaris
/dev/sda6         843,653,120   947,476,479   103,823,360  83 Linux
/dev/sda7    *    629,387,264   843,651,071   214,263,808  83 Linux


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda3        5f191aca-0b6d-4a61-a5bf-35fedc3ee74f   ext4       
/dev/sda5        6505adec-0cd3-4ce1-b652-0c18c296f0ec   swap       
/dev/sda6        abc66469-c3e8-41e8-b08b-9bd1fcefea9e   ext4       
/dev/sda7        7905d692-3ae2-47ca-a306-2917bd2320a1   ext4       

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/sda7        /                        ext4       (rw,relatime,seclabel,data=ordered)


=========================== sda6/boot/grub/grub.cfg: ===========================

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

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

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 ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  abc66469-c3e8-41e8-b08b-9bd1fcefea9e
else
  search --no-floppy --fs-uuid --set=root abc66469-c3e8-41e8-b08b-9bd1fcefea9e
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
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  abc66469-c3e8-41e8-b08b-9bd1fcefea9e
else
  search --no-floppy --fs-uuid --set=root abc66469-c3e8-41e8-b08b-9bd1fcefea9e
fi
insmod png
if background_image /usr/share/images/desktop-base/joy-grub.png; then
  set color_normal=white/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-abc66469-c3e8-41e8-b08b-9bd1fcefea9e' {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  abc66469-c3e8-41e8-b08b-9bd1fcefea9e
	else
	  search --no-floppy --fs-uuid --set=root abc66469-c3e8-41e8-b08b-9bd1fcefea9e
	fi
	echo	'Loading Linux 3.14-2-686-pae ...'
	linux	/boot/vmlinuz-3.14-2-686-pae root=UUID=abc66469-c3e8-41e8-b08b-9bd1fcefea9e ro debug ignore_loglevel verbose
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.14-2-686-pae
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-abc66469-c3e8-41e8-b08b-9bd1fcefea9e' {
	menuentry 'Debian GNU/Linux, with Linux 3.14-2-686-pae' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14-2-686-pae-advanced-abc66469-c3e8-41e8-b08b-9bd1fcefea9e' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  abc66469-c3e8-41e8-b08b-9bd1fcefea9e
		else
		  search --no-floppy --fs-uuid --set=root abc66469-c3e8-41e8-b08b-9bd1fcefea9e
		fi
		echo	'Loading Linux 3.14-2-686-pae ...'
		linux	/boot/vmlinuz-3.14-2-686-pae root=UUID=abc66469-c3e8-41e8-b08b-9bd1fcefea9e ro debug ignore_loglevel verbose
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.14-2-686-pae
	}
	menuentry 'Debian GNU/Linux, with Linux 3.14-2-686-pae (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14-2-686-pae-recovery-abc66469-c3e8-41e8-b08b-9bd1fcefea9e' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  abc66469-c3e8-41e8-b08b-9bd1fcefea9e
		else
		  search --no-floppy --fs-uuid --set=root abc66469-c3e8-41e8-b08b-9bd1fcefea9e
		fi
		echo	'Loading Linux 3.14-2-686-pae ...'
		linux	/boot/vmlinuz-3.14-2-686-pae root=UUID=abc66469-c3e8-41e8-b08b-9bd1fcefea9e ro single debug ignore_loglevel
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.14-2-686-pae
	}
	menuentry 'Debian GNU/Linux, with Linux 3.14-1-686-pae' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14-1-686-pae-advanced-abc66469-c3e8-41e8-b08b-9bd1fcefea9e' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  abc66469-c3e8-41e8-b08b-9bd1fcefea9e
		else
		  search --no-floppy --fs-uuid --set=root abc66469-c3e8-41e8-b08b-9bd1fcefea9e
		fi
		echo	'Loading Linux 3.14-1-686-pae ...'
		linux	/boot/vmlinuz-3.14-1-686-pae root=UUID=abc66469-c3e8-41e8-b08b-9bd1fcefea9e ro debug ignore_loglevel verbose
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.14-1-686-pae
	}
---edit...---


--------------------------------------------------------------------------------

=================== sda6: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)


========================== sda7/boot/grub2/grub.cfg: ===========================

--------------------------------------------------------------------------------
#
# 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 ###
set pager=1

if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

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
}

terminal_output console
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora, with Linux 3.16.2-301.fc21.x86_64' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.16.2-301.fc21.x86_64-advanced-7905d692-3ae2-47ca-a306-2917bd2320a1' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos7'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 --hint='hd0,msdos7'  7905d692-3ae2-47ca-a306-2917bd2320a1
	else
	  search --no-floppy --fs-uuid --set=root 7905d692-3ae2-47ca-a306-2917bd2320a1
	fi
	linux16 /boot/vmlinuz-3.16.2-301.fc21.x86_64 root=UUID=7905d692-3ae2-47ca-a306-2917bd2320a1 ro vconsole.font=latarcyrheb-sun16   ; verbose 
	initrd16 /boot/initramfs-3.16.2-301.fc21.x86_64.img
}
menuentry 'Fedora, with Linux 3.16.2-300.fc21.x86_64' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.16.2-300.fc21.x86_64-advanced-7905d692-3ae2-47ca-a306-2917bd2320a1' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos7'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 --hint='hd0,msdos7'  7905d692-3ae2-47ca-a306-2917bd2320a1
	else
	  search --no-floppy --fs-uuid --set=root 7905d692-3ae2-47ca-a306-2917bd2320a1
	fi
	linux16 /boot/vmlinuz-3.16.2-300.fc21.x86_64 root=UUID=7905d692-3ae2-47ca-a306-2917bd2320a1 ro vconsole.font=latarcyrheb-sun16   ; verbose 
	initrd16 /boot/initramfs-3.16.2-300.fc21.x86_64.img
}
menuentry 'Fedora, with Linux 3.16.1-301.fc21.x86_64' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.16.1-301.fc21.x86_64-advanced-7905d692-3ae2-47ca-a306-2917bd2320a1' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos7'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 --hint='hd0,msdos7'  7905d692-3ae2-47ca-a306-2917bd2320a1
	else
	  search --no-floppy --fs-uuid --set=root 7905d692-3ae2-47ca-a306-2917bd2320a1
	fi
	linux16 /boot/vmlinuz-3.16.1-301.fc21.x86_64 root=UUID=7905d692-3ae2-47ca-a306-2917bd2320a1 ro vconsole.font=latarcyrheb-sun16   ; verbose 
	initrd16 /boot/initramfs-3.16.1-301.fc21.x86_64.img
}
menuentry 'Fedora, with Linux 0-rescue-a171d5b56b344c2f86c6add16a55a657' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-a171d5b56b344c2f86c6add16a55a657-advanced-7905d692-3ae2-47ca-a306-2917bd2320a1' {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos7'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 --hint='hd0,msdos7'  7905d692-3ae2-47ca-a306-2917bd2320a1
	else
	  search --no-floppy --fs-uuid --set=root 7905d692-3ae2-47ca-a306-2917bd2320a1
	fi
	linux16 /boot/vmlinuz-0-rescue-a171d5b56b344c2f86c6add16a55a657 root=UUID=7905d692-3ae2-47ca-a306-2917bd2320a1 ro vconsole.font=latarcyrheb-sun16   ; verbose 
	initrd16 /boot/initramfs-0-rescue-a171d5b56b344c2f86c6add16a55a657.img
}

### 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 ###
menuentry 'Debian GNU/Linux (jessie/sid) (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-abc66469-c3e8-41e8-b08b-9bd1fcefea9e' {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  abc66469-c3e8-41e8-b08b-9bd1fcefea9e
	else
	  search --no-floppy --fs-uuid --set=root abc66469-c3e8-41e8-b08b-9bd1fcefea9e
	fi
	linux /boot/vmlinuz-3.14-2-686-pae root=UUID=abc66469-c3e8-41e8-b08b-9bd1fcefea9e ro debug ignore_loglevel verbose
	initrd /boot/initrd.img-3.14-2-686-pae
}
submenu 'Advanced options for Debian GNU/Linux (jessie/sid) (on /dev/sda6)' $menuentry_id_option 'osprober-gnulinux-advanced-abc66469-c3e8-41e8-b08b-9bd1fcefea9e' {
	menuentry 'Debian GNU/Linux (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.14-2-686-pae--abc66469-c3e8-41e8-b08b-9bd1fcefea9e' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  abc66469-c3e8-41e8-b08b-9bd1fcefea9e
		else
		  search --no-floppy --fs-uuid --set=root abc66469-c3e8-41e8-b08b-9bd1fcefea9e
		fi
		linux /boot/vmlinuz-3.14-2-686-pae root=UUID=abc66469-c3e8-41e8-b08b-9bd1fcefea9e ro debug ignore_loglevel verbose
		initrd /boot/initrd.img-3.14-2-686-pae
	}
	menuentry 'Debian GNU/Linux, with Linux 3.14-2-686-pae (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.14-2-686-pae--abc66469-c3e8-41e8-b08b-9bd1fcefea9e' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  abc66469-c3e8-41e8-b08b-9bd1fcefea9e
		else
		  search --no-floppy --fs-uuid --set=root abc66469-c3e8-41e8-b08b-9bd1fcefea9e
		fi
		linux /boot/vmlinuz-3.14-2-686-pae root=UUID=abc66469-c3e8-41e8-b08b-9bd1fcefea9e ro debug ignore_loglevel verbose
		initrd /boot/initrd.img-3.14-2-686-pae
	}
	menuentry 'Debian GNU/Linux, with Linux 3.14-2-686-pae (recovery mode) (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.14-2-686-pae-root=UUID=abc66469-c3e8-41e8-b08b-9bd1fcefea9e ro single debug ignore_loglevel-abc66469-c3e8-41e8-b08b-9bd1fcefea9e' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  abc66469-c3e8-41e8-b08b-9bd1fcefea9e
		else
		  search --no-floppy --fs-uuid --set=root abc66469-c3e8-41e8-b08b-9bd1fcefea9e
		fi
		linux /boot/vmlinuz-3.14-2-686-pae root=UUID=abc66469-c3e8-41e8-b08b-9bd1fcefea9e ro single debug ignore_loglevel
		initrd /boot/initrd.img-3.14-2-686-pae
	}
	menuentry 'Debian GNU/Linux, with Linux 3.14-1-686-pae (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.14-1-686-pae--abc66469-c3e8-41e8-b08b-9bd1fcefea9e' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  abc66469-c3e8-41e8-b08b-9bd1fcefea9e
		else
		  search --no-floppy --fs-uuid --set=root abc66469-c3e8-41e8-b08b-9bd1fcefea9e
		fi
		linux /boot/vmlinuz-3.14-1-686-pae root=UUID=abc66469-c3e8-41e8-b08b-9bd1fcefea9e ro debug ignore_loglevel verbose
		initrd /boot/initrd.img-3.14-1-686-pae
	}
	menuentry 'Debian GNU/Linux, with Linux 3.14-1-686-pae (recovery mode) (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.14-1-686-pae-root=UUID=abc66469-c3e8-41e8-b08b-9bd1fcefea9e ro single debug ignore_loglevel-abc66469-c3e8-41e8-b08b-9bd1fcefea9e' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6'  abc66469-c3e8-41e8-b08b-9bd1fcefea9e
		else
		  search --no-floppy --fs-uuid --set=root abc66469-c3e8-41e8-b08b-9bd1fcefea9e
		fi
		linux /boot/vmlinuz-3.14-1-686-pae root=UUID=abc66469-c3e8-41e8-b08b-9bd1fcefea9e ro single debug ignore_loglevel
		initrd /boot/initrd.img-3.14-1-686-pae
	}
}

### 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  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sda7/etc/fstab: ================================

--------------------------------------------------------------------------------

#
# /etc/fstab
# Created by anaconda on Thu Jul  3 15:23:34 2014
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=7905d692-3ae2-47ca-a306-2917bd2320a1 /                       ext4    defaults        1 1
--------------------------------------------------------------------------------

=================== sda7: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)


================= sda7: Location of files loaded by Syslinux: ==================

           GiB - GB             File                                 Fragment(s)


============== sda7: Version of COM32(R) files used by Syslinux: ===============

 boot/extlinux/cat.c32              :  not a COM32/COM32R module
 boot/extlinux/chain.c32            :  not a COM32/COM32R module
 boot/extlinux/cmd.c32              :  not a COM32/COM32R module
 boot/extlinux/config.c32           :  not a COM32/COM32R module
 boot/extlinux/cptime.c32           :  not a COM32/COM32R module
 boot/extlinux/cpuid.c32            :  not a COM32/COM32R module
 boot/extlinux/cpuidtest.c32        :  not a COM32/COM32R module
 boot/extlinux/debug.c32            :  not a COM32/COM32R module
 boot/extlinux/disk.c32             :  not a COM32/COM32R module
 boot/extlinux/dmitest.c32          :  not a COM32/COM32R module
 boot/extlinux/elf.c32              :  not a COM32/COM32R module
 boot/extlinux/ethersel.c32         :  not a COM32/COM32R module
 boot/extlinux/gfxboot.c32          :  not a COM32/COM32R module
 boot/extlinux/gpxecmd.c32          :  not a COM32/COM32R module
 boot/extlinux/hdt.c32              :  not a COM32/COM32R module
 boot/extlinux/hexdump.c32          :  not a COM32/COM32R module
 boot/extlinux/host.c32             :  not a COM32/COM32R module
 boot/extlinux/ifcpu64.c32          :  not a COM32/COM32R module
 boot/extlinux/ifcpu.c32            :  not a COM32/COM32R module
 boot/extlinux/ifmemdsk.c32         :  not a COM32/COM32R module
 boot/extlinux/ifplop.c32           :  not a COM32/COM32R module
 boot/extlinux/kbdmap.c32           :  not a COM32/COM32R module
 boot/extlinux/kontron_wdt.c32      :  not a COM32/COM32R module
 boot/extlinux/ldlinux.c32          :  not a COM32/COM32R module
 boot/extlinux/libcom32.c32         :  not a COM32/COM32R module
 boot/extlinux/libgpl.c32           :  not a COM32/COM32R module
 boot/extlinux/liblua.c32           :  not a COM32/COM32R module
 boot/extlinux/libmenu.c32          :  not a COM32/COM32R module
 boot/extlinux/libutil.c32          :  not a COM32/COM32R module
 boot/extlinux/linux.c32            :  not a COM32/COM32R module
 boot/extlinux/ls.c32               :  not a COM32/COM32R module
 boot/extlinux/lua.c32              :  not a COM32/COM32R module
 boot/extlinux/mboot.c32            :  not a COM32/COM32R module
 boot/extlinux/meminfo.c32          :  not a COM32/COM32R module
 boot/extlinux/menu.c32             :  not a COM32/COM32R module
 boot/extlinux/pcitest.c32          :  not a COM32/COM32R module
 boot/extlinux/pmload.c32           :  not a COM32/COM32R module
 boot/extlinux/poweroff.c32         :  not a COM32/COM32R module
 boot/extlinux/prdhcp.c32           :  not a COM32/COM32R module
 boot/extlinux/pwd.c32              :  not a COM32/COM32R module
 boot/extlinux/pxechn.c32           :  not a COM32/COM32R module
 boot/extlinux/reboot.c32           :  not a COM32/COM32R module
 boot/extlinux/rosh.c32             :  not a COM32/COM32R module
 boot/extlinux/sanboot.c32          :  not a COM32/COM32R module
 boot/extlinux/sdi.c32              :  not a COM32/COM32R module
 boot/extlinux/sysdump.c32          :  not a COM32/COM32R module
 boot/extlinux/vesainfo.c32         :  not a COM32/COM32R module
 boot/extlinux/vesamenu.c32         :  not a COM32/COM32R module
 boot/extlinux/vpdtest.c32          :  not a COM32/COM32R module
 boot/extlinux/whichsys.c32         :  not a COM32/COM32R module
 boot/extlinux/zzjson.c32           :  not a COM32/COM32R module

=============================== StdErr Messages: ===============================

cat: /tmp/BootInfo-j9Q2BAVu/Tmp_Log: No such file or directory
cat: /tmp/BootInfo-j9Q2BAVu/Tmp_Log: No such file or directory
cat: /tmp/BootInfo-j9Q2BAVu/Tmp_Log: No such file or directory
  No volume groups found
mdadm: No arrays found in config file or automatically
It used to be that if I was using debian, and that was the last place I updated grub, that that was the grub I saw when I booted up. Similarly if I was using fedora and that was the last place I updated grub, that was the grub I saw when I booted up. I would like that functionality back.
 
Old 09-13-2014, 11:26 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
After you run update-grub you have to change the MBR to point to the Debian grub.cfg instead of the Fedora grub.cfg. The command is:

grub-install /dev/sda

----------------------
Steve Stites
 
Old 09-13-2014, 12:51 PM   #3
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675

Original Poster
Blog Entries: 11

Rep: Reputation: 36
I type:

# grub-install /dev/sda

it says:

source_dir doesn't exist. Please specify --target or --directory

EDIT: sorry. my mistake. This works great. I had at some point removed 'grub-pc' from my computer (on Debian). after re-installing it grub-install works right. Thank you.

Last edited by radiodee1; 09-13-2014 at 01:35 PM.
 
Old 09-13-2014, 02:40 PM   #4
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675

Original Poster
Blog Entries: 11

Rep: Reputation: 36
bummer. When I boot up fedora from the Debian grub (after following the instructions and thinking I got it right) grub chooses an older fedora kernel. It chooses a kernel from when I first installed fedora, not one that I have installed from recent updates. I have os-prober installed. It just doesn't seem to see the fc21 kernels. I have gone back to the fedora partition and executed '# grub2-install /dev/sda' since from that grub install I can at least choose recent kernels on both operating systems.

One problem, though. I don't get hi-res graphics from grub2 on the fedora install. I only get low-res characters. I tried putting a png in the /boot/grub2/ folder and executing '# grub2-mkconfig -o /boot/grub2/grub.cfg' again, but no progress was made. I should also be able to change the colors of the text of the grub screen in fedora, and I cannot. Anyone know why this is?
 
Old 09-14-2014, 08:21 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
The link below gives some details on both images and changing fonts. It's the Ubuntu site so I don't if that would make a difference. I don't have Fedora so can't test it. The background image settings vary with different Grub releases which is explained in the link. I used the method you described of putting an image in the /boot/grub directory on an Ubuntu install and got nothing. Put the entry in /etc/default/grub and it worked. I don't know that this will work with Fedora so you can try it to see, or not.

https://help.ubuntu.com/community/Grub2/Displays
 
Old 09-14-2014, 09:50 AM   #6
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675

Original Poster
Blog Entries: 11

Rep: Reputation: 36
yep. that did it. my first problem was that the /etc/default/grub file specified 'console' mode (in the GRUB_TERMINAL_OUTPUT option). I commented that out, and like you say, put the entry for the picture in the /etc/default/grub file (in the GRUB_BACKGROUND option) AND it worked. There's a program is fedora that is usefull for setting things like the text color, etc. I used this program and it also helped. thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Messed UP Boot Order on dual-boot, don't know GRUB2, need help -- another's PC hilyard Linux - Newbie 4 06-25-2011 12:57 AM
[SOLVED] Editing the grub2 boot menu in a dual boot machine Chriscrof Linux - Newbie 13 07-15-2010 01:14 AM
System boot failure after installation of fedora fc11 in dual boot with windows xp npsdevan Fedora - Installation 1 08-10-2009 04:45 AM
Solved: Dual boot, deleted /boot and all linux partitions, system boots to grub> cuco76 Linux - Software 0 01-06-2009 05:27 PM
Multiple intermittent boot errors on a Fedora 9 / Windows XP dual boot system RichyAD Linux - General 4 09-15-2008 03:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 09:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration