PDA

View Full Version : [ubuntu] Adding Ubuntu on another hard drive to grub?



hxczach
August 14th, 2008, 12:17 AM
Hello

So a few days ago, i installed Fedora F9 onto my first hard drive, which has 2 partitions. Windows XP had been installed on it previously and everything went well. So last night i decided to install Ubuntu on my second hard drive (1 partition) and i would like to add it to the grub menu that was already installed with Fedora. I'm not sure what to put in terms of hdx's and root=/dev/...blah

And i installed Gutsy BTW

logos34
August 14th, 2008, 02:38 AM
If ubuntu root is on the first partition of the other drive, then try this entry in Fedora menu.lst:


title Ubuntu 7.10
configfile (hd1,0)/boot/grub/menu.lst

hxczach
August 14th, 2008, 03:04 AM
Well...
I can add&edit the menulist for grub within Fedora(because its bootable from the menu)
The problem im having is directing grub to the right disk and partiton of my ubuntu kernels.

logos34
August 14th, 2008, 03:23 AM
run this and post the output:

# fdisk -l

hxczach
August 14th, 2008, 11:45 PM
Yeah, fdisk commands don't work in fedora for some reason?

Too Late
August 15th, 2008, 12:14 AM
Did you try fdisk as root? First you need to type 'su' or something like that (don't know about Fedora).

logos34
August 15th, 2008, 01:07 AM
Yeah, fdisk commands don't work in fedora for some reason?

login as administrator--the '#' is the universal symbol for 'run as root/with admin privileges'

hxczach
August 15th, 2008, 01:41 AM
Here you are.
I had to boot with my old kernel for some reason.(weird)
lol






Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd355d355

Device Boot Start End Blocks Id System
/dev/sda1 * 1 8904 71521348+ 7 HPFS/NTFS
/dev/sda2 8905 9729 6626812+ 83 Linux

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0000216b

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 9729 78148161 7 HPFS/NTFS

logos34
August 15th, 2008, 05:39 AM
uh, I don't see any linux/ubuntu partition on the other drive--or else the partition table is wrong and sdb1 is really an ext3 ubuntu /. It says ntfs.

Can you mount it in Fedora and see your ubuntu files? And what does Gparted show?

If sdb1 realy is ubuntu, the entry I gave you above should work '(hd1,0)'.

You might run TestDisk (http://www.cgsecurity.org/wiki/TestDisk) to fix the partition table.

hxczach
August 15th, 2008, 07:22 PM
Yeah something went wrong when i formated for an install i think. Anyways, i decided to just dump fedora and install ubuntu on that partition (sda2). Thanks for your help though.
And yes, i could mount that disk and view it in fedora. But grub didnt recognize the messed up file system format.