File systems
Hi all..
which are the partitions ( /home, /proc etc ) that necessarily need separate partition in linux..? |
*need* ?
Depends on your mileage. There's no one size fits all here. |
You can get by with everything in one partion: / however it is almost always best to have some swap too (unless worried about lifetime of an SSD).
Cheers, Evo2. |
Quote:
|
It depends on your size of the drive. If you have a big enough drive you could have different partitions /, /boot, /var, /usr and all. But it all depends on your use as well.
I have installed server without different partitions and everything on / and just boot and swap as different. |
If you will be using LVM or RAID, you want to have a separate partition for /boot. If you will be installing more than one distro, you can use the same /boot partition and edit the grub.conf file to boot each distro. Being small it is easy to create a image backup copy of your boot partition.
Having the /home directory on it's own partition will make it easy to change distro's or add another distro and not have to reformat it. IMHO, for laptop installs, fewer partitions are more common than on a desktop. You are usually more limited in disk space, and having system directories on the same partition is more flexible. For example you don't have to worry as much that /usr will fill up when you install more software. A server will be more likely to have separate partitions. Having /tmp on it's own partition allows mounting it with mount options such as noexec, nodev and nosuid. A separate /var/ partition will prevent a server from crashing because someone fills up free space with logs. An installation won't touch /usr/local. This is where programs you compile yourself are likely to go. Mounting /usr/local on it's own partition would allow you to reinstall and keep these programs, if you opt not to format the partition. |
Quote:
Quote:
Cheers, Evo2. |
You only need one partition (+ swap).
There are lots of arguments for having more partitions, but I don't know if any of them apply to your situation. Do you have a specific problem you are trying to solve? |
...
|
Quote:
/ There you go. A complete answer to the question that you asked. However, the question 'what partitions is it desirable to have? is more complex and depends on the circumstances. How about telling us something about the circumstances, so we cabn have a go at answering that one too, without writing a 100 page manual. |
If you want to hibernate your machine, then you need a swap partition at least the size of your RAM. So for hibernation, the recommendation I use is RAM size + 2GB.
I have 8GB of RAM, so I set up a swap partition with 10GB. I found that sometimes I'm using swap within an hour of starting up - but then, at othertimes, it might take several days. If you are using RAID, then /boot should be on a separate partition outside of RAID. Have at least 2 RAID partitions, one of which should be swap. |
Quote:
|
Quote:
and where do you think that embedded Linux devices put their swap partition? Deeply embedded devices don't have anywhere useful to put a swap partition, so, given that they can't have one, they don't need the swap partition. |
Myth
...
|
Quote:
|
Quote:
|
...
|
All times are GMT -5. The time now is 02:30 AM. |