EvilZone

General Tech => Operating System => : iAmLuFFy July 24, 2011, 03:02:33 PM

: grub entry problem
: iAmLuFFy July 24, 2011, 03:02:33 PM
Hi friends, yesterday i have installed Redhat 6 on my already installed windows 7 and ubuntu 10.10 laptop, but problem is that during the installation i forgot to give entry for ubuntu 10.10 in grub boot loader, but i gave entry for win7, so now my windows and redhat 6 working fine but i can't boot my ubuntu os. i have tried to modify grub.conf but i don't have proper root id for ubuntu 10.10. so give me some solution friends..........  :'(
: Re: grub entry problem
: Stackprotector July 24, 2011, 03:17:06 PM
Mhm.. try using ubuntu repair. Or some boot cd like hirens yo restore it. Also there are some windows programs around who can do it
: Re: grub entry problem
: iAmLuFFy July 24, 2011, 03:23:13 PM
ok, i have hiren boot disk, i will try that one, but about windows tools i don't know any of them.. can you suggest one friend.
: Re: grub entry problem
: Kulverstukas July 24, 2011, 03:25:30 PM
Like Factionwars said, just boot the Ubuntu CD and do the repair from there. Should do the trick.
: Re: grub entry problem
: iAmLuFFy July 24, 2011, 03:28:14 PM
actually i lost my ubuntu disk, but i have red hat 6 disk, repair from that disk can help me?
: Re: grub entry problem
: Dropchop July 24, 2011, 07:16:02 PM
...burn a new ubuntu disk.
: Re: grub entry problem
: xzid July 24, 2011, 11:59:27 PM
Couldn't you recover that info from redhat? find/mount your ubuntu system & find your old grub.conf.

Otherwise to find grub device, just start grub through bash(or through grub menu, press "c") and issue a command:

:
# grub
Probing devices to guess BIOS drives. This may take a long time.

       [ Minimal BASH-like line editing is supported.   For
         the   first   word,  TAB  lists  possible  command
         completions.  Anywhere else TAB lists the possible
         completions of a device/filename. ]

grub> find /bin/cat
find /bin/cat
 (hd0,0)
grub>

This should print out every partition with "/bin/cat", so most unix systems, it should show 2 partitions for you. Find the ubuntu one.

Also the partitions follow each other, sda1 = (hd0,0), sda2 = (hd0,1), sdb1 = (hd1,0)

So in my case grub.conf gets:

:
title My Linux Box
 root (hd0,0)
 kernel /vmlinuz ro root=LABEL=/
 initrd /initrd.img

/vmlinuz may not link to your kernel(same for initrd, initrd may not even be req.), if not then go back into grub then type:

:
  root(hd0,0)
  kernel /boot/[TAB]

grub should print out all the files in boot, should be able to find appropriate files.

>> Finding your old grub configuration file would be best though, so you can use the grub options ubuntu chose.

If you're dead-set on GUI, on fedora core the install application is called anaconda. Might be same for RH, maybe can configure from there(I have no clue