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

Re: little storage space conundrum

#11 Post by argonaut459 »

DukeComposed wrote: Mon Mar 11, 2024 12:13 pm it's probably snapshots.
Now thats an idea. Opening timeshift, I got 6 Snapshots
3 I made after the initial install steps (totally fresh, setup like it want it, yada yada yada) and 3 automatic ones from the last updates. Considering the 3 last updates all probably have the 88GB /home filesize, and the first manually made are smaller. It kind of adds up to easily 370GB currently used by last few snapshots + current home + current /

I never considered these, as I never saw a snapshot folder, like I do on my GF laptop that is running ext4

....

than again ..... I can't recall setting up timeshift to save / and /home during automatic ones, but than again, maybe thats BTRFS.
If I delete one of the most recent ones, I should free up roughly 88GB, right?

Let's try that :)

EDIT:

No, that didn't work
I checked the files via timeshift program, that opened the snapshot in a root thunar.
19,1GB root +149,7 GB /home = 168,8GB
after deleting this one snapshot, I should have roughly 271,2GB used

Nope

Code: Select all

 sudo btrfs filesystem show /
[sudo] Passwort für punisher:     
Label: 'XFCE'  uuid: 7a86bd5b-d3a6-45ae-9a0d-45b813ee884f
	Total devices 1 FS bytes used 441.69GiB
	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 441.69GiB
	devid    1 size 453.71GiB used 449.02GiB path /dev/sdc3
Thank you very much in advance :heart:
Linux noob being grateful for help and assistance.

MXRobo
Posts: 1839
Joined: Thu Nov 14, 2019 12:09 pm

Re: little storage space conundrum

#12 Post by MXRobo »

Just curious, does lsblk -f help at all?
Although I know it's not directly related to btrfs's peculiarities.
EDIT btrfs's snapshots maybe.

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

Re: little storage space conundrum

#13 Post by DukeComposed »

argonaut459 wrote: Mon Mar 11, 2024 12:51 pm I never considered these, as I never saw a snapshot folder, like I do on my GF laptop that is running ext4

than again ..... I can't recall setting up timeshift to save / and /home during automatic ones, but than again, maybe thats BTRFS.
If I delete one of the most recent ones, I should free up roughly 88GB, right?

Let's try that :)

EDIT:

No, that didn't work
"sudo btrfs subvolume list /home" should give you a list of the snapshots under /home and their path locations, which are probably defined by Timeshift. I'm sorry, I don't know how Timeshift names btrfs snapshots. I know that ZFS performs incremental snapshots, meaning if I have 88 GiB of data and I make one snapshot, then add 2 more GiB of data and snapshot it again, the second snapshot would only store the difference between the first snapshot and the second snapshot. So I'd have two snapshots of 88 and 2 GiB, respectively.

I'm going to guess btrfs snapshots work similarly, but again, I'm not too familiar with btrfs or how Timeshift uses it. If "sudo btrfs subvolume list /something" for / or for /home give you a list of different subvolumes with paths that don't match what you've assigned in /etc/fstab, I think you can check how much space each subvolume snapshot is consuming with "sudo du -sh pathname", where the pathname is shown in "sudo btrfs subvolume" relative to the /something it was given.

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

Re: little storage space conundrum

#14 Post by argonaut459 »

MXRobo wrote: Mon Mar 11, 2024 1:05 pm Just curious, does lsblk -f help at all?

Code: Select all

lsblk -f
NAME FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINT
sda                                                                         
├─sda1
│    ntfs         Programme
│                       3C1C039A1C034DF8                                    
├─sda2
│    ntfs         Daten 8E141E9F141E89FB                                    
└─sda3
     ntfs         Downloads
                        BEBA1F77BA1F2C01                                    
sdb                                                                         
├─sdb1
│    ntfs         System-reserviert
│                       DCDC6BDDDC6BB106                                    
├─sdb2
│    ntfs         Windows
│                       B4527FE2527FA7AE                                    
└─sdb3
     ntfs         SchnellProgramme
                        7406B93A06B8FE64                                    
sdc                                                                         
├─sdc1
│    vfat   FAT32 EFI System
│                       3616-8F68                              97,9M     1% /boot/efi
├─sdc2
│    swap   1     swap  e8c81ca5-fd29-406a-a2c7-cc31daf4f878                [SWAP]
├─sdc3
│    btrfs        XFCE  7a86bd5b-d3a6-45ae-9a0d-45b813ee884f   10,9G    97% /home
└─sdc4
     btrfs        KDE   0d027b95-242b-48ba-ba87-826a479cdaae                
sr0
I'd say that doesn't show us anything new. :(

Code: Select all

sudo btrfs subvolume list /home
[sudo] Passwort für punisher:     
ID 256 gen 979711 top level 5 path @
ID 257 gen 979711 top level 5 path @home
ID 271 gen 977720 top level 5 path timeshift-btrfs/snapshots/2022-12-31_19-20-09/@
ID 489 gen 977720 top level 5 path timeshift-btrfs/snapshots/2023-01-20_15-17-25/@
ID 490 gen 41472 top level 5 path timeshift-btrfs/snapshots/2023-01-20_15-17-25/@home
ID 1102 gen 977720 top level 5 path timeshift-btrfs/snapshots/2023-07-24_21-30-17/@
ID 1103 gen 423402 top level 5 path timeshift-btrfs/snapshots/2023-07-24_21-30-17/@home
ID 1295 gen 977720 top level 5 path timeshift-btrfs/snapshots/2023-12-16_19-47-42/@
ID 1296 gen 773869 top level 5 path timeshift-btrfs/snapshots/2023-12-16_19-47-42/@home
ID 1432 gen 977720 top level 5 path timeshift-btrfs/snapshots/2024-02-15_20-00-46/@
ID 1433 gen 977760 top level 5 path timeshift-btrfs/snapshots/2024-02-15_20-00-46/@home
my /etc/fstab

Code: Select all

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

/dev/sdc3	/	btrfs	subvol=@,ssd,discard=async,noatime	1	1
#Entry for /dev/sdc1 :
UUID=3616-8F68	/boot/efi	vfat	noatime,dmask=0002,fmask=0113	0	0
/dev/sdc3	/home	btrfs	subvol=@home,ssd,discard=async,noatime	1	2
#Entry for /dev/sdc2 :
UUID=e8c81ca5-fd29-406a-a2c7-cc31daf4f878	swap	swap	noatime	1	2
sorry, the pathname command somehow doesn't get me anything. Always says file or directory not found. Here a few tries with the last timeshift entry in the list.

Code: Select all

ID 1432 gen 977720 top level 5 path timeshift-btrfs/snapshots/2024-02-15_20-00-46/@
ID 1433 gen 977760 top level 5 path timeshift-btrfs/snapshots/2024-02-15_20-00-46/@home
punisher@mxXFCE:~
$ sudo du -sh path timeshift-btrfs/snapshots/2024-02-15_20-00-46/@home
du: Zugriff auf 'path' nicht möglich: Datei oder Verzeichnis nicht gefunden
du: Zugriff auf 'timeshift-btrfs/snapshots/2024-02-15_20-00-46/@home' nicht möglich: Datei oder Verzeichnis nicht gefunden
punisher@mxXFCE:~
$ sudo du -sh timeshift-btrfs/snapshots/2024-02-15_20-00-46/@home
du: Zugriff auf 'timeshift-btrfs/snapshots/2024-02-15_20-00-46/@home' nicht möglich: Datei oder Verzeichnis nicht gefunden
punisher@mxXFCE:~
$ sudo du -sh timeshift-btrfs/snapshots/2024-02-15_20-00-46
du: Zugriff auf 'timeshift-btrfs/snapshots/2024-02-15_20-00-46' nicht möglich: Datei oder Verzeichnis nicht gefunden
If the timeshift snapshots took up al the space, deleting one should have freed up some space, right? Cause it didn't yesterday.
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

#15 Post by DukeComposed »

argonaut459 wrote: Tue Mar 12, 2024 6:39 am

Code: Select all

sudo btrfs subvolume list /home
[sudo] Passwort für punisher:     
ID 256 gen 979711 top level 5 path @
ID 257 gen 979711 top level 5 path @home
ID 271 gen 977720 top level 5 path timeshift-btrfs/snapshots/2022-12-31_19-20-09/@
ID 489 gen 977720 top level 5 path timeshift-btrfs/snapshots/2023-01-20_15-17-25/@
ID 490 gen 41472 top level 5 path timeshift-btrfs/snapshots/2023-01-20_15-17-25/@home
ID 1102 gen 977720 top level 5 path timeshift-btrfs/snapshots/2023-07-24_21-30-17/@
ID 1103 gen 423402 top level 5 path timeshift-btrfs/snapshots/2023-07-24_21-30-17/@home
ID 1295 gen 977720 top level 5 path timeshift-btrfs/snapshots/2023-12-16_19-47-42/@
ID 1296 gen 773869 top level 5 path timeshift-btrfs/snapshots/2023-12-16_19-47-42/@home
ID 1432 gen 977720 top level 5 path timeshift-btrfs/snapshots/2024-02-15_20-00-46/@
ID 1433 gen 977760 top level 5 path timeshift-btrfs/snapshots/2024-02-15_20-00-46/@home
These are your subvolumes. Clearly there's a timeshift-btrfs/snapshots subvolume beneath /home.
sorry, the pathname command somehow doesn't get me anything. Always says file or directory not found. Here a few tries with the last timeshift entry in the list.
"pathname" isn't a command. I used it as a placeholder for running commands like, for example, "sudo btrfs filesystem du /path/to/some/subvolume/snapshot". Always check "btrfs help" for exact syntax if you aren't sure or if someone on an online forum gives you contradictory instructions, because I could always be misremembering something.

Code: Select all

$ sudo du -sh path timeshift-btrfs/snapshots/2024-02-15_20-00-46/@home
$ sudo du -sh timeshift-btrfs/snapshots/2024-02-15_20-00-46/@home
$ sudo du -sh timeshift-btrfs/snapshots/2024-02-15_20-00-46
du: Zugriff auf 'timeshift-btrfs/snapshots/2024-02-15_20-00-46' nicht möglich: Datei oder Verzeichnis nicht gefunden
If the timeshift snapshots took up al the space, deleting one should have freed up some space, right? Cause it didn't yesterday.
Das ist nicht sehr gut. Ent schuldegang Sie. I don't think timeshift is going to put /home snapshots under ~.

The one thing I haven't seen yet is the output when you run "sudo ls -la /home". I really think that if timeshift-btrfs is a subvolume of /home, you should check for the presence of /home/timeshift-btrfs and run du against it. You have a good understanding of the tools to track disk usage, you just need to find the right path where timeshift is keeping its snapshots. It should be "path you gave to the 'btrfs subvolume list' command" + "/" + "path of the listed subvolume".

Edit: fixed quoting

MXRobo
Posts: 1839
Joined: Thu Nov 14, 2019 12:09 pm

Re: little storage space conundrum

#16 Post by MXRobo »

Thanks - I wondered if lsblk -f would work with btrfs - I know nothing about it.

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

Re: little storage space conundrum

#17 Post by argonaut459 »

Well if I open a snapshot in timeshift, thunar says it is in this location
/run/timeshift/100755/backup/timeshift-btrfs/snapshots/

as I said, I already deleted one of the 3, yet it didn't change the used space on the partition
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

#18 Post by DukeComposed »

argonaut459 wrote: Tue Mar 12, 2024 11:49 am Well if I open a snapshot in timeshift, thunar says it is in this location
/run/timeshift/100755/backup/timeshift-btrfs/snapshots/

as I said, I already deleted one of the 3, yet it didn't change the used space on the partition
And what are the sizes of those subvolumes? As I said, if btrfs performs incremental backups, the amount of data a snapshot consumes may not be the same size as the data in that snapshot if there are existing snapshots that also contain the same content.

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

Re: little storage space conundrum  [Solved]

#19 Post by argonaut459 »

argonaut459 wrote: Mon Mar 11, 2024 12:51 pm
DukeComposed wrote: Mon Mar 11, 2024 12:13 pm
No, that didn't work
I checked the files via timeshift program, that opened the snapshot in a root thunar.
19,1GB root +149,7 GB /home = 168,8GB
after deleting this one snapshot, I should have roughly 271,2GB used
As I said earlier, the latest snapshot was about 170GB.

With MX23 I switched over to ext4, let's wait and see if the issue arises there too. Than it might be a wrong setting in the automated timeshift snaptshot script.
Thank you very much in advance :heart:
Linux noob being grateful for help and assistance.

Post Reply

Return to “General”