LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Search this Thread
Old 12-29-2005, 08:16 AM   #1
Geocritter
Member
 
Registered: Jun 2005
Location: Richmond, Virginia
Distribution: Debian, Ubuntu, FreeBSD
Posts: 66

Rep: Reputation: 15
Question Need partitioning scheme advice


Hi all,

I've freed up my whole computer for FreeBSD (I hope). I've got a 13.6G master, and a 19.2G slave. I tried to partition them so that I had a /, /boot, /var, /tmp, and /usr on the master, and /home on the 2nd drive. I thought that would eliminate the possibility of running out of space with installing software, my music, stuff like that. But when I installed and went to reboot, it couldn't find the boot loader in /boot. Also, I went with something like a 200mb /, a 200mb /boot, a 1500mb swap, etc., but I never could figure out what values would be good.

Can somebody suggest a good partitioning scheme here with these 2 disks? Also, guide me as to what I need to do to make the loader see my installation and boot it. I'm sure it is something dumb, but I dunno...

Thanks so much,
Dan
 
Old 12-29-2005, 08:26 AM   #2
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
You were close. Don't separate out a /boot partition, let it get built with / instead. Your sizes look reasonable. Swap space in the range of 2 to 4 times RAM is not unreasonable, either. /usr will tend to grow, so your idea of giving it plenty of room is a good one. With diligence, you can keep it from mushrooming.

So, you should have a swap, /, /tmp, /var, /usr and a /home. That's perfectly reasonable for a desktop.

HTH

Cheers--
Charles
 
Old 12-29-2005, 08:39 AM   #3
Geocritter
Member
 
Registered: Jun 2005
Location: Richmond, Virginia
Distribution: Debian, Ubuntu, FreeBSD
Posts: 66

Original Poster
Rep: Reputation: 15
Thanks

Thanks Charles,

Yeah, I wondered if the separate /boot was a problem (I used to do that with linux way back when). I got the idea from FreeBSD Unleashed. But anyway...

Ok...one other quick question...when I install software from ports or packages, is it putting that under /usr? Should I, say, split the second HD in half, and give half of it to /usr and the other half to /home? Or maybe a third of it to /usr...I dunno. I want to have plenty of room for adding programs (and for the first time in my life, I've got HD to spare! LOL). Seems like I had also given /usr something like 8 gigs...which may be more than enough.

In other words...keep /usr with 8 gigs or so on the 1st hd, and /home on the 2nd hd by itself, or move it to the 2nd hd with /home and give each something like half the drive...

Thanks,
Dan

Last edited by Geocritter; 12-29-2005 at 08:41 AM.
 
Old 12-29-2005, 08:44 AM   #4
Geocritter
Member
 
Registered: Jun 2005
Location: Richmond, Virginia
Distribution: Debian, Ubuntu, FreeBSD
Posts: 66

Original Poster
Rep: Reputation: 15
Oh yeah...

One other q. If I eliminate a separate /boot, should I make / something like 400 mb? Or will that exceed the 1,024 barrier...or is that a problem anymore...I seem to recall that that problem doesn't exist anymore. So if that's the case, how big should / be?

Sorry for all the ignorant questions...I'm just trying to get a grip on the partitioning so that I do it right.

Thanks,
D
 
Old 12-29-2005, 11:35 AM   #5
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
200Meg for / should be just fine. My machine here in my office currently has 47Meg used of 250Meg, and I use a custome kernel, so there are currently two working kernels and all of their associated directories. /tmp is harder to predict, since most of the files put there go away either during a reboot, or over time; 500Meg should be plenty. Don't skimp on /var, but don't go overboard. Print spools there, and the config files for your ports builds go there, too; as does the database about your installed ports. Mine is currently 120Meg of 1Gig.

Now for /usr and /home. /usr is where your source tree and ports will go. All the dist-files that are used to build a port will go here, too. So, /usr can grow wildly if you don't watch it. If you are the kind of person that just has to "have that port" even though you don't use it, then more room is better. If you can train yourself to "make deinstall && make clean && make distclean" a port you try but decide not to use, then the remainder of your 13Gig master should be fine. /home is where your music is, huh? How much? Do you listen a lot? Sometimes? What else are you likely to pick up? You want to run a web-server, PHP, ruby, RAILS, build programs on your own?

I would be tempted to reverse the place of /usr and /home in your set up. That forces you to keep /home neat and tidy. Out with the unlistened to music already!!

Look, your initial set up (other than a /boot) was a good first try. Try things out, and if your choices could have been better based on how you use the machine, then back up your good stuff (you know all those "legal" mp3's ), blow the whole thing away with another install. After a while, you'll have a feel for what you need. Personally, I *always* grossly over-estimate the size I think /home will be. Currently, I am using 384Meg of 10Gig...go figure!

Go for it, and report what choices you made, why you made them and how it is going.

Cheers--
Charles
 
Old 12-29-2005, 12:07 PM   #6
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 60
I found a 500 mb / partition to be inadequate. Main culprit seems to be the complete Gnome/KDE desktops needed by most casual users. First thing I knew I was at 90% usage, and having trouble with large upgrades. Currently at 1 gig, plenty of room. My other issue was (is) /tmp. I set it up in a separate partition, at 500 mb. Problem there is cdr writing programs default their temporary images there. That's not enough room for a 700 mb cd image. Soulution was to change k3b, graveman, etc configurations to use a /home/tmp directory for default .tmp files. But next time I reformat, /tmp is going to be 2 gigs.

Currently, with a fresh install (to which I haven't moved my data files yet):
Code:
debian:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdb1               918322    257478    611848  30% /
/dev/hdb9             64420516    511748  60636332   1% /home
/dev/hdb8               459143      8273    426373   2% /tmp
/dev/hdb5              6246008   1926108   4002620  33% /usr
/dev/hdb6              3367972    898512   2298372  29% /var
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
partitioning scheme Godsmacker777 Linux - General 2 11-28-2004 03:58 PM
Advice on Partitioning Scheme? X_ArchAngel Slackware 12 06-30-2004 03:22 PM
best partitioning scheme equinox Linux - Distributions 5 05-10-2004 11:34 AM
Partitioning scheme pcdebb Linux - Newbie 1 01-20-2004 10:01 AM
Best Partitioning Scheme? rivang Slackware 28 05-19-2003 11:24 AM


All times are GMT -5. The time now is 12:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration