Originally Posted by
hrafnagudh
It is 130 gb, but I'm thinking about the risk of installing too much of everything in the future...
Well, guys, thanks all for the help. I will start with Timeshift for the backup, and then look for the others
Have a nice day all!
130GB!!!
The OS should easily fit in 25G.
HOME directories can be an size needed, but I think of that as only stuff I created, that isn't media files, so it is hard imagine that to be larger than 25G. Then the "big stuff" gets placed elsewhere, not on any desktop system, but on network storage that appears to be local storage ... but isn't.
For a desktop, I'll usually setup storage in this way:
Code:
$ dft # df -hT with uninteresting loop/etc removed
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext2 721M 185M 500M 27% /boot
/dev/sda1 vfat 511M 3.7M 508M 1% /boot/efi
/dev/mapper/ubuntu--vg-root ext4 25G 12G 12G 52% /
/dev/mapper/ubuntu--vg-home--lv ext4 74G 21G 51G 29% /home
/dev/mapper/ubuntu--vg-stuff ext4 99G 367M 93G 1% /stuff
Don't worry too much about the left column. I use LVM as a volume manager. Think of those as extremely flexible partitions. For now, that's close enough for the root, home and stuff logical volumes. /boot and /boot/efi are just standard partitions.
- /boot 700+MB for kernels
- /boot/efi 500MB or much less for EFI boot stuff (FAT32)
- / 25GB to hold the OS, applications, system settings
- /home 25Gx{number of users} Whatever is needed, but usually 20G is enough for each userid.
- /stuff Storage not created by a human. Think areas for game data, media, and other large files.
- swap 4.1G on every desktop system. I have many reasons, but mainly because less swap on a desktop without 16G+ of RAM will lead to crashes and unexplained lockups. That's been my experience.
Where things are places isn't really all that important, because we can easily move it around or if using LVM, add more storage to existing mounts, or just create a symbolic link from where we want the files to appear ---> where the files actually are.
For example, say I keep a 4th copy of some Music in /stuff/Music and want to access it from /home/thefu/Music. That's trivial.
ln -s /stuff/Music ~/ is the command. Best of all, my backup tool knows to save the symlink, but not follow it, so I don't get a 5th copy of Music in the backups. MS-Windows tried to do something like this with "Libraries", but those were only dotNET-GUI capable. The NTFS file system didn't have those capabilities so anyone not using the GUI didn't have "Libraries" which merged locations. I understand that MSFT fix that a few years ago in NTFS by adding the idea of symbolic links. Unix has had them and used them widely for 40+ yrs.
I won't pretend that my list of storage above is THE only way to do it. There are times when I need to make /var/ a separate mount to hold a DBMS or virtual machines, so I'll create storage for that and mount it where it is needed. Storage needs to be flexible.
Why bother with all this? It makes backups cleaner. Backing up the OS is different from backing up user files. Some files don't need to be backed up, so I keep those in places that are different too. Nobody needs 50 exact copies of the same files in their backups, but we do want 50 versions that can be easily restored if the files change slightly over time.
Bookmarks