> Computers > Operating System ( OS ) > Linux
Various Topics Home

Linux



Linux Operating System ( OS ) Need advice on how to partition a 10gig hdrive


Default Need advice on how to partition a 10gig hdrive

I am looking for advice on how to partition a 10gig hardrive.

What kind of partitioning theme should i use?

For example what i am asking is how much should i use for / , home, and so
on.

Also the computer i have linux installed on will be used as a fileserver


Default Re: Need advice on how to partition a 10gig hdrive

zod wrote:

> I am looking for advice on how to partition a 10gig hardrive.
>
> What kind of partitioning theme should i use?
>

10Gig isn't too big nowadays. Keep it simple.

> For example what i am asking is how much should i use for / , home, and so
> on.
>
> Also the computer i have linux installed on will be used as a fileserver


Mmh, I suppose it's a spare box and you don't want to run too many desktop
applications on it, so you don't really need a big /home. But that's just a
guess, and partitioning depends too much upon your needs. To start with:
Just give 128 ...512M to /home, about the same as swap, leave at least 1G
for / and create a separate /var with the remainder, which will also hold
your ftp/www/whatever shared folders. Install samba.
I guess you will reinstall linux a few times until everything has settled,
so you don't reformat /home and /var everytime, saving most of your
settings and the files.
--
Longhorn error#4711: TCPA / NGSCB VIOLATION: Microsoft optical mouse
detected penguin patterns on mousepad. Partition scan in progress
to remove offending incompatible products. Reactivate your MS software
(3 days grace period). [LinuxCounter#295241]
Default Re: Need advice on how to partition a 10gig hdrive

On Sun, 04 Jan 2004 12:00:47 +0100, Walter Mautner wrote:

> create a separate /var with the remainder, which will also hold
> your ftp/www/whatever shared folders.


I wouldn't do that. I'd create a separate partition for
ftp/www/whatever, but not put them on the same partition as the rest
of /var. Otherwise a file upload could fill up the partition and
prevent further entries to be written to the logfile. Nice for
hackers to enter your server unnoticed.

Sybren
--
(o_ Q: God, root, what is difference?
//\ A: God can change the byte order on the CPU, root can't.
V_/_


Default Re: Need advice on how to partition a 10gig hdrive

zod wrote:
> I am looking for advice on how to partition a 10gig hardrive.
>
> What kind of partitioning theme should i use?
>
> For example what i am asking is how much should i use for / , home, and so
> on.
>
> Also the computer i have linux installed on will be used as a fileserver



/boot dont' have to be large, 100MB shuld be more than enough
/ depends on what other slices/partitions you are going to have

I do usually have

/boot
/
/var
/usr
/tmp
/home
<swap>

The stuff tat takes most space is of course /usr as most stuff tend to end
here, when you install software.

IMHO 10G ain't much, specially if you are using it as a fileserver, I have a
fileserver that shares out the /home and that is 300G, the server has another
120G for system stuff and other services.

A small suggestion would be that you make

/boot 100MB
<swap> 2*ram (if over 512MB, then maybe 1.5*ram)
/ the rest

If possible, look into making / to a LVM, will ease your pain a lot when it's
time to increase those 10G.

Two quite important links for info about LVM:
tldp.org/HOWTO/LVM-HOWTO
www-106.ibm.com/developerworks/library/l-lvm2.html

The later one descripes how to make a LVM larger than 255GB.



//Aho
Default Re: Need advice on how to partition a 10gig hdrive

On Sun, 04 Jan 2004 12:09:09 +0100, J.O. Aho wrote:

> /boot dont' have to be large, 100MB shuld be more than enough


7 MB should be enough, but why use a separate boot partition at all?

Sybren
--
(o_ Q: God, root, what is difference?
//\ A: God can change the byte order on the CPU, root can't.
V_/_


Default Re: Need advice on how to partition a 10gig hdrive

Sybren Stuevel <> wrote:
> On Sun, 04 Jan 2004 12:09:09 +0100, J.O. Aho wrote:


> > /boot dont' have to be large, 100MB shuld be more than enough


> 7 MB should be enough, but why use a separate boot partition at all?


It's convenient if you run several different distros. And you can often
leave it unmounted usually, for security. ANd if you insist on mounting
it, you can leave it readonly, for safety.

Anything else?

Peter
Default Re: Need advice on how to partition a 10gig hdrive

On Sun, 04 Jan 2004 14:10:27 +0000, P.T. Breuer wrote:

> Anything else?


Nope, sounds perfectly reasonable

--
(o_ Q: God, root, what is difference?
//\ A: God can change the byte order on the CPU, root can't.
V_/_


Default Re: Need advice on how to partition a 10gig hdrive

P.T. Breuer <> wrote:
> Sybren Stuevel <> wrote:
> > On Sun, 04 Jan 2004 12:09:09 +0100, J.O. Aho wrote:


> > > /boot dont' have to be large, 100MB shuld be more than enough


> > 7 MB should be enough, but why use a separate boot partition at all?


> It's convenient if you run several different distros. And you can often
> leave it unmounted usually, for security. ANd if you insist on mounting
> it, you can leave it readonly, for safety.


You can't rerun lilo if /boot is read-only. Due to problems
creating more the a few partitions per disk using RH kickstart,
stopped creating /boot as you don't really need it anymore the
1024 cylinder limit has been gone ages ago. But then there is
only one distro on the boxes, if you'd like to share some kernel
between multiple distro, it's a good reason to use a separate
partitions.

--
Michael Heiming

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of SPAM
Default Re: Need advice on how to partition a 10gig hdrive

zod wrote:
> I am looking for advice on how to partition a 10gig hardrive.
>
> What kind of partitioning theme should i use?
>
> For example what i am asking is how much should i use for / , home, and so
> on.
>
> Also the computer i have linux installed on will be used as a fileserver
>
>

Hi Rod; The only partition I would make is / and a swap about the same size as your
ram.

Default Re: Need advice on how to partition a 10gig hdrive

J.O. Aho wrote:

> A small suggestion would be that you make
>
> /boot 100MB
> <swap> 2*ram (if over 512MB, then maybe 1.5*ram)


I always make the swap partition equal to the maximum RAM that the
motherboard can take. So my workstation here has a 3GB swap partition
(since I may one day actually have 3GB of RAM), and my other system,
once I upgrade her from Windows to Linux, will have a 256MB swap partition.



Thread Tools
Display Modes





Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0