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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-08-2009, 04:02 AM
|
#1
|
Member
Registered: Dec 2007
Location: Kolkata, WB,India
Posts: 30
Rep:
|
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
|
|
|
12-08-2009, 11:47 AM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Which distro, which desktop? Does it happen when you're on a full-
screen console?
Cheers,
Tink
|
|
|
12-08-2009, 01:48 PM
|
#3
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153
|
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.
|
|
|
12-09-2009, 12:57 AM
|
#4
|
Member
Registered: Dec 2007
Location: Kolkata, WB,India
Posts: 30
Original Poster
Rep:
|
Hi Tink,
Its RHEL 5.3 (server).
Thanks,
Kosys
Quote:
Originally Posted by Tinkster
Which distro, which desktop? Does it happen when you're on a full-
screen console?
Cheers,
Tink
|
|
|
|
12-16-2009, 11:17 AM
|
#5
|
Member
Registered: Dec 2009
Location: NE Ohio
Distribution: Open SUSE
Posts: 43
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 03:30 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|