DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 14th May 2021
ohmpr ohmpr is offline
Port Guard
 
Join Date: Feb 2021
Posts: 20
Default can't use full disk space when partitioning

hi,
I'm trying to install OpenBSD 6.9 on a 4 TB ssd but the partitioner won't let me resize disklabel partitions to use the whole fdisk partition. It shows over 3t of free space but limits my /var to 35G or so. For some reason it lets me resize my /home partition to a larger size but none of the others i have tried.

What is going on?

thanks
Reply With Quote
  #2   (View Single Post)  
Old 14th May 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Without any details, I have two guesses:
  1. The disklabel(8) editor will prevent you from overlaying 2 or more partitions. Their starting location and length must not overlap. So, for example, if you want a partition to start at LBA x with a length y, LBA x through LBA x+y-1 must already be unallocated before you are permitted to create the partition.
  2. If you have deployed an MBR, the MBR partition table is limited to 2TB (with 512-byte sector drives). Assignments beyond 2TB require using the disklabel(8) editor's "b" command to set the boundary beyond the MBR limit. This restriction does not apply to GPTs or disk drives that do not have either an MBR or a GPT.
Reply With Quote
  #3   (View Single Post)  
Old 14th May 2021
ohmpr ohmpr is offline
Port Guard
 
Join Date: Feb 2021
Posts: 20
Default

sorry, i just now remembered i have installed already and can at least post how it partitioned then.

disklabel -p g sd0
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: INTEL SSDPE2KX04
duid: 1f8aaffdb6281e0e
flags:
bytes/sector: 512
sectors/track: 255
tracks/cylinder: 511
sectors/cylinder: 130305
cylinders: 59967
total sectors: 7814037168 # total bytes: 3726.0G
boundstart: 1024
boundend: 7814037105
drivedata: 0

16 partitions:
# size offset fstype [fsize bsize cpg]
a: 1.0G 1024 4.2BSD 2048 16384 12960 # /
b: 16.1G 2098176 swap # none
c: 3726.0G 0 unused
d: 4.0G 35966944 4.2BSD 2048 16384 12960 # /tmp
e: 35.8G 44355552 4.2BSD 2048 16384 12960 # /var
f: 6.0G 119433120 4.2BSD 2048 16384 12960 # /usr
g: 1.0G 132016032 4.2BSD 2048 16384 12960 # /usr/X11R6
h: 20.0G 134113184 4.2BSD 2048 16384 12960 # /usr/local
i: 0.0G 64 MSDOS
j: 2.0G 176056224 4.2BSD 2048 16384 12960 # /usr/src
k: 6.0G 180250528 4.2BSD 2048 16384 12960 # /usr/obj
l: 300.0G 192833472 4.2BSD 4096 32768 26062 # /home

i used gpt, too.

i suspect it may be your #1 reason, as i was trying to edit only certain partitions, and i guess was hoping for some automagical handling of that, or some fancy assistance from the installer, or something. I will try again and create all partitions from scratch and see if it works as expected. I was hesitant to do that b/c i wasn't sure if the partition order was mandatory, what was going on with the c and i partitions(how i woulkd create those myself from scratch properly) , etc.

thanks
Reply With Quote
  #4   (View Single Post)  
Old 15th May 2021
ohmpr ohmpr is offline
Port Guard
 
Join Date: Feb 2021
Posts: 20
Default

@jggimi thanks a lot! that was it (#1)!

i just deleted all the partitions i wanted to change, then went in order creating them fresh, and it worked great.

I knew i was doing something dumb.
Reply With Quote
  #5   (View Single Post)  
Old 15th May 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Because you asked about partitions "c" and "i":
  • The "c" partition is reserved for the entire physical disk. It starts at LBA 0 and runs to the very last sector of the drive. You cannot change this with the disklabel(8) editor.
  • When a disklabel does not yet exist on a drive, OpenBSD will scan the MBR or GPT partition table for "foreign" partition types it recognizes. It creates a virtual, in-memory disklabel and assigns them to partitions starting with partition "i". After that disklabel is written to disk, OpenBSD won't scan your MBR/GPT partition table again. In this particular case, partition "i" maps to your GPT boot partition, which is a mountable FAT filesystem.
Reply With Quote
  #6   (View Single Post)  
Old 15th May 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Oh, you can force a rescan of MBR/GPT partition tables for foreign file systems. The disklabel(8) -d option or the disklabel(8) editor "D" command will *reset* the disklabel to the default. It will clear the disklabel completely, then rescan the MBR or GPT table. The disklabel will only contain the "c" partition and foreign MBR/GPT partitions starting with "i". All other disklabel partitions will be deleted.
Reply With Quote
  #7   (View Single Post)  
Old 16th May 2021
ohmpr ohmpr is offline
Port Guard
 
Join Date: Feb 2021
Posts: 20
Default

cool, thanks
Reply With Quote
  #8   (View Single Post)  
Old 4th June 2021
leave0 leave0 is offline
Port Guard
 
Join Date: Sep 2020
Posts: 30
Default

same problem to me ,would you mind to give more details about how to fix that?
Reply With Quote
  #9   (View Single Post)  
Old 4th June 2021
ohmpr ohmpr is offline
Port Guard
 
Join Date: Feb 2021
Posts: 20
Default

i don't know how much help i can be, as i don't remember the exact details, but feel free to describe more precisely what you're having trouble with and maybe someone can help.

Here's how i remember it:

i let the automatic partitioner partition the disk, i wrote down how it partitioned everything. Then i wrote down how i wanted the partitions to be (labels, sizes, mount points). You may not have to do all that writing, i'm just new to OpenBSD and wanted to make sure i didn't screw everything up. Then i deleted every partition except c and swap (IIRC). Then i created the partitions the way i wanted them to be (size, label, mount points, whatever). Then i was able to use all the space.
Reply With Quote
Old 8th June 2021
leave0 leave0 is offline
Port Guard
 
Join Date: Sep 2020
Posts: 30
Default

thank you
Reply With Quote
Reply

Tags
partitioning


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
Partitioning a large disk hanzer OpenBSD Installation and Upgrading 8 30th October 2018 08:54 PM
Partions and disk space PapaParrot OpenBSD General 15 16th May 2017 06:26 AM
Partitioning a Backup Disk? Mantazz FreeBSD Installation and Upgrading 2 29th April 2012 07:34 PM
Span Disk Space plexter OpenBSD Packages and Ports 8 20th November 2009 08:06 PM
Disk space gone missing EricM FreeBSD General 0 26th February 2009 02:25 AM


All times are GMT. The time now is 04:10 AM.


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