Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Best way to partition?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Guzz
n00b
n00b


Joined: 16 Apr 2002
Posts: 25
Location: Sweden

PostPosted: Fri Apr 19, 2002 7:21 pm    Post subject: Best way to partition? Reply with quote

I've been running GNU/Linux for a while now and I'm starting to feel comfortable with it. So now I've decided to throw out Windows from my workstation. This means that I will have 46 GB for Gentoo.
Until now I've just had one ~5GB partition + swap&boot, how should I set it up with all this free space.
Should I have separate partitions for /home, /var and /usr/local? And how big should I make them?
_________________
That's it Mr. Giraff, get all the marmalade.
Back to top
View user's profile Send private message
salsashark
n00b
n00b


Joined: 17 Apr 2002
Posts: 24
Location: Houston, TX

PostPosted: Fri Apr 19, 2002 7:45 pm    Post subject: My $.02 Reply with quote

There are as many differing opinions of this as there are users, I believe.

Here's my $.02

For my desktop/workstation I run the following with my 26Gb of drives:
(laptop has 28, home has 26, both have 512Mb of RAM)
/boot ~ 128Mb
/ ~ 8000Mb
/home ~ 17000Mb
swap ~ 768Mb
Into the /home I create /home/Music and then ln -s /home/music /music
Thus all my mp3s appear under /music, and I've got a ridiculous amount of app space.

For my work server I use most running NMIS and SNORT on RedHat (no comments!), which has 18Gb of mirrored drive and 1Gb of RAM, it looks like:
/boot ~ 100Mb
swap ~ 1000Mb
/ ~ 6000Mb
/var ~ 10000Mb
With all my databases stored in /var

It really depends on what you are going to do with the box. Security-wise, you should keep a seperate /var, but then again, if it's your desktop, then who really cares? You're running iptables or behind a firewall right? As for /usr/local, I never really cared about it. I keep all my tarballs in /usr/local/src, and if it looks like the sh*t is going to hit the proverbial fan, I just SFTP it onto another machine, just in case, so I don't have to reinstall stuff, wondering "what were the dependencies for this PERL script?" 800 times.

Just my $.02, no more, no less.
Back to top
View user's profile Send private message
gilgames
n00b
n00b


Joined: 18 Apr 2002
Posts: 12
Location: Edam - The Netherlands

PostPosted: Fri Apr 19, 2002 8:25 pm    Post subject: another €.02 Reply with quote

Sounds like you don't have clue how much space you're going to use(waste). A good method is to use LVM so you can easily grow and shrink volumes. I use it on a 40G volume group(two 20G drives). If you're willing to use ext2 you can even resize the filesystems while they're still mounted. Daniel Robbins wrote a very good article on this subject here(http://www-106.ibm.com/developerworks/linux/library/l-lvm/?dwzone=linux)
Back to top
View user's profile Send private message
salsashark
n00b
n00b


Joined: 17 Apr 2002
Posts: 24
Location: Houston, TX

PostPosted: Fri Apr 19, 2002 8:36 pm    Post subject: LVM Reply with quote

Like I said, my $.02, and everyone has their own opinion.

That LVM looks pretty snappy! I only see references to ext2 and Reiser so far.. Is ext3 (I have a three-year-old who loves to hit power buttons) supported with reboot?
_________________
man goes into cage, cage goes into salsa, shark's in the salsa.. our shark..
Back to top
View user's profile Send private message
niyogi
Apprentice
Apprentice


Joined: 10 Apr 2002
Posts: 199
Location: Austin, TX

PostPosted: Fri Apr 19, 2002 8:44 pm    Post subject: Reply with quote

just make one large partition if you don't know what to do :P

/boot
/
swap

just like the gentoo installation guide says

-S
Back to top
View user's profile Send private message
gilgames
n00b
n00b


Joined: 18 Apr 2002
Posts: 12
Location: Edam - The Netherlands

PostPosted: Fri Apr 19, 2002 10:37 pm    Post subject: Re: LVM Reply with quote

salsashark wrote:

That LVM looks pretty snappy! I only see references to ext2 and Reiser so far.. Is ext3 supported with reboot?


ext2 is good, ext3 is ext2 with journaling, which means that you don't have a dreadfully longrunning fsck at reboot. Reiser knows that trick too. All have their own pros and cons. ext3 is the only fs I know that has full metadata & data journalling. Reiserfs and XFS only have metadata journaling AFAIK.

LVM is just nice way to avoid partitions. My data disks don't even have partitions, LVM uses them directly. The only thing I just can't get to work is to have my root partition on a LV. That's not much of a problem since it doesn't exceed the few gigs I had lying around, but it would be nice,fun,flexible,consistant........

salsashark wrote:
(I have a three-year-old who loves to hit power buttons)


Having a cat running around can be equally thrilling :twisted:
Back to top
View user's profile Send private message
Malakin
Veteran
Veteran


Joined: 14 Apr 2002
Posts: 1692
Location: Victoria BC Canada

PostPosted: Sat Apr 20, 2002 9:46 am    Post subject: Reply with quote

Except for the first time when I thought there was some point to it for a home user, I've always put everything in a single partition, maybe add a swap if you expect to use it much. 7 years of using Linux and I've never regretted doing it this way.
Back to top
View user's profile Send private message
Jeevz
Bodhisattva
Bodhisattva


Joined: 15 Apr 2002
Posts: 195
Location: Boston, MA

PostPosted: Sat Apr 20, 2002 11:30 am    Post subject: Reply with quote

LVM can be pretty cool, if you are interested in it you should try it out.

Otherwise, I would like to note having a seperate partition for /home is a good idea. I used to try many distros and this was a life saver, didn't have to worry about copying my data files. It is also nice if you just want to reinstall gentoo. For practice of course 8)
Back to top
View user's profile Send private message
Guzz
n00b
n00b


Joined: 16 Apr 2002
Posts: 25
Location: Sweden

PostPosted: Sat Apr 20, 2002 12:53 pm    Post subject: Reply with quote

Ok, thanks for your replies.
I've decided to make it as easy as possible and I'm going to partition something like this:

swap ~512MB
/boot ~120MB
/ ~6-8GB
/home The rest of it.

Bye bye Windows.

//Johannes
_________________
That's it Mr. Giraff, get all the marmalade.
Back to top
View user's profile Send private message
bbibber
n00b
n00b


Joined: 19 Apr 2002
Posts: 16
Location: Mechelen - Belgium

PostPosted: Sat Apr 20, 2002 1:23 pm    Post subject: LVM Reply with quote

LVM is pretty cool but I don't use it for production machines yet. I had my troubles "upgrading" my volumes from one 1.x release to another. Besides, it conflicted (and I think still conflicts) with SGI's XFS patches if you want to patch an ordinary vanilla -kernel.
Like the other guy said: if you don't need the additional security, go for the 1 partition scheme like it says in the docs :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum