Grub problem.?

  • praveen278
  • Novice
  • Novice
  • praveen278
  • Posts: 22
  • Loc: INDIA

Post 3+ Months Ago

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
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6254
  • Loc: Seattle, WA

Post 3+ Months Ago

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

Post 3+ Months Ago

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.
  • praveen278
  • Novice
  • Novice
  • praveen278
  • Posts: 22
  • Loc: INDIA

Post 3+ Months Ago

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
  • Posts: 3318
  • Loc: Trout Creek, MT

Post 3+ Months Ago

No problem, this spring I'm going to the RH133 class and hopefully I can come home certified also.
  • this213
  • Guru
  • Guru
  • User avatar
  • Posts: 1260
  • Loc: ./

Post 3+ Months Ago

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
  • Posts: 3318
  • Loc: Trout Creek, MT

Post 3+ Months Ago

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?
  • this213
  • Guru
  • Guru
  • User avatar
  • Posts: 1260
  • Loc: ./

Post 3+ Months Ago

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 6 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.