From owner-freebsd-emulation Wed Jun 16 19:40:33 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from pluto.ipass.net (pluto.ipass.net [198.79.53.5]) by hub.freebsd.org (Postfix) with ESMTP id 723F5150F1; Wed, 16 Jun 1999 19:40:30 -0700 (PDT) (envelope-from rhh@ipass.net) Received: from stealth.ipass.net. (ppp-1-29.dialup.rdu.ipass.net [209.170.132.29]) by pluto.ipass.net (8.9.3/8.9.3) with ESMTP id WAA10088; Wed, 16 Jun 1999 22:40:25 -0400 (EDT) Received: (from rhh@localhost) by stealth.ipass.net. (8.9.3/8.8.8) id WAA05675; Wed, 16 Jun 1999 22:42:04 -0400 (EDT) (envelope-from rhh) Date: Wed, 16 Jun 1999 22:42:04 -0400 From: Randall Hopper To: Dag-Erling Smorgrav Cc: stable@FreeBSD.ORG, emulation@FreeBSD.ORG Subject: Re: vnconfig & FAT filesystem -- supported? Message-ID: <19990616224204.C5190@ipass.net> References: <19990615192406.A3498@ipass.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: ; from Dag-Erling Smorgrav on Wed, Jun 16, 1999 at 02:26:01PM +0200 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dag-Erling Smorgrav: |Randall Hopper writes: |> Is it possible to mount a DOS FAT file system as a vnode disk? |> If so, I guess I don't know the trick: |> |> # vnconfig /dev/vn0 /data/doscmd_C_drive |> # mount -t msdos /dev/vn0a /mnt |> msdos: /dev/vn0a: Invalid argument | |Does that file have a partition table? Yes, ...and with you asking that question, I think I have an idea what might be going on. doscmd_C_drive is a dd of the disk, and its a sliced disk. So it contains not just the contents of the DOS slice (/dev/wd?s?) but also the first head of the first track (/dev/wd? -- i.e. MBR + 62 sectors of blank space, then slice boot record, FAT, directory, data). I bet this is throwing mount_msdos off. If this sounds right, is there a way to, say, mount everything in the file except the first 63 "sectors" (63 * 512 bytes) of the file as the DOS filesystem? I checked the vnconfig man page, but didn't see an offset parameter. Is there a way to create a file which is just a "window" into a portion of another file? I could omit the 1st 63*512 bytes, and then vnconfig vn0 with that. Randall To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message