Author Topic: grub entry problem  (Read 2849 times)

0 Members and 1 Guest are viewing this topic.

Offline iAmLuFFy

  • Knight
  • **
  • Posts: 226
  • Cookies: 6
  • i aM MoDiFiEr nOt A cReAtOr
    • View Profile
grub entry problem
« on: 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..........  :'(
iAmLuFFy

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: grub entry problem
« Reply #1 on: 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
~Factionwars

Offline iAmLuFFy

  • Knight
  • **
  • Posts: 226
  • Cookies: 6
  • i aM MoDiFiEr nOt A cReAtOr
    • View Profile
Re: grub entry problem
« Reply #2 on: 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.
iAmLuFFy

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: grub entry problem
« Reply #3 on: 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.

Offline iAmLuFFy

  • Knight
  • **
  • Posts: 226
  • Cookies: 6
  • i aM MoDiFiEr nOt A cReAtOr
    • View Profile
Re: grub entry problem
« Reply #4 on: 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?
iAmLuFFy

Offline Dropchop

  • Peasant
  • *
  • Posts: 74
  • Cookies: 3
    • View Profile
Re: grub entry problem
« Reply #5 on: July 24, 2011, 07:16:02 pm »
...burn a new ubuntu disk.


 "I have lived on the lip of insanity, wanting to know reasons, knocking on a door. It opens. I've been knocking from the inside."
-- Rumi

Offline xzid

  • Knight
  • **
  • Posts: 329
  • Cookies: 41
    • View Profile
Re: grub entry problem
« Reply #6 on: 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:

Code: [Select]
# 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:

Code: [Select]
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:

Code: [Select]
  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