Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Aug 2003 11:10:01 +0000
From:      Alexander.Farber@t-online.de (Alexander Farber)
To:        freebsd-questions@freebsd.org
Subject:   Mounting OpenBSD partitions (can see only root)
Message-ID:  <20030803111001.GB30773@pref.my.domain>

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

I have a dual-boot PC and would like to mount the 
OpenBSD partition (with 3 slices: root, swap and 
/home) on the hard disk ad1 under FreeBSD 5.1. 

However there are only 2 ad1 devices visible:

    newhope:alex {264} ll /dev/ad1*
    crw-r-----  1 root  operator    4,  12 Aug  3 09:50 /dev/ad1
    crw-r-----  1 root  operator    4,  20 Aug  3 09:50 /dev/ad1s4

The FreeBSD-disklabel complains about those:

    newhope:alex {262} sudo disklabel /dev/ad1s4
    disklabel: /dev/ad1s4: no valid label found
    newhope:alex {263} sudo disklabel /dev/ad1
    disklabel: /dev/ad1: no valid label found

And the FreeBSD-fdisk shows the OpenBSD partition:

    newhope:alex {265} sudo fdisk /dev/ad1
    ******* Working on device /dev/ad1 *******
    parameters extracted from in-core disklabel are:
    cylinders=79408 heads=16 sectors/track=63 (1008 blks/cyl)

    Figures below won't work with BIOS for partitions not in cyl 1
    parameters to be used for BIOS calculations are:
    cylinders=79408 heads=16 sectors/track=63 (1008 blks/cyl)

    Media sector size is 512
    Warning: BIOS sector numbering starts with sector 1
    Information from DOS bootblock is:
    The data for partition 1 is:
    <UNUSED>
    The data for partition 2 is:
    <UNUSED>
    The data for partition 3 is:
    <UNUSED>
    The data for partition 4 is:
    sysid 166 (0xa6),(OpenBSD)
	start 63, size 80035767 (39079 Meg), flag 80 (active)
	    beg: cyl 0/ head 1/ sector 1;
	    end: cyl 1023/ head 254/ sector 63

When I mount /dev/ad1s4 then it works, but I see only the 
root (/) slice there. The OpenBSD /home-slice isn't visible.

I've searched archives and have found a suggestion to
run the FreeBSD-disklabel on the OpenBSD disk and add
the slices manually. But won't this corrupt my OpenBSD-
disk and make it unusable under OpenBSD? Where does
FreeBSD save the slice information? Also, is it safe
to mount OpenBSD slices read-write under FreeBSD?

Thank you
Alex



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