Effects of /etc/fstab file!

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Effects of /etc/fstab file!
# 1  
Old 07-02-2012
Effects of /etc/fstab file!

Hi Folks!

I accidentally overwrote in /etc/fstab file. Can you guys please tell me, what impact it would have created, when I restarted the machine(RHEL6).
I executed this command :
# blkid /dev/vda5 > /etc/fstab
# 2  
Old 07-02-2012
It will not boot.
# 3  
Old 07-02-2012
I powered off the Virtual Machine and started again, it started, but I don't know the state of machine after start.
Because I had to leave, so I am curious to know.
# 4  
Old 07-02-2012
Any storage that is mounted by the OS uses /etc/fstab to control where it is mounted and with what parameters set.

Essentially, nothing will mount, and as said previously, your node won't boot.

Backups rock!
# 5  
Old 07-02-2012
But it did, that's strange after power-off and starting it again, it started again. Is there a backup file or so that OS creates it for itself.
# 6  
Old 07-02-2012
Just spun up a CentOS box to check, and you're right, the box does boot, you just can't do much with it as it does not have anything mounted filesystem-wise.

The good news is that you could recreate the /etc/fstab file manually and as long as it matched the original, with everything mounted in the correct place, you could carry on using your server as if nothing had happened, after a reboot of course.
This User Gave Thanks to spynappels For This Post:
# 7  
Old 07-02-2012
Thanks a lot!
that was useful, lets hope we will get more informative answers.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Ubuntu

Create zip file from root owned fstab

I want to zip up my fstab file for backup purposes. This does not work because of permission issues. cd /etc/ zip -u fstab.zip fstab Can I use this with zip? echo xxx | sudo -S or change fstab owner to me? (3 Replies)
Discussion started by: drew77
3 Replies

2. Shell Programming and Scripting

How to replace value in fstab file?

Hi, I am looking to replace value (fifth and sixth ) column to "0 0" in /etc/fstab file by scripting. can any one please help me. /dev/VolGroup00/tmp /tmp ext3 defaults 1 1 (2 Replies)
Discussion started by: yash_message
2 Replies

3. Ubuntu

Ubuntu encryption and its effects

How will Full Disk encryption effect how open-source software is compiled and run using ubuntu 14.04. Are there alternatives that are recommended? Thank you :). (0 Replies)
Discussion started by: cmccabe
0 Replies

4. IP Networking

effects of bin file stored in nfs & run as daemon

Hi, Good Day, I had this question in my mind.Hope someone can give me his/her thought about it. Question: I had a binary files stored in the nfs system and mounted several workstation locally and running as deamon. Is there in effect to the networks or any problem me arise regarding network... (3 Replies)
Discussion started by: jao_madn
3 Replies

5. Red Hat

3d effects in rhel6

I installed rhel 6.0 in my laptop but it is not upporting 3d graphics of rhel6 and i am getting an error message "Accelerated 3d graphics not available Desktop effects require hardware 3D support." my laptop is dll studio 1558 and my graphic card is ATI Radeon 5470 with 1 gb dedicated ram. (6 Replies)
Discussion started by: nileshgupta
6 Replies

6. Red Hat

3D effects on RHEL6 OC

Hello, I just installed RHEL6 OC on my T61p. It's great! Just for fun I'd like to use some fancy cool Desktop effects. I tried to enable 3D Desktop effects from OC Welcome Center but it gave me error message: Accelerated 3D graphics is not available. Desktop effects require hardware 3D support.... (7 Replies)
Discussion started by: susja
7 Replies

7. Red Hat

edit/write the /etc/fstab file

Hi, I comment out some vol group in fstab accidentally. I also comment the swap space in /etc/fstab But I cannot edit /remove it back by using vi /etc/fstab again in init 1 and init 6 . The file system /etc/fstab is read -only . I cannot chmod ..... What can I do in order to recover it ... (2 Replies)
Discussion started by: chuikingman
2 Replies

8. UNIX for Dummies Questions & Answers

Effects of grep -o when it's not available

I'm on a Solaris box that doesn't have -o as an option for grep (trying to return match only). Is there any way to get this functionality without the -o option? I've tried both sed and awk doing something like: echo "this is a test" | awk '/test/' or echo "this is a test | sed '/test/p'... (8 Replies)
Discussion started by: earnstaf
8 Replies
Login or Register to Ask a Question