LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 10-10-2011, 09:19 AM   #1
busymaverick
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Rep: Reputation: Disabled
Dual Booting Ubuntu 11.04 and Fedora 15


hi!!
I knw this topic has been discussed a billion times bfore but i am really a noob in linux(grub actually) so am unable to understand..

ok so here is the scenario.,
I used YUMI to multiboot my 8gig flashdrive with Ubuntu and Fedora
used it on my Dell Inspiron 1464 and installed ubuntu using the entire hard disk.
then i booted into ubuntu using the USB stick(not the HDD one) and used Gpart to resize my partition to two equal halves.
Then booted into fedora and installed it on hard drive using the flash drive..
installed the boot loader on first boot sector of partition.
So now my partitions are
/dev/sda1 - ext4 147.61 GiB
/dev/sda3 - ext4 500 MiB
/dev/sda4 - lvm2 147.12 GiB
->/dev/sda2 - extended 2.86 Gib
/dev/sda5 - linux-swap 2.86 Gib

Now when i boot.. i am only able to boot into Ubuntu. I don't get a option to boot fedora.
I tried
Code:
sudo update-grub
it detected memtest and ubuntu only.. no fedora..

please help
 
Old 10-10-2011, 01:51 PM   #2
alfredo10
Member
 
Registered: Sep 2010
Location: Algarve
Distribution: Linux Multiboot
Posts: 295

Rep: Reputation: 15
Hi!
To see where you tried to install Grub, please post the output of Terminal as root:
Code:
for d in $(sed -ne 's/^.*\(sd.*\)/\1/p' /proc/partitions);do echo -e "$d\t ID: $(sudo hexdump -v -s 0x80 -n 2 -e '2/1 "%x" "\n"' /dev/$d)";done
You should see something like my output
Code:
sda	 ID: 5272
sda1	 ID: b60
sda2	 ID: 55aa
...
Of course not exactly the same numbers behind ID:.
Alfredo
 
Old 10-10-2011, 04:49 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Better (for the rest of us) to use bootinfoscript.
More info is better - post the RESULTS.txt
 
Old 10-10-2011, 08:10 PM   #4
busymaverick
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
@alfredo10
Code:
sda	 ID: 020
sda1	 ID: 00
sda2	 ID: 00
sda3	 ID: aa75
sda4	 ID: 00
sda5	 ID: 00
 
Old 10-10-2011, 08:11 PM   #5
busymaverick
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
@syg00 for some reason sourceforge dload page isn't loading up
 
Old 10-10-2011, 08:15 PM   #6
busymaverick
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
@syg00
Code:
                  Boot Info Script 0.60    from 17 May 2011


============================= 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. core.img is at this location and looks 
    for (,msdos1)/boot/grub on this drive.

sda1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:  
    Operating System:  Ubuntu 11.04
    Boot files:        /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda2: __________________________________________________________________________

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

sda5: __________________________________________________________________________

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

sda3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  Grub Legacy
    Boot sector info:   Grub Legacy (v0.97-71.fc15) is installed in the boot 
                       sector of sda3 and looks at sector 309600154 on boot 
                       drive #1 for the stage2 file.  A stage2 file is at 
                       this location on /dev/sda.  Stage2 looks on partition 
                       #3 for /grub/grub.conf.
    Operating System:  
    Boot files:        /grub/menu.lst /grub/grub.conf

sda4: __________________________________________________________________________

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

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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048   309,569,535   309,567,488  83 Linux
/dev/sda2         619,139,070   625,141,759     6,002,690   5 Extended
/dev/sda5         619,139,072   625,141,759     6,002,688  82 Linux swap / Solaris
/dev/sda3         309,569,536   310,593,535     1,024,000  83 Linux
/dev/sda4         310,593,536   619,137,023   308,543,488  8e Linux LVM


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        ac14d604-5f1d-4029-8d9c-de0c454d0ea5   ext4       
/dev/sda3        407a8f7e-eff8-44ac-8ea8-1bae50bb489c   ext4       
/dev/sda4        fiJ3Nm-Cpt5-DXdY-prbV-T3MD-78Aq-8AWiqh LVM2_member 
/dev/sda5        29df3087-cfe5-4c11-80fe-58855d4715f7   swap       

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

Device           Mount_Point              Type       Options

/dev/sda1        /                        ext4       (rw,errors=remount-ro,commit=0)


=========================== sda1/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 [ "${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 recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root ac14d604-5f1d-4029-8d9c-de0c454d0ea5
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root ac14d604-5f1d-4029-8d9c-de0c454d0ea5
set locale_dir=($root)/boot/grub/locale
set lang=en_IN
insmod gettext
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
  clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	set gfxpayload=$linux_gfx_mode
	insmod part_msdos
	insmod ext2
	set root='(/dev/sda,msdos1)'
	search --no-floppy --fs-uuid --set=root ac14d604-5f1d-4029-8d9c-de0c454d0ea5
	linux	/boot/vmlinuz-2.6.38-8-generic root=UUID=ac14d604-5f1d-4029-8d9c-de0c454d0ea5 ro   quiet splash vt.handoff=7
	initrd	/boot/initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	set gfxpayload=$linux_gfx_mode
	insmod part_msdos
	insmod ext2
	set root='(/dev/sda,msdos1)'
	search --no-floppy --fs-uuid --set=root ac14d604-5f1d-4029-8d9c-de0c454d0ea5
	echo	'Loading Linux 2.6.38-8-generic ...'
	linux	/boot/vmlinuz-2.6.38-8-generic root=UUID=ac14d604-5f1d-4029-8d9c-de0c454d0ea5 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.38-8-generic
}
### 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_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod part_msdos
	insmod ext2
	set root='(/dev/sda,msdos1)'
	search --no-floppy --fs-uuid --set=root ac14d604-5f1d-4029-8d9c-de0c454d0ea5
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_msdos
	insmod ext2
	set root='(/dev/sda,msdos1)'
	search --no-floppy --fs-uuid --set=root ac14d604-5f1d-4029-8d9c-de0c454d0ea5
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
  if keystatus; then
    if keystatus --shift; then
      set timeout=-1
    else
      set timeout=0
    fi
  else
    if sleep --interruptible 3 ; then
      set timeout=0
    fi
  fi
fi
### 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 ###
--------------------------------------------------------------------------------

=============================== sda1/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=ac14d604-5f1d-4029-8d9c-de0c454d0ea5 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=29df3087-cfe5-4c11-80fe-58855d4715f7 none            swap    sw              0       0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

   0.045833588 = 0.049213440    boot/grub/core.img                             1
  72.223777771 = 77.549690880   boot/grub/grub.cfg                             1
   2.259880066 = 2.426527744    boot/initrd.img-2.6.38-8-generic               2
   0.044116974 = 0.047370240    boot/vmlinuz-2.6.38-8-generic                  1
   2.259880066 = 2.426527744    initrd.img                                     2
   0.044116974 = 0.047370240    vmlinuz                                        1

============================= sda3/grub/grub.conf: =============================

--------------------------------------------------------------------------------
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,2)
#          kernel /vmlinuz-version ro root=/dev/mapper/vg_linuxfedora-lv_root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda3
default=0
timeout=0
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.38.6-26.rc1.fc15.x86_64)
	root (hd0,2)
	kernel /vmlinuz-2.6.38.6-26.rc1.fc15.x86_64 ro root=/dev/mapper/vg_linuxfedora-lv_root rd_LVM_LV=vg_linuxfedora/lv_root rd_LVM_LV=vg_linuxfedora/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
	initrd /initramfs-2.6.38.6-26.rc1.fc15.x86_64.img
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

 147.628855705 = 158.515276800  grub/grub.conf                                 1
 147.628855705 = 158.515276800  grub/menu.lst                                  1
 147.628973007 = 158.515402752  grub/stage2                                    1
 147.645443916 = 158.533088256  initramfs-2.6.38.6-26.rc1.fc15.x86_64.img      2
 147.622540474 = 158.508495872  initrd-plymouth.img                            1
 147.626417160 = 158.512658432  vmlinuz-2.6.38.6-26.rc1.fc15.x86_64            1

========= Devices which don't seem to have a corresponding hard drive: =========

sdb 

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

unlzma: Decoder error
 
Old 10-10-2011, 09:01 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Only thing i can think of is that os-prober can't handle ext4. I have a Mint system that finds my Fedora system fine - but it uses an ext3 /boot; habit for me.
 
Old 10-10-2011, 09:15 PM   #8
busymaverick
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Only thing i can think of is that os-prober can't handle ext4. I have a Mint system that finds my Fedora system fine - but it uses an ext3 /boot; habit for me.
Will prod around with both the OSes(fedora and ubuntu.. lets see if experiment can work it's magic :P
 
Old 10-10-2011, 11:02 PM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Did you try running: sudo os-prober?
Do that and run sudo update-grub again. You don't have any entry in the grub.cfg file for Fedora. If you have a problem with os-prober, you may need to install it first as I don't believe it is installed by default.
 
Old 10-11-2011, 12:06 AM   #10
busymaverick
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
Did you try running: sudo os-prober?
Do that and run sudo update-grub again. You don't have any entry in the grub.cfg file for Fedora. If you have a problem with os-prober, you may need to install it first as I don't believe it is installed by default.
tried.. same result..
 
Old 10-11-2011, 02:14 AM   #11
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
In order to get debian's grub to recognize ext4 I had to mount the ext4 partition then run os-prober & update-grub, although I was told that os-prober was an unnecessary step as update-grub does it.
 
Old 10-11-2011, 04:46 AM   #12
busymaverick
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EDDY1 View Post
In order to get debian's grub to recognize ext4 I had to mount the ext4 partition then run os-prober & update-grub, although I was told that os-prober was an unnecessary step as update-grub does it.
nope... tried it after u said.. not working...
 
Old 10-11-2011, 07:30 AM   #13
busymaverick
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Only thing i can think of is that os-prober can't handle ext4. I have a Mint system that finds my Fedora system fine - but it uses an ext3 /boot; habit for me.
Solved using this suggestion..
reformatted and converted my fedora partition /boot to ext3
ran update-grub..
Now i can boot into fedora from Ubuntu grub2 menu..

thanks everyone..
Admins please mark thread as SOLVED
 
Old 10-11-2011, 10:39 AM   #14
alfredo10
Member
 
Registered: Sep 2010
Location: Algarve
Distribution: Linux Multiboot
Posts: 295

Rep: Reputation: 15
Hi!
Glad to read that.
On the other side, it is a pity that I was late; last year I had a similar problem with Fedora and wanted to describe how I had solved it.
Create a custom file, e.g. "06_fedora" containing the command chainloader +1 , make executable, run "update-grub" to add the entry for Fedora!
Alfredo
 
Old 10-11-2011, 10:52 AM   #15
busymaverick
LQ Newbie
 
Registered: Oct 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by alfredo10 View Post
Hi!
Glad to read that.
On the other side, it is a pity that I was late; last year I had a similar problem with Fedora and wanted to describe how I had solved it.
Create a custom file, e.g. "06_fedora" containing the command chainloader +1 , make executable, run "update-grub" to add the entry for Fedora!
Alfredo
u cn describe it nw..
it's still open for discussion...
am sure someone else will face the same problem.. and ur description mite help them out..

Regards
Sworoop
 
  


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
LXer: Installing Backtrack5 (Ubuntu) using a Thumbdrive for Dual-booting or Solo-booting LXer Syndicated Linux News 0 08-04-2011 02:11 AM
Dual booting with Fedora 12 and Ubuntu 10.04 RobertEr Linux - Distributions 4 05-25-2010 09:50 AM
Having problems with Dual Booting Ubuntu and Vista, Ubuntu having major issues. Chimmichango Linux - Newbie 2 08-03-2009 02:54 AM
upgrading Fedora 6 to fedora 10 under existing dual booting with XP pares0007 Linux - Newbie 1 06-20-2009 08:05 AM
trouble dual booting Ubuntu and Fedora Core 4 with GRUB. bgryderclock Linux - Software 5 04-04-2007 12:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 07:28 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