Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Sep 2000 13:12:56 +0530 (IST)
From:      Rakhesh Sasidharan <rakhesh@cse.iitd.ernet.in>
To:        freebsd-questions@freebsd.org
Subject:   Accessing OpenBSD-2.7 partitions from FreeBSD-3.4 
Message-ID:  <Pine.LNX.4.10.10009021312150.1853-100000@basant.cse.iitd.ernet.in>

next in thread | raw e-mail | index | archive | help

Hi,

I have a setup in my machine as follows: 
	Slice3 -> OpenBSD
	Slice4 -> FreeBSD

I had installed FreeBSD first, and then OpenBSD.  After installing
OpenBSD, I booted into FreeBSD to try and access the OpenBSD partitions
from there.

$ disklabel wd0s3
disklabel: ioctl DIOCGDINFO: Invalid argument

$ disklabel -r wd0s3
# /dev/rwd0s3c:
(snip)
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
sectors/unit: 33683328
(snip)

16 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:    71680  8456466    4.2BSD     1024  8192    16 	# (Cyl. 8389*- 8460*)
  b:   272624 14850322      swap                    	# (Cyl. 14732*- 15002*)
  c: 33683328        0    unused        0     0       	# (Cyl.    0 - 33415)
  d:  4755456  9992466    4.2BSD     1024  8192    16 	# (Cyl. 9913*- 14630*)
  e:    51200  8528146    4.2BSD     1024  8192    16 	# (Cyl. 8460*- 8511*)
  f:  1413120  8579346    4.2BSD     1024  8192    16 	# (Cyl. 8511*- 9913*)

However, I try to access wd0s3a, and it gives me the following error:

$ mount /dev/wd0s3a /mnt/
mount: /dev/wd0s3a on /mnt: incorrect super block

Why ?  What is wrong ?  From what I experimented around with, (and my own
limited knowledge from that), I feel it is because FreeBSD is getting
confused with the offsets of partitions 'a' etc.  FreeBSD expects offsets
relative to the slice, but these are all absolute.  I tried changing the
offset to '0', but disklabel gave an error that there is 'No space left on
device.'

I even tried changing things like the offsets and sizes of 'c' and the
number of sectors/unit etc. -- but all of them ended up in
failures.  Please help.

TIA.
Rakhesh




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.10.10009021312150.1853-100000>