Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Weird df -h output (symlinks are being followed)
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
pegas_
n00b
n00b


Joined: 14 Mar 2005
Posts: 11

PostPosted: Mon Mar 14, 2005 2:09 am    Post subject: Weird df -h output (symlinks are being followed) Reply with quote

I'm a pretty new gentoo user. I've been using FreeBSD most of my *nix-enabled life and about two weeks ago gave gentoo a try.
After a second reinstall everything seems to be working the way I want it to. However, I keep getting a weird problem.
When I use df -h, I get this:
Code:
[pegas]@[~] > df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/scsi/host0/bus0/target0/lun0/part5
                       19G  3.3G   15G  19% /
/dev/scsi/host0/bus0/target0/lun0/part7
                       91G  772M   86G   1% /home
tmpfs                 502M     0  502M   0% /dev/shm
/dev/scsi/host0/bus0/target0/lun0/part8
                      4.2M  -32Z 1015M 101% /hd/freebsd
/dev/scsi/host0/bus0/target0/lun0/part10
                      5.9M  -32Z  4.3G 101% /hd/freebsd/var
/dev/scsi/host0/bus0/target0/lun0/part11
                      4.2M  -32Z  1.1G 101% /hd/freebsd/tmp
/dev/scsi/host0/bus0/target0/lun0/part12
                      5.9M  -32Z   29G 101% /hd/freebsd/usr
/dev/ide/host0/bus0/target0/lun0/part1
                       54G  461M   54G   1% /hd/hda_soft
/dev/ide/host0/bus0/target0/lun0/part2
                       58G   34G   25G  58% /hd/hda_video
/dev/ide/host0/bus0/target1/lun0/part1
                      192G  168G   25G  88% /hd/hdb_music
/dev/ide/host0/bus0/target1/lun0/part2
                       42G  684M   42G   2% /hd/hdb_misc


I know that these are the locations where my fstab entries point to. But that's not supposed to be that way - that much I know. I remember getting proper output from df the previous time I installed it.
I checked out /etc/init.d/checkroot and found out that /etc/mtab is generated from /proc/mounts. The thing is, my /proc/mounts file is fine:
Code:
[pegas]@[~] > cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext2 rw,noatime 0 0
proc /proc proc rw,nodiratime 0 0
sysfs /sys sysfs rw 0 0
devfs /dev devfs rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/sda7 /home ext2 rw,noatime 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/sda8 /hd/freebsd ufs ro 0 0
/dev/sda10 /hd/freebsd/var ufs ro 0 0
/dev/sda11 /hd/freebsd/tmp ufs ro 0 0
/dev/sda12 /hd/freebsd/usr ufs ro 0 0
/dev/hda1 /hd/hda_soft vfat rw,nodiratime,gid=100,fmask=0002,dmask=0002,codepage=cp866,iocharset=cp1251 0 0
/dev/hda2 /hd/hda_video vfat rw,nodiratime,gid=100,fmask=0002,dmask=0002,codepage=cp866,iocharset=cp1251 0 0
/dev/hdb1 /hd/hdb_music vfat rw,nodiratime,gid=100,fmask=0002,dmask=0002,codepage=cp866,iocharset=cp1251 0 0
/dev/hdb2 /hd/hdb_misc vfat rw,nodiratime,gid=100,fmask=0002,dmask=0002,codepage=cp866,iocharset=cp1251 0 0
none /proc/bus/usb usbfs rw 0 0


And this is my /etc/mtab:
Code:
[pegas]@[~] > cat /etc/mtab
/dev/scsi/host0/bus0/target0/lun0/part5 / ext2 rw,noatime 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devfs /dev devfs rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/scsi/host0/bus0/target0/lun0/part7 /home ext2 rw,noatime 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/scsi/host0/bus0/target0/lun0/part8 /hd/freebsd ufs ro,ufstype=ufs2 0 0
/dev/scsi/host0/bus0/target0/lun0/part10 /hd/freebsd/var ufs ro,ufstype=ufs2 0 0
/dev/scsi/host0/bus0/target0/lun0/part11 /hd/freebsd/tmp ufs ro,ufstype=ufs2 0 0
/dev/scsi/host0/bus0/target0/lun0/part12 /hd/freebsd/usr ufs ro,ufstype=ufs2 0 0
/dev/ide/host0/bus0/target0/lun0/part1 /hd/hda_soft vfat rw,umask=002,gid=100 0 0
/dev/ide/host0/bus0/target0/lun0/part2 /hd/hda_video vfat rw,umask=002,gid=100 0 0
/dev/ide/host0/bus0/target1/lun0/part1 /hd/hdb_music vfat rw,umask=002,gid=100 0 0
/dev/ide/host0/bus0/target1/lun0/part2 /hd/hdb_misc vfat rw,umask=002,gid=100 0 0
none /proc/bus/usb usbfs rw 0 0


Just in case, here's the /etc/fstab:
Code:
[pegas]@[~] > cat /etc/fstab
# <fs>          <mountpoint>            <type>  <opts>                  <dump/pass>

# Hard drives:
# sda (160042 MB): sda1 sda2 sda3 < extended > sda4 < bsd >
# -> sda3: < sda5 sda6 sda7 >
# -> sda4: < sda8 sda9 sda10 sda11 sda12 >
# hda (120034 MB): hda1 hda2
# hdb (251000 MB): hdb1 hdb2

# Gentoo
/dev/sda1       /boot                   ext2    noauto,noatime          1 2
/dev/sda5       /                       ext2    noatime                 0 1
/dev/sda7       /home                   ext2    noatime                 1 2
/dev/sda9       swap                    swap    sw                      0 0

proc            /proc                   proc    defaults                0 0
tmpfs           /dev/shm                tmpfs   defaults                0 0

# Ubuntu
#/dev/sda6      /hd/ubuntu              ext2    noatime                 0 0
#/dev/sda2      /hd/ubuntu/boot         ext2    noatime                 0 0

# FreeBSD
/dev/sda8       /hd/freebsd/            ufs     ro,ufstype=ufs2         0 0
/dev/sda10      /hd/freebsd/var         ufs     ro,ufstype=ufs2         0 0
/dev/sda11      /hd/freebsd/tmp         ufs     ro,ufstype=ufs2         0 0
/dev/sda12      /hd/freebsd/usr         ufs     ro,ufstype=ufs2         0 0

# IDE Hard Drives
/dev/hda1       /hd/hda_soft            vfat    rw,umask=002,gid=users  0 0
/dev/hda2       /hd/hda_video           vfat    rw,umask=002,gid=users  0 0
/dev/hdb1       /hd/hdb_music           vfat    rw,umask=002,gid=users  0 0
/dev/hdb2       /hd/hdb_misc            vfat    rw,umask=002,gid=users  0 0

# Removeable devices
/dev/fd0        /media/floppy           auto    noauto                  0 0
/dev/hdc        /media/dvd              auto    ro,noauto               0 0
/dev/hdd        /media/dvdrw            auto    ro,noauto               0 0

This system, by the way (as might be noticed by the fstab) has a scsi drive and two ide hard drives. It is an amd64 and has been compiled with ACCEPT_KEYWORD="~amd64", which could potentionally be a problem. However, I have tried booting the system with the stable amd64 kernel (2.6.9-gentoo-r14) and it gives the same df -h output.

The other problem is the wrong size reported by ufs2 partitions, but that really has nothing to do with the current problem (I don't know if I should call it a bug and post it to bugzilla since it is after all a system that has been compiled with a ~amd64).

Feedback on any of the problems mentioned in this post is welcome. Thanks in advance.

P.S. Sorry if there is a solution for this issue somewhere else - I googled on this for quite a bit and was also unable to find a similar problem on this forum. A simple link to a solution would be fine (-


Last edited by pegas_ on Tue Mar 15, 2005 6:56 am; edited 1 time in total
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Mon Mar 14, 2005 2:45 am    Post subject: Reply with quote

This happens because you're running devfsd, not udev.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
pegas_
n00b
n00b


Joined: 14 Mar 2005
Posts: 11

PostPosted: Mon Mar 14, 2005 2:47 am    Post subject: Reply with quote

Hm... I thought it worked fine with devfsd before. I have not tried udev yet, but that will be the next thing I'll do. Thanks for the advice.
_________________
find / -user you -iname base -exec chown us {} \;
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Mon Mar 14, 2005 2:50 am    Post subject: Reply with quote

Oh, don't misunderstand me, there's nothing wrong with running devfsd instead of udev as such... If it's not broken, don't fix it ;-).
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
pegas_
n00b
n00b


Joined: 14 Mar 2005
Posts: 11

PostPosted: Mon Mar 14, 2005 2:52 am    Post subject: Reply with quote

In my opinion it is (-

I don't like the weird long df output and it's been bugging me for at least half a day.
_________________
find / -user you -iname base -exec chown us {} \;
Back to top
View user's profile Send private message
pegas_
n00b
n00b


Joined: 14 Mar 2005
Posts: 11

PostPosted: Mon Mar 14, 2005 2:59 am    Post subject: Reply with quote

Niice:
Code:
[pegas]@[~] > df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda5              19G  3.3G   15G  19% /
udev                  502M  2.8M  499M   1% /dev
/dev/sda7              91G  772M   86G   1% /home
tmpfs                 502M     0  502M   0% /dev/shm
/dev/sda8             4.2M  -32Z 1015M 101% /hd/freebsd
/dev/sda10            5.9M  -32Z  4.3G 101% /hd/freebsd/var
/dev/sda11            4.2M  -32Z  1.1G 101% /hd/freebsd/tmp
/dev/sda12            5.9M  -32Z   29G 101% /hd/freebsd/usr
/dev/hda1              54G  461M   54G   1% /hd/hda_soft
/dev/hda2              58G   34G   25G  58% /hd/hda_video
/dev/hdb1             192G  168G   25G  88% /hd/hdb_music
/dev/hdb2              42G  684M   42G   2% /hd/hdb_misc


Now to fix the ufs2 thing. But I guess this is not the forum to ask about this kind of bugs.
Thanks, moocha.
_________________
find / -user you -iname base -exec chown us {} \;
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Mon Mar 14, 2005 3:05 am    Post subject: Reply with quote

pegas_ wrote:
In my opinion it is (-

True, it's your system, and that's pretty much the opinion that counts :D.
pegas_ wrote:
I don't like the weird long df output and it's been bugging me for at least half a day.

Didn't want to encourage changes so I didn't say anything, but it drove me up the walls too when devfsd first started doing that... In fact, that's what caused me to switch to udev too :).
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
pegas_
n00b
n00b


Joined: 14 Mar 2005
Posts: 11

PostPosted: Mon Mar 14, 2005 3:14 am    Post subject: Reply with quote

Haha, well, I'm on udev too now. The only thing is my nvidia driver didn't get recognized on the first boot. I put it in autoload file, now my mouse doesn't work (X.org still doesn't load). Well, I guess emerging hotplug will fix that...

Update:
It wasn't the fact that the module was not loaded (I've compiled USB HID support into the kernel directly and not as a module, duh), but the fact that the mouse device has changed (or, to be more precise, the symlink /dev/mouse does not exist in udev by default). Anyways, I'm up and running again.
Thanks again for prompt reply.
_________________
find / -user you -iname base -exec chown us {} \;
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