LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-06-2005, 10:10 PM   #1
mipia
Member
 
Registered: May 2003
Location: lake michigan
Distribution: Debian, Mint, Slackware
Posts: 457

Rep: Reputation: 35
partition scheme for a 2 gig drive?


As I have read so far, it is good to have as big a /usr dir as possibe in the case of smaller disks anyway.
Here's the situation:
I have a pentium 166 with 32 megs o' ram and a 2 gig drive. Im going to be installing from floppies. This is just going to be a sandbox system so I can more or less poke around and see how everything works.
Just curious as to what would be a good partitioning scheme.
Maybe get half the disk for /usr, 128 mb swap and the rest...?
I dont know really, looking for suggestions.
Maybe I dont need the whole source tree, I dont know. I have no use for anything dealing with X or a a desktop environment...
Haaaalp!!

thanks in advance

oh yea, its fbsd 5.3

Last edited by mipia; 01-06-2005 at 10:12 PM.
 
Old 01-06-2005, 10:34 PM   #2
mipia
Member
 
Registered: May 2003
Location: lake michigan
Distribution: Debian, Mint, Slackware
Posts: 457

Original Poster
Rep: Reputation: 35
or have a swap and a "/" dir that can move around in size as it needs to? I dont really need much of a /home dir, I dont plan on having much in the way of personal files....?
 
Old 01-06-2005, 11:26 PM   #3
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
For a sandbox system...

I would either go with one large partition for / (and the swap of course)

Or a small / (~200M) and the rest in /usr (be sure to link /home to /usr/home so you don't fill the /)

Anything more complex than that, on a system where you don't have a specific knowedge of your needs, is going to bite you later.
 
Old 01-07-2005, 03:23 AM   #4
Dommy
Member
 
Registered: Jul 2004
Location: Canberra
Distribution: Mint 7
Posts: 204

Rep: Reputation: 30
I'd set up 256MB swap and the rest as / , I wouldn't bother segmenting it any further
 
Old 01-07-2005, 05:37 AM   #5
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
Definitely just / and swap.
 
Old 01-07-2005, 01:46 PM   #6
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
This is the BSD forum right?

The way you bust up your disk is directly related to what the system is going to be doing, but the installer will suggest how you should break up your disk. On a playpen like that one, I'd go with something like this:

Code:
/         128M
swap      96M
/tmp      128M
/var      128M
/usr      * (The rest)
You can get by with less on /var if you make sure not to have any system mail going to local users and make sure to keep your log files cleaned up. Note that databases will install their files to /var, so keep that in mind if you're going to be doing anything like MySQL or whatever.

The reasons for having your partitions broken up are more than historic, though they seem to be lost on the majority of people that would offer advice on such things. If you need more info, I'd suggest you man hier and read throughly.

Last edited by sigsegv; 01-07-2005 at 01:48 PM.
 
Old 01-07-2005, 03:00 PM   #7
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
No need to be condescending sigsegv... some of us who made recommendations for few partitions are more than aware of the reasons for multiple ones. And on a system that was being setup for real work we would have recommended a far different setup. From the description being given this computer is going to be used to play with FreeBSD and explore how it works. We have no way of knowing what will be run during the exploration.

Rather than specify partition information that may be wrong for the desired uses, we (or at least I) chose to offer the advice of one large partition.

If he comes back and says he wants to set the computer up for a specific chore and not for playing... then we could set up a correct scheme for his needs.

Just because we didn't recommend multiple partitions does not mean we aren't aware of their benefits. I can't think of a single computer in my house which lacks the standard four partitions (/, /tmp, /var, /usr) nor am I fresh from using Linux either -- just celebrated my fifth full year of FreeBSD as my main operating system a few weeks ago.
 
Old 01-07-2005, 03:49 PM   #8
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
Splitting up with the 4 + swap partitions will leave the OP with 1.5 gig for /usr, minus what's loaded for 5.3. Maybe 500-750meg free space? Lots of space is wasted on those multiple partitons that may be needed if additional software is added or a portsupgrade is performed. No sense taking the chance.

I once split up a 6gig on an older version, (but had X and WindowMaker, ~1gig /home) got close to running out of room during portsupgrade. I made my recomendation from previous experience. Greg Lehey doesn't recommend creating all those partitions anymore.

That's my story, and I'm sticking to it.
 
Old 01-07-2005, 06:51 PM   #9
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Quote:
Originally posted by -X-
Splitting up with the 4 + swap partitions will leave the OP with 1.5 gig for /usr, minus what's loaded for 5.3. Maybe 500-750meg free space? Lots of space is wasted on those multiple partitons that may be needed if additional software is added or a portsupgrade is performed. No sense taking the chance.
I seriously doubt that the user is going to be broken by the 50M or so that's going to be sitting around on /var, but I suppose it could happen. What could also happen is a user doing something they didn't mean to do and filling their home directory, which, will fill /, /var and /tmp ... Woops. Or how about fs corruption on /home (or the place the /home symlink points to)? No problem. Your worst case scenario is that you lose some data off /home, and likely /usr, which sucks but certainly isn't the end of the world. Unless of course you have one big / partition. Then you've (potentially) lost data all over the place.

Quote:
Originally posted by -X-
I once split up a 6gig on an older version, (but had X and WindowMaker, ~1gig /home) got close to running out of room during portsupgrade. I made my recomendation from previous experience. Greg Lehey doesn't recommend creating all those partitions anymore.
Yes, and every time Greg Lehey doesn't recommend creating all those partitions anymore we have to sit through the conversation that we're having right now about the rights and wrongs of doing it one way or the other and how quotas can save the world. Blah...

There's a lot more cons than pros from where I sit. This isn't 1997. Storage is less than $1/GB ... If you don't have enough, buy more.

Note to frob23 -- I wasn't trying to be condescending, though I regularly come across that way. It wasn't intentional, and I apologize if you took offense.

Last edited by sigsegv; 01-07-2005 at 06:52 PM.
 
Old 01-07-2005, 07:59 PM   #10
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
No problem... I'm not offended. It was just the first line of your post. I probably would have laughed it you had used the smiley because I knew exactly where you were going. But the rolling-eyes seemed to imply that "gosh... I can't believe I need to say this" kind-of attitude.

I know you are making some strong points (which I never disagreed with) about the fail-safe nature of the computer. But this machine (at least from how I interperted the post) isn't going to have a bunch of important data or function. I guess I was just thinking along the lines of it not being a major problem to blast the whole disk clean and reinstall if he needed to.

I take the stability of "toy" systems a lot less seriously then something I need to work or depend on.
 
Old 01-08-2005, 04:35 AM   #11
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
sigsegv............ it's... a.... 2gig... play.... box.... No need to get bent out of shape. With a bigger drive, I think we can all agree with more partitions.
 
Old 01-08-2005, 06:57 AM   #12
Dommy
Member
 
Registered: Jul 2004
Location: Canberra
Distribution: Mint 7
Posts: 204

Rep: Reputation: 30
Quote:
Originally posted by -X-
sigsegv............ it's... a.... 2gig... play.... box.... No need to get bent out of shape. With a bigger drive, I think we can all agree with more partitions.
Really depends on the application doesn't it?

Even with a big drive, if I'm not interested in whats on the drive I'll just bung in a single root partition. The only time I get fancy is if its a development box in which case I'll do root and home to make backups and upgrades easier. My idea of an upgrade by the way is going from Red Hat 7.2 to Mandrake 10.0.
 
Old 01-11-2005, 08:18 AM   #13
mipia
Member
 
Registered: May 2003
Location: lake michigan
Distribution: Debian, Mint, Slackware
Posts: 457

Original Poster
Rep: Reputation: 35
just an update, but the / and swap scheme are going just fine! This is one hell of an operating system! I have an old Ath 800mHz system that I decided to try to raise from the dead. Somehow I now have it running again. I have to flash the bios to get some modern large disk support, but when thats done its getting an 80 gig so I can actualy start using it.
Thanks for the input, its awsome to see arguements that realy make valid points. There's something different about the bsd community that I like. Just seems more to the point. Less elite-ism, more straight facts.
The pentium system is getting obsd next i think. Ya know, just to play with.
Again, thank you everyone!

Last edited by mipia; 01-11-2005 at 08:24 AM.
 
  


Reply



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
Partition scheme on 300GB drive anti.corp Debian 7 12-01-2005 02:06 AM
The Debian install thinks my 60 gig drive is a 33 gig drive! Nebetsu Debian 13 06-04-2005 12:41 AM
Why my 80 gig hard drive only shows 70 gig? dsuratman Linux - Newbie 3 11-19-2003 11:54 PM
HUGE Drive setup: Partition scheme suggestions... tarballed Linux - Networking 2 07-02-2003 04:43 PM
2 gig /var partition already full after 3 weeks Nigel_Tufnel Linux - General 2 02-26-2003 08:12 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 06:14 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration