Solved

/etc/fstab on Linux

Posted on 2014-01-14
3
372 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
3 Comments
 
LVL 34

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

820 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