LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-11-2011, 04:14 AM   #1
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Not able to access /usr/local directory


Dear All,

I am not able to access the directory /usr/local. But when I do ls I am able to see it.

Code:
[root@indra ~]# ls -ld /usr/local
drwxr-xr-x 2 root root 0 Feb  9 12:11 /usr/local
[root@indra ~]# cd /usr/local
-bash: cd: /usr/local: No such file or directory
[root@indra ~]#
Thanks
 
Old 02-11-2011, 04:30 AM   #2
appilu
Member
 
Registered: Jan 2011
Distribution: RedHat,Debian-Ubuntu,Fedora
Posts: 73

Rep: Reputation: 8
hi,
Are you able to see it via GUI
 
Old 02-11-2011, 04:31 AM   #3
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by appilu View Post
hi,
Are you able to see it via GUI
Thanks for the quick reply. I do not have GUI access.

Last edited by vinaytp; 02-11-2011 at 04:32 AM.
 
Old 02-11-2011, 04:39 AM   #4
appilu
Member
 
Registered: Jan 2011
Distribution: RedHat,Debian-Ubuntu,Fedora
Posts: 73

Rep: Reputation: 8
when you give command cd, whether your tried autocompletion via tab.
cd /us <tab>/lo<tab>
 
Old 02-11-2011, 04:43 AM   #5
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by appilu View Post
when you give command cd, whether your tried autocompletion via tab.
cd /us <tab>/lo<tab>
Yes, I tried it gives local.

Here are few set of commands executed pertaining to /usr/local

Code:
[root@indra ~]# file /usr/local
/usr/local: directory
[root@indra ~]# du -csh /usr/local
du: cannot read directory `/usr/local': No such file or directory
0       total
 
Old 02-11-2011, 04:50 AM   #6
appilu
Member
 
Registered: Jan 2011
Distribution: RedHat,Debian-Ubuntu,Fedora
Posts: 73

Rep: Reputation: 8
what abt this command
ls -lrt /usr/local/
 
Old 02-11-2011, 05:33 AM   #7
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by appilu View Post
what abt this command
ls -lrt /usr/local/
Output is No such file or Directory
 
Old 02-11-2011, 05:40 AM   #8
MCD555
Member
 
Registered: May 2009
Location: Milan, Italy
Distribution: Ubuntu, Debian, Fedora, Oracle Linux
Posts: 107

Rep: Reputation: 10
Quote:
Originally Posted by vinaytp View Post
Dear All,

I am not able to access the directory /usr/local. But when I do ls I am able to see it.

Code:
[root@indra ~]# ls -ld /usr/local
drwxr-xr-x 2 root root 0 Feb  9 12:11 /usr/local
[root@indra ~]# cd /usr/local
-bash: cd: /usr/local: No such file or directory
[root@indra ~]#
Thanks
Your /usr/local/ seems to be empty, doesn't it?

drwxr-xr-x 2 root root 0 Feb 9 12:11 /usr/local

Try to creat e an empty file (touch /usr/locate/touchtest.out) and browse into that to check if you still facing the problem.
 
Old 02-11-2011, 06:02 AM   #9
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by MCD555 View Post
Your /usr/local/ seems to be empty, doesn't it?

drwxr-xr-x 2 root root 0 Feb 9 12:11 /usr/local

Try to creat e an empty file (touch /usr/locate/touchtest.out) and browse into that to check if you still facing the problem.
Hi,

I am not able to access /usr/local directory. How can I create a file in that ??
 
Old 02-11-2011, 06:05 AM   #10
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 616

Rep: Reputation: 64
Quote:
Originally Posted by vinaytp View Post
Dear All,

I am not able to access the directory /usr/local. But when I do ls I am able to see it.

Code:
[root@indra ~]# ls -ld /usr/local
drwxr-xr-x 2 root root 0 Feb  9 12:11 /usr/local
[root@indra ~]# cd /usr/local
-bash: cd: /usr/local: No such file or directory
[root@indra ~]#
Thanks
how about rebooting the system? Is it allowed?
 
Old 02-11-2011, 06:09 AM   #11
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by Sayan Acharjee View Post
how about rebooting the system? Is it allowed?
No Sayan.

Need to take downtime for that !! I hope it is deleted from corresponding inode, but when I do ls the directory still exists.
 
Old 02-11-2011, 06:23 AM   #12
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

Interesting.....

What is the output of the following commands:

stat /usr/local and cat /proc/mounts
 
Old 02-11-2011, 06:27 AM   #13
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by druuna View Post
Hi,

Interesting.....

What is the output of the following commands:

stat /usr/local and cat /proc/mounts
Hi Sir,

Please find the output

Code:
[root@indra ~]# cat /proc/mounts | grep usr
/dev/VolGroup00/LogVol03 /usr ext3 rw,data=ordered 0 0
auto_direct /usr/local autofs rw,fd=25,pgrp=3842,timeout=300,minproto=5,maxproto=5,direct 0 0
[root@indra ~]# stat /usr/local/
  File: `/usr/local/'
  Size: 0               Blocks: 0          IO Block: 4096   directory
Device: 1ch/28d Inode: 13821       Links: 2
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-02-11 16:56:44.133093512 +0530
Modify: 2011-02-09 12:11:04.012398922 +0530
Change: 2011-02-09 12:11:04.012398922 +0530
Thanks
 
Old 02-11-2011, 06:41 AM   #14
MCD555
Member
 
Registered: May 2009
Location: Milan, Italy
Distribution: Ubuntu, Debian, Fedora, Oracle Linux
Posts: 107

Rep: Reputation: 10
Quote:
Originally Posted by vinaytp View Post
Hi Sir,

Please find the output

Code:
[root@indra ~]# cat /proc/mounts | grep usr
/dev/VolGroup00/LogVol03 /usr ext3 rw,data=ordered 0 0
auto_direct /usr/local autofs rw,fd=25,pgrp=3842,timeout=300,minproto=5,maxproto=5,direct 0 0
[root@indra ~]# stat /usr/local/
  File: `/usr/local/'
  Size: 0               Blocks: 0          IO Block: 4096   directory
Device: 1ch/28d Inode: 13821       Links: 2
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-02-11 16:56:44.133093512 +0530
Modify: 2011-02-09 12:11:04.012398922 +0530
Change: 2011-02-09 12:11:04.012398922 +0530
Thanks
Try also:

Code:
stat -f /usr/local
 
Old 02-11-2011, 06:45 AM   #15
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,
Quote:
Originally Posted by vinaytp View Post
Code:
[root@indra ~]# cat /proc/mounts | grep usr
/dev/VolGroup00/LogVol03 /usr ext3 rw,data=ordered 0 0
auto_direct /usr/local autofs rw,fd=25,pgrp=3842,timeout=300,minproto=5,maxproto=5,direct 0 0
First: I'm not too familiar with autofs and the lot, but I do believe the problem is related to it.

Your profile mentions several distro's, which one do you have this problem with?

Also: Are you using NIS or NFS?
 
  


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
creating a directory in /usr/local MT_Keg Fedora 1 01-26-2010 04:00 PM
How to allow users to access files in /usr/local/<directory> vitalstrike82 SUSE / openSUSE 3 03-26-2008 11:04 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 10:21 AM
Why is the directory called /usr/local. jschiwal Linux - General 6 06-30-2004 03:05 PM
/usr/local/vmware ?? directory change!! paulo Linux - Security 4 07-09-2003 09:47 AM


All times are GMT -5. The time now is 10:29 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration