little storage space conundrum  [Solved]

For interesting topics. But remember this is a Linux Forum. Do not post offensive topics that are meant to cause trouble with other members or are derogatory towards people of different genders, race, color, minors (this includes nudity and sex), politics or religion. Let's try to keep peace among the community and for visitors.

No spam on this or any other forums please! If you post advertisements on these forums, your account may be deleted.

Do not copy and paste entire or even up to half of someone else's words or articles into posts. Post only a few sentences or a paragraph and make sure to include a link back to original words or article. Otherwise it's copyright infringement.

You can talk about other distros here, but no MX bashing. You can email the developers of MX if you just want to say you dislike or hate MX.
Message
Author
User avatar
argonaut459
Posts: 527
Joined: Tue Oct 04, 2022 11:49 am

little storage space conundrum

#1 Post by argonaut459 »

Code: Select all

System:    Kernel: 6.0.0-6mx-amd64 [6.0.12-1~mx21+1] x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/@/boot/vmlinuz-6.0.0-6mx-amd64 root=UUID=<filter> ro 
           rootflags=subvol=@ quiet splash 
           Desktop: Xfce 4.18.1 tk: Gtk 3.24.24 info: xfce4-panel, plank wm: xfwm 4.18.0 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21.3_ahs_x64 Wildflower September 18  2022 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Desktop Mobo: MSI model: Z97A GAMING 6 (MS-7917) v: 2.0 serial: <filter> 
           UEFI: American Megatrends v: 10.2 date: 08/11/2015 
CPU:       Info: Quad Core model: Intel Core i5-4690K bits: 64 type: MCP arch: Haswell family: 6 
           model-id: 3C (60) stepping: 3 microcode: 28 cache: L2: 6 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 27998 
           Speed: 3500 MHz min/max: 800/3500 MHz Core speeds (MHz): 1: 3500 2: 3500 3: 3500 
           4: 3500 
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled 
           Type: mds mitigation: Clear CPU buffers; SMT disabled 
           Type: meltdown mitigation: PTI 
           Type: mmio_stale_data status: Unknown: No mitigations 
           Type: retbleed status: Not affected 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW, STIBP: disabled, 
           RSB filling, PBRSB-eIBRS: Not affected 
           Type: srbds mitigation: Microcode 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: NVIDIA GM204 [GeForce GTX 970] vendor: eVga.com. driver: nouveau v: kernel 
           bus-ID: 02:00.0 chip-ID: 10de:13c2 class-ID: 0300 
           Display: x11 server: X.Org 1.20.14 compositor: xfwm4 v: 4.18.0 driver: 
           loaded: modesetting unloaded: fbdev,vesa display-ID: :0.0 screens: 1 
           Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
           s-diag: 582mm (22.9") 
           Monitor-1: DVI-I-1 res: 1920x1080 hz: 60 dpi: 92 size: 531x298mm (20.9x11.7") 
           diag: 609mm (24") 
           OpenGL: renderer: NV124 v: 4.3 Mesa 22.0.5 direct render: Yes 
Audio:     Device-1: Intel 9 Series Family HD Audio vendor: Micro-Star MSI driver: snd_hda_intel 
           v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8ca0 class-ID: 0403 
           Device-2: NVIDIA GM204 High Definition Audio vendor: eVga.com. driver: snd_hda_intel 
           v: kernel bus-ID: 02:00.1 chip-ID: 10de:0fbb class-ID: 0403 
           Sound Server-1: ALSA v: k6.0.0-6mx-amd64 running: yes 
           Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:   Device-1: Qualcomm Atheros Killer E220x Gigabit Ethernet vendor: Micro-Star MSI 
           driver: alx v: kernel port: d000 bus-ID: 04:00.0 chip-ID: 1969:e091 class-ID: 0200 
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 2.96 TiB used: 443.45 GiB (14.6%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 850 EVO 250GB size: 232.89 GiB 
           block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> 
           rev: 2B6Q scheme: MBR 
           ID-2: /dev/sdb maj-min: 8:16 vendor: Toshiba model: DT01ACA200 size: 1.82 TiB 
           block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 
           serial: <filter> rev: ABB0 scheme: MBR 
           ID-3: /dev/sdc maj-min: 8:32 vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB 
           block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> 
           rev: 033 scheme: GPT 
Partition: ID-1: / raw-size: 453.71 GiB size: 453.71 GiB (100.00%) used: 443.45 GiB (97.7%) 
           fs: btrfs dev: /dev/sdc3 maj-min: 8:35 
           ID-2: /boot/efi raw-size: 100 MiB size: 98.4 MiB (98.42%) used: 562 KiB (0.6%) fs: vfat 
           dev: /dev/sdc1 maj-min: 8:33 
           ID-3: /home raw-size: 453.71 GiB size: 453.71 GiB (100.00%) used: 443.45 GiB (97.7%) 
           fs: btrfs dev: /dev/sdc3 maj-min: 8:35 
Swap:      Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 24 GiB used: 0 KiB (0.0%) priority: -2 
           dev: /dev/sdc2 maj-min: 8:34 
Sensors:   System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nouveau temp: 36.0 C 
           Fan Speeds (RPM): N/A gpu: nouveau fan: 678 
Repos:     Packages: 2477 note: see --pkg apt: 2471 lib: 1337 flatpak: 6 
           No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list 
           1: deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ bullseye main
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://debian.netcologne.de/debian/ bullseye-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://debian.netcologne.de/debian/ bullseye main contrib non-free
           2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/lutris.list 
           1: deb https://download.opensuse.org/repositories/home:/strycore/Debian_11/ /
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://nl.mxrepo.com/mx/repo/ bullseye main non-free
           2: deb http://nl.mxrepo.com/mx/repo/ bullseye ahs
           Active apt repos in: /etc/apt/sources.list.d/spotify.list 
           1: deb http://repository.spotify.com stable non-free
           Active apt repos in: /etc/apt/sources.list.d/vivaldi.list 
           1: deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main
Info:      Processes: 246 Uptime: 28m wakeups: 1 Memory: 31.3 GiB used: 2.2 GiB (7.0%) 
           Init: SysVinit v: 2.96 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: N/A 
           alt: 10 Client: shell wrapper v: 5.1.4-release inxi: 3.3.06 
Boot Mode: UEFI
Hi folks, got a little mystery for you before I erase it all and do a fresh MX23 install next week.
as you can see:
I got MX installed on

Code: Select all

ID-3: /dev/sdc maj-min: 8:32 vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB 
           block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> 
           rev: 033 scheme: GPT 
And it is recorded as full to the brim ~ 98%

Code: Select all

Partition: ID-1: / raw-size: 453.71 GiB size: 453.71 GiB (100.00%) used: 443.45 GiB (97.7%) 
           fs: btrfs dev: /dev/sdc3 maj-min: 8:35 
           ID-2: /boot/efi raw-size: 100 MiB size: 98.4 MiB (98.42%) used: 562 KiB (0.6%) fs: vfat 
           dev: /dev/sdc1 maj-min: 8:33 
           ID-3: /home raw-size: 453.71 GiB size: 453.71 GiB (100.00%) used: 443.45 GiB (97.7%) 
           fs: btrfs dev: /dev/sdc3 maj-min: 8:35 
The weird part is, if I check used space in thunar: I get 17,4 GB for root and 88,7 GB for home. Which makes more sense than an occupied 443GB.

some terminal info:

Code: Select all

df -h
df: /run/user/1000/doc: Die Operation ist nicht erlaubt
Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
udev             16G       0   16G    0% /dev
tmpfs           3,2G    2,8M  3,2G    1% /run
/dev/sdc3       454G    444G  9,8G   98% /
tmpfs           5,0M    8,0K  5,0M    1% /run/lock
tmpfs            12G    119M   11G    2% /dev/shm
/dev/sdc3       454G    444G  9,8G   98% /home
/dev/sdc1        99M    562K   98M    1% /boot/efi
cgroup           12K       0   12K    0% /sys/fs/cgroup
tmpfs           3,2G     12K  3,2G    1% /run/user/1000

Code: Select all

du -s -h * | sort -nr
584K	Calibre Library
272K	timeshift-autosnap-apt
176K	kodi_crashlog-20230212_001636.log
173M	jdownloader
88K	System.html
20K	Schreibtisch
14G	Videos
14G	Dokumente
8,0K	nano.save
6,0M	Bilder
6,0G	Downloads
4,2G	MediathekView
4,0K	Schreibtisch (symlink)
4,0K	PlayOnLinux's virtual drives
2,9M	sysinfo_crash_20230930.zip
1,6G	Musik
1,2G	Games
0	Vorlagen
0	Öffentlich
0	Documents
0	Calibre-Bibliothek
and of root

Code: Select all

sudo du -s -h * | sort -nr
[sudo] Passwort für punisher:     
du: Zugriff auf 'proc/8593/task/8593/fd/4' nicht möglich: Datei oder Verzeichnis nicht gefunden
du: Zugriff auf 'proc/8593/task/8593/fdinfo/4' nicht möglich: Datei oder Verzeichnis nicht gefunden
du: Zugriff auf 'proc/8593/fd/3' nicht möglich: Datei oder Verzeichnis nicht gefunden
du: Zugriff auf 'proc/8593/fdinfo/3' nicht möglich: Datei oder Verzeichnis nicht gefunden
du: Zugriff auf 'run/user/1000/doc' nicht möglich: Keine Berechtigung
du: Zugriff auf 'run/user/1000/gvfs' nicht möglich: Keine Berechtigung
457M	boot.backup
457M	boot
94M	root
89G	home
39M	etc
16K	tmp
9,3G	usr
4,7G	var
4,0K	vmlinuz.old
4,0K	vmlinuz
4,0K	sbin
4,0K	libx32
4,0K	lib64
4,0K	lib
4,0K	initrd.img.old
4,0K	initrd.img
4,0K	bin
2,8M	run
1,6G	opt
0	sys
0	pulse
0	proc
0	mnt
0	media
0	dev
These also make way more sense than the reported used up space.

Whats going on here? How would I found out what is actually hogging up all that space?
I know, kind of a mute question as I'm about to reformat the whole SSD, but still something I can't wrap my head around.
Is it cause of the BTRFS and subvolumes? Is it cause of the borked up OS install on the other half of the SSD?

I'd appreciate it if someone could tell me how to find out what is happining here.
Cheers, and have a great start into the week.
Thank you very much in advance :heart:
Linux noob being grateful for help and assistance.

User avatar
j2mcgreg
Global Moderator
Posts: 7125
Joined: Tue Oct 23, 2007 12:04 pm

Re: little storage space conundrum

#2 Post by j2mcgreg »

What the QSI is reporting is that 100% of the drive has been allocated to the Primary partition and then it goes on to report on how the Primary has been subdivided into /esp. /root and /home partitions. The usage figures are for how much data has been written to these secondary partitions.
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;

In Linux, newer isn't always better. The best solution is the one that works.

User avatar
argonaut459
Posts: 527
Joined: Tue Oct 04, 2022 11:49 am

Re: little storage space conundrum

#3 Post by argonaut459 »

Sorry I don't really understand what you mean.
So you tell me, that thunar and all others are reporting 443 GB used cause that is the AMOUNT of data that has been written to it?
Like in the "guaranteed TBW (Total Bytes Written)" of a manufacturer?

If so, smartctl gives me a
TBW of either 103,74 TB (if considering 4096 bytes sector size)
or 12,97 TB (considering 512 bytes sector size)
with the ~ 13 TB written being more what I "feel" about the drive as I think I mainly used to play with Linux and a few other things over the last couple years.

Or did I totally misunderstand you?

EDIT:
using conky with the predefined command

Code: Select all

${color}root:${alignr}${fs_used /} ${color3} /${color} ${fs_size /}
states the 443GB used, too. That was the first I saw it and figured something has be up.

On the laptop of my GF with ext4 and a / and /home partition conky reports these used sizes correct
Thank you very much in advance :heart:
Linux noob being grateful for help and assistance.

User avatar
dolphin_oracle
Developer
Posts: 22647
Joined: Sun Dec 16, 2007 12:17 pm

Re: little storage space conundrum

#4 Post by dolphin_oracle »

maybe check with a btrfs specific tool. its possible the data is just reported incorrectly by the usual tools.

Code: Select all

btrfs filesystem df /
I think should do it.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

User avatar
argonaut459
Posts: 527
Joined: Tue Oct 04, 2022 11:49 am

Re: little storage space conundrum

#5 Post by argonaut459 »

Code: Select all

$ btrfs filesystem df /
Data, single: total=446.01GiB, used=440.99GiB
System, single: total=4.00MiB, used=64.00KiB
Metadata, single: total=3.01GiB, used=1.99GiB
GlobalReserve, single: total=512.00MiB, used=0.00B
I have to admit, I don't know what that is telling me now.
Thank you very much in advance :heart:
Linux noob being grateful for help and assistance.

User avatar
dolphin_oracle
Developer
Posts: 22647
Joined: Sun Dec 16, 2007 12:17 pm

Re: little storage space conundrum

#6 Post by dolphin_oracle »

hmm maybe wrong command.

try

Code: Select all

btrfs filesystem show /
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

User avatar
DukeComposed
Posts: 1499
Joined: Thu Mar 16, 2023 1:57 pm

Re: little storage space conundrum

#7 Post by DukeComposed »

argonaut459 wrote: Mon Mar 11, 2024 11:42 am

Code: Select all

$ btrfs filesystem df /
Data, single: total=446.01GiB, used=440.99GiB
System, single: total=4.00MiB, used=64.00KiB
Metadata, single: total=3.01GiB, used=1.99GiB
GlobalReserve, single: total=512.00MiB, used=0.00B
I have to admit, I don't know what that is telling me now.
Because you're using btrfs, there are a few different btrfs commands you can use.

"sudo btrfs filesystem show /" and "sudo btrfs filesystem show /home" can also tell you the total amount of space used by a given subvolume if you provide its mountpoint. gparted can also give you this same information.

User avatar
argonaut459
Posts: 527
Joined: Tue Oct 04, 2022 11:49 am

Re: little storage space conundrum

#8 Post by argonaut459 »

Code: Select all

Label: 'XFCE'  uuid: 7a86bd5b-d3a6-45ae-9a0d-45b813ee884f
	Total devices 1 FS bytes used 442.97GiB
	devid    1 size 453.71GiB used 449.02GiB path /dev/sdc3

punisher@mxXFCE:/
$ sudo btrfs filesystem show /home
Label: 'XFCE'  uuid: 7a86bd5b-d3a6-45ae-9a0d-45b813ee884f
	Total devices 1 FS bytes used 442.97GiB
	devid    1 size 453.71GiB used 449.02GiB path /dev/sdc3
yet still. even if I make a luckyBackup backup, they are rather the ~18GB and ~88GB that thunar and the normal du command show.
I would not bother of this, if it showed like that from the very start - I only started paying attention when my browser startet stuttering a bit, and especially downloadprograms like jdownloader telling me that my drive is full.
Thank you very much in advance :heart:
Linux noob being grateful for help and assistance.

User avatar
DukeComposed
Posts: 1499
Joined: Thu Mar 16, 2023 1:57 pm

Re: little storage space conundrum

#9 Post by DukeComposed »

argonaut459 wrote: Mon Mar 11, 2024 12:04 pm yet still. even if I make a luckyBackup backup, they are rather the ~18GB and ~88GB that thunar and the normal du command show.
Bear in mind btrfs is no ordinary file system. It stores more than just files. You also need to consider the space that snapshots consume. 88 GiB may not seem like much, but on a 440-ish GiB partition you can only have five of them before you run out of space. "du -s /home" should show you the largest directories under /home if there's more than one user on the machine. If you only have 88 GiB in one /home directory but there's still a missing 400 GiB of consumed space, it's probably snapshots.

User avatar
j2mcgreg
Global Moderator
Posts: 7125
Joined: Tue Oct 23, 2007 12:04 pm

Re: little storage space conundrum

#10 Post by j2mcgreg »

There's something else that may be adding to your confusion. Prior to 2008, a gigabyte (GB) equalled a thousand and twenty-four megabytes, but in that year the IEC redefined it as 1 GB = 1000 MB and renamed the former designation a Gibbybyte (GiB).
The folks that create bioses and Linux developers stayed with the mathematically correct GiB format while the computer manufacturers immediately switched to the new GB definition. It's really easy for an average user to confuse the two definitions IE your computer was advertised as having 500 GB storage but the bios and QSI say that it has 488 GiB. John Q. Public rarely notices the 'i' and then wonders where the extra space went --> it's there, he just isn't experienced enough yet to see it.

In your post (above) you say:
If so, smartctl gives me a
TBW of either 103,74 TB (if considering 4096 bytes sector size)
or 12,97 TB (considering 512 bytes sector size)
with the ~ 13 TB written being more what I "feel" about the drive as I think I mainly used to play with Linux and a few other things over the last couple years.
It's because Thunar and smartctl use the TiB and GiB definitions while hard drive manufacturers use TB and GB respectively.
1 tebibyte = 1.09951 terabytes

See here for a more extensive explanation:
https://www.techtarget.com/searchstorag ... bibyte-TiB
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;

In Linux, newer isn't always better. The best solution is the one that works.

Post Reply

Return to “General”