Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17852

mount confusion, halp?

$
0
0

hello everyone,

so the scenario is this:

My /a mount got full. /a has 2 directories in it b/ and c/. So I decided, I'll create a new dedicated mount just for c/, rsync the contents over and then re-mount /c under /a, finally rm'ing the original c/ under the /a mount. In theory, this sounded good and I almost got away with it too... up until the mounting point piece; as it didn't work as I had hoped :S

It has instead it duplicated the path with an additional c/. This is what it did:

$ls /a
b c

$cd c/

$ls
c

$cd c/

$ls
file1 file2 etc

$ pwd
/a/c/c

How can I get rid of that extra c in the path? I want it to be like before, /a/c not /a/c/c... I have several scripts that depend on this layout :/

What am I doing wrong? My /etc/fstab is below:

$ cat /etc/fstab
mynfsserver:/share/a /a nfs async 0 0
mynfsserver:/share/c /a/c nfs async 0 0

Halp? :)

submitted by linn00b
[link][7 comments]

Viewing all articles
Browse latest Browse all 17852