DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 3 Weeks Ago
beavers beavers is offline
Fdisk Soldier
 
Join Date: Nov 2017
Posts: 54
Default Omitting partitions

Doing a fresh install on some new hardware, and was racking my braing trying to determine if there's any issue with omitting entirely the separate partitions for /usr/src, /usr/obj, and /usr/X11R6. I won't ever be building from source, nor building ports, nor installing the xenocara set. Is there any other reason to keep these partitions around?
Reply With Quote
  #2   (View Single Post)  
Old 3 Weeks Ago
ibara's Avatar
ibara ibara is offline
Future Defcon 201 speaker
 
Join Date: Jan 2014
Posts: 634
Default

You're free to omit /usr/src and /usr/obj if you know you will never build anything, and omit /usr/X11R6 if you know you will -x* on install. But you should keep /tmp, /var, /usr, and /usr/local around.
Reply With Quote
  #3   (View Single Post)  
Old 3 Weeks Ago
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 177
Default

On my home systems - I only have / & /home partitions - works well for me.
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
  #4   (View Single Post)  
Old 3 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,381
Default

Quote:
Originally Posted by bsd-keith View Post
On my home systems - I only have / & /home partitions - works well for me.
You are lucky, then. This can cause boot failures on i386 and amd64, depending on a) BIOS sector addressing limits, which vary from BIOS to BIOS, and b) the LBA locations of the inode and data containing the /boot second stage bootloader, which moves with every install or upgrade.
Reply With Quote
  #5   (View Single Post)  
Old 3 Weeks Ago
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 177
Default

That surprises me, as this is how I've always installed it on my computers.
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
  #6   (View Single Post)  
Old 3 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,381
Default

The FAQ used to have a discussion on this. While it no longer does, old copies exist in the www CVS repository. Take a look at Section 14.8 of this 2012-era version of FAQ Chapter 14.
Reply With Quote
  #7   (View Single Post)  
Old 3 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,381
Default

And, yes, people are still having boot problems because of this. See this discussion from misc@ that occurred two weeks ago. Or this one from bugs@ from this week.
Reply With Quote
  #8   (View Single Post)  
Old 3 Weeks Ago
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 177
Default

Wowza! I usually choose whole disk, then create a custom label, using z to clear what might be there, then create the a partition as / then add the d partition for /home.

Guess I've been lucky
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
  #9   (View Single Post)  
Old 3 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,381
Default

Along with your continued good luck, you also operating with some security risks that would be mitigated by being selective with the mount options used by each partition.

As one example of many, your current configuration prevents you from running binaries with OpenBSD's W^X security protection enabled.
Reply With Quote
Old 3 Weeks Ago
hitest's Avatar
hitest hitest is offline
Real Name: George Nielsen
Package Pilot
 
Join Date: Sep 2008
Location: B.C., Canada
Posts: 217
Default

Quote:
Originally Posted by jggimi View Post
Along with your continued good luck, you also operating with some security risks that would be mitigated by being selective with the mount options used by each partition.
My understanding of the extensive disk layout system of OpenBSD is that it helps to mitigate security risks. I think I may have read that in Absolute OpenBSD. I keep the default partition layout. I may use a custom layout in that I will vary the size of each partition a bit, but, I keep the default partitions.
__________________
hitest
Reply With Quote
Old 3 Weeks Ago
LeFrettchen's Avatar
LeFrettchen LeFrettchen is offline
Marveled user
 
Join Date: Aug 2012
Location: France
Posts: 334
Default

Quote:
Originally Posted by hitest View Post
I may use a custom layout in that I will vary the size of each partition a bit, but, I keep the default partitions.
The same here, I just adjust some sizes...
__________________
The secret of wisdom is not wisdom itself, it's the road that leads us there.
Reply With Quote
Old 3 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,381
Default

Automatic allocation defines 10 partitions for drives greater than 8GB, 4 partitions for drives between 8GB and 2GB, and 2 partitions (swap, root) for drives smaller than 2GB. Admins can also define their own templates, too.

Years ago, I used to recommend two partitions (swap, root), for the purpose of provision sizing prior to production deployment. This was because disk layout needs were sometimes hard to predict in advance. However, the boot limitation issue would sometimes occur, making this a less-than-practical recommendation. At the same time, storage capacities increased dramatically, making pre-launch testing for final layouts much easier for admins to conduct. I stopped recommending it.
Reply With Quote
Old 2 Weeks Ago
jmccue jmccue is offline
Real Name: John McCue
Port Guard
 
Join Date: Aug 2012
Location: here
Posts: 19
Default

There is no harm, I did that in the past but but after a bit of research I would suggest you put /usr/local in it's own partition.

The reason I suggest that is you can avoid using mount option 'wxallowed' on all drives except on /usr/local
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
making many partitions jgisme FreeBSD Installation and Upgrading 1 23rd August 2012 06:27 PM
a question on partitions daemonfowl OpenBSD General 3 15th March 2012 01:46 PM
BSD partitions and stuff desreguard OpenBSD General 3 30th August 2011 08:00 PM
Operating BSD partitions through XP SunSpyda OpenBSD General 10 16th September 2009 08:22 PM
partitions italogf FreeBSD Installation and Upgrading 5 7th July 2008 12:14 PM


All times are GMT. The time now is 10:43 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick