Originally Posted by MJBoa
I was reading about the File Hierarchy System and it utterly confused me. It seems to me, running Ubuntu, that most of what's installed shouldn't be installed where it is. Looks like firefox is installed in /usr/lib/firefox for example, is this where it should be? Should anything I install by myself outside of Synaptic be in /usr/local?
The reason I ask is that I'm inclined to partition my drive so that if I need to reinstall or switch distros/version I don't want to lose anything I've done. Looks like every program I install from Synaptic will be in /usr and not /usr/local but anything I install separately will be in /usr/local so should these along with /home be separately partitioned? Also /var seems to be where MySQL stores the database files and I certainly don't want to lose those if I change distros or reinstall so should that be partitioned separately?
If anyone has any insight or just could tell me how all of their stuff is set up, that'd be great. Thanks.
is there as a place for one to install system-wide programs which aren't officially part of the distro, although it's quite common for people to ignore that. Personally, I create a /programs
directory, and install my stuff in there.
Having stuff on a separate partition can be very practical if you ever need to switch distros or something, but it's not necessary if you make sure to backup your stuff before doing so. By stuff I mean documents, configuration files, databases, etc.
Both my laptop and desktop currently consist of a single partition for / and one for swap. Whenever I install a new distro version I just backup my stuff to removable media or network share and nuke the hard disk.
BTW, even if you have your /var
on a separate partition, you're gonna want to do a backup before installing another distro, so having /var
pre-populated during the install doesn't really accomplish much aside from saving you a few minutes.
All of this I wrote is just meant as feedback, I'm not suggesting you do things the way I do them or anything like that.