LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-13-2022, 04:25 PM   #1
morten lund
LQ Newbie
 
Registered: May 2022
Location: Denmark
Distribution: kubuntu 20.04
Posts: 3

Rep: Reputation: 0
Question Free up space taken by Timeshift


Newbie - I really appreciate any help.
I am using Kubuntu 20.04 on a virtual maschine VMware on win10
20 Gb virtual memory.

Timeshift is taking automatic snapshots and I frequently deleted some of them when space became low. But forgot it and after some test with groups and shared directories Kde went black. I can use the mouse but no menu. Ctrl - Alt F2 gets me into cli.

Disk usage now says 20.9 Gb and trying to restore with Timeshift says segmentation fault because of lack of free space.

How do I delete the snapshots from timeshift (5 in total and only need the first) to recover?

Where does Timeshift save the files that take up space? In /timeshift/snapshots the filesizes are only 4.0K or so.
 
Old 05-13-2022, 05:17 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Better not to mess with manual deletion. Timeshift can be used from the command line for simple actions like this. It also has a manpage (use q to quit the manpage).
Code:
man timeshift
So --list followed by --delete of the last couple should work. When you get back into your system, reset the kept count from the timeshift GUI.
 
1 members found this post helpful.
Old 05-13-2022, 07:22 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,716

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Quote:
Where does Timeshift save the files that take up space? In /timeshift/snapshots the file sizes are only 4.0K or so.
Your looking at the size of the directory not files contained within. 4096 is the size of space on the disk that is used to store the meta-information for the directory.

You might want to consider creating a separate virtual disk to store backups or enlarging the existing disk and creating a separate partition.

I assume you are using the rsync method to backup files. In Rsync mode, snapshots are created in an incremental fashion. Meaning only the changed/modified files and directories will be snapshot-ed in subsequent snapshots and unchanged files and directories will be hard linked to previous snapshots.
 
1 members found this post helpful.
Old 05-13-2022, 07:29 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
https://itsfoss.com/backup-restore-linux-timeshift/ where it says how many to keep.
 
Old 05-14-2022, 05:31 AM   #5
morten lund
LQ Newbie
 
Registered: May 2022
Location: Denmark
Distribution: kubuntu 20.04
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you all for great suggestions. Stupid me did not realize it was a directory, but good so, else might have deleted into desaster.

This morning things have worsened. Now I can still get into cli. But some rest free space must have been filled and now when I run timeshift --delete or timeshift --restore the result is: "Segmentation fault (core dumped).

Any suggestions to what to delete to free up just a little bit of memory so timeshift will run?
 
Old 05-14-2022, 05:50 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Lack of knowledge is not stupidity - don't beat yourself up.

The normal solution is to use a liveUSB (say your original Kubuntu iso) to clean up the mess. Boot that in the VMWare guest and use timeshift from there - connect to your network and install it if necessary. May (will ?) require adjustments for file paths, but should be reasonably straight-forward. Deletes only, not restores IMHO.
 
2 members found this post helpful.
Old 05-15-2022, 12:18 PM   #7
morten lund
LQ Newbie
 
Registered: May 2022
Location: Denmark
Distribution: kubuntu 20.04
Posts: 3

Original Poster
Rep: Reputation: 0
Solved


Follow up. I removed some cache which was about 200Mb. This made it possible to run sudo timeshift --list as proposed and then:
sudo timeshift --delete --snapshot '2022-10-12_16-29-08' (one of the snapshots - repeating with 2 more from the list)
After removing 3 snapshots I got free 1,8 Gb of space.
Then reboot and Plasma was back again!
Now I will limit timeshift and extend partition. Thanks all.
 
Old 05-15-2022, 12:45 PM   #8
Debian6to11
Member
 
Registered: Jan 2022
Location: Limassol, Cyprus
Distribution: Debian
Posts: 382
Blog Entries: 1

Rep: Reputation: 71
Since your problem is solved, please mark the thread as "Solved". It is in the "Thread Tools" in the first post.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help removing free space to create Raw free space nightmare55 Linux - Newbie 11 10-01-2009 03:07 AM
No free space to install but there is free space? HellBound Linux - Laptop and Netbook 6 01-23-2009 09:51 AM
Question regarding this line "Free taken as in free speech, not free beer" SHENGTON Linux - Newbie 11 01-12-2009 07:40 AM
Not enough free space on hard drive with 50g of free space??? auoq SUSE / openSUSE 5 10-13-2004 08:21 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:04 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