LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-12-2013, 07:22 AM   #1
shadreamer
LQ Newbie
 
Registered: Dec 2013
Posts: 2

Rep: Reputation: Disabled
Question Home dir showing (some) contents of two drives.


Strange issue. Am running CentOS 5.5 for a file server. Here are how my drives are laid out.

Filesystem Size Used Avail Use% Mounted on
/dev/sda3 95G 82G 7.8G 92% /
/dev/sda2 808G 661G 106G 87% /tony
/dev/sdb1 886G 192G 649G 23% /linda
/dev/sda1 99M 25M 70M 27% /boot
tmpfs 7.9G 0 7.9G 0% /dev/shm

Here is a listing of my drives using the tree command showing directories only.

Here is just Tony...

/tony
|-- jackspades
| `-- folder35
| |-- ARNIE
| `-- Bill_ppt
|-- tiger
| |-- folder28
| | |-- aml
| | |-- aml_July_05_05
| | `-- aml_Sept_29_04
| |-- folder29
| | `-- aml
| |-- folder30
| | |-- arnie_web
| | `-- aml
| |-- folder31
| | `-- aml
| |-- folder41
| | `-- aml
| `-- folder42
| `-- aml
|-- folder100
|-- jaucan
`-- lost+found

Now Linda...

/linda
|-- ARNIE_backup
|-- DVD_cruise_archive
|-- folder31
|-- standard_bk
|-- lost+found
`-- users

Now the issue. When I go into my Home directory, I see a combination of directories from both tony and linda, but not all directories appear as you can see. If I make a change in Home (in the aml_July_05_05) dir for example) the change is immediately visible in the aml_July_05_05 folder on /tony, but I have no idea why. It also reflects a change in /home if I make a change in /tony or /linda.


/home
|-- DVD_cruise_archive
|-- folder28
| |-- aml
| |-- aml_July_05_05
| `-- aml_Sept_29_04
|-- folder29
| `-- aml
|-- folder30
| |-- arnie_web
| `-- aml
|-- folder31
| `-- aml
|-- folder35
| |-- ARNIE
| `-- Bill_ppt
|-- folder41
| `-- aml
|-- folder42
| `-- aml
`-- users

I'm the fifth admin on this server since it was installed and I have no idea why /home is reflecting these changes. I used tree as it shows symbolic links, there are none.

Anyone have an idea why this is happening? More to the point, do you know how to repair this so tony, linda, and home are seen as separate entities?

Cheers.
 
Old 12-12-2013, 08:54 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
What is the output of "mount" ?
 
Old 12-16-2013, 07:49 AM   #3
shadreamer
LQ Newbie
 
Registered: Dec 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by linosaurusroot View Post
What is the output of "mount" ?
Thanks for the response.

/dev/sda3 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda2 on /tony type ext3 (rw)
/dev/sdb1 on /linda type ext3 (rw)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
/tony/tiger/folder28 on /home/folder28 type none (rw,bind)

The last line stood out on the mount command. How do I stop this binding?
 
Old 12-20-2013, 04:46 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
As you can see from the last keyword on that line, its a 'bind' mount... try this http://backdrift.org/how-to-use-bind-mounts-in-linux
 
  


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
How to determine if user is logged in (from anywhere) from just home dir contents? mikemorris Linux - Security 3 11-10-2013 04:44 AM
copying files from home dir to another dir from another dir in a lower dir chomito44 Linux - General 5 10-19-2013 06:18 PM
Apache2 root server showing directory contents of a symbolic link in the /var/www dir rtoney5 Linux - Server 7 09-03-2010 07:50 PM
[SOLVED] [SOLVED]Can't see contents of mounted home dir on client (not as simple as it sounds) narnie Linux - Networking 2 01-09-2010 08:57 PM
LVM not showing contents USB drives after reboot gGuzz Linux - Newbie 2 10-12-2009 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration