Solved

/etc/fstab on Linux

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

696 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