Solved

Permanently unmount network drive

Posted on 2014-01-22
3
623 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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now