Mounting FreeBSD partitions on OpenBSD

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Mounting FreeBSD partitions on OpenBSD

Roger Midmore
I'm trying to mount my FreeBSD partitions in OpenBSD. OpenBSD has no
problem finding, reading and writing to the root partition for FreeBSD but
doesn't see the other partitions(/home, /usr, /var). I know I have to
manually edit the disklabel to add those partitions. My problem is that
the disklabel editor doesn't want to change or edit a partition that isn't
on the OpenBSD slice. Is there anyway to edit the disklabel using
disklabel without resorting to an editor like vi since I don't feel
entirely comfortable manually computing and changing the tabel, or if that
is my only option, what is the required entries to the table I need to
provide?

thanks,
roger

Here is the disklabel from FreeBSD:
# /dev/ad0s2:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  1024000        0    4.2BSD        0     0     0
  b:  4096000  1024000      swap
  c: 39359250        0    unused        0     0         # "raw" part,
don't edit
  d:  1024000  5120000    4.2BSD        0     0     0
  e:  1024000  6144000    4.2BSD        0     0     0
  f: 10240000  7168000    4.2BSD        0     0     0
  g: 21951250 17408000    4.2BSD        0     0     0

And here is the disklabel from OpenBSD: "j" is the partition I want to add
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: HTS541060G9AT00
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 117210240
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0                # microseconds
track-to-track seek: 0        # microseconds
drivedata: 0
16 partitions:
#             size        offset  fstype [fsize bsize  cpg]

  a:       1023435      78734565  4.2BSD   2048 16384  328 # Cyl 78109*-
79124
  b:       4095504      79758000    swap                   # Cyl 79125 -
83187
  c:     117210240             0  unused      0     0      # Cyl     0
-116279
  d:       1024128      83853504  4.2BSD   2048 16384  328 # Cyl 83188 -
84203
  e:       1024128      84877632  4.2BSD   2048 16384  328 # Cyl 84204 -
85219
  f:      10240272      85901760  4.2BSD   2048 16384  328 # Cyl 85220 -
95378
  g:      21068208      96142032  4.2BSD   2048 16384  328 # Cyl 95379
-116279
  i:      39375252            63   MSDOS                   # Cyl     0*-
39062*
  j:      39359250      39375315 unknown                   # Cyl 39062*-
78109*

Reply | Threaded
Open this post in threaded view
|

Re: Mounting FreeBSD partitions on OpenBSD

Ted Unangst-2
On 1/30/07, [hidden email] <[hidden email]> wrote:

> I'm trying to mount my FreeBSD partitions in OpenBSD. OpenBSD has no
> problem finding, reading and writing to the root partition for FreeBSD but
> doesn't see the other partitions(/home, /usr, /var). I know I have to
> manually edit the disklabel to add those partitions. My problem is that
> the disklabel editor doesn't want to change or edit a partition that isn't
> on the OpenBSD slice. Is there anyway to edit the disklabel using
> disklabel without resorting to an editor like vi since I don't feel
> entirely comfortable manually computing and changing the tabel, or if that
> is my only option, what is the required entries to the table I need to
> provide?

use 'b' to set the disk boundary.