 |
 |
 |
 |
| Installation and Live Media Help with Installation & Live Media (Live CD, USB, DVD) problems. |

20th October 2008, 05:49 PM
|
|
Registered User
|
|
Join Date: Nov 2006
Location: halleatbe
Posts: 360

|
|
|
Automout in runlevel 3 <> automount in runlevel 5 ?
Hello,
This thread is the next step in thread :
http://forums.fedoraforum.org/showpo...4&postcount=27
What happens ?
When I start Fedora 9 in runlevel 3 I do not get any harddisk partitions "autmounted"/
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 ~]$
__________________
Best regards,
phe,
===================================
Remember : Knowledge is power.
===================================
|

22nd October 2008, 05:38 PM
|
|
Registered User
|
|
Join Date: Nov 2006
Location: halleatbe
Posts: 360

|
|
|
Nobody any idea ? ? ?
__________________
Best regards,
phe,
===================================
Remember : Knowledge is power.
===================================
|

22nd October 2008, 05:53 PM
|
|
Registered User
|
|
Join Date: Jun 2006
Posts: 7,551

|
|
Quote:
|
Originally Posted by phe
Nobody any idea ? ? ?
|
Hello phe,
I think it's your desktop environment mounting those partitions. It's possible to create a preferences.fdi file for the HAL to ignore partitions and prevent the DE from mounting them. I learned how in another thread here (see the last few posts). But I'm not really sure that is the appropriate answer for this particular situation.
P.S.: Another thing that occurred to me is this. Do you notice any difference between logging in as root and as a user?
P.P.S.: I think replies tapered off in your last two posts about this matter because your situation seems so screwed up. Sorry.
Last edited by stoat; 22nd October 2008 at 06:18 PM.
|

22nd October 2008, 06:10 PM
|
|
Registered User
|
|
Join Date: Nov 2006
Location: halleatbe
Posts: 360

|
|
Quote:
Originally Posted by stoat
Hello phe,
I think it's your desktop environment mounting those partitions after taking hints from the HAL. It's possible to create a preferences.fdi file for HAL to ignore partitions. I learned how in another thread here (see the last few posts).
P.S.: I think replies tapered off in your last two posts about this matter because your situation seems so screwed up. Sorry.
|
Hello Stoat,
Thanks,
In the thread I saw This method is depreciated (I believe) but it may work...
So I would like to find an other solution.
Maybe something in xconfig ?
__________________
Best regards,
phe,
===================================
Remember : Knowledge is power.
===================================
|

22nd October 2008, 06:40 PM
|
|
Registered User
|
|
Join Date: Jun 2006
Posts: 7,551

|
|
|
In Fedora 8, I use a preferences.fdi file like the one in that thread to prevent two external drives from being mounted and their icons from appearing on the desktop. It does work. However, you should do what you want, of course.
You didn't comment on root vs. user. You know, when I log in as user, Gnome mounts the partitions in my fstab where the fstab specifies and places their icons on the desktop. However, when I log in as root, the root Desktop has icons for all of my partitions. The ones in the fstab are mounted where the fstab specifies. The ones not mentioned in the fstab are mounted in /media. It sounds a lot like what you are describing. So if this is occurring when you log in as root, then it sounds normal to me.
Last edited by stoat; 22nd October 2008 at 07:18 PM.
|

22nd October 2008, 07:35 PM
|
|
Registered User
|
|
Join Date: Nov 2006
Location: halleatbe
Posts: 360

|
|
Quote:
Originally Posted by stoat
You didn't comment on root vs. user.
|
Have a look at my "codes" on my first message.
All actions I have done ware done as USER. (not root ! ! )
__________________
Best regards,
phe,
===================================
Remember : Knowledge is power.
===================================
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 23:53 (Wednesday, 19-06-2013)
|
|
 |
 |
 |
 |
|
|