|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
Omitting /usr/src & /usr/obj partitions?
Hello folks! Maybe this is a dumb question.. I'm wondering if it's reasonable to save space on and/or omit the /usr/src and /usr/obj paritions completely?
That said, can any problems arise from just omitting these two partitions and use the space (several gigabytes in auto-layout for 40GB SSD) for /home or /var ? Are these partitions needed when upgrading the system using sysupgrade? Bonus questions:
Thanks in advance for your help! |
|
|||
The auto setup is just a list of partitions, you can run the system with just a / (root) partition, if you really want, but I'd suggest at least a / & /home for a basic user system, it's what I do, but others recommend other setups.
__________________
Linux since 1999, & also a BSD user. |
|
|||
I usually do one of 3 things.
1. One partition as suggested above. 2. Use the default, expand home, and store my data there (workstaion) 3. Add a new partition and mount (/mystuff or whatever) and store my data there (server) |
|
||||
Quote:
|
|
|||
Thanks for your feedback.. but I should have been more clearer:
@bsd-keith @vns3 Sure, I know that I can run everything off a single partition. (Although this is not recommended for reasons like root filling up or suid allowed everywhere..) I'm doing this on some systems. The setup I'm planning at the moment, however, will provide shell access for multiple users, so I'll try to consider security and won't allow suid or wxallow everywhere. So I guess my question should have been: Am I likely to run into filesystem space shortage on the /usr partition if I allocate the space that is considered for /usr/src and /usr/obj by auto-layout to other partitions like /var or /home? (Provided I'm not planning to compile BSD from source on this system and/ or add users to the wobj & wsrc group.) I have checked /usr/src and /usr/obj on my other OpenBSDs (web- and DNS-servers) and they are always empty - so I guess there won't be a problem. My personal insecurity here probably arises from the fact that I'm not certain under which circumstances the /usr/src and /usr/obj paths are used. (Just when I want to compile full systems?) @Head_on_a_Stick I know faq4.html#Partitioning and it contains a note on wxallow on /usr/local, but nothing regards why /usr/src and /usr/obj have the nosuid flag or why there's relatively much space allocated to them, esp. to /usr/obj. Same for /usr/X11R6. Maybe it's too obvious or documented somewhere else, but at least I could have used a few more words on the auto-layout in this place. Thank you all very much! |
|
|||
OpenBSD targets their own developers and the separate /usr/src/, /usr/obj/ patitions enable members of a specific group to develop without being root.
On an emmc storage limited HP Stream 14, I routinely intervene during setup and remove the /usr/src and /usr/obj partitions and allocate the space to /usr/local and /home.. If I need a custom port (/usr/obj), on another machine I can build the package and transfer it to the Stream 14 for installation. Last edited by shep; 29th November 2023 at 02:45 PM. |
|
|||
Quote:
Also.. I should have searched the forum better instead of relying on Google; there's a thread from 2018 that thematizes quite the same: https://daemonforums.org/showthread.php?t=10853 Again, thank you guys! |
Tags |
partitioning, partitions, setup |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
can't determine partitions | dchmelik | NetBSD Installation and Upgrading | 4 | 8th October 2021 12:07 PM |
Omitting partitions | beavers | OpenBSD Installation and Upgrading | 12 | 24th November 2018 03:49 AM |
Cannot see ext4 partitions | notooth | OpenBSD General | 8 | 19th November 2015 06:20 PM |
BSD partitions and stuff | desreguard | OpenBSD General | 3 | 30th August 2011 08:00 PM |
partitions | italogf | FreeBSD Installation and Upgrading | 5 | 7th July 2008 12:14 PM |