On Thursday 26 April 2007 08:08, Paulo wrote:
> "ls -ld /etc" gives me:
> 
> drwxr-xr-x 10 root root 1152

If I correctly understand, the output actually was like

drwxr-xr-x 10 root root 1152 Apr 24  2007 /etc

> And when I try it with etc/mtab:
> 
> $ls -ld /etc/mtab
> ls: /etc/mtab: Permission Denied

I've never seen such a problem before :( It is _very_ strange that you
cannot ls /etc/mtab while being able to read /etc.

Let's run some other tests. What do they output?

Test 1.
# stat /etc/mtab

Test 2.
# cat /etc/mtab >/tmp/file
# cat /tmp/file

Test 3.
# cp /etc/mtab /tmp/file
# cat /tmp/file

I googled about the problem but found only this
http://www.linuxhelp.net/forums/index.php?act=Print&client=printer&f=3&t=518

One of possible reasons is a filesystem corruption (for example, due to
your forgetting to unmount it after building the ch.6. Did you?).

> I get output from "mount".

That's because mount tries to read /proc/mounts if it cannot read
/etc/mtab.

-- 
Nothing but perfection

Vladimir A. Pavlov
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to