From owner-freebsd-questions@FreeBSD.ORG Sun Aug 3 04:13:23 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D386637B401 for ; Sun, 3 Aug 2003 04:13:23 -0700 (PDT) Received: from mailout08.sul.t-online.com (mailout08.sul.t-online.com [194.25.134.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFDBB43FF7 for ; Sun, 3 Aug 2003 04:13:22 -0700 (PDT) (envelope-from Alexander.Farber@t-online.de) Received: from fwd01.aul.t-online.de by mailout08.sul.t-online.com with smtp id 19jGnh-00031i-0A; Sun, 03 Aug 2003 13:13:21 +0200 Received: from pref.my.domain (TDIOosZVoeDczZDE4UwyjAeOP9Jp3mikaP1+vkkawi0MIda2C+PP62@[217.82.217.42]) by fwd01.sul.t-online.com with esmtp id 19jGnf-0YABjU0; Sun, 3 Aug 2003 13:13:19 +0200 Received: from pref.my.domain (alex@localhost [127.0.0.1]) by pref.my.domain (8.12.8/8.12.8) with ESMTP id h73BA3sI000805 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Sun, 3 Aug 2003 11:10:03 GMT Received: (from alex@localhost) by pref.my.domain (8.12.8/8.12.9/Submit) id h73BA1Ag015433 for freebsd-questions@freebsd.org; Sun, 3 Aug 2003 11:10:01 GMT Date: Sun, 3 Aug 2003 11:10:01 +0000 From: Alexander.Farber@t-online.de (Alexander Farber) To: freebsd-questions@freebsd.org Message-ID: <20030803111001.GB30773@pref.my.domain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Url: X-Operating-System: OpenBSD 3.3 i386 User-Agent: Mutt/1.5.4i X-Seen: false X-ID: TDIOosZVoeDczZDE4UwyjAeOP9Jp3mikaP1+vkkawi0MIda2C+PP62 Subject: Mounting OpenBSD partitions (can see only root) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Aug 2003 11:13:24 -0000 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: The data for partition 2 is: The data for partition 3 is: 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