Just moved to Linux: a follow up

I recently made a post discussing my move to Linux on Fedora, and it’s been going great. But today I think I have now become truly part of this community. I ran a command that borked my bootloader and had to do a fresh install. Learned my lesson with modifying the bootloader without first doing thorough investigation lol.
Fortunately I kept my /home on its own partition, so this shouldn’t be too bad to get back up and running as desired.

jvrava9,
@jvrava9@lemmy.dbzer0.com avatar

Timeshift for backups is a godsend in these situations

Dariusmiles2123,

OP should just know that TimeShift doesn’t work on Fedora Workstation without some tinkering.

Bluefruit,

Thats good to know because Fedora seems to be where im heading when i make the switch as well.

kevincox,
@kevincox@lemmy.ml avatar

Keeping /home separate is a good call. I can also recommend backups to a different system. Also test those backups.

Playing with things can be fun if that is what you enjoy. Being careful is good but the best way to avoid serious issues is being able to recover from the worst case.

glibg10b,

Why do you advocate for keeping /home separate?

I personally don’t do it because the more partitions you have, the more often you need to fiddle around in GParted when one partition gets full. This is also why I use swap files instead of swap partitions

As far as I can tell, unless you distro-hop, separating /home doesn’t have any advantages. Even then, sharing one /home directory between multiple desktop environments can cause some problems

I agree with making and testing backups, though. My current strategy is to back everything up to a 4.2 TiB ZFS pool with daily snapshots on my LAN, and back up the most important data on that to the cloud

Swiggles,

Not the person above, but if it is an issue you ever run into you are doing it “wrong”. Not really, but let me explain.

Having it on a separate partition has a few advantages like different mount flags (e.g. noexec), easier backup management (especially snapshots) and some other benefits like using your home for a new installation (like OP wants to) or it prevents some critical failures in case you accidentally fill it up (e.g. partial writes or services cannot start).

I often cannot decide on specific mount sizes either, because requirements may change depending on what you do. Hence I would just stick with some reasonable defaults for the installation and use some form of volume manager instead. If you want to use ext4, xfs etc I would recommend using LVM as it gives you a lot of freedom (resizing of volumes, snapshots and adding additional drives, mixed RAID modes etc) or there are btrfs, zfs or bcachefs to name the most common file systems which implement their own idea of storage pools and volumes.

Never should you need to resize a partition, there are more modern approaches. Create a single partition (+ a small EFI partition somewhere) and never bother with partitions ever again. The (performance) overhead is negligible and it gives so many additional benefits I didn’t even mention. Your complaint is a solved problem.

kevincox,
@kevincox@lemmy.ml avatar

I don’t think it is critical to keep /home separate but if you need to reinstall it is really nice. You can reset the OS without touching your data or user-level configs. Either for the same distro because you fiddled around and broke it or another one for distro-hopping. It also makes encrypting it easy, although full-disk encryption is getting so easy that it probably isn’t an issue. Good backups also mitigate this, although the recovery will be slower than just reinstalling while leaving your existing home there.

To be honest I don’t actually keep home separate anymore. But that is mostly because I trust NixOS enough that I know I will never need to reinstall. I can always roll back or worst case install over top of the existing install from a live USB.

Overall I would say that the cost of doing so is fairly small as well. Unless you are running a lot of system services data outside of /home is usually fairly limited. Although I agree that getting the partition sizes wrong can be frustrating.

just_another_person,

Friendo, I think once you understand exactly what an OS is, you’ll have fewer problems. An OS is just a layer on top of hardware with a lot of scripts and tools that enable that hardware to do things like move files, show graphics, and send audio in a desktop environment. Never issue a root or sudo command unless you understand exactly what it’s doing. Following this one simple rule will save you a lot of trouble, same as any Windows machine.

Dariusmiles2123,

Also, once your install is in a state you like, create a backup with CloneZilla.

just_another_person,

Nah. This is old school thought. Use an immutable distro if this is your concern, and keep all your files on a NAS, or something else that can replay your files. Local images of your entire filesystem isn’t needed anymore.

KISSmyOS,

Neither an immutable distro nor a NAS is a replacement for backups.
Some people are lucky enough to never learn that backups are vital. Good luck to you in the future!

just_another_person,

They are two different things.

A Clone of an OS install is not needed anymore, for a jillion reasons.

Personal files do not relate to that.

Perhaps you don’t understand how these are intended to work?

KISSmyOS,

A Clone of an OS install is not needed anymore, for a jillion reasons.

If my SSD decides to suddenly quit, I can get back all my personal files and configs, plus all the software I had installed with all configurations, configured repositories, user rights and group memberships, GUI customizations, system-wide fonts, .desktop-files, root .bashrc, self-compiled software, etc. etc. by popping in a new SSD and dding my full disk image backup to it with one terminal command.

I fail to see how that is not a nice thing to have even today, or how I would get back to the previous state just as fast without it.

deepdive,

Heyha ! Read about dd on makeuseof after reading your post, to see how it works.

Restoring from an image seems exactly what I was looking for as a full backup restore.

However this kind of 1 command backup isn’t going to work on databases (mariadb, mysql…). How should I procede with my home directory where all my containers live and most of them having running databases?

Does it work with logical volumes? Is it possible to copy evrything except /home of the logical volumes?

KISSmyOS,

For special use cases like that, dd isn’t the right tool.

deepdive,

Okay, thank you :)) too bad it looked liked a simple and elegant way…

Valmond,

And a lot of configuration, or so I thought? I’m investing heavily but I’m scared for my investments :-)

Another Linux noob here, after a couple of Linux servers (Tenfingers, Lemmy) switched over (finally) my main PC, or well kids got the gaming machine and I’m on a Mint ThinkPad now :-) and a backup think centre tiny if the Lemmy server bails out.

I have this little windows box to print stuff (I didn’t know I hated printers) and every time I use it I’m so happy I don’t need windows in my personal life anymore…

Cheers and welcome OP!

just_another_person,

This comment isn’t making any sense to me, but good on ya?

Valmond,

Except that I’m jumping ship to Linux fully, I’m thinking a lot about hardware failure, not the data but say the mobo, so maybe that’s curious. Seemed you were knowledgeable about those things, or I’m explaining very badly.

Cheers

Corr,

This is reasonably valid. I think Windows makes it a bit harder to do real damage to your system, so I’m used to that. I also have borked installs in VMs before, but that’s never mattered because spinning up a new one takes no time. Definitely a valuable lesson to do more research before running commands, especially as sudo

Ultimatenab,

One of us, one of us. I did the same only 2-3 hours into my first ever Linux install.

Corr,

I feel your pain :P
I’m almost done getting everything back, I think!

juli, (edited )

How long until you start doing backups? 😂

Edit: Took me some years btw

Corr,

I was trying to set up snapper, so sorta on my way there lol

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • [email protected]
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • oklahoma
  • Socialism
  • KbinCafe
  • TheResearchGuardian
  • Ask_kbincafe
  • SuperSentai
  • feritale
  • KamenRider
  • All magazines