Solved

Permanently unmount network drive

Posted on 2014-01-22
3
622 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
Comment Utility
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
Comment Utility
Great - thanks very much for the hyper speed reply!
0
 
LVL 44

Expert Comment

by:Darr247
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

763 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

6 Experts available now in Live!

Get 1:1 Help Now