this post was submitted on 26 Oct 2023
69 points (96.0% liked)

Linux

48090 readers
672 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
 

Hello, I've been a long time Linux user but I had a 5 years break and I am coming back to it now.

I've been trying several Linux distributions in the past week, installing the packages and configuring them as I need with several different orders of success.

My last case was an Ubuntu installation that I was very happy with and pretty close to call it setup and done, until I installed virtualbox and restarted the system only to find it bricked.

Obviously I could try to drop into one of the terminals on ctrl + alt + Fx and fix it, but I wonder if I could be smarter about it and be more prepared for this kind of situation.

One of the starting points I think would be having a separate home partition from the rest of the system. I used to have it in the past and it was great.

But then what's next? What are the best FS I could pick for each type of partition? A performant one to keep the code and package manager cache, a journaling/snapshop based one for system, another type for game data, etc etc.

What if I would like to have a snapshot of working version of my system backed up somewhere ready to restore as simple as simple as possible?

How do you configure your systems in order to quickly recover from an unexpected bricking without growing some more white hairs, and squeezing as much performance vs feature for each of your use case?

you are viewing a single comment's thread
view the rest of the comments
[–] iHUNTcriminals@lemm.ee 1 points 1 year ago* (last edited 1 year ago) (2 children)

Eli5 what's in /var and /local?

/Global is just personal storage like /home?

I never manually make fs but I really want to have a good set up like on was asking.

Also do you know what's up with /swap? Is it beneficial aside from getting the ability to hibernate?

Also... What happens when I reinstall an OS and my home is separate? If I had Kodi installed as a flat pack and then reinstalled a like-distro, would Kodi still be set up and available with all my settings? Or would I have to reinstall again?

...obviously I don't know much about the fs

[–] vettnerk@lemmy.ml 5 points 1 year ago

/var was originally for files of varying sizes, but today it's more of a general purpose storage for the system, such as log files. It used to make sense to have this as its own partition as read and write operations were generally expected to be small but many, as opposed to few and large for the rest of the storage areas. With its own partition it's easier to adjust the filesystem to accomodate the I/O. Today it's mostly used for logs.

/local used to be similar to /usr/local on some systems, but that's not really the case anymore. It's a directory we use at work for local stuff, as opposed to /global which is shared with the entire server cluster.

You can have any directory as its own partition, just make sure the mountpont reflects it. /home is a very common example of this - using this as a mountpoint instead of just a normal directory named /home prevents regular uaers from filling up the root filesystem and borking normal operation.

Swap is what your PC uses when it runs out of RAM. It can be a partition, or it can be individual (large) files. As an example, I have a rather huge and demanding factorio save which takes up more memory than I have on my laptop, so when I want to play it I have to add additional swap space. It's similar to what windowa refers to as the pagefile. It's slow compared to RAM, but it enables the PC to operate relatively normal despite being bogged down with loads of allocated memory.

[–] EuroNutellaMan@lemmy.world 2 points 1 year ago

I don't know the answers to the other questions but yes swap is important, without it as soon as your system exceeds the RAM available to it it will freeze entirely.