LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ubuntu and fedore core 6 (https://www.linuxquestions.org/questions/linux-newbie-8/ubuntu-and-fedore-core-6-a-557211/)

tommytomato 05-28-2007 09:03 AM

Ubuntu and fedore core 6
 
Hi all

I have fedore core 6 install on a 250gig HD and I have added another HD to the system, 2nd HD is 80gig and I'v installed Ubuntu 7.04 desktop.

Install went well, how ever i can get into fedore core 6 no boot menu has come up.

I had a duel boot system before, but this one got me foxed :scratch:

Code:

root@tommyland:~# grub-install --recheck /dev/hda
Probing devices to guess BIOS drives. This may take a long time.
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0)  /dev/fd0
(hd0)  /dev/hda
(hd1)  /dev/hdb

were do i start, can any one give me an idea on where to start please.

TT

Okie 05-28-2007 09:16 AM

you probably just need to ad the info to Fedora's grub, be aware that ubuntu now uses UUID so use a text editor and copy ubuntu's entry in grub's menu.1st over to Fedora's grub menu.1st file...

mitchell7man 05-28-2007 09:23 AM

I multi boot Windows, Ubuntu and Fedora... what i did was install windows first, then ubuntu then Fedora, Ubuntu was not detected automatically by fedora install, so i simply copy pasted the entry from menu.lst in ubuntu to the menu.lst in Fedora, and it works perfectly.

pixellany 05-28-2007 09:29 AM

I am inferring that you are able to boot into the new Ubuntu installation, and that you did the "grub-install" from there.

Look at /boot/grub/menu.lst and see if there is an entry for Fedora. If not, you will need to add one. Since you had Fedora running, you will find what you need by mounting the first drive and looking in the Fedora menu.lst file. Bear in mind that the drive and partition numbering depends on where GRUB is installed and what GRUB sees as the boot order.

This article on booting might help also (The GRUB manual and one other good reference are linked there.)

tommytomato 05-28-2007 09:40 AM

Quote:

Originally Posted by pixellany
I am inferring that you are able to boot into the new Ubuntu installation, and that you did the "grub-install" from there.

Look at /boot/grub/menu.lst and see if there is an entry for Fedora. If not, you will need to add one. Since you had Fedora running, you will find what you need by mounting the first drive and looking in the Fedora menu.lst file. Bear in mind that the drive and partition numbering depends on where GRUB is installed and what GRUB sees as the boot order.

This article on booting might help also (The GRUB manual and one other good reference are linked there.)

Yes I can boot into the new Ubuntu installation ok, but not Fedore Core 6.

/boot/grub/menu.lst
most of it is comment out
but here is what i have.
Code:

title          Ubuntu, kernel 2.6.20-15-generic
root            (hd1,0)
kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=9f6739dd-97c1-4d59-bdbc-694262258dae ro quiet splash
initrd          /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title          Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root            (hd1,0)
kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=9f6739dd-97c1-4d59-bdbc-694262258dae ro single
initrd          /boot/initrd.img-2.6.20-15-generic

title          Ubuntu, memtest86+
root            (hd1,0)
kernel          /boot/memtest86+.bin
quiet

question how do i re confirm what I'v install is on the right hard drive, FC6 on 250gig and ubuntu on the 80gig

TT

tommytomato 05-28-2007 09:55 AM

Is it possable to access the other Hard Drive (250g) to edit the Fedora's grub menu.1st file, from Ubuntu

TT

Okie 05-28-2007 10:15 AM

first you need to ad Ubuntu's harddrive to fedora's /etc/fstab and create a directory (folder) where ubuntu is to be mounted (mkdir /mnt/hdb1)

something like:

/dev/hdb1 /mnt/hdb1 ext3 defaults 0 0

just pay attention to detail how fedora has fstab set up...

tommytomato 05-28-2007 10:46 AM

Quote:

Originally Posted by Okie
first you need to ad Ubuntu's harddrive to fedora's /etc/fstab and create a directory (folder) where ubuntu is to be mounted (mkdir /mnt/hdb1)

something like:

dev/hdb1 /mnt/hdb1 ext3 defaults 0 0

just pay attention to detail how fedora has fstab set up...

looking into it now

Only way I've been accessing FC6 is by Rescue Disk, is this correct :scratch: , I dont know of another way.

TT

bouchecl 05-28-2007 11:06 AM

Quote:

Originally Posted by Okie
you probably just need to ad the info to Fedora's grub, be aware that ubuntu now uses UUID so use a text editor and copy ubuntu's entry in grub's menu.1st over to Fedora's grub menu.1st file...

Fact of the matter is Ubuntu does use the infamous UUID strings, but grub still works with the friendlier /dev/hda1 | /dev/sda1 syntax.

Here's my own menu.lst (grub.conf) file for my triple boot Dell laptop (FC6, Ubuntu Feisty and XP Pro):

Code:

##
## My /boot/grub/grub.conf
##
default=0
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
#hiddenmenu

title Fedora Core (2.6.20-1.2948.fc6)
        root (hd0,2)
        kernel /vmlinuz-2.6.20-1.2948.fc6 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.20-1.2948.fc6.img

title Ubuntu Feisty (2.6.20-16-generic)
        root (hd0,7)
        kernel /boot/vmlinuz-2.6.20-16-generic root=/dev/sda8 ro quiet splash
        initrd /boot/initrd.img-2.6.20-16-generic
        boot

# Commented out to eliminate clutter
# title Ubuntu Feisty (2.6.20-16-generic - recovery mode)
#      root (hd0,7)
#      kernel /boot/vmlinuz-2.6.20-16-generic root=/dev/sda8 ro single
#      initrd /boot/initrd.img-2.6.20-16-generic
#      boot

title Windows
        rootnoverify (hd0,1)
        chainloader +1


Okie 05-28-2007 12:09 PM

i installed xubuntu-7.04 on an extra disk partition and it installed just fine, i opted to not let xubuntu overwrite my MBR and let it run grub-install to the disk partition where it was installed to /dev/hda3 and when the install was finished it prompted me to reboot i rebooted and when i was back in to Slackware i added xubuntu to Slackware's lilo and rebooted, i booted xubuntu and it would stop about half way through the boot process and just hang there doing nothing, not even a kernel panic, so i boot back in to Slackware to look at xubuntu's fstab and menu.1st and i see those UUID entries and then googled around about UUID and come to the conclusion that those UUID numbers are required to boot ubuntu, i tried adding them to my lilo.conf and when running /sbin/lilo in a terminal it would cough up errors, anyhow i am through with keeping an ubuntu install, personally i think UUID just makes things more complicated than it needs to be and that ubuntu implementing UUID was a blunder...

good luck with that ubuntu install tommytomato...

tommytomato 05-28-2007 12:22 PM

I've edited the FC6 /etc/grub.conf file

I'm still not having the choice of picking a system :scratch:

TT

Okie 05-28-2007 02:23 PM

tommytomato, you need to find the file named menu.1st in /boot/grub that is the one that lets you add other OSs to your bootmenu...

tommytomato 05-28-2007 09:54 PM

yep only the grub comes up, not able to enter any command either

I can only get in via rescue disk that FC6 has, and then it takes you to the command line, other than that, I cant get into the FC GUI

I'm at a real lost here


TT

Okie 05-28-2007 10:08 PM

i think Fedora's rescue disk mounts your fedora install in /mnt you could look in there...

as to what text editors are available with the rescue disk i don't know, maybe a fedora guru will jump in here and help out...

tommytomato 05-28-2007 10:21 PM

Quote:

Originally Posted by Okie
i think Fedora's rescue disk mounts your fedora install in /mnt you could look in there...

as to what text editors are available with the rescue disk i don't know, maybe a fedora guru will jump in here and help out...

thanks, I dont know what I'm raly looking for, I dont realy want to reinstall the system again, was kind of hoping i could get it back up.

it tells me to chroot /mnt/sysimage

back in a tick, had idea :cool:

TT

bouchecl 05-28-2007 10:27 PM

Quote:

Originally Posted by Okie
i think Fedora's rescue disk mounts your fedora install in /mnt you could look in there...

as to what text editors are available with the rescue disk i don't know, maybe a fedora guru will jump in here and help out...

When I start in rescue mode in FC, I usually chroot my active filesystem with the command :

Code:

chroot /mnt/sysimage
Edit your FC grub.conf file (since you've chrooted, it's not at its regular /boot/grub/grub.conf location)

AFAIK, you can use either vi or nano to do the edit. If you use nano, use the -w switch to avoid problems with long lines

Add your boot stanza for Ubuntu (I've provided an example for a / Ubuntu partition in /dev/sda8, but YMMV) and save your file.

Run the following command

Code:

grub-install
Then exit twice and your machine should reboot correctly (with Fedora's grub) and give you an option for Ubuntu.

tommytomato 05-28-2007 10:29 PM

I used vi to edit the grub.config i think it was, FC6 is back up now

here is what I had in

Code:

title          Ubuntu, kernel 2.6.20-15-generic
root            (hd1,0)
kernel          /boot/vmlinuz-2.6.20-15-generic
root=UUID=9f6739dd-97c1-4d59-bdbc-694262258dae ro quiet splash
initrd          /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

when the PC boots up I get the blue screen that allows you to chose what OS you want, I dont get the option the chose it starts to count down then loads FC6 up

other than that I cant get into Ubuntu

I'm unsure what to do as I'm a real newbie when it comes to duel boot systems.

I hope some one can help me out please on what to do

cheers TT

tommytomato 05-29-2007 08:54 AM

Quote:

Originally Posted by Okie
you probably just need to ad the info to Fedora's grub, be aware that ubuntu now uses UUID so use a text editor and copy ubuntu's entry in grub's menu.1st over to Fedora's grub menu.1st file...

http://www.linuxquestions.org/questi...d.php?t=557393

Ok since i've done the install the other way round , do i need to copy the Fedora Core 6 grub menu over to the Ubuntu grub menu and then run grub-install. :confused:

the ubuntu grub menu is

Code:

title          Ubuntu, kernel 2.6.20-15-generic
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=cb4797ac-2720-4d32-86ed-8eafd01b9a8f ro quiet splash
initrd          /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title          Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=cb4797ac-2720-4d32-86ed-8eafd01b9a8f ro single
initrd          /boot/initrd.img-2.6.20-15-generic

title          Ubuntu, memtest86+
root            (hd0,0)
kernel          /boot/memtest86+.bin
quiet

getting the Fedore Core 6 menu.lst, thats my next reply

TT

tommytomato 05-29-2007 08:56 AM

Quote:

Originally Posted by Okie
first you need to ad Ubuntu's harddrive to fedora's /etc/fstab and create a directory (folder) where ubuntu is to be mounted (mkdir /mnt/hdb1)

something like:

/dev/hdb1 /mnt/hdb1 ext3 defaults 0 0

just pay attention to detail how fedora has fstab set up...

I tried this before and I didn't get it to work, so I'll give it another go since i need the Fedore Core 6 menu.lst details

TT

tommytomato 05-29-2007 09:07 AM

How does one out put the drives to find out whether there /dev/hdb1 or /dev/hdb2 :scratch:

my fstab file is like so

Code:

# /etc/fstab: static file system information.
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
proc            /proc          proc    defaults        0      0
# /dev/hda1
UUID=cb4797ac-2720-4d32-86ed-8eafd01b9a8f /              ext3    defaults,errors=remount-ro 0      1
# /dev/hda5
UUID=e71b1e29-250f-464f-b9d7-e708b57781ff none            swap    sw              0      0
/dev/hdd        /media/cdrom0  udf,iso9660 user,noauto    0      0
/dev/hdc        /media/cdrom1  udf,iso9660 user,noauto    0      0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0      0

TT

tommytomato 05-29-2007 09:32 AM

Quote:

How does one out put the drives to find out whether there /dev/hdb1 or /dev/hdb2 :scratch:
fdisk -l bought up the list of drives

Code:

Disk /dev/hda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hda1  *          1      30213  242685891  83  Linux
/dev/hda2          30214      30401    1510110    5  Extended
/dev/hda5          30214      30401    1510078+  82  Linux swap / Solaris

Disk /dev/hdb: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hdb1  *          1          13      104391  83  Linux
/dev/hdb2              14        9733    78075900  8e  Linux LVM

next step :scratch:

TT

tommytomato 05-29-2007 10:09 AM

Am i correct the out put has loaded the boot of the 2nd drive after I added this to my fstab

Quote:

/dev/hdb1 /mnt/hdb1 ext3 defaults 0 0
Code:

/mnt/hdb1# ls
config-2.6.18-1.2798.fc6      symvers-2.6.18-1.2798.fc6.gz
grub                          System.map-2.6.18-1.2798.fc6
initrd-2.6.18-1.2798.fc6.img  vmlinuz-2.6.18-1.2798.fc6
lost+found

TT

tommytomato 05-29-2007 10:39 AM

It seems to work, thanks heaps
I created the folder mnt/hdb1
then after adding this to my /etc/fstab file

Quote:

/dev/hdb1 /mnt/hdb1 ext3 defaults 0 0
the directory now has the following

Code:

:/mnt/hdb1# ls
config-2.6.18-1.2798.fc6      symvers-2.6.18-1.2798.fc6.gz
grub                          System.map-2.6.18-1.2798.fc6
initrd-2.6.18-1.2798.fc6.img  vmlinuz-2.6.18-1.2798.fc6
lost+found


after reading the grub details i was able to copy and paste details to the Ubuntu menu.lst via root and bingo all is well

boot now works well. thanks again guys, it was right in front of me..:eek: :eek:

Is there a option to make it a GUI boot :confused:

TT


All times are GMT -5. The time now is 05:21 PM.