LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-08-2019, 03:58 PM   #1
hallomoto
Member
 
Registered: Nov 2018
Posts: 30

Rep: Reputation: Disabled
What happens when you put an invalid mount in fstab?


I'm not sure if a shared nfs mount will be seen on the particular box since it's in a DMZ.

So if I
Code:
mount -a
for the new entry and it doesn't see it, what, if anything, will happen?
 
Old 02-08-2019, 04:10 PM   #2
flshope
Member
 
Registered: Jul 2009
Location: Tennessee (United States)
Distribution: Debian 10.3, Ubuntu 18.04.4 and 16.04.6
Posts: 219
Blog Entries: 41

Rep: Reputation: 73
I once made an error editing fstab and the result was that my machine would not boot. I had to go in by recovery mode from Grub and fix the error (using nano).
 
Old 02-08-2019, 04:19 PM   #3
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Posts: 1,396

Rep: Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561
Agree - in some OS's you can get around this and boot but obviously the invalid mount will not be available.
 
Old 02-08-2019, 04:52 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,905

Rep: Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859
I would expect that you would get an error that it can't be found or doesn't exist at worst. If you have an incorrect entry for / that's a different problem. Don''t know about the DMZ part.
 
Old 02-08-2019, 05:53 PM   #5
hallomoto
Member
 
Registered: Nov 2018
Posts: 30

Original Poster
Rep: Reputation: Disabled
flshope was correct. wouldnt boot after issuing reboot command. editing the file is recovery mode restored it.
 
Old 02-08-2019, 09:13 PM   #6
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,361

Rep: Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001
If you include the "nofail" option in that fstab line, then the boot sequence will continue whether or not that mount succeeds, assuming that the contents of that mounted filesystem are not essential for booting, of course.
 
1 members found this post helpful.
  


Reply

Tags
fstab, linux, nfs, rhel 6


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ntfs mount in fstab says invalid BW-userx Debian 3 01-22-2019 08:11 AM
LXer: What happens when you put slow loris DOS attack on steroid? LXer Syndicated Linux News 0 09-23-2014 08:24 AM
[SOLVED] What will happens if i put scripts inside /etc/init.d ? Linux.tar.gz Slackware 6 03-06-2012 08:51 PM
What happens to you if you use a Mac? Nargile General 29 10-24-2005 10:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration