LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Home dir showing (some) contents of two drives. (https://www.linuxquestions.org/questions/linux-server-73/home-dir-showing-some-contents-of-two-drives-4175487709/)

shadreamer 12-12-2013 07:22 AM

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.

linosaurusroot 12-12-2013 08:54 AM

What is the output of "mount" ?

shadreamer 12-16-2013 07:49 AM

Quote:

Originally Posted by linosaurusroot (Post 5079485)
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?

chrism01 12-20-2013 04:46 AM

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


All times are GMT -5. The time now is 09:17 AM.