- Posts: 45
- Thank you received: 0
Why make /boot on its own partition?
Can't I just have all file systems in one partition?
I mean I don't put my "Windows" directory on a different partition to all my other stuff.
Thanks
Jacko
- cybersorcerer
- Offline
- Senior Member
- Posts: 123
- Thank you received: 0
"He who breaks something to find out what it is, has left the path of wisdom."
Gandalf the Grey
If /boot is a folder on the root(/) partion, you are unable to do anything if that partition gets corrupted. However, if /boot is on a separate partition(and never mounted unless access is needed) it's less likely to get corrupted and therefore you should be able to boot you distro and fix the / partition.
And I think it's also used to add a little security so you don't accedentally delete your kernel(which should be a problem unless your using your root account for everything :twisted:)
ps. this is only based on my little Linux knowledge, so feel free to flame
Hope that helps some.
I've also read about having /var on a seperate partition so logs don't fill up the system.The number of partitions is highly dependent on your environment. For instance, if you have lots of users, you will most likely want to have your /home separate as it increases security and makes backups easier. If you are installing Gentoo to perform as a mailserver, your /var should be separate as all mails are stored inside /var. A good choice of filesystem will then maximise your performance. Gameservers will have a separate /opt as most gaming servers are installed there. The reason is similar for /home: security and backups.
As you can see, it very much depends on what you want to achieve. Separate partitions or volumes have the following advantages:
* You can choose the best performing filesystem for each partition or volume
* Your entire system cannot run out of free space if one defunct tool is continuously writing files to a partition or volume
* If necessary, file system checks are reduced in time, as multiple checks can be done in parallel (although this advantage is more with multiple disks than it is with multiple partitions)
* Security can be enhanced by mounting some partitions or volumes read-only, nosuid (setuid bits are ignored), noexec (executable bits are ignored) etc.
However, multiple partitions have one big disadvantage: if not configured properly, you might result in having a system with lots of free space on one partition and none on another.
And just FYI, "Ext2fs reserves some blocks for the super user (root). Normally, 5% of the blocks are reserved. This allows the administrator to recover easily from situations where user processes fill up filesystems."
* It is possible to use a swap file (nt. pagefile) in Linux, but not recommended
- cybersorcerer
- Offline
- Senior Member
- Posts: 123
- Thank you received: 0
"He who breaks something to find out what it is, has left the path of wisdom."
Gandalf the Grey