LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   grub and fstab (https://www.linuxquestions.org/questions/red-hat-31/grub-and-fstab-510379/)

linux_aman 12-14-2006 08:29 AM

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

weibullguy 12-14-2006 08:46 AM

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.

ramesh.mimit 01-07-2007 03:14 AM

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]

mr_dean 01-14-2007 02:26 PM

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.

ramesh.mimit 01-15-2007 08:20 AM

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


All times are GMT -5. The time now is 07:02 PM.