Solved

/etc/fstab on Linux

Posted on 2014-01-14
3
377 Views
Last Modified: 2014-01-14
Is there a way to check if /etc/fstab is good, before a reboot. I had an issue with /etc/fstab. I have upgraded my RHEL and the box didnot come back online because of a syntax error in /etc/fstab.
0
Comment
Question by:aanya247
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 35

Accepted Solution

by:
Seth Simmons earned 500 total points
ID: 39779800
i've had issues before where i put things in the wrong order as far as the device and mount point in fstab and the system halts because it can't mount it
if i do mount -a i can see if there are any errors when i try to mount manually that way i know it will be fine on reboot
0
 
LVL 31

Expert Comment

by:farzanj
ID: 39779801
Issue command

mount -a

Open in new window

0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39779851
Is there a way to check if /etc/fstab is good, before a reboot.

You can use vim (enhanced vi) to open /etc/fstab, it will highlights common syntaxs -

Filesystem and mountpoints are in white; options are in green; ac, UIDS are in yellow...etc. It does not check for bad mounts, but it should reduce most typos.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question