LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What happens when you put an invalid mount in fstab? (https://www.linuxquestions.org/questions/linux-newbie-8/what-happens-when-you-put-an-invalid-mount-in-fstab-4175647907/)

hallomoto 02-08-2019 02:58 PM

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?

flshope 02-08-2019 03:10 PM

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).

sevendogsbsd 02-08-2019 03:19 PM

Agree - in some OS's you can get around this and boot but obviously the invalid mount will not be available.

yancek 02-08-2019 03:52 PM

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.

hallomoto 02-08-2019 04:53 PM

flshope was correct. wouldnt boot after issuing reboot command. editing the file is recovery mode restored it.

rknichols 02-08-2019 08:13 PM

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.


All times are GMT -5. The time now is 05:50 PM.