LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-02-2023, 04:01 AM   #1
dzseti
LQ Newbie
 
Registered: May 2022
Posts: 6

Rep: Reputation: 0
16GB shows as full even though only 3.5GB in use


Quote:
df -h
shows
Code:
Filesystem                           Size  Used Avail Use% Mounted on
/dev/root                             15G   14G   12M 100% /
devtmpfs                             969M  8.0K  969M   1% /dev
tmpfs                                978M  116K  978M   1% /dev/shm
tmpfs                                978M  9.0M  969M   1% /run
tmpfs                                5.0M  4.0K  5.0M   1% /run/lock
tmpfs                                978M     0  978M   0% /sys/fs/cgroup
/dev/mmcblk2p8                       4.9M  347K  4.3M   8% /boot
tmpfs                                196M  8.0K  196M   1% /run/user/1000
tmpfs                                196M     0  196M   0% /run/user/0
while
Quote:
du -kx / | sort -rn | less
(first lines) shows:
Code:
3458796 /
2498820 /usr
1174128 /usr/lib
1054352 /usr/share
806276  /usr/lib/aarch64-linux-gnu
559456  /var
247288  /var/cache
238792  /var/cache/apt
225056  /usr/share/locale
198740  /home
198736  /home/linaro
190568  /usr/share/doc
187660  /usr/lib/aarch64-linux-gnu/dri
183944  /usr/bin
179352  /var/lib
177304  /var/cache/apt/archives
148316  /home/linaro/.cache
147356  /home/linaro/.cache/chromium
147352  /home/linaro/.cache/chromium/Default
146584  /home/linaro/.cache/chromium/Default/Code Cache
146564  /home/linaro/.cache/chromium/Default/Code Cache/js
122204  /var/lib/apt
122132  /var/lib/apt/lists
112628  /usr/share/fonts
107140  /var/log
102284  /lib
84692   /usr/share/fonts/truetype
77888   /usr/share/icons
74312   /usr/share/emacs
74264   /usr/share/emacs/26.1
73184   /usr/lib/python2.7
72984   /usr/lib/gcc
72980   /usr/lib/gcc/aarch64-linux-gnu
72976   /usr/lib/gcc/aarch64-linux-gnu/8
65860   /usr/lib/python3
65856   /usr/lib/python3/dist-packages
59900   /usr/share/emacs/26.1/lisp
56344   /lib/modules
56340   /lib/modules/4.19.193
56240   /lib/modules/4.19.193/kernel
56236   /lib/modules/4.19.193/kernel/drivers
54708   /lib/modules/4.19.193/kernel/drivers/net
54704   /lib/modules/4.19.193/kernel/drivers/net/wireless
52280   /usr/lib/python2.7/config-aarch64-linux-gnu
50100   /home/linaro/.config
49876   /home/linaro/.config/chromium
48744   /usr/include
48280   /usr/share/scratch
44276   /var/lib/dpkg
41632   /usr/share/icons/Adwaita
41396   /var/lib/dpkg/info
41316   /home/linaro/.config/chromium/Default
40312   /usr/lib/python3/dist-packages/scipy
39964   /lib/modules/4.19.193/kernel/drivers/net/wireless/rockchip_wlan
39952   /usr/lib/python3.7
37324   /usr/share/fonts/truetype/arphic
35040   /home/linaro/.config/chromium/Default/Service Worker
One deleted file (actually node) is shown as being in use with
Quote:
lsof +L1
Code:
COMMAND PID USER   FD   TYPE DEVICE SIZE/OFF NLINK NODE NAME
systemd   1 root   48u   CHR 10,242      0t0     0 1171 /dev/rfkill (deleted)
Completely lost as to where to go.

Using Debian 10 on ASUS Tinkerboard 2S
 
Old 07-02-2023, 04:16 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,541

Rep: Reputation: Disabled
(Deleted)

Last edited by fatmac; 07-02-2023 at 04:18 AM.
 
Old 07-02-2023, 04:51 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,150

Rep: Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377
did you try to reboot?
you can try ncdu -x / , probably that will give more info..
 
Old 07-02-2023, 04:10 PM   #4
dzseti
LQ Newbie
 
Registered: May 2022
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pan64 View Post
did you try to reboot?
you can try ncdu -x / , probably that will give more info..
Tried reboot many, many times.
Quote:
ncdu -x
gives the same infomration as
Quote:
du -kx / | sort -rn | less
as per my orginal question
 
Old 07-03-2023, 12:19 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,150

Rep: Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377
Quote:
Originally Posted by dzseti View Post
Tried reboot many, many times. gives the same infomration as as per my orginal question
from my side ncdu should show you the real disk usage and you can easily identify what can be [probably] removed.
You may try to check hidden files/dirs (beginning with a dot) in /.
You may try to put this card into a reader and check the content on another OS.
What kind of filesystem is it? Did you run an fsck on it?
 
Old 07-03-2023, 02:00 AM   #6
dzseti
LQ Newbie
 
Registered: May 2022
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pan64 View Post
from my side ncdu should show you the real disk usage and you can easily identify what can be [probably] removed.
You may try to check hidden files/dirs (beginning with a dot) in /.
You may try to put this card into a reader and check the content on another OS.
What kind of filesystem is it? Did you run an fsck on it?
The filesystem type for the partition in question is
Quote:
ext4
I can't run fsck, because of the following errors:

Quote:
systemd-sysctl[187]: Couldn't write 'force' to 'fsck/mode', ignoring: No such file or directory
systemd-sysctl[187]: Couldn't write 'yes' to 'fsck/repair', ignoring: No such file or directory
 
Old 07-03-2023, 10:19 AM   #7
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,851

Rep: Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224
The error message is certainly caused by a broken entry in /etc/sysctl.conf or a /etc/sysctl.d/* file.

I have no explanation for the big difference between your df and du.
I suggest to (re)boot to single-user or a rescue mode and run a fsck from there on the respective real disk device (not the /dev/root alias). And then reboot.
 
Old 07-04-2023, 12:17 AM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,377

Rep: Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755
Have you checked inodes usage ?
Code:
df -i
 
Old 07-04-2023, 02:59 AM   #9
dzseti
LQ Newbie
 
Registered: May 2022
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
Have you checked inodes usage ?
Code:
df -i
Had checked this, but the problem turned out to be that download software that should have been saving to a mounted external drive, had been saving to the local drive itself. The mount must have failed at a reboot

Because I did not test with the external drives unmounted, all I could see were the external files and some local files mixed together. I ignored these, because I thought that they were all on the external drive

Lesson learned
 
Old 07-04-2023, 03:36 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,150

Rep: Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377Reputation: 7377
that's why I suggested to put it into another computer (another OS). That will automatically rule out those things. Anyway, you might want to mark this thread solved.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Red Hat EL5.0 is detecting only 3GB though physical is 16gb manoj.linux Linux - Enterprise 4 01-13-2009 06:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration