211
submitted 10 months ago* (last edited 10 months ago) by neidu2@feddit.nl to c/linux@lemmy.ml

This is your annual reminder to do a snapshot (timeshift or whatever you prefer) before doing relatively minor changes to your system.

I was supposed to be in bed now, but instead I am stuck troubleshooting xorg refusing to start after an apt-get dist-upgrade.

And as far as friendly reminders go, I should've given myself an unfriendly reminder beforehand, as it's not the first time....

UPDATE: Fuck nvidia 545. All my homies hate nvidia 545. 535 4 lyf!

top 50 comments
sorted by: hot top controversial new old
[-] buh@hexbear.net 52 points 10 months ago
[-] Dirk@lemmy.ml 3 points 10 months ago

... the single worst company ...

[-] TheEntity@kbin.social 11 points 10 months ago

I wish. They are not even close.

[-] thejml@lemm.ee 10 points 10 months ago

Nestle has entered the chat.

[-] Jumuta@sh.itjust.works 5 points 10 months ago
load more comments (1 replies)
[-] Dirk@lemmy.ml 4 points 10 months ago

Woah, stop! No professionals!

[-] fl42v@lemmy.ml 44 points 10 months ago

BTW, nixos allows you to easily roll back to a previous generation on boot in case an update breaks something.

Just sayin' 😁

[-] million@lemmy.world 8 points 10 months ago

So does Fedora Silverblue for the record.

It is a damn impressive feature to realize you just broke your install and are able to say “no problem”.

[-] greencactus@lemmy.world 2 points 10 months ago

Silverblue gang!

load more comments (2 replies)
[-] mvirts@lemmy.world 3 points 10 months ago
load more comments (1 replies)
[-] aard@kyu.de 36 points 10 months ago

Friendly reminder: just don't buy nvidia

[-] CsXGF8uzUAOh6fqV@lemmy.world 28 points 10 months ago

Many already have nvidia before they start with linux. I'm still on my 1060 from 2018.

load more comments (3 replies)
[-] driveway@lemmy.zip 3 points 10 months ago

As soon as AMD is competitive in price/performance in my region. I won't give them money just becauae they have open source drivers.

[-] southernwolf@pawb.social 3 points 10 months ago

Unfortunately for those of us that use Cuda features, AMD just really isn't that viable of an alternative. Anyone who's had to deal with ROCM can attest to this...

load more comments (1 replies)
[-] liforra@endlesstalk.org 29 points 10 months ago

When u realize you dont even use a backup software rn

[-] TimeSquirrel@kbin.social 25 points 10 months ago* (last edited 10 months ago)

I just copy my whole-ass home dir to an external drive every so often like a caveman.

[-] reallyzen@lemmy.ml 2 points 10 months ago* (last edited 10 months ago)

Which you should absolutely do even if you snapshot the eff out of your system. What about hardware failure, eh? Can't snap that nvidia shit can you?

[-] frankenswine@lemmy.world 14 points 10 months ago

Or you opt for an operating system that lers you roll-back whole generations for when such a thing happens (GNU Guix for the win!)

[-] savvywolf@pawb.social 14 points 10 months ago

Remember to check your three "B"s; your balls, your breasts and your backups.

[-] Extrasvhx9he@lemmy.today 4 points 10 months ago

I'm using this from now on

[-] antsu@lemmy.wtf 13 points 10 months ago

Timeshift with BTRFS kicks ass. I have mine set for daily snapshots, retained for a week. Only the changes between snapshots are stored, so the extra disk usage is minimal, and easily justified by the peace of mind in case of fuck-ups or broken updates.

[-] jelloeater85@lemmy.world 3 points 10 months ago

Just make sure you back up your stuff to a second disk❤️

load more comments (3 replies)
[-] Extrasvhx9he@lemmy.today 10 points 10 months ago

Is it dumb that I only backup my docs and anything else I think is important? I can rebuild fairly quickly if something would happen. I ask since I know that people backup a variety of their directories

[-] CalicoJack@lemmy.dbzer0.com 8 points 10 months ago

If you're comfortable, you're fine. Anything more would just be to speed up the rebuild, so it's less important if you don't mind taking the time.

[-] Stillhart@lemm.ee 10 points 10 months ago

Linux noobie here. Any tips on what to search for for instructions on how to do this? Bonus points if it has a GUI and is easy to use.

[-] neidu2@feddit.nl 12 points 10 months ago* (last edited 10 months ago)

Timeshift. It has an easy to understand GUI that doesn't really need much of an intro: You create snapshots of your system files and configs that can be restored if/when you bungle it up.

[-] cmnybo@discuss.tchncs.de 2 points 10 months ago

Timeshift works best if you use BTRFS for your root partition because snapshots can be taken instantly. I have mine setup to automatically take a snapshot every day.

[-] Catsrules@lemmy.ml 2 points 10 months ago

Never used it myself and i am still a linix noob but what is the restore process if your OS isnt bootable?

If their like a rescue environment you boot into or something?

[-] neidu2@feddit.nl 3 points 10 months ago

There are many approaches, depending on what broke. In my case the system was fine, just xorg being completely borked. So I logged into the console and fixed it.

If regular console doesn't work, something really went bad during boot, for which there's single-user mode which is kind of similar to safe mode from Windows 98 (I'm sure there's something similar in newer windows versions).

And of that doesn't work, there's the minimalistic rescue shell.

And if that doesn't work, you can boot from a USB or some other external media and try to fix your system from that, maybe even using chroot to use the system somewhat normally.

load more comments (1 replies)
[-] jjlinux@lemmy.ml 4 points 10 months ago

As long as your file system is on BTRFS, timeshift is, I O, the easiest backup app for Linux, specially if you're just getting your feet wet in it.

[-] dan@upvote.au 4 points 10 months ago

Why does Timeshift only support btrfs? Is it just a lack of developers? LVM supports snapshots too, even if you're just using ext4. ZFS supports snapshots too.

load more comments (2 replies)
[-] Shinji_Ikari@hexbear.net 7 points 10 months ago

Sorry cant hear you, too busy computing with the safety switched off and the action set to full auto.

[-] PseudoSpock@lemmy.dbzer0.com 5 points 10 months ago

I will never install a Linux desktop without a snapshotting root filesystem ever again. Nvidia driver updates, /boot getting too full during kernel or driver updates, a bad update of pipewire half a year ago, and more I can't remember. Was always able to boot to previous snapshot of the OS, and address whatever it was. Some ZFS here, some BTRFS there... and my small fleet of Linux desktops are as easy to recover as any immutable OS. Better even, because snapshots allow me to pull individual items or things between states easily, too.

[-] palordrolap@kbin.social 4 points 10 months ago

Am on LMDE6 with an ancient Nvidia card. Because I've had to resort to using the Nvidia OEM driver installer (which can be a pain to use), installed Xorg updates lurk quietly until a full reboot at which point they generally cause offloading of GPU tasks to the CPU instead because it hasn't figured things out properly.

Timeshift has been useful at least twice in getting me back to a less stressed system.

I think I have a procedure figured out now though (documented here for posterity even if it helps no-one today):

  1. Make a Timeshift snapshot just in case

  2. Install the pending Xorg update

  3. Reboot so it's fully active

  4. Check to see if GPU tasks are being offloaded to the CPU by doing something graphics intensive and noting temperatures or usage%. If not, a miracle has occurred and continuing isn't needed.

  5. sudo remove the execute permission on /usr/bin/Xorg so that it can't immediately be restarted by subsystems designed to protect the average Mint user from command lines and consoles.

  6. Kill Xorg

  7. Log in through a console, via Ctrl+Alt+F1 or similar if not dumped to one by killing Xorg.

  8. Re-install the Nvidia OEM driver

  9. sudo put the aforementioned execute permission back on

  10. Repeat steps 2 and 3 and hope that this time the GPU is doing the work.

Reboots ought to be replaceable by running specific commands, but I haven't gone deep enough into things to know the right things to do there. Reboots are quick and easy enough.

Obvious intermediate steps include not doing anything else important during this and saving important work before starting.

e.g. did you know it's possible to bookmark all open tabs? Well worth looking into.

[-] minimalfootprint@discuss.tchncs.de 2 points 10 months ago* (last edited 10 months ago)

Neat little guide (Arch, systemd) to set up automatic snapshots when you run a pacman/yay update and the option to chose snapshots in grub during startup. Really useful.

load more comments
view more: next ›
this post was submitted on 03 Jan 2024
211 points (95.7% liked)

Linux

48366 readers
1251 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS