Solved

Permanently unmount network drive

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
linux(debian) mouse poor performance 4 65
number in printf 13 33
Setup Ubuntu 16.04 to use LDAP for user login and authentication 2 87
Unix Help with:  mailx -s 17 21
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
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.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

830 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