I have accidently deleted my fstab... how do i recover/
regenerate the file?????? in rescue mode i cannot create a
new file since the filesystem is readonly and could not
mount in readwrite mode ?????????
Answers were Sorted based on User's Feedback
Answer / sudhir
first of all go to rescue mode and the
run the command fdisk -l and see the / which is using
like /dev/sda5 ?
then mount -o rw /dev/sda5 /1
cd /1/etc;vi fstab
put the entry of ur filesytem at here manually
form sudhir sharma
Is This Answer Correct ? | 32 Yes | 4 No |
Answer / nikhil vasishta
it is always suggested to take a regular backup of /etc
directory if u have configured a lot of services in ur
server still, if you see in /etc/mtab file, u'll get all
your currently mounted partitions and using that file u can
recreate fstab. hope this will help.
Is This Answer Correct ? | 9 Yes | 1 No |
Answer / jitendra kirar
go to the rescue mode and type the command
mount -o remount rw /
mow type
vi /etc/fstab
now you can edit the file. after edit save the file and
reboot the system.
Is This Answer Correct ? | 6 Yes | 4 No |
Answer / raj kumar yadav
Go in rescue mode
mount -o remount rw /
cp /etc/mtab /etc/fstab
otherwise make it manualy
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / ali rao
I deleted vold.fstab when I reboot my tab phone storage or external sd is not showing please help me.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / gavy balintag
how do you open the command when you go to rescue mode??
Is This Answer Correct ? | 0 Yes | 0 No |
rpm package installation error in centos 6.4 [root@localhost packages6.4]# rpm -ivh nfs-utils-1.2.3-36.el6.i686.rpm warning: nfs-utils-1.2.3-36.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY error: Failed dependencies: keyutils >= 1.4-4 is needed by nfs-utils-1:1.2.3-36.el6.i686 libevent is needed by nfs-utils-1:1.2.3-36.el6.i686 libevent-1.4.so.2 is needed by nfs-utils-1:1.2.3-36.el6.i686 libgssglue is needed by nfs-utils-1:1.2.3-36.el6.i686 libgssglue.so.1 is needed by nfs-utils-1:1.2.3-36.el6.i686 libgssglue.so.1(libgssapi_CITI_2) is needed by nfs-utils-1:1.2.3-36.el6.i686 libnfsidmap.so.0 is needed by nfs-utils-1:1.2.3-36.el6.i686 libtirpc is needed by nfs-utils-1:1.2.3-36.el6.i686 libtirpc.so.1 is needed by nfs-utils-1:1.2.3-36.el6.i686 nfs-utils-lib >= 1.1.0-3 is needed by nfs-utils-1:1.2.3-36.el6.i686 rpcbind is needed by nfs-utils-1:1.2.3-36.el6.i686
How can you see all mounted drives?
What is the difference between semaphore and spinlock?
I want to configure production interface and manage interface, how to configure both interfaces in Linux. please post the answers
How to recover a deleted file in linux ?
How to trace any process background processing?
How To Hide the FTP Version?
How to sort a file of size 2N bytes, if I have N bytes of memory?
1. User gaves df -h and the system get hanged. why ? 2. what is the hardlink and softlink mount ? 3. why is portmape should be started ? 4. what is nologin option 5. how to restrict users from accessing nfs ? 6. what is the difference between cpio and tar 7. what are the kernel parameters ? how to find out it ? 8. why we use sysctl.conf ? 9. if we gives init1 from multiuser runlevel, will it affect other users who already logged in to the system ? 10. what will be the available space to use after configuering raid5 with 5 disks each having 5gb spce ?
My root password has been changed, how can i enter into the system without root password?
How to catagories tickets in RHEL, which tickets are belong to PROBLEM, INCIDENT and CHANGE management? please given to me with examples
How do display error messages instantly when command fails?