LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 03:14 AM   #1
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

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, 03: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, 03:31 AM   #3
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

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 03:32 AM.
 
Old 02-11-2011, 03: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, 03:43 AM   #5
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

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, 03: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, 04:33 AM   #7
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

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, 04:40 AM   #8
MCD555
Member
 
Registered: May 2009
Location: Milan, Italy
Distribution: Ubuntu, Debian, Fedora, Oracle Linux
Posts: 109

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, 05:02 AM   #9
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

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, 05:05 AM   #10
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

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, 05:09 AM   #11
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

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, 05:23 AM   #12
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Interesting.....

What is the output of the following commands:

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

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, 05:41 AM   #14
MCD555
Member
 
Registered: May 2009
Location: Milan, Italy
Distribution: Ubuntu, Debian, Fedora, Oracle Linux
Posts: 109

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, 05:45 AM   #15
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:35 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