|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|
|||
Resizing /usr
Hi,
I've OpenBSD 4.8 i386 installed on my multiboot box on wd1. Here is my slice geometry in MB- Quote:
Best, David |
|
|||
4.8 release? there really isn't any reason to be building ports at all.. the requirements will well exceed the partition size.
That is a very strange layout, I'm not sure why you chose those sizes. Use packages to fit within the alloted space, while I can't be entirely sure from that partial layout.. but a partition immediately proceeds /usr which would prevent growing it, perhaps you could recreate /usr if you reserved some space near the end of the partition. |
|
|||
Quote:
Yeah I'm on 4.8. I have shrunk /home by 3 gig, should I delete the /usr and create new or how do I go about it. 'r' shows handful of free space. I had Linux installed first and openbsd labeled all the partitions, that is why the partition entries appear strange. If I delete and re-create slices, will I be able to boot back. Last edited by jewsofeast; 18th November 2010 at 04:01 AM. |
|
|||
I've removed distfiles and it freed some space.
Please let me know - 1. Is there anyway I can build in memory instead of writing to disk. 2. Can I copy /usr to /home and later recreate /usr slice. 3. I dont really need swap. Can I delete it. Best, David |
|
|||
Quote:
Code:
cp -Rp /usr /home/usr I guess I have fair *nix skills, got 30 OS (including OpenBSD) on my box, have built FreeBSD, NetBSD, Gentoo & Arch. How do I link '/usr' to '/home/usr' for PKG_PATH. I on vacation and wont mind spending time on this. Best, David |
|
||||
Quote:
Important structures like /usr/bin, /usr/sbin, /usr/libexec, and /usr/lib are required just to to operate the OS. By the way, /usr/include is needed to "build" anything. And, since you mentioned GDM, you might find /usr/X11R6 of value, also, since that's needed for the X Windows System. There are many other structures under /usr that required for normal operation or maintenance. The hier(7) man page lists a number of them. To move or resize /usr, you will need to operate the OS in single-user mode. And you will need to avoid executing any utilities from within /usr/bin or /usr/sbin or /usr/libexec during the operation. You used cp(1) to create your replica, but that is not best practice for replicating filesystem, as it does not deal with hard links, device nodes, named pipes, or other special files. Far better tools would be dump(8) and restore(8), tar(1), cpio(1), or pax(1). To "mount" /home/usr as /usr, you could create a local NFS mount, or create an iso image of /home/usr and mount it.. But: This is not recommended, because you will have created an unsupportable, non-standard environment. A "Frankensystem". Unsupportable: no one will be able to answer questions about any problems that occur -- nor will anyone want to. And unsupported by the OpenBSD Project: no bug reports will be accepted or acted upon. Quote:
|
|
||||
Step-by-step instructions for "resizing" /usr, using /home as a temporary storage facility. Warning: This is just typed up here for your convenience, just now. I have not -tested- this procedure as written, and may have made a mistake. Or two. Hint: If you blindly copy/paste these commands without understanding them, you are likely to get into trouble.
Last edited by jggimi; 18th November 2010 at 02:30 PM. Reason: I had used gzip and gzcat when I wrote this. Sorry, but no, they're in /usr/bin and require /usr/lib. |
|
|||
Quote:
I know swap can save life but i am on i386 atm and that doesnt read my complete ram. I will resize '/home' and put the swap at the end of the disk. Best, David |
|
|||
Been there done that -
Quote:
I'm having same issue with NetBSD 5.0.2, can I apply these there. Best, David |
|
|||
Okay, I will make another thread under NetBSD section.
|
Tags |
sub-slice resizing |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Resizing /usr | abdo88 | FreeBSD General | 15 | 12th July 2008 01:49 PM |
Resizing FreeBSD partition | Cloud | FreeBSD General | 3 | 28th June 2008 03:40 AM |