ls or cp: cannot stat error

mark m.roth2006 at rcn.com
Sun May 6 17:20:52 UTC 2007


Eng KC wrote:
> Hi mark
> 
> Thanks for pointing out the inode problem.
> 
> Would you able to advise how I can fix the inode problem

First, you might try

find -inum 32647 -ls

Alternatively,
find -inum 32647 -exec mv {} whatevernameIwant \;
or
find -inum 32647 -exec rm {} \;

	mark
> 
> I have check
> 
> #  ls -i /data4/v5lmts/vin_group3*
>  32647 /data4/v5lmts/vin_group3_add1.ora
> 
> #  ls -i
> 6078594 stop_all_route.sh
> 6078587 start_1-30_route.sh
> 
> # find -inum 32647 -print
> 
> # find -inum 6078594 -print
> ./stop_all_route.sh
> # find -inum 32647 -print
> 
> When find the inode number, it did not return the file name.
> 
> Thanks.
> 
> 
>> Date: Mon, 23 Apr 2007 14:20:30 -0400 (EDT)
>> From: <m.roth2006 at rcn.com>
>> Subject: Re: ls or cp: cannot stat error
>> To: General Red Hat Linux discussion list <redhat-list at redhat.com>
>> Message-ID: <20070423142030.CCX97625 at ms08.lnh.mail.rcn.net>
>> Content-Type: text/plain; charset=us-ascii
>>
>> >Date: Mon, 23 Apr 2007 13:11:11 -0400
>> >From: "Tom Kearns" <tkea at loc.gov>
>> >
>> >Check the permission on the /data4/v5lmts directory. You should have 
>> read
>> and execute bits on.
>> >
>> >>>> "Eng KC" <kceng123 at gmail.com> 4/23/2007 9:13 AM >>>
>> >hi All,
>> >
>> >This is a resend.
>> >
>> >When I do a ls * like below
>> >
>> >[oracle at db]$ ls -l /data4/v5lmts/vin_group*
>> >-rw-r-----    1 oracle   dba      734072832 Apr 12 10:22
>> <snip>
>> >I can see the file, but if I do a  ls /path/filename like below
>> >
>> >[oracle at db]$ ls /data4/v5lmts/vin_group3_add1.ora
>> >ls: /data4/v5lmts/vin_group3_add1.ora: No such file or directory
>>
>> Try ls -i, then you can use find ... -i <inode> to rename it, or delete
>> it, whatever.
>>
>>     mark
>>
>>




More information about the redhat-list mailing list