Solved

/etc/fstab on Linux

Posted on 2014-01-14
3
360 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
Comment Utility
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
Comment Utility
Issue command

mount -a

Open in new window

0
 
LVL 21

Expert Comment

by:Mazdajai
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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