LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-14-2006, 08:29 AM   #1
linux_aman
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
grub and fstab


hi



i am using RHEL 4 i am unfortunatley delete my grub.conf and fstab files in my linux box please explain me how to insatll grub and fstab files


please..
 
Old 12-14-2006, 08:46 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Just reinstall them from your backup. You do have a backup of your system, don't you? Otherwise, they're just text files that you can edit/create in a text editor.

Here's a good primer for fstab. Execute mount -l to see your system's current setup.

Here's a sample grub.conf file. Here's the grub manual. You need to know where things are located on you system to create the file.
 
Old 01-07-2007, 03:14 AM   #3
ramesh.mimit
LQ Newbie
 
Registered: Nov 2006
Posts: 26

Rep: Reputation: 15
hi

u should install initscripts rpm in rescue mode for /etc/fstab and for grub.conf simple copy that file from another machine if u have or u can manually create that file in editor in original location /boot/grub/ this will may sove yr problem.


i am using RHEL 4 i am unfortunatley delete my grub.conf and fstab files in my linux box please explain me how to insatll grub and fstab files


please..[/QUOTE]
 
Old 01-14-2007, 02:26 PM   #4
mr_dean
LQ Newbie
 
Registered: Jan 2007
Posts: 5

Rep: Reputation: 0
I don't catch how you can boot without them... The only way to fix it is to find some samples using google and modify them according to your hardware.
 
Old 01-15-2007, 08:20 AM   #5
ramesh.mimit
LQ Newbie
 
Registered: Nov 2006
Posts: 26

Rep: Reputation: 15
have yr problem solvd?

Quote:
Originally Posted by ramesh.mimit
u should install initscripts rpm in rescue mode for /etc/fstab and for grub.conf simple copy that file from another machine if u have or u can manually create that file in editor in original location /boot/grub/ this will may sove yr problem.


i am using RHEL 4 i am unfortunatley delete my grub.conf and fstab files in my linux box please explain me how to insatll grub and fstab files


please..
[/QUOTE]

or u can do one thing more for grub installation boot yr machine in rescue mode and install grub as follows

#/sbin/grub-install <boot-device> (generally /dev/hda1)
or u can install in this way also

at command promt type grub and press enter

grub> root(hd0,0)
grub>setup(hd0)
grub>quit
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LABLE under fstab and grub.conf blackzone Linux - Newbie 7 07-10-2006 09:15 PM
fstab and grub and NTFS partition on SATA Moses Palmér Linux - Newbie 3 02-25-2005 06:24 AM
problems with grub config or fstab? orionpc84 Linux - Newbie 3 09-11-2004 02:55 PM
If I move hd labels, what changes? fstab, grub.conf... soloist Linux - General 6 03-16-2004 10:31 AM
LABELs in /etc/fstab and grub.conf juggler Red Hat 1 09-28-2003 04:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration