LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 01-01-2009, 03:21 AM   #1
dkalsaria
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
Question fstab renamed


Hi Friends,

I have renamed fstab as a fstab.old in /etc folder. After system reboot is comes to shell prompt. How i can recover fstab from single user mode. I am using redhat Enterprise 5. Pls guide me.
Thanks
 
Old 01-01-2009, 04:50 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You have to remount / rw, try mount -uw / from the command line prompt
you get when you are in single user mode, then mv /etc/fstab.old /etc/fstab
 
Old 01-01-2009, 06:42 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,146

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
Personally I'd do it from a liveCD - shortform "mount" only works if defined in fstab ...
 
Old 01-01-2009, 11:48 AM   #4
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by dkalsaria View Post
Hi Friends,

I have renamed fstab as a fstab.old in /etc folder. After system reboot is comes to shell prompt. How i can recover fstab from single user mode. I am using redhat Enterprise 5. Pls guide me.
Thanks
Boot into the recovery cd and chroot into your system...then recover your file.

Example:
Code:
sh-1.3# chroot /mnt/sysimage
sh-1.3# cp /etc/fstab.old /etc/fstab
sh-1.3# sync
sh-1.3# exit
sh-1.3# exit
-C
 
  


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
Renamed a mount point mbeach SUSE / openSUSE 1 04-08-2005 05:09 PM
wireless interface being renamed geomatt Linux - Wireless Networking 6 12-20-2004 03:18 PM
Problems renamed after copy!! trlhoyos Red Hat 0 09-17-2004 02:54 PM
Is /etc/X11/XF86Config renamed satimis Fedora 2 08-16-2004 11:04 PM
modules renamed after copy!! joe83 Slackware 3 08-02-2004 12:47 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 11:03 PM.

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