LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-08-2009, 05:02 AM   #1
kosys
Member
 
Registered: Dec 2007
Location: Kolkata, WB,India
Posts: 30

Rep: Reputation: 15
How to put off auto-mount feature?


Hi All,

Whenever I'm plugging my external hard-disk to the usb port, its getting auto mounted.

Say, it has two partitions:

/dev/sda1
/dev/sda2

so, its getting auto mounted to /media/disk and /media/disk-1

My requirement is to manually mounting the partitions.

Can anybody tell me how to put off the automount feature?

Thanks,
Kosys
 
Old 12-08-2009, 12:47 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Which distro, which desktop? Does it happen when you're on a full-
screen console?


Cheers,
Tink
 
Old 12-08-2009, 02:48 PM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
Quote:
My requirement is to manually mounting the partitions.
You don't say why, but if you want them always to show up in a certain place when you plug your disks in you should look at writing udev rules

There are plenty of examples.
 
Old 12-09-2009, 01:57 AM   #4
kosys
Member
 
Registered: Dec 2007
Location: Kolkata, WB,India
Posts: 30

Original Poster
Rep: Reputation: 15
Hi Tink,

Its RHEL 5.3 (server).

Thanks,
Kosys


Quote:
Originally Posted by Tinkster View Post
Which distro, which desktop? Does it happen when you're on a full-
screen console?


Cheers,
Tink
 
Old 12-16-2009, 12:17 PM   #5
vrmartin2
Member
 
Registered: Dec 2009
Location: NE Ohio
Distribution: Open SUSE
Posts: 43

Rep: Reputation: 19
A work around

In SUSE I have a work around for this issue: I allow my user account to sudo and run things like umount, mount, and fdisk. Then I have a script that uses "fdisk -l" to hunt down the device, and unmount it. Every device I use has a unique size measured in bytes and I have front end scripts that pass the size along to this first script. So, the device is unmounted and then remounted as whatever I've decide. And it does not matter where the system decided to auto mount my device.

Additionally, I have added KDE device "actions" so that I choose which script runs as soon as the system tells me its mounted.

It's a convenient way to get my device mounted as I want it, and the fact that it was auto mounted does not matter.

Vern
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Dim feature not working - Slack 12.2 mattydee Slackware 8 05-26-2009 03:18 PM
auto negotiation feature sulekha Linux - Networking 2 09-10-2008 08:01 AM
Auto-mount windows share on boot - manual OK, auto not ok! erskie Linux - Newbie 2 02-12-2008 07:42 PM
unable to turn off auto mounting feature sharkus SUSE / openSUSE 1 08-22-2006 04:26 PM
Auto-refresh feature ppuru LQ Suggestions & Feedback 1 08-12-2004 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration