Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to remove duplicate directories in Linux

723684Oct 6 2009 — edited Oct 6 2009
Hi All,

Unfortunatly we mount the same directory twice in linux due to this 3 directories are got created as follows:

$df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p1 86G 36G 46G 45% /
none 8.0G 0 8.0G 0% /dev/shm
/dev/cciss/c0d0p7 4.9G 2.8G 1.9G 60% /home
/dev/cciss/c0d0p6 7.7G 62M 7.3G 1% /tmp
/dev/cciss/c0d1p1 337G 46G 275G 15% /u01
/dev/cciss/c0d1p2 202G 167G 26G 87% /u02
/dev/cciss/c1d0p1 327G 128G 183G 42% /u03
/dev/cciss/c1d0p2 224G 117G 96G 56% /u04
/dev/cciss/c1d1p1 154G 41G 106G 28% /u05
/dev/cciss/c1d1p2 122G 13G 103G 11% /u06
/dev/cciss/c0d0p3 9.7G 3.8G 5.4G 42% /usr
/dev/cciss/c0d0p5 7.7G 1.2G 6.2G 16% /var
//192.168.1.28/ofs 3.2T 2.8T 463G 86% /olam_nas
//192.168.1.29/ofs 3.2T 58M 3.2T 1% /linux_backup
//192.168.1.28/ofs 3.2T 2.8T 463G 86% /olam_nas
//192.168.1.28/ofs 3.2T 2.8T 463G 86% /olam_nas


So /olam_nas directory was mounted 3 times so we got 3 directories

Please suggest how to remove remaining 3 directories

we used this command to mount and dis mount the mount point

Mount:
mount -t cifs //192.168.1.28/ofs //olam_nas

Dismount:
umount //olam_nas

linux version is:
uname -a
Linux appsprod.olamnet.com 2.6.9-67.0.1.0.1.ELsmp #1 SMP Wed Dec 19 18:59:23 EST 2007 i686 i686 i386 GNU/Linux

Thnaks&Regards,
Nivas.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 3 2009
Added on Oct 6 2009
3 comments
1,311 views