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 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
  #2   (View Single Post)  
Old 5th November 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

For ease of any computation, and avoiding having to type giant numbers, just use CHS mode, and select your starting point to be cylinder 19458; the prompts will guide you to the ranges for head/sector for the starting point, and for then end point, will show the maximums.

But you have a different problem. Your disk is already full. Partition 0 consumes the whole thing.
Reply With Quote
  #3   (View Single Post)  
Old 5th November 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Ah, while I was typing, you were editing.

I don't often set up disks for multiboot, or sharing between OSes. And I don't have a test system handy at this instant to give you any more detailed guidance once you "shrink" your existing partition. But just go by the output of an interactive fdisk session in CHS mode, and you should be fine. Before writing out your MBR, double check that you don't have any overlays.
Reply With Quote
Reply

Thread Tools
Display Modes

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
Can't find portupgrade FreeBee FreeBSD Installation and Upgrading 2 6th January 2010 02:09 PM
K3b cannot find growisofs maxrussell FreeBSD General 5 26th April 2009 12:20 PM
pkg_add g95;g95 x.f95: cannot find g95 enpey OpenBSD Packages and Ports 8 27th August 2008 12:48 AM
How to find available IP addresses? bigb89 Programming 16 20th August 2008 07:32 PM
where might I find 'libcamel'? Damien787 FreeBSD Ports and Packages 16 17th June 2008 11:35 PM


All times are GMT. The time now is 10:22 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