| chipotphe |
10-22-2008 11:48 AM |
I did some more investigations :
What happens ?
When I start Fedora 9 in runlevel 3 I do not get any harddisk partitions "automounted"/
When I start afterwards X (going to runlevel 5) I get a lot harddiskpartitions "automounted" to /media/ *
I do not find any entry for it. Not even in /etc/auto.master
Can someone explain me why/how this happens ?
And how can I prevent this from happing? (so that the harddiskpartitions are not more "automounted" on start of X)
What I seen in runlevel 3 :
Code:
cat /etc/fstab
==============
UUID=e73e09bb-d6f8-4124-b076-90f50dc5448c / ext3 defaults 1 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
UUID=c1b409be-5220-462a-a13a-7b2bf6f85ff6 swap swap defaults 0 0
cat /etc/mtab
=============
/dev/sda11 / ext3 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
df -h
=====
Filesystem Size Used Avail Use% Mounted on
/dev/sda11 9.7G 5.8G 3.4G 64% /
tmpfs 506M 0 506M 0% /dev/shm
cat /etc/auto.master
====================
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
/misc /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
/net -hosts
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
cat /etc/auto.misc
==================
#
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage
cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
# the following entries are samples to pique your imagination
#linux -ro,soft,intr ftp.example.org:/pub/linux
#boot -fstype=ext2 :/dev/hda1
#floppy -fstype=auto :/dev/fd0
#floppy -fstype=ext2 :/dev/fd0
#e2floppy -fstype=ext2 :/dev/fd0
#jaz -fstype=ext2 :/dev/sdc1
#removable -fstype=ext2 :/dev/hdd
ls -la /media
=============
total 12
drwxr-xr-x 2 root root 4096 2008-10-20 18:16 .
drwxr-xr-x 24 root root 4096 2008-10-20 18:16 ..
-rw-r--r-- 1 root root 0 2008-10-20 18:16 .hal-mtab
ls -la /etc/auto*
=================
-rw------- 1 root root 2726 2008-05-23 05:23 /etc/autofs_ldap_auth.conf
-rw-r--r-- 1 root root 658 2008-05-23 05:23 /etc/auto.master
-rw-r--r-- 1 root root 524 2008-05-23 05:23 /etc/auto.misc
-rwxr-xr-x 1 root root 1237 2008-05-23 05:23 /etc/auto.net
-rwxr-xr-x 1 root root 660 2008-05-23 05:23 /etc/auto.smb
/sbin/chkconfig --list | grep auto
==================================
autofs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
What I get in X :
Code:
[phe@f9 ~]$ cat /etc/fstab
UUID=e73e09bb-d6f8-4124-b076-90f50dc5448c / ext3 defaults 1 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
UUID=c1b409be-5220-462a-a13a-7b2bf6f85ff6 swap swap defaults 0 0
[phe@f9 ~]$ cat /etc/mtab
/dev/sda11 / ext3 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
gvfs-fuse-daemon /home/phe/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=phe 0 0
/dev/sda10 /media/_var ext3 rw,nosuid,nodev,uhelper=hal 0 0
/dev/sda7 /media/_tmp ext3 rw,nosuid,nodev,uhelper=hal 0 0
/dev/sda6 /media/_usr ext3 rw,nosuid,nodev,uhelper=hal 0 0
/dev/sda1 /media/disk vfat rw,nosuid,nodev,uhelper=hal,shortname=lower,uid=500 0 0
/dev/sda5 /media/_home ext3 rw,nosuid,nodev,uhelper=hal 0 0
/dev/sda9 /media/_boot ext3 rw,nosuid,nodev,uhelper=hal 0 0
[phe@f9 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda11 9.7G 5.8G 3.4G 64% /
tmpfs 506M 88K 506M 1% /dev/shm
gvfs-fuse-daemon 9.7G 5.8G 3.4G 64% /home/phe/.gvfs
/dev/sda10 927M 78M 802M 9% /media/_var
/dev/sda7 2.9G 69M 2.7G 3% /media/_tmp
/dev/sda6 3.9G 72M 3.6G 2% /media/_usr
/dev/sda1 481M 227M 254M 48% /media/disk
/dev/sda5 5.8G 242M 5.3G 5% /media/_home
/dev/sda9 160M 5.6M 146M 4% /media/_boot
[phe@f9 ~]$ cat /etc/auto.master
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
/misc /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
/net -hosts
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
[phe@f9 ~]$ cat /etc/auto.misc
#
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage
cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
# the following entries are samples to pique your imagination
#linux -ro,soft,intr ftp.example.org:/pub/linux
#boot -fstype=ext2 :/dev/hda1
#floppy -fstype=auto :/dev/fd0
#floppy -fstype=ext2 :/dev/fd0
#e2floppy -fstype=ext2 :/dev/fd0
#jaz -fstype=ext2 :/dev/sdc1
#removable -fstype=ext2 :/dev/hdd
[phe@f9 ~]$ ls -la /media/
total 66
drwxr-xr-x 8 root root 4096 2008-10-20 18:32 .
drwxr-xr-x 24 root root 4096 2008-10-20 18:16 ..
drwxr-xr-x 3 root root 1024 2008-10-04 21:57 _boot
drwxr-xr-x 3 phe root 16384 1970-01-01 01:00 disk
-rw-r--r-- 1 root root 375 2008-10-20 18:32 .hal-mtab
-rw------- 1 root root 0 2008-10-20 18:32 .hal-mtab-lock
drwxr-xr-x 3 root root 4096 2008-10-04 21:58 _home
drwxr-xr-x 3 root root 4096 2008-10-04 21:57 _tmp
drwxr-xr-x 3 root root 4096 2008-10-04 21:57 _usr
drwxr-xr-x 6 root root 4096 2008-10-04 22:41 _var
[phe@f9 ~]$ ls -la /media/disk/
total 172
drwxr-xr-x 3 phe root 16384 1970-01-01 01:00 .
drwxr-xr-x 8 root root 4096 2008-10-20 18:32 ..
-rwxr-xr-x 1 phe root 853 2008-10-04 14:13 autoexec.bat
-rwxr-xr-x 1 phe root 66945 2006-08-28 21:40 command.com
-rwxr-xr-x 1 phe root 0 2008-10-04 14:16 cwsdpmi.swp
-rwxr-xr-x 1 phe root 946 2008-10-04 14:12 fdconfig.sys
drwxr-xr-x 29 phe root 8192 2008-10-04 14:07 fdos
-rwxr-xr-x 1 phe root 45341 2006-08-18 04:58 kernel.sys
-rwxr-xr-x 1 phe root 216 2008-10-04 14:13 nic.txt
-rwxr-xr-x 1 phe root 0 2008-10-04 14:16 usbdos.zip
[phe@f9 ~]$ /sbin/chkconfig --list | grep auto
autofs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
[phe@f9 ~]$
__________________
|