aln
November 1, 2012

When installing where is the root file stored?

When installing where is the root file stored?

After I wrote the above I ran into 2 articles that explained some things I...

After I wrote the above I ran into 2 articles that explained some things I didn't including some things I didn't quite know.

LinuxBSDOS.com -- Guide to disks and disk partitions in Linux

This one parallels my experience when I added Ubuntu onto a drive that had 2 versions of Windows in 2 partitions already. That is, this advice is relevant if you don't have Windows 8 or UEFI hardware and it is informative about partitions even if you don't care to have Windows at all:
Dual-boot Windows 8 and Ubuntu 12.10 on UEFI hardware

Like  (0 likes)

I think the question was more where is the root, and less what is the root. ...

I think the question was more where is the root, and less what is the root. That was answered that it is a mount point rather than a file. The context of a new installation implies, "Where should I put the root?" I will follow on that.

Linux can have 4 partitions. I'll work with an assumption that you have a hard drive over 100 GB.

Linux used to (1995) need a /boot partition which could be no more than 8.4 GB from the start of the drive. It does not have that limitation.

/, aka, root as stated is the equivalent of the \WINDOWS and \Program Files folders of Windows. /home is everything else.

When I install (Mint Debian) I get a warning message that installing will wipe out everything in the partition. That will be the root partition. If you have only one partition then the "where" is in the same place as /home. If you have to reinstall you are in trouble; your personal files would be erased or tediously backed up and restored.

I followed the suggestion of having at least 3 partitions: a root partition, a /home partition which is most of the disk, and a swap partition.

I made the swap partition 8192 MB (=8 GB) because it should be twice the size of the memory. I only have 2.5 GB of memory out of the 4 GB my motherboard could handle but I have lots of space so why not?

I made the root partition 50 GB. This is silly. Now that I have it installed I can see only 4.3 GB is actually used. I will adjust and maybe reinstall later this week.

The rest is my /home. If my root files became corrupted -- see this article on successful Linux viruses -- http://www.unixmen.com/meet-linux-viruses/ -- I could make a clean install, reinstall Firefox and my extensions, bookmarks and themes would be waiting for me in my /home partition.

Like  (0 likes)

The root files contains basic required files that are placed in the root user...

The root files contains basic required files that are placed in the root user's account. These files are basically the same as those in /etc/skel, which are placed in regular users' home directories.

The root directory in the Linux file system is represented by a / (forward slash). Think of this as being the root of a tree. There are several directories that are always created by default on a Linux system, such as the directories named: home, bin and var. And each of these directories always contains the same "type" of programs or data files.
Please visit for more info : www.tldp.org/LDP/Linux-Dictionary/html/index.html

Like  (0 likes)
Click Here!