WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: df can't see size and usage of rootfs - MSI Wind U100 - TC 6.2 x86  (Read 10289 times)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Since 6.0 I can't see the current size / usage of  rootfs  "/" .
I noticed this isn't working anymore since Conky under TC5.x and below was able to display that the usage increase if I copy lots of data  to  /tmp . Not so under 6.x.

I didn't gave it much attention, sorry. I thought I'd have to fix my conky config but never did.

Recently I prepared a USB flash drive to boot Tiny Core for use on other computers with the exact same setup, extensions, even the same backup file.

On those computers I tested the USB flash drive on, Conky and df show the usage of rootfs correctly.
It's just my box that's acting strange. Kinda old MSI Wind U100 netbook.
This is also true If I boot with  base norestore  boot codes.

By the way, the pc speaker doesn't work either.
Can anyone tell me where I should start digging?
Might I need to recompile kernel and/or modules with some special netbook settings (if something like that exists).

busybox df -a:
Code: [Select]
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                       0         0         0   0% /
proc                         0         0         0   0% /proc
sysfs                        0         0         0   0% /sys
devpts                       0         0         0   0% /dev/pts
tmpfs                  1031380         0   1031380   0% /dev/shm
fusectl                      0         0         0   0% /sys/fs/fuse/connections
/dev/sda3             17869132  16300376    637992  96% /mnt/sda3
...

df -a with coreutils.tcz installed:
Code: [Select]
Filesystem      Size  Used Avail Use% Mounted on
rootfs             0     0     0    - /
proc               0     0     0    - /proc
sysfs              0     0     0    - /sys
devpts             0     0     0    - /dev/pts
tmpfs          1008M     0 1008M   0% /dev/shm
fusectl            0     0     0    - /sys/fs/fuse/connections
/dev/sda3        18G   16G  624M  97% /mnt/sda3
...
Download a copy and keep it handy: Core book ;)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: df can't see size and usage of rootfs - MSI Wind U100 - TC 6.2 x86
« Reply #1 on: May 15, 2015, 09:09:29 AM »
Show us the output of 'free' and 'showbootcodes'.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: df can't see size and usage of rootfs - MSI Wind U100 - TC 6.2 x86
« Reply #2 on: May 15, 2015, 09:37:16 AM »
free
Code: [Select]
             total         used         free       shared      buffers
Mem:       2062760       758076      1304684            0       101004
-/+ buffers:             657072      1405688
Swap:       472900            0       472900

showbootcodes
Code: [Select]
root=/dev/sda3 initrd=/tce-6.x/boot/core62.gz,/tce-6.x/boot/more-test-62.gz,/tce-6.x/boot/fonts-test.gz,/tce-6.x/boot/xorg.gz,/tce-6.x/boot/intel.gz  vga=788 video=vesafb:ywrap,mtrr:3  logo.nologo  quiet loglevel=4  mydata=myxorg  kmap=qwertz/de-latin1  noutc tz=CET-1CEST,M3.5.0,M10.5.0/3  tce=UUID="cb6f8b98-91fd-4c96-b115-3d2bb9cb3e57"/tce-6.x  laptop  nodhcp  desktop=openbox  blacklist=pcmcia,ssb,b43,bcma,rt2860sta,bluetooth,btusb,pcspkr   BOOT_IMAGE=/tce-6.x/boot/vmlinuz
Download a copy and keep it handy: Core book ;)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: df can't see size and usage of rootfs - MSI Wind U100 - TC 6.2 x86
« Reply #3 on: May 15, 2015, 10:00:36 AM »
You are not running a standard core system.  You are loading multiple initrds, and now for some reason all your RAM has been allocated to your tmpfs.
Boot a stock core and see if the problem persists.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: df can't see size and usage of rootfs - MSI Wind U100 - TC 6.2 x86
« Reply #4 on: May 15, 2015, 12:46:37 PM »
Results from stock TinyCore 6.2 iso:



Only busybox df is expected to work. Try making sure there is only one busybox in the initrds, and it is the current version.

edit: It's not clear if you tested the working USB stick on the netbook, or if the netbook results are from the hd/ssd install?
« Last Edit: May 15, 2015, 12:49:40 PM by curaga »
The only barriers that can stop you are the ones you create yourself.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11594
Re: df can't see size and usage of rootfs - MSI Wind U100 - TC 6.2 x86
« Reply #5 on: May 15, 2015, 01:20:46 PM »
Hi Misalf
Quote
By the way, the pc speaker doesn't work either.
Quote
blacklist=pcmcia,ssb,b43,bcma,rt2860sta,bluetooth,btusb,pcspkr
You blacklisted pcspkr.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: df can't see size and usage of rootfs - MSI Wind U100 - TC 6.2 x86
« Reply #6 on: May 16, 2015, 06:31:26 AM »
Quote
You are not running a standard core system.  You are loading multiple initrds
True, yet it works on other computers.

Quote
Boot a stock core and see if the problem persists.
The problem does persist. I freshly downloaded the 6.2 versions of core.gz and vmlinuz booted from /tce/boot/ without any extensions using this boot stanza via grub4dos
Code: [Select]
LABEL core62def
MENU LABEL Tiny Core 6.2 Default
KERNEL /tce/boot/vmlinuz
APPEND root=/dev/sda3 initrd=/tce/boot/core.gz  noutc tz=CET-1CEST,M3.5.0,M10.5.0/3  tce=UUID="cb6f8b98-91fd-4c96-b115-3d2bb9cb3e57"/tce  laptop  nodhcp 

Quote
edit: It's not clear if you tested the working USB stick on the netbook, or if the netbook results are from the hd/ssd install?
The results are from HDD install.
Strangely, booting from USB stick and df shows correct values!

Quote
You blacklisted pcspkr.
Yep, because it's not working anyway.
Download a copy and keep it handy: Core book ;)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: df can't see size and usage of rootfs - MSI Wind U100 - TC 6.2 x86
« Reply #7 on: May 16, 2015, 09:37:07 AM »
The problem does persist. I freshly downloaded the 6.2 versions of core.gz and vmlinuz booted from /tce/boot/ without any extensions using this boot stanza via grub4dos
Correction: I'm using extlinux on this netbook. Not grub4dos.
On the USB stick I'm using grub2.

I copied the USB install back to HDD into a seperate tce-dir to make sure I havn't done any modifications I forgot about that would make things work. Still the same result.
Download a copy and keep it handy: Core book ;)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: df can't see size and usage of rootfs - MSI Wind U100 - TC 6.2 x86
« Reply #8 on: May 16, 2015, 01:21:28 PM »
So you're thinking it's the bootloader? Use your grub2 stick, in the grub menu open the console, and boot from HD using the HD bootcodes.
The only barriers that can stop you are the ones you create yourself.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: df can't see size and usage of rootfs - MSI Wind U100 - TC 6.2 x86
« Reply #9 on: May 16, 2015, 01:37:30 PM »
That would be strange if this could actually be the case, right? I will try another bootloader later.
Currently compiling kernel and modules. I remember someone on the forum reported it would fix the not working pc speaker.

When browsing through make menuconfig I saw I can build the kernel for Atom CPU instead of 486.
Apart from the fact that it wouldn't boot on other systems, would this break compatibility with software build for 486 CPUs or just modules and firmware?
Download a copy and keep it handy: Core book ;)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: df can't see size and usage of rootfs - MSI Wind U100 - TC 6.2 x86
« Reply #10 on: May 16, 2015, 03:20:18 PM »
Are you sure /proc and /sys are mounted?

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: df can't see size and usage of rootfs - MSI Wind U100 - TC 6.2 x86
« Reply #11 on: May 16, 2015, 05:51:27 PM »
Code: [Select]
23:49:35 tc;box:/$> \ls -la
total 4
drwxr-xr-x   17 tc       staff            0 May  3 14:38 .
drwxr-xr-x   17 tc       staff            0 May  3 14:38 ..
drwxr-xr-x    2 root     root             0 May 16 16:21 bin
drwxrwxr-x   16 root     staff            0 May 16 20:38 dev
drwxr-xr-x   12 root     root             0 May 16 20:38 etc
drwxrwxr-x    3 root     staff            0 Feb 24 19:48 home
-rwxr-xr-x    1 root     root           496 May  3 18:38 init
drwxr-xr-x    4 root     root             0 Feb  9 17:42 lib
lrwxrwxrwx    1 root     root            11 May  3 14:38 linuxrc -> bin/busybox
drwxrwxr-x    8 root     staff            0 May 16 15:48 mnt
drwxrwsr-x    4 root     staff            0 May 16 15:46 opt
dr-xr-xr-x  217 root     root             0 May 16 17:45 proc
drwxrwxr-x    3 root     staff            0 May 16 16:21 root
drwxrwxr-x    4 root     staff            0 May 16 17:45 run
drwxr-xr-x    2 root     root             0 May  3 14:38 sbin
dr-xr-xr-x   12 root     root             0 May 16 17:45 sys
drwxrwxr-t    6 root     staff            0 May 16 23:45 tmp
drwxr-xr-x    9 tc       staff            0 Feb 21 01:45 usr
drwxr-xr-x    8 root     root             0 May  3 14:38 var
Download a copy and keep it handy: Core book ;)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: df can't see size and usage of rootfs - MSI Wind U100 - TC 6.2 x86
« Reply #12 on: May 17, 2015, 04:36:16 AM »
Quote
Apart from the fact that it wouldn't boot on other systems, would this break compatibility with software build for 486 CPUs or just modules and firmware?

It would only need new modules. Firmware and userspace unaffected.
The only barriers that can stop you are the ones you create yourself.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: df can't see size and usage of rootfs - MSI Wind U100 - TC 6.2 x86
« Reply #13 on: May 17, 2015, 06:17:03 AM »
Sounds good. I may try an Atom optimized kernel later then. Well, the rebuilt 486 kernel fixed nothing.

But guess what, booting my Tiny Core HDD install via grub2 on USB stick fixes it.

I guess I should update or change my bootloader.
Download a copy and keep it handy: Core book ;)

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: df can't see size and usage of rootfs - MSI Wind U100 - TC 6.2 x86
« Reply #14 on: May 17, 2015, 12:01:29 PM »
But guess what, booting my Tiny Core HDD install via grub2 on USB stick fixes it.
I guess I should update or change my bootloader.
Glad you're making progress. Just wanted to mention 'df' correctly displays rootfs usage on my TC 6.2, utilizing Grub2 for simple boot. showbootcodes output: BOOT_IMAGE=/tinycore/boot/vmlinuz nozswap showapps tce=sdb3