Hi,
   I have a dual boot system openbsd3.7/freebsd5.4

>From openbsd:

# fdisk /dev/rwd0c
Disk: /dev/rwd0c        geometry: 4865/255/63 [78156225 Sectors]
Offset: 0       Signature: 0xAA55
         Starting       Ending       LBA Info:
 #: id    C   H  S -    C   H  S [       start:      size   ]
------------------------------------------------------------------------
*0: A6    0   1  1 - 1826 254 63 [          63:    29350692 ] OpenBSD     
 1: A5 1827   0  1 - 4864 254 63 [    29350755:    48805470 ] FreeBSD     
 2: 00    0   0  0 -    0   0  0 [           0:           0 ] unused      
 3: 00    0   0  0 -    0   0  0 [           0:           0 ] unused      


I want to be able to access the files on the freebsd slice from openbsd.
disklabel on freebsd gives
# /dev/ad1s2:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  1048576        0    4.2BSD     2048 16384     8 
  b:  1048576  1048576      swap                    
  c: 48805470        0    unused        0     0         # "raw" part, don't edit
  d:  2097152  2097152    4.2BSD     2048 16384 28552 
  e:  1048576  4194304    4.2BSD     2048 16384     8 
  f: 43562590  5242880    4.2BSD     2048 16384 28552 


disklabel on openbsd was
# /dev/wd0c:
type: ESDI
disk: ad1s1
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 4865
total sectors: 78165360
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

7 partitions:
#             size        offset  fstype [fsize bsize  cpg]
  a:        530082            63  4.2BSD   2048 16384   32 # Cyl     0*-    32 
  b:       1044225        530145    swap                   # Cyl    33 -    97 
  c:      78165360             0  unused      0     0      # Cyl     0 -  4865*
  d:       2104515       1574370  4.2BSD   2048 16384  132 # Cyl    98 -   228 
  e:       1044225       3678885  4.2BSD   2048 16384   66 # Cyl   229 -   293 
  f:       8385930       4723110  4.2BSD   2048 16384  328 # Cyl   294 -   815 
  g:      16241715      13109040  4.2BSD   2048 16384  328 # Cyl   816 -  1826 

I went through your archives and learned that i need to hand edit the
disklabel in order to access the partitions on the freebsd slice. so i changed
the label to
12 partitions:
#             size        offset  fstype [fsize bsize  cpg]
  a:        530082            63  4.2BSD   2048 16384   32 # Cyl     0*-    32 
  b:       1044225        530145    swap                   # Cyl    33 -    97 
  c:      78165360             0  unused      0     0      # Cyl     0 -  4865*
  d:       2104515       1574370  4.2BSD   2048 16384  132 # Cyl    98 -   228 
  e:       1044225       3678885  4.2BSD   2048 16384   66 # Cyl   229 -   293 
  f:       8385930       4723110  4.2BSD   2048 16384  328 # Cyl   294 -   815 
  g:      16241715      13109040  4.2BSD   2048 16384  328 # Cyl   816 -  1826 
  h:       1048576      29350755  4.2BSD   2048 16384   16 # Cyl  1827 -  1892*
  i:       1048576      30399331    swap                   # Cyl  1892*-  1957*
  j:       2097152      31447907  4.2BSD   2048 16384   16 # Cyl  1957*-  2088*
  k:       1048576      33545059  4.2BSD   2048 16384   16 # Cyl  2088*-  2153*
  l:      43562590      34593635  4.2BSD   2048 16384   16 # Cyl  2153*-  4864 

Now when i try 
#mount /dev/wd0h /mnt
I get
mount_ffs: /dev/wd0h on /mnt: Inappropriate file type or format

What am I doing wrong? Is it even possible to accomplish this?
Thanks in advance,
Varun.

Reply via email to