LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Partitioning (https://www.linuxquestions.org/questions/linux-newbie-8/partitioning-221574/)

cxiii 08-23-2004 11:53 PM

Partitioning
 
I've read that partitioning the hard drive can make it more secure. So far I've installed various distributions like Fedora, Debian and Red Hat and just let the partitioner handle it automatically, except for Debian where I made a boot, linux and swap partition.

I was wondering if anyone could just give a good partitioning tip for a 20 gigabyte hard drive.

Can I make a partition for each directory?

Thanks
William

Mikhail_16 08-23-2004 11:58 PM

100 MB /boot
512MB - 1 GB swap
5 GB /
3 GB /var
rest (about 10 /home)

The distribution between /var and /home depends on usage: if lots of database and website activity is needed then more goes into /var if the computer primarily a desktop, more goes into /home. The most important ones are /boot and /var the rest is pretty much optional. so another good partition scheme is:

100 /boot
1 GB swap
3 GB /var
REST /

In general you want at least 15% in /var.

m0rt3r 08-24-2004 12:01 AM

i also have a 20gb hard drive, and the partition setup i used is as follows:

hdb1 / 6119.61mb
hdb2 swap 526.42mb
hdb3 /home 7649.52mb
hdb4 /usr 6119.61mb.


I'm sure there are many other ways you can partition your hard drive, the only way you can be satisfied with the way you partition a drive is by playing around with it. I'm sure this setup is not very well planned out but i'm not yet a guru :).

wittyguysuku 08-24-2004 04:58 AM

How to partition the HDD in Linux. I used to do fdisk in M$ Window$.:mad:
---
wittyguy
:confused:

myriad-zero 08-24-2004 05:03 AM

Quote:

Originally posted by wittyguysuku
How to partition the HDD in Linux. I used to do fdisk in M$ Window$.:mad:
---
wittyguy
:confused:

Use 'fdisk' or 'cfdisk' in Linux.


All times are GMT -5. The time now is 10:43 AM.