Solved

/etc/fstab on Linux

Posted on 2014-01-14
3
364 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

914 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now