Ubuntu Forums

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Ubuntu General Support > General Help
Register Forum Information Ubuntu Community Today's Posts Search

Notices
Problem logging in?
Please click here for a workaround.

General Help All your general support questions for Ubuntu, Kubuntu, Edubuntu, Xubuntu and Lubuntu.

 
Thread Tools Display Modes
Old December 25th, 2010   #1
vbSteve
Spilled the Beans
 
Join Date: Oct 2010
Beans: 13
Unhappy fstab: silently ignore errors on startup

Hi,


I have an external USB hard drive configured in fstab to mount using UUID. Everything mounts fine, but when I unplug the drive and the server starts up again, it's telling me that the drive is not ready or present (obviously, because it's unplugged), but the startup sequence gets stuck on that error.

How do I make it so that it ignores that error automatically if it's not present. It's not a vital drive, just user data and i have to unplug the drive because otherwise it keeps spinning and it will wear too much over time. I also want the drive to get automatically mounted when I plug it back in, so that i don't have to loggon to my server first.

Anyway, here are the lines that I have in my fstab:
UUID=3253b05f-ce8f-4ea0-afb8-1bb212be1e45 /home/store/usb-store ext4 defaults,user 0 0


Anyone got a solution for this?
Thanks.
vbSteve is offline   Reply With Quote
Old December 25th, 2010   #2
Morbius1
Ubuntu addict and loving it
 
Join Date: Dec 2009
Beans: 4,688
Re: fstab: silently ignore errors on startup

Quote:
Anyway, here are the lines that I have in my fstab:
UUID=3253b05f-ce8f-4ea0-afb8-1bb212be1e45 /home/store/usb-store ext4 defaults,user 0 0


Anyone got a solution for this?
Add one more option to the fstab line: noauto
Quote:
UUID=3253b05f-ce8f-4ea0-afb8-1bb212be1e45 /home/store/usb-store ext4 defaults,user,noauto 0 0
Morbius1 is offline   Reply With Quote
Old December 25th, 2010   #3
vanadium
Chocolate-Covered Ubuntu Beans
 
Join Date: Apr 2007
Beans: 2,292
Ubuntu
Re: fstab: silently ignore errors on startup

"noauto" just won't automatically mount the drive. You need to mount it when logged in.
You probably want to use the "nofail" option.
vanadium is offline   Reply With Quote
Old December 28th, 2010   #4
dcstar
Ubuntu addict and loving it
 
Join Date: Feb 2005
Location: Melbourne, Australia
Beans: 13,228
Ubuntu 12.04 Precise Pangolin
Re: fstab: silently ignore errors on startup

Quote:
Originally Posted by vanadium View Post
"noauto" just won't automatically mount the drive. You need to mount it when logged in.
You probably want to use the "nofail" option.
Don't bet on it:

https://bugs.launchpad.net/ubuntu/+s...ll/+bug/610869
__________________
Regards, David.
The Forum search function and Ubuntu Wiki search are useful for immediate help.
Please mark your thread as Solved when appropriate.
New to technical forums?, read this: How To Ask Questions The Smart Way
dcstar is offline   Reply With Quote

Bookmarks


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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:47 AM.


vBulletin ©2000 - 2013, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry