Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Permanently unmount network drive

Posted on 2014-01-22
3
Medium Priority
?
645 Views
Last Modified: 2014-01-22
Hi,
I want to stop a mounted network drive from mounting on next reboot.
I'm assuming I simply need to edit /etc/fstab to remove the line referencing this file system, is that right?
I have opened fstab in vi and it is like this:

-e proc /proc    proc    defaults         0          0
/dev/sdb1 /store ext3 defaults,errors=remount-ro 0 1
/dev/sdc1 /store2 ext3 defaults,errors=remount-ro 0 1

I want to remove sdb1 (as the server will not reboot when this network drive is not available)

Many thanks!
0
Comment
Question by:tangerine27
  • 2
3 Comments
 
LVL 44

Accepted Solution

by:
Darr247 earned 2000 total points
ID: 39800684
Just prepend that line with a # sign...
# /dev/sdb1 /store ext3 defaults,errors=remount-ro 0 1

That rems it out but leaves you the option of adding it back in later, assuming you don't want to try the 'noauto' option (say, between defaults and errors).
0
 

Author Comment

by:tangerine27
ID: 39800702
Great - thanks very much for the hyper speed reply!
0
 
LVL 44

Expert Comment

by:Darr247
ID: 39800704
If you used
/dev/sdb1 /store ext3 defaults,noauto,errors=remount-ro 0 1

then you would have to manually run
# mount /dev/sdb1
for it to mount using the options in /etc/fstab
(i.e. running
# mount -a or
$ sudo mount -a
would NOT make /dev/sdb1 mount, as long as noauto is in its option list.)
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month10 days, 4 hours left to enroll

927 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