[wplug] Wierd df output

Alexandros Papadopoulos apapadop at cmu.edu
Thu Oct 2 09:22:47 EDT 2003


On Wednesday 01 October 2003 23:29, Gentgeen wrote:
> I'm not really sure what is happening here, but I did a disk check
> today using 'du -h' and here is the output I got.
>
> kevin at littlebox:kevin$> df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/hda6            -422422252734k  1.0k  0.0k  57% /
> /dev/hda3            -10217604087k  1.0k  0.0k  27% /boot
> /dev/hda5            -98117279635k  1.0k  0.0k  84% /home
>
> I have done a few different things since the last time I did a check,
> so I am not sure which one could have been the cause -- the only one
> that comes to mind is that I had win95 on /dev/hda1 and replaced it
> with FreeDOS.  But I only did a 'format c:' no fdisk work.
>
> Anyone have an idea what is going on???

Not really, but a couple of ideas:
1. Did you update your kernel/glibc lately?
2. Do an fsck as Don suggested.
3. Does # fdisk -l /dev/hda return reasonable results?
4. Attached, the output of $ strace df -h (which is sane :-) from my 
machine. It might be useful to compare the libraries called and the 
information read from the superblock.

-A
-- 
http://andrew.cmu.edu/~apapadop/pub_key.asc
3DAD 8435 DB52 F17B 640F  D78C 8260 0CC1 0B75 8265
-------------- next part --------------
execve("/bin/df", ["df", "-h"], [/* 27 vars */]) = 0
uname({sys="Linux", node="debian", ...}) = 0
brk(0)                                  = 0x804fb6c
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40015000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=61258, ...}) = 0
old_mmap(NULL, 61258, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40016000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200^\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1230832, ...}) = 0
old_mmap(NULL, 1236260, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40025000
old_mmap(0x4014c000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x127000) = 0x4014c000
old_mmap(0x40151000, 7460, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40151000
close(3)                                = 0
munmap(0x40016000, 61258)               = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1596976, ...}) = 0
mmap2(NULL, 1596976, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40153000
close(3)                                = 0
brk(0)                                  = 0x804fb6c
brk(0x8070b6c)                          = 0x8070b6c
brk(0)                                  = 0x8070b6c
brk(0x8071000)                          = 0x8071000
open("/etc/mtab", O_RDONLY)             = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=204, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
read(3, "/dev/hda1 / ext3 rw,errors=remou"..., 4096) = 204
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40016000, 4096)                = 0
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
write(1, "Filesystem            Size  Used"..., 55) = 55
statfs("/", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=1259426, f_bfree=353131, f_bavail=289155, f_files=640000, f_ffree=505964, f_fsid={0, 0}, f_namelen=255, f_frsize=0}) = 0
write(1, "/dev/hda1             4,9G  3,5G"..., 46) = 46
statfs("/proc", {f_type="PROC_SUPER_MAGIC", f_bsize=1024, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=0}) = 0
statfs("/dev/pts", {f_type="DEVPTS_SUPER_MAGIC", f_bsize=1024, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=0}) = 0
statfs("/data", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=4617211, f_bfree=3450097, f_bavail=3450097, f_files=2350080, f_ffree=2269565, f_fsid={0, 0}, f_namelen=255, f_frsize=0}) = 0
write(1, "/dev/hda5              18G  4,5G"..., 50) = 50
statfs("/deep", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=1201734, f_bfree=1038628, f_bavail=1026419, f_files=611648, f_ffree=602976, f_fsid={0, 0}, f_namelen=255, f_frsize=0}) = 0
write(1, "/dev/hda2             4,6G  638M"..., 50) = 50
munmap(0x40016000, 4096)                = 0
exit_group(0)                           = ?


More information about the wplug mailing list