Grub problem.?

  • praveen278
  • Novice
  • Novice
  • No Avatar
  • Joined: Sep 01, 2006
  • Posts: 22
  • Loc: INDIA
  • Status: Offline

Post December 1st, 2007, 12:07 pm

Hi,

Can anyone help me in solving my issue?

I am planning for the certification of redhat5.

I have a redhat 5 OS CD and installed in my PC which is having the

hardware configuration as ( 512MB RAM,160GB of HDD,P4 processor).

For the practise purpose i have renamed the grub.conf as burg.conf in

vi /etc/grub.conf and save the file and rebooted the PC.

Obviously, my PC didn't booted with redhat 5. So, i started trouble shooting

my pc in every possilble methods which i know.By entering into rescue

mode, i have tried to edit the grub.conf file but i couldn't succeed.I am not

able to see the file contents in grub.conf file.

So, my request is there any procedure so that i can configure the grub.conf and bring back my pc's OS.

Your replies will be highly appreciable.

Waiting for your earliest replies.

A.Praveen Kumar
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 1st, 2007, 12:07 pm

  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6134
  • Loc: Seattle, WA
  • Status: Offline

Post December 1st, 2007, 4:00 pm

Can't you just rename the file back to grub.conf? :scratchhead:
  • kc0tma
  • o|||||||o
  • Web Master
  • User avatar
  • Joined: Jul 20, 2007
  • Posts: 3318
  • Loc: Trout Creek, MT
  • Status: Offline

Post December 1st, 2007, 7:36 pm

The reason your grub.conf is empty is probably because you typed vi /etc/grub.conf but since that file doesn't exist, vi created it (essentially the same as touch grub.conf then vi grub.conf). In rescue mode you can either mv burg.conf grub.conf or you could cp burg.conf grub.conf, either will work and you will be back up and running.
Like Mr Spork, I also write about my interest in alcoholic beverages.
  • praveen278
  • Novice
  • Novice
  • No Avatar
  • Joined: Sep 01, 2006
  • Posts: 22
  • Loc: INDIA
  • Status: Offline

Post December 3rd, 2007, 9:26 am

Thank u very much for ur reply.
I'll be in touch with you for further query regarding REDHAT 5.
Please help me for my certification.

Thanks,
A.Praveen Kumar
  • kc0tma
  • o|||||||o
  • Web Master
  • User avatar
  • Joined: Jul 20, 2007
  • Posts: 3318
  • Loc: Trout Creek, MT
  • Status: Offline

Post December 3rd, 2007, 12:01 pm

No problem, this spring I'm going to the RH133 class and hopefully I can come home certified also.
Like Mr Spork, I also write about my interest in alcoholic beverages.
  • this213
  • Guru
  • Guru
  • User avatar
  • Joined: Mar 01, 2004
  • Posts: 1242
  • Loc: ./
  • Status: Offline

Post December 4th, 2007, 8:23 am

kc0tma wrote:
The reason your grub.conf is empty is probably because you typed vi /etc/grub.conf but since that file doesn't exist, vi created it (essentially the same as touch grub.conf then vi grub.conf)

I realize this is nit picking, but since you're talking certification: This is not true, running "vi somefile" is not like "touch somefile && vi somefile". If you "vi somefile", then quit without saving, no new file will exist on the drive.
  • kc0tma
  • o|||||||o
  • Web Master
  • User avatar
  • Joined: Jul 20, 2007
  • Posts: 3318
  • Loc: Trout Creek, MT
  • Status: Offline

Post December 4th, 2007, 9:12 am

If he typed vi grub.conf, it would have opened the file, but then not saved it unless he did a :wq just like you said. It would have appeared as an empty file while he was in vi.

But doing touch grub.conf;vi grub.conf would have created the empty file. It still would have existed, but there would be nothing left in it.

I think I managed to repeat everything you just said didn't I?
Like Mr Spork, I also write about my interest in alcoholic beverages.
  • this213
  • Guru
  • Guru
  • User avatar
  • Joined: Mar 01, 2004
  • Posts: 1242
  • Loc: ./
  • Status: Offline

Post December 4th, 2007, 9:24 am

Yep. As I said, it was really an anal point - but you guys were talking about certification so...

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 59 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.