Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 May 2004 22:49:44 +0800 (MYT)
From:      Senandung Mendonan <mendonan@absolute-p.ath.cx>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Mounting OpenBSD partitions
Message-ID:  <20040511223557.V1372@ybpnyubfg>
In-Reply-To: <20040507110926.U756@ybpnyubfg>
References:  <20040507110926.U756@ybpnyubfg>

next in thread | previous in thread | raw e-mail | index | archive | help
Referring to my previous post below, would it work if I manually do
"bsdlabel -R /dev/ad0s2 protofile", where protofile has values taken from
OpenBSD's disklabel? e.g.:-

#  size   offset    fstype   [fsize bsize bps/cpg]
a:   614187  80325   4.2BSD  2048 16384   328   # (Cyl.   79*- 688)
b:  1125936  694512    swap                     # (Cyl.  689 - 1805)
c: 78140160       0  unused     0     0         # (Cyl.    0 - 77519)
d:  6291936  1820448 4.2BSD  2048 16384   328   # (Cyl. 1806 - 8047)
e:  2410191  8112384 4.2BSD  2048 16384   328   # (Cyl. 8048 - 10439*)

Just checking before I potentially clobber my current installation.
Thanks..

On Fri, 7 May 2004, Senandung Mendonan wrote:

> Hi list,
>
> I have a multiboot system which includes OpenBSD and FreeBSD. In FreeBSD,
> how do I mount OpenBSD partitions? Below are the relevant details of my
> system:-
>
> 1. In FreeBSD:-
> ---------------
> (i) fdisk:-
> Disk name:      ad0                         FDISK Partition Editor
> DISK Geometry:  4864 cyls/255 heads/63 sectors = 78140160 sectors(38154MB)
> Offset       Size(ST)        End     Name  PType       Desc  Subtype
> Flags
>          0         63         62        -     12     unused        0
>         63      80262      80324    ad0s1      7        fat        6
>      80325   10442250   10522574    ad0s2      4 OpenBSD FFS      166
>   10522575   28820610   39343184    ad0s3      8    freebsd      165
>   39343185   38796975   78140159    ad0s4      4 extended DOS, LBA 15
>
> (ii) disklabel ad0s2:-
> disklabel: /dev/ad0s2: no valid label found
>
> (iii) disklabel ad0s3:-
> # /dev/ad0s3:
> 8 partitions:
> #        size   offset    fstype   [fsize bsize bps/cpg]
>   a:  1024000        0    4.2BSD     2048 16384 64008
>   b:  1171456  1024000      swap
>   c: 28820610        0    unused        0     0
>   d: 12582912  2195456    4.2BSD     2048 16384 28552
>   e: 14042242 14778368    4.2BSD     2048 16384 28552
>
> (iv) fstab:-
> /dev/ad0s3a on / (ufs, local)
> devfs on /dev (devfs, local)
> /dev/ad0s3d on /usr (ufs, local, soft-updates)
> /dev/ad0s3e on /var (ufs, local, soft-updates)
>
> 2. In OpenBSD:-
> --------------
> (i) fdisk:-
> Disk: wd0       geometry: 4864/255/63 [78140160 Sectors]
> Offset: 0       Signature: 0xAA55
>          Starting       Ending       LBA Info:
>  #: id    C   H  S -    C   H  S [       start:      size   ]
> ------------------------------------------------------------------------
>  0: 06    0   1  1 -    4 254 63 [          63:       80262 ] DOS > 32MB
> *1: A6    5   0  1 -  654 254 63 [       80325:    10442250 ] OpenBSD
>  2: A5  655   0  1 - 2448 254 63 [    10522575:    28820610 ] FreeBSD
>  3: 0F 2449   0  1 - 4863 254 63 [    39343185:    38796975 ] Extended LBA
> <snipped>
>
> (ii) disklabel wd0:-
> 16 partitions:
> #    size    offset  fstype  [fsize bsize   cpg]
> a:   614187  80325   4.2BSD  2048 16384   328   # (Cyl.   79*- 688)
> b:  1125936  694512    swap                     # (Cyl.  689 - 1805)
> c: 78140160       0  unused     0     0         # (Cyl.    0 - 77519)
> d:  6291936  1820448 4.2BSD  2048 16384   328   # (Cyl. 1806 - 8047)
> e:  2410191  8112384 4.2BSD  2048 16384   328   # (Cyl. 8048 - 10439*)
> i:    80262       63  MSDOS                     # (Cyl.    0*- 79*)
> j: 28820610 10522575 unknown                    # (Cyl. 10439*- 39030*)
> k: 14378112 39343248 unknown                    # (Cyl. 39031 - 53294)
>
> (iii) fstab:-
> /dev/wd0a / ffs rw 1 1
> /dev/wd0d /usr ffs rw,nodev 1 2
> /dev/wd0e /var ffs rw,nodev,nosuid 1 2
>
> One other thing, though not related to FreeBSD: I can't mount FreeBSD
> partitions in OpenBSD as well. UFS2 related issue?
>

--mendonan
"Yang mimpikan secangkir kopi panas dengan selimut.."
 (Dreaming of a cup of hot coffee, and a blanket..")



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040511223557.V1372>