Skip Navigation

Search

How to copy existing Timeshift Snapshot to another drive?

I want to copy (not move) my Timeshift Snapshots (Rsync) from my existing drive to another drive. Both drives are ext4. As far as I searched I am not able to find any viable results.

If not possible, just why?

--- ---

Solved

https://www.cyberciti.biz/faq/linux-unix-apple-osx-bsd-rsync-copy-hard-links/

TLDR

sudo rsync -az -H --delete --numeric-ids /path/to/timeshift path/to/destination/

Where,

-a : Archive mode (i.e. recurse into directories, and preserve symlinks, file permissions, file modification times, file group, file owner, device files & special files)

-z : Compress file data during the transfer

H : Preserve hard links (i.e. copy hard links as hard links)

--delete : Delete extraneous files from the receiving side (ones that aren't on the sending side), but only for the directories that are being synchronized i.e. keep exact replica of your /path/to/timeshift directory.

--numeric-ids : Transfer numeric group and user IDs rather than using user and group names and mapping them at both ends.

--progress : Show progress during transfer.

--log-file="/var/log/my-rsync-script.log" : Log what rsync command is doing to the /var/log/my-rsync-script.log file.

---

Thanks to @[email protected]

Original Comment: https://lemmy.world/comment/11611743

0

Changing Permissions through GUI ?

I can't change directory and file permissions which is in /mnt/ through elevated Nemo. But can change in /. Why?

Apparently, this happens due to Automount. Because when I mount manually, this problem doesn't occur.

I also changed /mnt/Storage to /media/user/Storage/ on auto mount, still the same problem occurs.

uploaded on reddit because lemmy doen't allow videos .sorry for the quality reddit squashed it. Also my user name is blurred.

Also this an automounted NTFS partition, if it has to do anything with this,

!

I know about chown and chmod. But I wanna do it in GUI.

--- ---

SOLVED

Include uid= and gid= as part of your mount options.

!

For More info look at this.

Thanks to this Chad @[email protected]

0

Bazzite is great, but: "How the hell do I install stuff on Bazzite to control my laptop?!"

Pretty much the title. Maybe to add a bit of a backstory: Bazzite was awesome at first, all games ran on the first try!!

But then: I still haven't installed my vpn, let me quickly do that. Oh wait, there's no flatpak for my vpn, that's right.

Aight, lemme first install tlp and get these laptop fans under control. But wait, how? There's no flatpak. If I install it in distrobox, it has no effect, which kinda makes sense.

Whatever, lemme try auto-cpufreq. No flatpak, so distrobox it is. To no surprise, it fails. "System has not been booted with systems as init system."

Same with Goverlay. So then I just fell back into my chair and screamed: "How the hell do I install stuff on Bazzite to control my laptop?!"

10

electron25 is taking over 10 hours to update on Arch Linux; is there anything I can do to speed this up?

I ran yay -Syu and everything went well but electron25 has taken over 10 hours to update. Is there anything I could have done to speed things up?

Solution: I checked AUR and other people were commenting about similar issues. I swapped out the package for the -bin version.

6

How to change Firefox file dialog in i3wm?

I wish to change the default Nautilus file dialog that Firefox uses, to Dolphin (my main file manager) but I cannot find any solution. Every single time I download an image, Nautilus is opened instead of Dolphin.

I tried adding GTK_USE_PORTAL=1 to my env variables, and It didn't work, then I tried changing mimetype and also did not work, I also tried modifying the xdg-portal (sorry if I'm wrong) to use xdg-desktop-portal-kde instead, but I cannot accomplish this since I didn't understand at all the Arch wiki and IIRC some files aren't exactly where the Arch wiki was pointing them.

As a last attempt, I open about:config in Firefox and search for widget.use-xdg-desktop-portal and set it to True, and still I keep having that old Nautilus as my file picker in Firefox, and this last thing usually worked well for me in Plasma.

Edit: I just restarted my pc and now randomly seems that Dolphin it's the file dialog for Firefox, I don't have a single clue how this happen.

8

Ubuntu disk space usage after upgrade from 20.04 to 22.04

Hello, everyone. Recently I finally decided to update my system, and right after the update ran into a problem: before update baobab showed ~22 GB avaliable space, and after the update it went down to around 8.

Here's some info, that might be relevant:

df output: ``` Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 788700 1976 786724 1% /run /dev/nvme0n1p8 53050368 48246568 4054792 93% / tmpfs 3943496 0 3943496 0% /dev/shm tmpfs 5120 4 5116 1% /run/lock /dev/nvme0n1p8 53050368 48246568 4054792 93% /home /dev/nvme0n1p7 998060 133944 795304 15% /boot /dev/nvme0n1p1 364544 89768 274776 25% /boot/efi tmpfs 788696 104 788592 1% /run/user/1000

```

du -h / shows 23G, du -h /home — 13G. Overall I have 54.3G disk space, so (23+13)/54 doesn't add up to 93%

sudo lsof | grep deleted | wc -l shows 8433 deleted files that are still in use.

I also tried booting with liveUSB and running 'check' on partition via GParted.

I did some research online:

  • https://forum.manjaro.org/t/baobab-shows-14gb-less-usage-where-is-the-rest/109527 - seems like a similar problem, but does not address huge du/df difference, also doesn't provide solution for me
  • https://unix.stackexchange.com/questions/414417/du-not-accounting-for-space-shown-by-df helped me understend difference between du/dh, so I provided output of lsof as suggested.
  • a lot of other stackoverflow posts, all having similar answers, that didn't help me

I tried some methods to locate what consumes all the space, but couldn't figure it out. Also, the problem seems to be getting worse (right now baobab shows only ~5GB avaliable space). Can you help me find the source of the problem (and ideally also help me solve it :) )?

9

New-to-Linux gaming, Steam freezing/crashing with certain games

SOLVED: Installed GloriousEggroll custom Proton. For Talos, also had to set launch options (PROTON_ENABLE_NVAPI=1 PROTON_LOG=1 %command%) or else I'd just get a black screen. First runs of games take a bit to get loaded, but launch without issue on subsequent runs.

I'm a recent convert to Linux - currently running Mint 21.2. I don't have a huge Steam library and thankfully most of the handful of games I play have worked fine - Deep Rock, Lethal Company, Sea of Thieves, Elite Dangerous (although that one is through Epic, thanks Heroic Launcher).

Two others that I've tried so far - Astroneer and Talos Principle II - don't seem to want to get started. When I hit play on either of those in Steam, it just stalls at "Launching..." I can cancel the launching and it'll go back to the Play button, but at this point Steam won't launch anything else. When I try to exit steam, the main window closes but its icon is still in the system tray icons. At this point, I have to kill the steam tasks before I can get it to re-open.

Since I'm seeing similar behavior for two different games, I'm guessing it might have something to do with the Proton config? I don't know much about it other than it being the main compatibility layer that gets the games running on Linux. In my Steam compatibility settings, I've got Steam Play enabled for supported and all other titles, and I've got "Run other titles with" set to Proton Experimental. I've seen that you can set the Proton version on a per-game basis as well. If that's the issue, is it just trial-and-error figuring out which version I need to use with each game?

9