Solved

Permanently unmount network drive

Posted on 2014-01-22
3
630 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

752 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