PDA

View Full Version : Disable automounting in FC2


Viro
23rd July 2004, 03:36 AM
How do I stop FC2 from automatically mounting CDs and DVDs that I insert into the drive?

Picomp314
23rd July 2004, 03:42 AM
comment out the line in /etc/fstab like this (AFAIK u can comment things out in fstab...)

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/hdb /mnt/hdb ext3 defaults 1 3
#/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noatime,noauto,owner,kudzu 0 0
none /var/lib/jack/tmp tmpfs defaults 0 0

ilja
23rd July 2004, 03:50 AM

or just disable automounting in gnome : http://www.redhat.com/archives/fedora-list/2003-August/msg00084.html

Picomp314
23rd July 2004, 04:00 AM
he may have a floppy drive or a flash disk that he wants to automount... so i decided this was the better option

ilja
23rd July 2004, 04:01 AM
he may have a floppy drive or a flash disk that he wants to automount... so i decided this was the better option
I never said your solution if wrong :)

Viro
23rd July 2004, 05:57 AM
Found the solution that doesn't involve messing with /etc/fstab. Just stop the autofs service :)