I’m new to Linux, so I installed v. 11.2 on an old computer to get the hang of it. Now I want to install on my main computer and have a couple of question, mainly around how to use partitions in a Linux way instead of how I did under Windows.
- Under Windows I had two partitions (actually two drives): one for the OS and one where I installed everything. I was thinking of three for Linux: the first for the OS, the second for a swap file, and the third for everything else (data files, the programs I install, etc.). Is this a common approach? The idea is to allow me to wipe the OS and start over while keeping as much of the stuff that doesn’t come with the OS on a separate drive. Worked OK on Windows (except for the registry, of course, which was always a pain, but lets not go there - I’m off Windows). Which directories hold non-OS stuff? Looks like everything in /home could be in the third partition, but would /usr go there, too? (seems a lot of programs install there). What’s the best way to make use of a second hard physical hard drive?
- Is it possible to mount more than one directory (say, /usr and /home) on a separate (single) partition during install or after installation? It seems that moving a directory to another partition causes the whole partition to be used by that directory (at least during installation).
- Just curious - when installing a .rpm, is there any way to control where it is installed?
- Given the Linux directory hierarchy, when you download a tarball for compiling and installing, where do you put it? I’ve been using /home. Most other directories seem to be read-only to everyone but superuser. Do I need to log on as superuser in order to install something? I thought that should only be done when configuring the OS or something.
I guess I’m trying to understand how good Linux users organize their hard disk space. Do most people have one big partition for everything, or break it down into multiple partitions – and if so, how do you break it down?
I’m really open to any best practice suggestions.
Thanks in advance!