![]() |
|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Hi Folks,
I am following https://daemonforums.org/showthread.php?t=9472, Very nice "How to ...". I tried to reclaim the unused space on "c". I did something wrong, I started with b 64 but instead * (to the end) I enter a smaller number for size (I wanted to test how would create a smaller partition). I actually don't know what size 33554368 means, I assumed sectors. I do not know how to enter size in m or g. However, now the unused size is 16,384.0Mb and the free only 5.2Mb. Can I start over again? What is a default starting sector [64]? Last edited by lattimro; 3rd December 2022 at 04:56 PM. |
|
|||
![]()
To give a size in MB or GB, use +1M, +1G (+5M, +9G) etc.
(At least, that works on OpenBSD, should be the same for FreeBSD). Yes, re install with the sizes you want. ![]()
__________________
Linux since 1999, & also a BSD user. ![]() |
|
|||
![]() Quote:
and: 16378.76953125. free: 16383.97-16378.77=5.2 Can I do Automatic allocation (disklabel -A) now on the installed filesystem? Or you are referring to a fresh installation? Quote:
Last edited by lattimro; 3rd December 2022 at 08:19 PM. |
|
|||
![]() Quote:
Code:
c [part] Change the size of an existing partition. If no partition is specified, the user will be prompted for one. The new size may be in terms of the aforementioned units and may also be prefixed with ‘+’ or ‘-’ to change the size by a relative amount. Last edited by lattimro; 3rd December 2022 at 01:38 PM. |
|
|||
![]()
Reporting free 5.2M when "c" unused is 16,384M because I entered wrong size (5.2 M) when I resized. How to reclaim all 16,384M?
Last edited by lattimro; 3rd December 2022 at 01:34 PM. |
|
|||
![]()
What I meant was to do a completely new installation, it's easier than trying to change an installed system.
![]()
__________________
Linux since 1999, & also a BSD user. ![]() |
|
|||
![]() Quote:
Thanks for trying anyway ... |
|
||||
![]()
If you examine the output from disklabel(8) using sector counts -- that is, without using "m" or "g" to print the partition layout -- you will more easily be able to see if there are any unallocated sectors.
The growfs(8) utility can increase the size of a partition, but only if there are adjacent unallocated sectors that follow. The only other way to change an existing partition's size is to back it up, delete and reallocate it, then restore. |
|
|||
![]() Quote:
Thanks jggimi, much appreciated, I noticed I have issues with "c" increase size of wd0f. Could be because m or g or adjacent unallocated sectors or both. However I can shrink partition (but not saved just testing "c" command). The last question on this thread, please can you show me the adjacent unallocated on my label. I think it is the partition with the biggest offset 33 543 712 wd0i I think I will try to dump/restore method. I do not have room on / so I mounted newly created 8G wd0i partition on /mnt and dump|restore Code:
dump -0af - /usr | restore -rf - | rm restoresymtable Quote:
Changed in fstab /usr from (in my disklabel) "f" to "i". Reboot and first no X. At login prompt I can't log in because it is looking for /usr/local/bin/bash and I think it can't read /usr. However, I rebooted to single-user (boot -s) and I have access to /. Here's the disklabel and fstab (see attached). Note du output proved the dump |restore "copied" to /usr Not sure what I'm doing but ... I changed the SHELL for root to /bin/ksh and exit single-user and continue booting ... and got X, all good (see attached) Last edited by lattimro; 5th December 2022 at 02:40 AM. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
removing unused system daemons from the base install (for security) | puffyborg | OpenBSD Security | 2 | 24th August 2018 08:15 PM |
Windows exploit protection mostly unused | J65nko | News | 0 | 4th July 2010 09:22 PM |
ccd/vinum/? & unused drive space | diablito | OpenBSD General | 1 | 7th June 2010 06:23 PM |
Requesting a refund of an unused not wanted MS Windows license | guitarscn | Off-Topic | 11 | 29th January 2010 12:18 AM |
eclipse how to find unused ports? | disappearedng | FreeBSD General | 0 | 17th November 2008 12:34 AM |