From owner-freebsd-questions Mon Mar 10 14:46:42 2003 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 7BFC837B401 for ; Mon, 10 Mar 2003 14:46:40 -0800 (PST) Received: from sundive.homeunix.net (h24-86-156-116.ed.shawcable.net [24.86.156.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48C0343FAF for ; Mon, 10 Mar 2003 14:46:39 -0800 (PST) (envelope-from ns@sundive.homeunix.net) Received: from sundive.homeunix.net (localhost [127.0.0.1]) by sundive.homeunix.net (8.12.8/8.12.7) with ESMTP id h2AMkbJP019678; Mon, 10 Mar 2003 15:46:38 -0700 (MST) (envelope-from ns@sundive.homeunix.net) Received: (from ns@localhost) by sundive.homeunix.net (8.12.8/8.12.8/Submit) id h2AMkbNr019677; Mon, 10 Mar 2003 15:46:37 -0700 (MST) Date: Mon, 10 Mar 2003 15:46:36 -0700 From: Nigel Soon To: Amit Chakradeo Cc: questions@FreeBSD.ORG, sdbug@sdbug.org Subject: Re: Mounting openbsd partitions. Message-ID: <20030310224636.GA50454@sundive.homeunix.net> References: <20030310194158.GK20440@mail.chakradeo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030310194158.GK20440@mail.chakradeo.net> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG try this # mount /dev/ad0s1h /obsd On Mon, 10 Mar 2003, Amit Chakradeo wrote: > Hi, > > I searched the archives, but could not find answer to the > question I have. > > I have an openbsd disk, and I want to be able to access the files > on it from my FreeBSD-4.7 system. disklabel gives me error: > disklabel ad0 gives: "disklabel: ioctl DIOCGDINFO: Invalid argument" > I am only able to mount the root slice using > /dev/ad0s1 (command: mount /dev/ad0s1 /obsd ). I get same results if I > mount /dev/ad0s3 to /obsd. > > Is it possible at all to be able to access (readonly is okay) > the openbsd partitions (/usr /home etc.) from freebsd ? > > Thanks > Amit > > P.S. The disklabel command from openbsd does print out the 16 partitions: > /obsd/sbin/disklabel -r /dev/ad0 > # using MBR partition 0: type A6 off 63 (0x3f) size 10233342 (0x9c25fe) > # /dev/ad0: > type: ESDI > disk: ESDI/IDE disk > label: QUANTUM FIREBALL > flags: > bytes/sector: 512 > sectors/track: 63 > tracks/cylinder: 16 > sectors/cylinder: 1008 > cylinders: 16383 > total sectors: 60233564 > rpm: 3600 > interleave: 1 > trackskew: 0 > cylinderskew: 0 > headswitch: 0 # microseconds > track-to-track seek: 0 # microseconds > drivedata: 0 > > 16 partitions: > # size offset fstype [fsize bsize cpg] > a: 524097 63 4.2BSD 1024 8192 16 # (Cyl. 0*- 519) > b: 524160 524160 swap # (Cyl. 520 - 1039) > c: 60233564 0 unused 0 0 # (Cyl. 0 - 59755*) > d: 264096 1048320 4.2BSD 1024 8192 16 # (Cyl. 1040 - 1301) > e: 264096 1312416 4.2BSD 1024 8192 16 # (Cyl. 1302 - 1563) > g: 4194288 1576512 4.2BSD 1024 8192 16 # (Cyl. 1564 - 5724) > h: 4462605 5770800 4.2BSD 1024 8192 16 # (Cyl. 5725 - 10152*) > i: 5719140 10233405 ext2fs # (Cyl. 10152*- 15825*) > j: 8273412 15952608 ext2fs # (Cyl. 15826 - 24033*) > k: 5976117 24226083 ext2fs # (Cyl. 24033*- 29962*) > l: 514017 30202263 unknown # (Cyl. 29962*- 30472*) > > > > > 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