From owner-freebsd-questions@FreeBSD.ORG Sat Jul 19 21:20:27 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 045D537B401 for ; Sat, 19 Jul 2003 21:20:27 -0700 (PDT) Received: from smtp4.adl2.internode.on.net (smtp4.adl2.internode.on.net [203.16.214.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id C266343F93 for ; Sat, 19 Jul 2003 21:20:25 -0700 (PDT) (envelope-from malcolm.kay@internode.on.net) Received: from smtp4.adl2.internode.on.net (localhost [127.0.0.1]) h6K4KNme017801 for ; Sun, 20 Jul 2003 13:50:24 +0930 (CST) Received: (from mailnull@localhost)h6K4KNFE017797 for ; Sun, 20 Jul 2003 13:50:23 +0930 (CST) X-Authentication-Warning: smtp4.adl2.internode.on.net: mailnull set sender to using -f Received: from beta.home (ppp418.sa.padsl.internode.on.net [150.101.245.161]) h6K4KKme017784; Sun, 20 Jul 2003 13:50:23 +0930 Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: At home To: nmanisca , freebsd-questions@freebsd.org Date: Sun, 20 Jul 2003 13:50:20 +0930 User-Agent: KMail/1.4.3 References: <3F290C30@zathras> In-Reply-To: <3F290C30@zathras> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200307201350.20323.malcolm.kay@internode.on.net> X-Proc-As: freebsd-questions X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang) Subject: Re: trouble mounting NetBSD file system 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, 20 Jul 2003 04:20:27 -0000 On Sun, 20 Jul 2003 12:41, nmanisca wrote: > I can't seem to mount one of my two NetBSD file systems. One mounts fi= ne, > the other is not 'seen' by FreeBSD. > > I have two disks. The first disk has two NetBSD file systems (/ and /d= isk) > and one swap area. All three live in BIOS partition #4. > > The second disk has one FreeBSD file system (/) and one swap area. The= se > live in BIOS partition #1. > > I boot to FreeBSD-5.1 and the kernel sees my disks as ad0 (my first dis= k) > and ad1(my second disk). In /dev I see only two ad0* devices, ad0 and > ad0s4. I suppose ad0s4 corresponds to the #4 BIOS parition of my first > disk. I can mount this just fine; it looks like NetBSD's / (NetBSD cal= ls > it wd0a). Under FreeBSD 4.x the BSD partitions on the first disk would be ad0s4a an= d ads04e; and if you want the swap partition ad0s4b. ad0s4 is actually the address of the entire BIOS partition(slice). If this is the only slice with a BSD disklabel then ad0a, ad0e and ad0b s= hould=20 be legitimate alternative names. (All I suspect very similar to NetBSD, u= sing ad in place of wd -- historically it was also wd in FreeBSD) If the devices with a,b and e suffixes don't exist you may need to make t= hem=20 using /dev/MAKEDEV. FreeBSD 5.x may be a little different (and outside my ken) but the clues=20 should be in the above. > > How can I see/mount the other NetBSD file system (/disk)? NetBSD calls > this one wd0e. > > Just in case it would be useful, I've pasted below the disklabel of my > first disk (as reported by NetBSD). > > Thanks, > Nick > > > # /dev/wd0d: > type: unknown > disk: mydisk > label: > flags: > bytes/sector: 512 > sectors/track: 63 > tracks/cylinder: 16 > sectors/cylinder: 1008 > cylinders: 16383 > total sectors: 234441648 > 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/sgs] > a: 16778097 63 4.2BSD 1024 8192 86 # (Cyl. 0*- > 16644) b: 2096640 16778160 swap # (Cyl. 1= 6645 > - 18724) c: 234441585 63 unused 0 0 # (Cyl.= =20 > 0*- 232580) d: 234441648 0 unused 0 0 # (C= yl.=20 > 0 - 232580) e: 215566848 18874800 4.2BSD 2048 16384 328 # > (Cyl. 18725 - 232580) > > _______________________________________________ Malcolm