Fedora Linux Support Community & Resources Center
  #1  
Old 18th August 2012, 04:04 AM
satimis Offline
Registered User
 
Join Date: Jul 2004
Posts: 1,398
linuxfirefox
Dual Boot

Hi,

Fedora 17 64bit

I installed Fedora 17 on a HD which is running Ubuntu 9.04, 64bit. The HD has not been running for sometimes sitting on the shelves. It is a SATA3 HD with 1T in size and 32M memory. Ubuntu 9.04 only takes up about 100G capacity of the HD. I performed following steps to install Fedora 17 for testing Cloud.

- running Fedora 17 live on USB
- selecting shrieking existing OS to get space for installation
- installation completed without complaint
- running yum update

Now Fedora can start up without problem. But I can't resolve how to boot Ubuntu 9.04. Please help. TIA

If I made wrong steps installing Fedora 17, is there any way wiping it out to start again?

B.R.
satimis
Reply With Quote
  #2  
Old 18th August 2012, 06:49 AM
hadrons123 Offline
'The Blue Dragon'
 
Join Date: Jan 2011
Location: chennai
Posts: 1,255
linuxfirefox
Re: Dual Boot

Read this to get some idea.
http://fedoraproject.org/wiki/GRUB_2
__________________
LENOVO Y580 FHD Intel® Core™ i7-3630QM CPU @ 2.40GHz × 8 |660M GTX NVIDIA | 16 GB SSD
Reply With Quote
  #3  
Old 20th August 2012, 04:19 AM
satimis Offline
Registered User
 
Join Date: Jul 2004
Posts: 1,398
linuxfirefox
Re: Dual Boot

Quote:
Originally Posted by hadrons123 View Post
Read this to get some idea.
http://fedoraproject.org/wiki/GRUB_2
Thanks for your link.

# fdisk -l
Code:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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: 0x0003a4bf

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63  1495039999   747519968+  83  Linux
/dev/sda2      1907011890  1953520064    23254087+   5  Extended
/dev/sda3      1495040000  1496063999      512000   83  Linux
/dev/sda4      1496064000  1907011583   205473792   8e  Linux LVM
/dev/sda5      1907011953  1953520064    23254056   82  Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/mapper/vg_fedora17-lv_swap: 10.3 GB, 10267656192 bytes
255 heads, 63 sectors/track, 1248 cylinders, total 20054016 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/vg_fedora17-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders, total 104857600 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/vg_fedora17-lv_home: 146.4 GB, 146431541248 bytes
255 heads, 63 sectors/track, 17802 cylinders, total 285999104 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
But I can't find Ubuntu 9.04 there.


# grub2-mkconfig -o /boot/grub2/grub.cfg
Code:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.5.2-1.fc17.x86_64
Found initrd image: /boot/initramfs-3.5.2-1.fc17.x86_64.img
Found linux image: /boot/vmlinuz-3.3.4-5.fc17.x86_64
Found initrd image: /boot/initramfs-3.3.4-5.fc17.x86_64.img
done
I think Ubutun is NOT on LVM. This is a spare HD which have been on shelves for sometimes not being used.

$ sudo ~/Downloads/Bootinfoscript/bootinfoscript
Code:
Boot Info Script 0.61      [1 April 2012]

Identifying MBRs...
Computing Partition Table of /dev/sda...
Searching sda1 for information... 
Searching sda2 for information... 
Searching sda5 for information... 
Searching sda3 for information... 
Searching sda4 for information... 
Searching vg_fedora17-lv_swap' for information... 
Searching vg_fedora17-lv_home' for information... 
Searching vg_fedora17-lv_root' for information... 

Finished. The results are in the file "RESULTS.txt"
located in "/home/satimis/Downloads/Bootinfoscript/".
Please see RESULTS.txt attached to this posting. Thanks

B.R.
satimis
Attached Files
File Type: txt RESULTS.txt (13.7 KB, 74 views)
Reply With Quote
  #4  
Old 20th August 2012, 01:40 PM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 2,077
linuxfirefox
Re: Dual Boot

You probably installed Fedora's bootloader in the MBR thus overwriting the Ubuntu bootloader.

Quote:
/dev/sda1 * 63 1495039999 747519968+ 83 Linux
That's a 748 GB Linux partition. Smells like Ubuntu ;-)

Now you can either add Ubuntu to the Fedora boot menu or boot Ubuntu from a recovery media and re-install the original Ubunto bootloader into the MBR.
Reply With Quote
  #5  
Old 20th August 2012, 03:33 PM
satimis Offline
Registered User
 
Join Date: Jul 2004
Posts: 1,398
linuxfirefox
Re: Dual Boot

Quote:
Originally Posted by george_toolan View Post
- snip -
Now you can either add Ubuntu to the Fedora boot menu
What shall I add to /boot/grub2/grub.cfg?

Here is the content of the file:
Code:
### 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/vg_fedora17-lv_root'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvm/vg_fedora17-lv_root'  bed1dce1-1ce6-4597-9d5d-0c9a8ac91885
else
  search --no-floppy --fs-uuid --set=root bed1dce1-1ce6-4597-9d5d-0c9a8ac91885
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' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-bed1dce1-1ce6-4597-9d5d-0c9a8ac91885' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 --hint='hd0,msdos3'  e5598c11-3568-4b2f-8f8b-5d107d826b3c
	else
	  search --no-floppy --fs-uuid --set=root e5598c11-3568-4b2f-8f8b-5d107d826b3c
	fi
	echo	'Loading Linux 3.5.2-1.fc17.x86_64 ...'
	linux	/vmlinuz-3.5.2-1.fc17.x86_64 root=/dev/mapper/vg_fedora17-lv_root ro rd.md=0 rd.dm=0 SYSFONT=True  KEYTABLE=us rd.lvm.lv=vg_fedora17/lv_swap rd.lvm.lv=vg_fedora17/lv_root rd.luks=0 LANG=en_US.UTF-8 radeon.audio=1 rhgb quiet 
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-3.5.2-1.fc17.x86_64.img
}
submenu 'Advanced options for Fedora' $menuentry_id_option 'gnulinux-advanced-bed1dce1-1ce6-4597-9d5d-0c9a8ac91885' {
	menuentry 'Fedora, with Linux 3.5.2-1.fc17.x86_64' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.2-1.fc17.x86_64-advanced-bed1dce1-1ce6-4597-9d5d-0c9a8ac91885' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 --hint='hd0,msdos3'  e5598c11-3568-4b2f-8f8b-5d107d826b3c
		else
		  search --no-floppy --fs-uuid --set=root e5598c11-3568-4b2f-8f8b-5d107d826b3c
		fi
		echo	'Loading Linux 3.5.2-1.fc17.x86_64 ...'
		linux	/vmlinuz-3.5.2-1.fc17.x86_64 root=/dev/mapper/vg_fedora17-lv_root ro rd.md=0 rd.dm=0 SYSFONT=True  KEYTABLE=us rd.lvm.lv=vg_fedora17/lv_swap rd.lvm.lv=vg_fedora17/lv_root rd.luks=0 LANG=en_US.UTF-8 radeon.audio=1 rhgb quiet 
		echo	'Loading initial ramdisk ...'
		initrd	/initramfs-3.5.2-1.fc17.x86_64.img
	}
	menuentry 'Fedora, with Linux 3.5.2-1.fc17.x86_64 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.2-1.fc17.x86_64-recovery-bed1dce1-1ce6-4597-9d5d-0c9a8ac91885' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 --hint='hd0,msdos3'  e5598c11-3568-4b2f-8f8b-5d107d826b3c
		else
		  search --no-floppy --fs-uuid --set=root e5598c11-3568-4b2f-8f8b-5d107d826b3c
		fi
		echo	'Loading Linux 3.5.2-1.fc17.x86_64 ...'
		linux	/vmlinuz-3.5.2-1.fc17.x86_64 root=/dev/mapper/vg_fedora17-lv_root ro single rd.md=0 rd.dm=0 SYSFONT=True  KEYTABLE=us rd.lvm.lv=vg_fedora17/lv_swap rd.lvm.lv=vg_fedora17/lv_root rd.luks=0 LANG=en_US.UTF-8 radeon.audio=1 rhgb quiet
		echo	'Loading initial ramdisk ...'
		initrd	/initramfs-3.5.2-1.fc17.x86_64.img
	}
	menuentry 'Fedora, 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-bed1dce1-1ce6-4597-9d5d-0c9a8ac91885' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 --hint='hd0,msdos3'  e5598c11-3568-4b2f-8f8b-5d107d826b3c
		else
		  search --no-floppy --fs-uuid --set=root e5598c11-3568-4b2f-8f8b-5d107d826b3c
		fi
		echo	'Loading Linux 3.3.4-5.fc17.x86_64 ...'
		linux	/vmlinuz-3.3.4-5.fc17.x86_64 root=/dev/mapper/vg_fedora17-lv_root ro rd.md=0 rd.dm=0 SYSFONT=True  KEYTABLE=us rd.lvm.lv=vg_fedora17/lv_swap rd.lvm.lv=vg_fedora17/lv_root rd.luks=0 LANG=en_US.UTF-8 radeon.audio=1 rhgb quiet 
		echo	'Loading initial ramdisk ...'
		initrd	/initramfs-3.3.4-5.fc17.x86_64.img
	}
	menuentry 'Fedora, 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-bed1dce1-1ce6-4597-9d5d-0c9a8ac91885' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 --hint='hd0,msdos3'  e5598c11-3568-4b2f-8f8b-5d107d826b3c
		else
		  search --no-floppy --fs-uuid --set=root e5598c11-3568-4b2f-8f8b-5d107d826b3c
		fi
		echo	'Loading Linux 3.3.4-5.fc17.x86_64 ...'
		linux	/vmlinuz-3.3.4-5.fc17.x86_64 root=/dev/mapper/vg_fedora17-lv_root ro single rd.md=0 rd.dm=0 SYSFONT=True  KEYTABLE=us rd.lvm.lv=vg_fedora17/lv_swap rd.lvm.lv=vg_fedora17/lv_root rd.luks=0 LANG=en_US.UTF-8 radeon.audio=1 rhgb quiet
		echo	'Loading initial ramdisk ...'
		initrd	/initramfs-3.3.4-5.fc17.x86_64.img
	}
}

### END /etc/grub.d/10_linux ###

### 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 ###
Quote:
or boot Ubuntu from a recovery media and re-install the original Ubunto bootloader into the MBR.
Which recovery media? Thanks

Booting the recovery mode only boots Fedora 17

B.R.
satimis
Reply With Quote
  #6  
Old 20th August 2012, 03:36 PM
hadrons123 Offline
'The Blue Dragon'
 
Join Date: Jan 2011
Location: chennai
Posts: 1,255
linuxfirefox
Re: Dual Boot

just see if you have os-prober installed. If it is running # grub2-mkconfig -o /boot/grub2/grub.cfg should be enough to find ubuntu by GRUB2. But if it doenst do it, I don't know what else to look for.
__________________
LENOVO Y580 FHD Intel® Core™ i7-3630QM CPU @ 2.40GHz × 8 |660M GTX NVIDIA | 16 GB SSD

Last edited by hadrons123; 20th August 2012 at 03:39 PM.
Reply With Quote
  #7  
Old 20th August 2012, 04:19 PM
satimis Offline
Registered User
 
Join Date: Jul 2004
Posts: 1,398
linuxfirefox
Re: Dual Boot

Quote:
Originally Posted by hadrons123 View Post
just see if you have os-prober installed. If it is running # grub2-mkconfig -o /boot/grub2/grub.cfg should be enough to find ubuntu by GRUB2. But if it doenst do it, I don't know what else to look for.
# yum install os-prober
Code:
Loaded plugins: langpacks, presto, refresh-packagekit, versionlock
adobe-linux-x86_64                                       |  951 B     00:00     
ovirt-stable                                             | 1.3 kB     00:00     
updates/metalink                                         | 4.7 kB     00:00     
updates                                                  | 4.7 kB     00:00     
updates/primary_db                                       | 5.3 MB     00:12     
updates/group_gz                                         | 434 kB     00:02     
Package os-prober-1.53-3.fc17.x86_64 already installed and latest version
Nothing to do
# grub2-mkconfig -o /boot/grub2/grub.cfg
Code:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.5.2-1.fc17.x86_64
Found initrd image: /boot/initramfs-3.5.2-1.fc17.x86_64.img
Found linux image: /boot/vmlinuz-3.3.4-5.fc17.x86_64
Found initrd image: /boot/initramfs-3.3.4-5.fc17.x86_64.img
done
Only Fedora is there.

Thanks

B.R.
satimis
Reply With Quote
Reply

Tags
boot, dual

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create a dual-boot (dual boot) with Windows XP Home Edition and Fedora Core 5: Genecks Guides & Solutions (No Questions) 5 18th October 2011 01:05 PM
Optimum Partitioning for dual 200G Dual boot PC aus_trade Installation, Upgrades and Live Media 1 4th July 2005 11:53 AM
Dual Boot probl Win XP and FC 3: no boot menu and automatical boot to windows siwask Installation, Upgrades and Live Media 1 18th February 2005 03:57 AM
Dual boot Dual disk, works fine until... jyoung03 Installation, Upgrades and Live Media 0 10th January 2005 08:37 PM


Current GMT-time: 23:51 (Tuesday, 02-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat