Fedora Linux Support Community & Resources Center
  #1  
Old 19th May 2011, 08:46 PM
vasco Offline
Registered User
 
Join Date: May 2011
Posts: 3
linuxfirefox
home mounted twice?

Hi,

I just started using Fedora because I am picking the Gnome 3 side in the Unity vs Gnome 3 thing. I am not sure if I will stick with Fedora, but it looks very good thus far.

On topic:
I was looking at the output of the mount command, here is a snippet:

Code:
...
/dev/sda1 on / type ext4 (rw,noatime,seclabel,barrier=1,data=ordered)
/dev/sda3 on /home type ext4 (rw,noatime,seclabel,barrier=1,data=ordered)
/dev/sda1 on /tmp type ext4 (rw,noatime,seclabel,barrier=1,data=ordered)
/dev/sda1 on /var/tmp type ext4 (rw,noatime,seclabel,barrier=1,data=ordered)
/dev/sda3 on /home type ext4 (rw,noatime,seclabel,barrier=1,data=ordered)
...
It seems like /home is mounted twice. Secondly, how come sda1 is mounted on /, /tmp, /var/tmp, I am not used to the output of mount looking like this.

Can anybody explain whats going on?
  #2  
Old 19th May 2011, 09:20 PM
PatMcLJr's Avatar
PatMcLJr Offline
Registered User
 
Join Date: Apr 2005
Location: earth
Posts: 1,130
linuxopera
Re: home mounted twice?

how about a
# cat /etc/fstab

look the same?

Pat Jr.
__________________
x--x--x
http://www.gnu.org/philosophy/free-sw.html
Freedom is never Free.
Pat Jr.
  #3  
Old 19th May 2011, 09:26 PM
vasco Offline
Registered User
 
Join Date: May 2011
Posts: 3
linuxfirefox
Re: home mounted twice?

Code:
$ cat /etc/fstab 
#
# /etc/fstab
# Created by anaconda on Wed May 18 18:30:36 2011
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=939b4209-142e-42b0-953e-abe3fab170bd /                   ext4    defaults,noatime        1 1
UUID=ac3ce7ca-6fd7-4466-8392-51630e5c2cab /home               ext4    defaults,noatime        1 2
UUID=5ce55992-95fa-4fa3-a78d-7d99a15a90d4 swap                swap    defaults        0 0
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
  #4  
Old 19th May 2011, 10:10 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,101
linuxfedorafirefox
Re: home mounted twice?

You are seeing a bind mount done for you.

Why it is done I don't know.
  #5  
Old 19th May 2011, 10:56 PM
vasco Offline
Registered User
 
Join Date: May 2011
Posts: 3
linuxfirefox
Re: home mounted twice?

Is it normal in Fedora 15?
  #6  
Old 19th May 2011, 11:02 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,101
linuxfedorafirefox
Re: home mounted twice?

I think it happens way more than it should. Duplicates such as yours shouldn't exist, but currently doesn't hurt anything as the overlayed mount goes to the same location.

Bind mounts were created to permit easier BSD style chroot jails without having to duplicate files for libraries and jailed utilities. They are an implementation adapted from Plan 9 to support name spaces that can be used to lock logins without as much overhead as traditional chroot jails have.

Using them the way F15 is doing it seems overkill and silly.

Last edited by jpollard; 19th May 2011 at 11:06 PM.
  #7  
Old 20th May 2011, 02:14 AM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
linuxfedorafirefox
Re: home mounted twice?

The output of the mount command uses the /etc/mtab file and it can be wrong. Check the output of "cat /proc/mounts" to see if it is duplicated there or not.
  #8  
Old 20th May 2011, 12:22 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,101
linuxfedorafirefox
Re: home mounted twice?

Fedora 15 has chosen to make /etc/mtab a symbolic link to /proc/mounts.

There is no longer any difference.
 

Tags
home, mounted

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount Raid-5 as /Multimeida/home for user home - Best Practice? Vector Using Fedora 7 1st March 2011 02:37 AM
[SOLVED] Fedora12 login: mounted home partition not accepted acorlato Using Fedora 0 7th March 2010 06:10 PM
useradd used with no home directory still shows home dir in passwd file marko Using Fedora 0 15th October 2008 08:30 PM
fedora /home mounted as /media disk 1 mandrill Installation and Live Media 2 21st April 2008 07:20 PM
FC6 broken with NFS-mounted /home directories? skellert EOL (End Of Life) Versions 3 3rd November 2006 04:35 AM


Current GMT-time: 21:59 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat