Sponsored Content
Full Discussion: Effects of /etc/fstab file!
Operating Systems Linux Red Hat Effects of /etc/fstab file! Post 302667275 by zer0sig on Friday 6th of July 2012 03:31:28 AM
Old 07-06-2012
For future reference, if anything like this should ever happen again, typing
Code:
mount

will give you the info you need to rewrite the fstab. I would suggest never rebooting or restarting after overwriting something critical - Unix-style systems are easy to get under the hood of, but not always so forgiving of human error.
Code:
cat /etc/mtab

would also be helpful.
Assuming you don't have a backup, you'll probably need to run fdisk/cfdisk and get an idea of what partitions are set up, and go from there.
 

8 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

8. 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
SYSTEMD-FSTAB-GENERATOR(8)				      systemd-fstab-generator					SYSTEMD-FSTAB-GENERATOR(8)

NAME
systemd-fstab-generator - Unit generator for /etc/fstab SYNOPSIS
/usr/lib/systemd/system-generators/systemd-fstab-generator DESCRIPTION
systemd-fstab-generator is a generator that translates /etc/fstab (see fstab(5) for details) into native systemd units early at boot and when configuration of the system manager is reloaded. This will instantiate mount and swap units as necessary. The <term>passno</term> field is treated like a simlpe boolean, and the ordering information is discarded. However, the root filesystem is checked before all the other filesystems. See systemd.mount(5) and systemd.swap(5) for more information about special /etc/fstab mount options this generator understands. systemd-fstab-generator implements the generator specification[1]. KERNEL COMMAND LINE
systemd-fstab-generator understands the following kernel command line parameters: fstab=, rd.fstab= Takes a boolean argument. Defaults to "yes". If "no", causes the generator to ignore any mounts or swaps configured in /etc/fstab. rd.fstab= is honored only by initial RAM disk (initrd) while fstab= is honored by both the main system and the initrd. SEE ALSO
systemd(1), fstab(5), systemd.mount(5), systemd.swap(5), systemd-cryptsetup-generator(8) NOTES
1. generator specification http://www.freedesktop.org/wiki/Software/systemd/Generators systemd 208 SYSTEMD-FSTAB-GENERATOR(8)
All times are GMT -4. The time now is 01:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy