Hi,
I ran in little trouble with my root server running OpenBSD. The standard installation gave me just about 5GB for OS. I'm trying to resize the root partition with my FreeBSD rescue mode (no OpenBSD rescue mode available).
I'm trying to do it this way but always end up with a big mess.
And of course booting after this is not successful. :-(
I'm reading now for a few days various threads about this topic but can not find a solution.
Perhaps anyone of you can help me please?
Thanks, Sasu
I ran in little trouble with my root server running OpenBSD. The standard installation gave me just about 5GB for OS. I'm trying to resize the root partition with my FreeBSD rescue mode (no OpenBSD rescue mode available).
Code:
root@mfsbsd:~ # gpart show ada0s4
=> 0 1953520001 ada0s4 BSD (932G)
0 63 - free - (32K)
63 10485760 1 freebsd-ufs (5.0G)
10485823 2097585 2 freebsd-swap (1.0G)
12583408 1940936593 - free - (926G)
I'm trying to do it this way but always end up with a big mess.
Code:
root@mfsbsd:~ # gpart delete -i 2 ada0s4
ada0s4b deleted
root@mfsbsd:~ # gpart show ada0s4
=> 0 1953520001 ada0s4 BSD (932G)
0 63 - free - (32K)
63 10485760 1 freebsd-ufs (5.0G)
10485823 1943034178 - free - (927G)
root@mfsbsd:~ # gpart resize -s 925G -i 1 ada0s4
ada0s4a resized
root@mfsbsd:~ # gpart show ada0s4
=> 0 1953520001 ada0s4 BSD (932G)
0 63 - free - (32K)
63 1939865600 1 freebsd-ufs (925G)
1939865663 13654338 - free - (6.5G)
root@mfsbsd:~ # gpart add -s 1G -t freebsd-swap ada0s4
ada0s4b added
root@mfsbsd:~ # gpart add -t freebsd-ufs ada0s4
ada0s4d added
root@mfsbsd:~ # gpart show ada0s4
=> 0 1953520001 ada0s4 BSD (932G)
0 63 - free - (32K)
63 1939865600 1 freebsd-ufs (925G)
1939865663 1 - free - (512B)
1939865664 2097152 2 freebsd-swap (1.0G)
1941962816 11557184 4 freebsd-ufs (5.5G)
1953520000 1 - free - (512B)
root@mfsbsd:~ # growfs -s 925G /dev/ada0s4a
growfs: superblock not recognized
And of course booting after this is not successful. :-(
I'm reading now for a few days various threads about this topic but can not find a solution.
Perhaps anyone of you can help me please?
Thanks, Sasu