Reply
 
Thread Tools Display Modes
  #1  
Old 12-09-2005, 11:03 PM
gemsling gemsling is offline
Junior Member
 
Join Date: Dec 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default /home vs. /usr/home
When installing PC-BSD 1.0RC1, I decided to use the disklabel option, creating small partitions for swap, / and /var, following an example in the FreeBSD Handbook [1].

All was going well until I tried to download a large file to my home directory and the / partition ran out of space. I've since read that on FreeBSD and PC-BSD, /home is just a link to /usr/home, but in my case, it's not a symlink at all, so it sits under the / filesystem rather than /usr.

Which is correct? If /home has been changed to no longer be a symlink, I'm wondering whether I should install everything on one big partition, or whether I should create separate partitions for /home and /usr.

--
Nathan Jones

[1] http://www.freebsd.org/doc/en_US.ISO885 ... steps.html
Reply With Quote
  #2  
Old 12-09-2005, 11:32 PM
sblevin sblevin is offline
Senior Member
 
Join Date: Jun 2005
Location: Australia
Posts: 909
Thanks: 0
Thanked 0 Times in 0 Posts
Default
By default PC-BSD uses one big partition and /var /usr /home etc are directories rather than patitions.

You are right, /usr/home is gone now - I assume that was a FreeBSD 6 change - PC-BSD should not have made a change of that magnitude. They did make some other changes to the standard BSD directory structure, /stand is gone now as well.

You may want to create a custom /swap partition I suppose, but I leave that up to the auto installer. If you have massive ram and little HD space creating a smaller swap "might" help reclaim some space, but thats ad advanced option that really should only be taken if you believe you have good reason, and know how much swap you would be likely to need.

Seperate patitions for /home and /usr are generally a bad idea on a desktop/home user system.
Reply With Quote
  #3  
Old 12-09-2005, 11:50 PM
DrJ DrJ is offline
Senior Member
 
Join Date: May 2005
Location: Gold Country, CA
Posts: 419
Thanks: 0
Thanked 0 Times in 0 Posts
Default
There are a LOT of opinions on how a disk should be partitioned. The "standard" way, if you can call it that, is to have slices for /, /dev, /tmp, /usr and /var. The reasoning is that you would like to protect these slices from each other in the event that any one of them overflows or does other unwise things (like the famous rm -r *). /tmp and /var, for example, can grow to sizes that you might not expect, and if they do, the rest of the system works fine.

Now you don't mention that you created /usr at all; I'll assume you did. I also don't know why you have a /home directory, as mine sits in its usual /usr/home location. /home for me is a symlink to /usr/home.

If you want to change this, it would be easy simply to move it by creating /usr/home, copying the contents of /home to its new location, removing the /home directory, and then adding the symlink pointing to /usr/home. Everything should work fine.

You should note that I use straight FreeBSD (6.0 at the moment) so I don't quite know how Kris sets things up (or exactly what you did). I used pretty much standard partitioning when I laid out the disk, which was back in the 6.0-RC1 days. Perhaps things have changed, but I would be surprised.

Regarding your question on whether simply to create one large / directory, I suggest that you don't do it. The added safety in breaking things up is nice, and in this era of very large disk drives, the small amount of space you "waste" is not that important.

It might help if you post how you partitioned the drive, for example, by looking at the output of the command "df" (without the quotes).

DrJ
Reply With Quote
  #4  
Old 12-10-2005, 12:02 AM
DrJ DrJ is offline
Senior Member
 
Join Date: May 2005
Location: Gold Country, CA
Posts: 419
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Steve,

Once again, you and I were typing replies at the same time. We gotta stop doing that!

PC-BSD really uses one large partition? Maybe I'm just conservative, but I don't think that's a good idea. I've had overflow conditions that would have eaten the entire disk, and I'm glad they just took down /tmp (in my case).

The other changes you mention, if they happened in FreeBSD, they happened with 6.0-RELEASE, and not with any of the earlier release candidates. I would really be surprised if this happened, as I mentioned, as the FreeBSD crew are very conservative about some things. Then again, I still have the /stand directory, so maybe you are right.

DrJ
Reply With Quote
  #5  
Old 12-10-2005, 12:37 AM
sblevin sblevin is offline
Senior Member
 
Join Date: Jun 2005
Location: Australia
Posts: 909
Thanks: 0
Thanked 0 Times in 0 Posts
Default
I FOUND IT!!!!! I knew I read it somewhere: from http://www.freebsd.org/doc/en_US.ISO885 ... world.html

20.4.13 Update /stand

Note: This step is included only for completeness. It can safely be omitted. If you are using FreeBSD 5.2 or later, the /rescue directory is automatically updated for the user with current, statically compiled binaries during make installworld, thus obsoleting the need to update /stand (which does not exist at all on FreeBSD 6.0 and later).

Not being pedantic, just pointing out the every now and then FreeBSD will take crack and make some changes. I'm still looking for the reference to the replacement of /usr/home with no simlink to it's new home /home. If this one is correct, can you IMAGINE how many scripts will break?

type
which sysinstall
Reply With Quote
  #6  
Old 12-10-2005, 12:41 AM
DrJ DrJ is offline
Senior Member
 
Join Date: May 2005
Location: Gold Country, CA
Posts: 419
Thanks: 0
Thanked 0 Times in 0 Posts
Default
I knew about the elimination of /stand in 6.0. That I still have it means to me that some changes were indeed made from the release candidates to the release. But your comment is right on -- too much would break if /usr/home would be eliminated. I'd be surprised. Then again, I've been surprised before, and undoubtedly will be again.

DrJ
Reply With Quote
  #7  
Old 12-10-2005, 12:47 AM
sblevin sblevin is offline
Senior Member
 
Join Date: Jun 2005
Location: Australia
Posts: 909
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Thanks DrJ

Does anyone have the final release of FreeBSD 6.0 installed? Does it have a /usr/home directory , or what is the status of /home and /usr/home in terms of existence and symlinks?. This is really important to know about I believe - I have multiple installs of the released version of PC-BSD1.0rc1 and they all have no /usr/home or simlink to it - only /home exists. Maybe it's just my install. I'd made some really stupid posts a while back about rc1 only to realise I had a pre-release copy and they all changed when I downloaded the version promoted on this site. But I'm running the "right" version now.
Reply With Quote
  #8  
Old 12-10-2005, 12:57 AM
Dingens Dingens is offline
Senior Member
 
Join Date: May 2005
Location: GER
Posts: 1,004
Thanks: 0
Thanked 0 Times in 0 Posts
Default
xxx

--- edit ----------------------------------------------
sorry wrong thread
Reply With Quote
  #9  
Old 12-10-2005, 01:08 AM
DrJ DrJ is offline
Senior Member
 
Join Date: May 2005
Location: Gold Country, CA
Posts: 419
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Well, this sort of thing (directory locations and partitioning) is very easy to change. Partitioning may just be my thing, but maintaining complete compatibility with FreeBSD ports is important. Where certain things are located is part of that. A very simply fix, for example, would be to point to /home from /usr/home if that directory is still needed.

Unfortunately, it seems that to answer the original question we have to know what exactly PC-BSD is doing, and what 6.0 is doing, about /home and /usr/home. That's not clear to me at all, as I upgraded from the release candidates and didn't install 6.0-RELEASE to begin with.

DrJ
Reply With Quote
  #10  
Old 12-10-2005, 04:07 PM
Solarin's Avatar
Solarin Solarin is offline
Super Moderator
 
Join Date: Jul 2005
Location: Birmingham, UK
Posts: 743
Thanks: 0
Thanked 0 Times in 0 Posts
Default
The change to /home instead of /usr/home was a FreeBSD 6.0 change, *not* a PC-BSD one.

Hope that clears some things up.
__________________
Tim McCormick
PC-BSD Lead Developer
tim at pcbsd.org
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Seti@home mbrocknroll Feature Requests 2 04-10-2010 05:33 PM
lights on - nobody home Rita G. General Questions 3 06-12-2009 07:52 AM
home server Heath Pois General Questions 3 03-16-2007 08:31 PM
Setting up BSD for home ranran Networking 1 02-12-2007 09:52 PM
PBI Install to home Majorlag Feature Requests 2 10-30-2005 04:55 AM


All times are GMT. The time now is 12:53 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.