View Single Post
  #1   (View Single Post)  
Old 5th November 2010
guitarscn guitarscn is offline
Package Pilot
 
Join Date: Oct 2008
Posts: 166
Default How do I find out the offset of a partition?

I want to leave the 1st partition (0) alone and install OpenBSD on partition 2 (1). It says:

Code:
Disk: wd0        geometry:  19457/255/63   [312581808 Sectors]
Offset: 0        signature: 0xAA55
           starting      ending               LBA info:
#: id      C H S -       C       H    S   [      start:         size ]
0: EE      0 0 2 -       19457   80   63  [          1:    312581807 ] EFI GPT
Is my offset 1 or 63?

The OpenBSD guide says nothing about CHS mode so I'm not sure how to do this. I just selected 'no' so now I need the offset of my OpenBSD (A6) partition (e 1) so I'm stuck between 312581807 + 1 or 312581807 + 63. Or is it something else?

Okay I just noticed something doesn't look right. It seems as if the total disk sectors should equal to the size of all the partitions (if all the space is used) but it looks like fdisk sees the EFI GPT partition was the entire disk for some reason? Even though it's only 200-something megabytes.

Wait I'm going to try and fix this; I think the partition is indeed the entire disk so I'm gonna free up some space with GParted to make some unallocated

Newest edit: that fixed the problem

Last edited by guitarscn; 6th November 2010 at 12:42 AM.
Reply With Quote