DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 30th August 2011
desreguard desreguard is offline
Port Guard
 
Join Date: May 2011
Posts: 11
Thanked 0 Times in 0 Posts
Default BSD partitions and stuff

Hey all, Im trying to install PHP on my OPenBSD 4.8 box. When I try to install it I get some errors saying that the
Code:
/usr
partition is full. Here are my partitons

Code:
#                size           offset  fstype [fsize bsize  cpg]
  a:          2097152               64  4.2BSD   2048 16384    1 # /
  b:          1568832          2097216    swap
  c:        156301488                0  unused
  d:          8388608          3666048  4.2BSD   2048 16384    1 # /tmp
  e:         10477696         12054656  4.2BSD   2048 16384    1 # /var
  f:          4194304         22532352  4.2BSD   2048 16384    1 # /usr
  g:          2097152         26726656  4.2BSD   2048 16384    1 # /usr/X11R6
  h:         18412448         28823808  4.2BSD   2048 16384    1 # /usr/local
  i:          4194304         47236256  4.2BSD   2048 16384    1 # /usr/src
  j:          4194304         51430560  4.2BSD   2048 16384    1 # /usr/obj
  k:        100671488         55624864  4.2BSD   2048 16384    1 # /home
My questions is: Can I move space from the c: partition to the f: partition w/o having to reinstall the OS? And if so what tools do I use?
Reply With Quote
  #2   (View Single Post)  
Old 30th August 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,888
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by desreguard View Post
My questions is: Can I move space from the c: partition to the f: partition w/o having to reinstall the OS? And if so what tools do I use?
No. c represents the entire disk. It should not be altered.

You can look at growfs(8), but it can be used only when the adjacent sectors are free. The disklabel(8) output provided doesn't show that you have such latitude.

If you can add a disk to the system, you can possibly move /usr (or whatever partitions you wish...), but think through the process before embarking. Studying Section 14.4 of the FAQ is a good start.

Lastly, a trick jggimi advocates is to simply create one all-encompassing partition if you are unsure what sizes partitions should be. Once you have a clearer understanding of what sizes partitions need to be for your usage, then you can slice up the disk(s) again.
Reply With Quote
  #3   (View Single Post)  
Old 30th August 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,719
Thanked 214 Times in 189 Posts
Default

Quote:
...think through the process before embarking.
Truly.

The root partition can only be safely moved or manipulated when running the ramdisk kernel, or booting a copy of the OS from an alternative drive, such as a USB stick. Bootblocks will need to be reinstalled, and the specifics will vary depending on architecture. For i386 and amd64, installboot(8) is used.
When the ramdisk kernel is used, it is limited to static-linked utilities already included in the environment or copied to its very small amount of free space.
Single-user mode might be used to manipulate the /usr partition, if proper considerations are made for any of its executable files and their libraries, which might become unavailable during the chosen evolution. The ramdisk kernel or an alternate drive are likely to be preferable.
Reply With Quote
  #4   (View Single Post)  
Old 30th August 2011
sepuku's Avatar
sepuku sepuku is offline
Real Name: Vizard Sepuku
Package Pilot
 
Join Date: Jun 2011
Location: Athens & Chania,Greece
Posts: 143
Thanked 0 Times in 0 Posts
Default

I had excactly the same problem when i installed OpenBSD for the first time and did not know what to do.And i could not build java cause there was not enough space(I had chosen the defaults to the installation).In case the tricks suggested above won't work and you want a suggetsion my "trick" was to give 10 gb to my /home directory (i need just for programming projects) and given the rest of the capacity to /usr dir.

Of course i also had a root,a swap and a tmp directory.

I gave the rest of the capacity to /usr in case i had problems in the future such as the one i had when building java.
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
Funny stuff Carpetsmoker Off-Topic 551 3 Weeks Ago 03:56 PM
Operating BSD partitions through XP SunSpyda OpenBSD General 10 16th September 2009 08:22 PM
How to swap partitions Help revzalot OpenBSD Installation and Upgrading 2 1st September 2009 07:44 AM
more than four primary partitions? gosha OpenBSD General 40 13th August 2009 11:43 AM
partitions italogf FreeBSD Installation and Upgrading 5 7th July 2008 12:14 PM


All times are GMT. The time now is 01:22 AM.


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