Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
error when i do "df"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
gerni
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jul 2002
Posts: 107
Location: Austria

PostPosted: Wed Aug 28, 2002 7:33 pm    Post subject: error when i do "df" Reply with quote

after the installation i wanted to look how much diskspace is used:
df returned the following error-msg:
"df: cannot read table of mounted filesystems"

does anybody know what's the problem?

thanx, Gernot
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20054

PostPosted: Wed Aug 28, 2002 7:36 pm    Post subject: Reply with quote

OK, rac showed me this new 'toy', so I'm curious to see how helpful it is. What is the output from 'strace -eopen -f df'? You probably need to emerge strace first.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Aug 28, 2002 7:42 pm    Post subject: Reply with quote

Are you booted from your newly compiled kernel, or still inside a chroot jail?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
gerni
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jul 2002
Posts: 107
Location: Austria

PostPosted: Wed Aug 28, 2002 8:22 pm    Post subject: Reply with quote

i already booted my system without an error

strace -eopen -f df:

open("/etc/ld.so.preload", O_RDONLY) = 3
open("/lib/libsandbox.so", O_RDONLY) = 3
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/libc.so.6", O_RDONLY) = 3
open("/lib/libdl.so.2", O_RDONLY) = 3
open("/etc/mtab", O_RDONLY) = 3
df: cannot read table of mounted filesystems

---
my system is a new installed gentoo 1.4 stage 1 (booted from an 1.2iso)
used compiler: 3.2 final, CFLAGS="-march=i686 -O3 -pipe"
---
what i probably should mention:
on the first reboots the checkroot init-script faild (and scripts that depend on checkroot). Then i added an echo "" at the end of the checkroot-script (before the last "fi") and all scrips started without an error at the next reboot (i don't know why, but it works).
i don't know exactly what for this checkroot-script is, but propably it don't start correctly. i don't know if this is a problem...
Back to top
View user's profile Send private message
gerni
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jul 2002
Posts: 107
Location: Austria

PostPosted: Wed Aug 28, 2002 8:33 pm    Post subject: Reply with quote

i see that mtab is an empty file!
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Aug 28, 2002 8:36 pm    Post subject: Reply with quote

gerni wrote:
i don't know exactly what for this checkroot-script is, but propably it don't start correctly. i don't know if this is a problem...

This is definitely related.../etc/init.d/checkroot makes /etc/mtab.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
gerni
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jul 2002
Posts: 107
Location: Austria

PostPosted: Thu Aug 29, 2002 8:35 am    Post subject: Reply with quote

ohh, i see....
then i'll try to get checkroot to work ;)

thanks for your help!

gernot
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum