BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 7th, 2004, 01:57 PM
bobotoes bobotoes is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 18 bobotoes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 23 m 36 sec
Reputation Power: 0
partitioning a 60GB laptop

i have a laptop with a 60GB hard drive. i am installing openBSD on it and there will be no other OS's present on this machine (i.e. the entire drive is to be used by openBSD). I am an average user and by that i mean i listen to music (have a lot of music), watch dvds, use Office programs, browse the web, check email, experiment... would it be beneficial for me to create more than one partition? if so what do you reccomend?

Reply With Quote
  #2  
Old December 7th, 2004, 02:25 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,478 Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 12 h 33 m 8 sec
Reputation Power: 852
See this URL:
http://www.openbsd.org/faq/faq4.html#SpaceNeeded
As a general rule of thumb, this is what I do:
Code:
/           100 MB
swap     2x available physical RAM or 512 MB, whichever is smaller.
/tmp       100 MB
/var        256 MB
/home     256 MB
/usr        rest of space. 

Of course, these are rule of thumb and I vary them according to my needs. For instance, for a webserver, I would set /usr to say 4 GB and make /var/www a separate partition with the rest of the space allocated to it. For a DNS/mail server, I use djbware and tend to allocate a separate /var/djb partition for DJB software alone. In your case, you may want to keep /usr to something like 10 GB and allocate the rest to /home, or perhaps a separate /mp3 partition for just your mp3s.
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne

Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month

Reply With Quote
  #3  
Old December 7th, 2004, 11:21 PM
bobotoes bobotoes is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 18 bobotoes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 23 m 36 sec
Reputation Power: 0
i'm still installing openBSD 3.6... i have partitioned my hard drive using a similar scheme... thanks... i am now using the ftp method of installation... will the downloaded files be installed in the appropriate partitions? (i.e. does the installer know where to place these files and to look for other mounted partitions or did i overlook an opportunity to specify?)

Reply With Quote
  #4  
Old December 8th, 2004, 09:04 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 14 m 53 sec
Reputation Power: 9
i really not agree.
you have 60GB, why so avaricious with partitions?
do you like probls?

- long time i worked w/ bsd, but you should be able to
put / /tmp /var an /usr on the same partition, make it
large enougt, say >4GB

- remember they are all SYSTEM directories, you (as normal
user) never should be forced to write on them.

- don't be stingy w/ swap, may be later you install more RAM
so the formula: 2x available physical RAM will be wrong!

- distribute the rest on partition w/ size you can
efficiently backup, assumed the backup device works
on max 10GB and you have a 50GB to save ..... no problem,
with a little (more) unix knowledge

- NEVER install foreign progs and data in /usr, because
a) offen you need root perms to work on
b) in the stupid case, you must re-install, /usr and
all your foreign progs are GONE.

- install foreign progs and data in an other partition,
classic: /export, if you need, make a symlink from /usr
to that dir (cd /usr; ln -s ../export/xxx), in case of
re-install, you sure can avoid to format += newfs the part
mounted on /export, this way you SAVE the DATA

- on OLD bsd, /usr have to mandatory be on partition 'g'
maybe it's no longer the case.

Reply With Quote
  #5  
Old December 8th, 2004, 12:46 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,478 Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 12 h 33 m 8 sec
Reputation Power: 852
Quote:
Originally Posted by guggach
- long time i worked w/ bsd, but you should be able to
put / /tmp /var an /usr on the same partition, make it
large enougt, say >4GB

It is a very bad idea to put / along with /tmp, /var and /usr. / contains /bin and /sbin. The ideal would be that once the OS boots up, it should have to access the / partition very sparingly. Thus, if you have a disk crash, chances are that the drive head will be positioned over a different area on the disk and thus your / partition will be intact. Therefore, you can in theory use the tools in /bin and /sbin (which are in the / partition) to bring up the rest of the system.

Quote:
Originally Posted by guggach
- remember they are all SYSTEM directories, you (as normal
user) never should be forced to write on them.

/var is usually read to and written to a lot, especially if this is a mail server. /tmp is written to by a lot of system daemons also. If I put them as separate partitions, I can mount / as read-only for greater security .

Quote:
Originally Posted by guggach
- don't be stingy w/ swap, may be later you install more RAM
so the formula: 2x available physical RAM will be wrong!

Notice I had a cap in my swap size. Actually, 512 MB may be too much too , because it never gets used up in most of my configurations. Heck, I could probably get away with just 256 MB for my purposes. Of course, your mileage may vary. Kernel core dumps do get written to the swap area, so if you're interested in debugging it, make sure that swap is at least slightly greater than available RAM.

Quote:
Originally Posted by guggach
- distribute the rest on partition w/ size you can
efficiently backup, assumed the backup device works
on max 10GB and you have a 50GB to save ..... no problem,
with a little (more) unix knowledge

This is very good advice.

Quote:
Originally Posted by guggach
- NEVER install foreign progs and data in /usr, because
a) offen you need root perms to work on
b) in the stupid case, you must re-install, /usr and
all your foreign progs are GONE.

- install foreign progs and data in an other partition,
classic: /export, if you need, make a symlink from /usr
to that dir (cd /usr; ln -s ../export/xxx), in case of
re-install, you sure can avoid to format += newfs the part
mounted on /export, this way you SAVE the DATA

OpenBSD standard is to install foreign programs under the /usr/local tree. This is pretty much the standard in all BSDs and Linux as well (man 7 hier or http://www.pathname.com/fhs/, though some Linux distros and howtos don't follow this at all. Neither does Daniel J. Bernstein). NetBSD standard is to install source compiled stuff in /usr/local and anything installed from ports/packages under /usr/pkg tree.

Quote:
Originally Posted by guggach
- on OLD bsd, /usr have to mandatory be on partition 'g'
maybe it's no longer the case.

Not any more: http://www.openbsd.org/faq/faq4.html#Disks
Quote:
Partitions are not assigned any particular letters -- with the exception of a (root), b (swap) and c (entire disk), the rest of the partitions (through letter p) are available for use as you desire.

Last edited by Scorpions4ever : December 8th, 2004 at 12:50 PM.

Reply With Quote
  #6  
Old December 8th, 2004, 12:48 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,478 Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 12 h 33 m 8 sec
Reputation Power: 852
Quote:
Originally Posted by bobotoes
i'm still installing openBSD 3.6... i have partitioned my hard drive using a similar scheme... thanks... i am now using the ftp method of installation... will the downloaded files be installed in the appropriate partitions? (i.e. does the installer know where to place these files and to look for other mounted partitions or did i overlook an opportunity to specify?)

Yes, the installer knows what partitions to install stuff at.

Reply With Quote
  #7  
Old December 8th, 2004, 03:08 PM
bobotoes bobotoes is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 18 bobotoes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 23 m 36 sec
Reputation Power: 0
how should i edit my fstab? when reading through the man pages i noticed an example that included lines for /proc and /kern both of which i have not included in my fstab. do i need to include these? the example also had a separte partition for /etc and /etc/local. do you see this as beneficial?

Reply With Quote
  #8  
Old December 8th, 2004, 03:10 PM
bobotoes bobotoes is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 18 bobotoes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 23 m 36 sec
Reputation Power: 0
what does it mean to dump a filesystem? does this mean that data will be erased?

Reply With Quote
  #9  
Old December 9th, 2004, 06:30 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 14 m 53 sec
Reputation Power: 9
scorpion, still not agree, we sure are NOT speaking about the same unix.
i work on solaris, and never backup / /usr /var /tmp because they are on CD.
to restore them i need 20 mins.
my private data, i mean /home and foreign progs are on an other part.
i know standard is /usr/local, on my sys /usr/local is a symlink to
/whateveryouwant/local where is the probl?
/tmp is 777
all progs (run by an mortal user) writing in / /usr and /var are 'setuid'
...
:q!


PS: i know OS they will 'swap' on partition '0' (also called 'a')

Last edited by guggach : December 9th, 2004 at 08:00 AM. Reason: changes

Reply With Quote
  #10  
Old December 11th, 2004, 10:36 AM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,478 Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level)Scorpions4ever User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 12 h 33 m 8 sec
Reputation Power: 852
Quote:
Originally Posted by guggach
scorpion, still not agree, we sure are NOT speaking about the same unix.
i work on solaris, and never backup / /usr /var /tmp because they are on CD.
to restore them i need 20 mins.

Haven't worked with Solaris for years, but on *BSD, a lot of stuff is written to /var (such as /var/db, /var/mail/ etc.)

Also, there's a good reason to keep / and /var on separate partitions. We had boxes installed with Linux and RedHat's default partitioning scheme puts everything on one large partition (/, /var/, /usr, /tmp etc. are all in one disk partition). Now we had an app that wrote lots of cache files (and a job to clear them that ran once a week). Also, we had other regular system jobs running on the box, but we turned off sendmail, hence the mail updates generated by the system jobs were being cached in the mail queue /var/mqueue. Eventually, all the jobs ended up filling the disk's inode table (even though the disk had space on it, the inodes were all used up and so no new files could be created). First sign of trouble we noticed was when apache started to return errors to us. So we tried to ssh into the box to clear some files. Now, since all the files in /var and /var/cache/tmp were all taking up the inode space and since everything was on a single partition, we couldn't ssh in? Why? Because ssh creates a file in /tmp when you log in and it couldn't do this because the inode table was full! The solution was to drive to the colocation (45 minute drive) and log into the box and empty out stuff. If we had different partitions, the filling up of inode table on /var wouldn't have affected our logging in, because /tmp is located in a root (or its own) partition.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > partitioning a 60GB laptop


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |