LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-05-2003, 07:34 AM   #1
zokik
Member
 
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58

Rep: Reputation: 15
Disable automount


How do I disable automount? I can't watch a movie from cd without annoying interrupts (probably it unmounts cd while I'm still watching) and when using a floppy there is a continuous activity on floppy (I think it umounts and mounts the floppy on a short interval).

I found this thread but I think I have automount, not supermount because I don't find anything with "apropos supermount". I have 2 /usr/sbin/automount processes running owned by root. If I kill them automount stops. Now how am I supposed to disable automount (besides chmod a-x /usr/sbin/automount) from atarting whenever I boot?
 
Old 12-05-2003, 11:46 AM   #2
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
u can edit ur /etc/fstab.
in the cdrom block u must have automount, change this to noauto.

I am sure ur cd is not unmounted unless u request it 2 be. same for the floppy
 
Old 12-05-2003, 12:05 PM   #3
zokik
Member
 
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58

Original Poster
Rep: Reputation: 15
I'd say that my /etc/fstab is ok:
/dev/fd0 /mnt/floppy auto noauto,user,sync 0 0
/dev/dvd /mnt/dvd auto ro,noauto,user,exec 0 0

That damn automount must be set up somewhere else.

I don't know if cd is really unmounted, that is just my guess, because after I kill the processes with name "automount" movie playback from cd works ok.

Oh, and this is on Mepis (Debian based, although this automounting stuff looks more Knoppix-like to me), not SuSE.
 
Old 12-05-2003, 04:30 PM   #4
ac1980
Member
 
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
try these two:
1) grep automount </etc/inittab
2) locate automount | grep /etc/rc

however i'm sure it doesn't unmount busy drives (it can't!), maybe it keeps polling the drive. U may send a bug report to the mantainer of this package: "since /proc is much faster than removable media, shall automount check with lsof before phisically accessing a device?"
 
Old 12-06-2003, 04:56 AM   #5
zokik
Member
 
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58

Original Poster
Rep: Reputation: 15
No output with:
grep automount </etc/inittab
locate automount | grep /etc

Quote:
however i'm sure it doesn't unmount busy drives (it can't!)
True. That's why copying files from cd works ok, but during playback cd is not being read all the time, only from time to time. If the file is not kept open all the time, cd can be umounted.

I don't know if this is really a bug, probably I'm supposed to just increase the period of inactivity before unmounting, I believe that's set in /etc/auto.master, I have 4 seconds for cd and 2 secs for floppy. I'm used to manually unmount removables (it's just a right click on the desktop icon and select unmount or eject, no big deal) so I have no need for automount, just want to disable it.

Would it be safe to chmod a-x /etc/init.d/autofs?
 
Old 12-07-2003, 06:59 AM   #6
ac1980
Member
 
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
Quote:
Originally posted by zokik
Would it be safe to chmod a-x /etc/init.d/autofs?
well, the wrost thing that may happen is getting an error message at boot time, i suppose. In any case, nothing that a chmod back can't fix

However, I still think a movie player does not close/reopen files wile playing, it makes no sense: do you close a book (loosing bookmark) whenever you make a 5secs break in reading? Even a mp3 file, which has much lower bitrate and could be kept all in ram, is kept open while playing.

Last edited by ac1980; 12-07-2003 at 07:09 AM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto disable automount feature in Mandrake 10.1 MJatIFAD Linux - General 6 09-27-2005 03:26 AM
temporarily disable automount bnj Linux - Newbie 4 06-26-2005 08:41 AM
Disable the Mandrake automount feature pinoez Linux - Newbie 6 06-10-2005 08:41 AM
How to disable automount in Mandrake 10.1 deathbyswiftwin Linux - Hardware 3 04-11-2005 02:54 AM
what are the services i can disable, also disable ads, banners in konqueror? greythorne SUSE / openSUSE 3 03-16-2005 08:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:05 AM.

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
Open Source Consulting | Domain Registration