LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 10-20-2008, 12:50 AM   #1
chipotphe
Member
 
Registered: Nov 2007
Posts: 62

Rep: Reputation: 15
Automouter, hide partitions


Hello,

I have Fedora 9 installed on my pc.
I also have Fedora 8 installed.

Both are on extended partitions.

when I start F8 I have the partition of F9 "automounted".
And when I start F9, I have F8 also "automounted".

I use automounter (autofs), because it is handy for CD, USB etc.

I have a common partition (extended) to share data between F8 and F9.
For this partition I MUST see it in both.

How/what can I do that I do not see the other operation system, only the shared data-partition?


thanks
 
Old 10-20-2008, 06:19 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,536

Rep: Reputation: 178Reputation: 178
You probably have the other partition specified in your /etc/fstab file on both systems. Take a look in /etc/fstab and comment out any entries that you do not want mounted at boot.

--------------------
Steve Stites

P.S. Instead of commenting an entry out you might add the "noauto" option to stop automounting the partition.

Last edited by jailbait; 10-20-2008 at 06:22 PM.
 
Old 10-22-2008, 11:48 AM   #3
chipotphe
Member
 
Registered: Nov 2007
Posts: 62

Original Poster
Rep: Reputation: 15
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 ~]$

__________________
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ext2IFS: is it possible to hide Linux partitions? [KIA]aze General 2 05-03-2007 06:58 AM
windows killed my partitions! no linux partitions found on this computer. The MJ Linux - Software 10 01-05-2007 08:31 AM
Question on creating more partitions than default ones, i.e. /home,/root partitions casmac Suse/Novell 1 12-20-2006 05:02 PM
how do I add partitions to drives that have Logical Volume (LVM) partitions? The MJ Linux - Software 5 08-17-2006 06:15 PM
automouter samba Xerop Linux - Software 4 05-15-2006 08:45 AM


All times are GMT -5. The time now is 03:42 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration