From owner-freebsd-questions Fri Dec 8 13:28:55 2000 From owner-freebsd-questions@FreeBSD.ORG Fri Dec 8 13:28:52 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from donkeykong.gpcc.itd.umich.edu (donkeykong.gpcc.itd.umich.edu [141.211.2.163]) by hub.freebsd.org (Postfix) with ESMTP id 4F78F37B400 for ; Fri, 8 Dec 2000 13:28:52 -0800 (PST) Received: from breakout.gpcc.itd.umich.edu (smtp@breakout.gpcc.itd.umich.edu [141.211.2.141]) by donkeykong.gpcc.itd.umich.edu (8.8.8/4.3-mailhub) with ESMTP id QAA17977; Fri, 8 Dec 2000 16:28:47 -0500 (EST) Received: from localhost (timcm@localhost) by breakout.gpcc.itd.umich.edu (8.8.8/5.1-client) with ESMTP id QAA07199; Fri, 8 Dec 2000 16:28:46 -0500 (EST) Date: Fri, 8 Dec 2000 16:28:46 -0500 (EST) From: Tim McMillen X-Sender: timcm@breakout.gpcc.itd.umich.edu To: Mike Meyer Cc: questions@freebsd.org Subject: Re: vnconfig question In-Reply-To: <14896.44740.999965.890752@guru.mired.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thank you, but it still doesn't work. On Fri, 8 Dec 2000, Mike Meyer wrote: > Tim McMillen types: > > Hi, I am trying to access an image that I made of a small hard > > drive. I made it pretty simply with dd if=/dev/ad1 of=file > > I can get vnconfig working fine with an iso, but I try somethig similiar > > with my image and I get this output and error: > > tim# ls > > maxtorbackup > > tim# vnconfig vn0c ./maxtorbackup > > tim# mount_msdos /dev/vn0c /mnt > > mount_msdos: /dev/vn0c: Invalid argument > > > > The disk was msdos ver 6 and mounting it worked correctly so I > > figured this would too. I read the manpage and can't see where I am going > > wrong. Did I need certain options to dd when I made the image to get this > > to work? Help would be greatly appreciated. > > At a wild guess, you're running into problems with the slice > table. Without knowing how you mounted it as a disk and how you > created the image, it's hard to say. You might try using the > appropriate sliced vn device (vn0s1, say). Ok I mount it like this: (I included the wrong ways in case that tells somebody something) tim# mount -t msdos /dev/ad1 /mnt msdos: /dev/ad1: Invalid argument tim# mount -t msdos /dev/ad1c /mnt msdos: /dev/ad1c: Invalid argument tim# mount -t msdos /dev/ad1s1 /mnt tim# ls /mnt CONFIG.SYS IO.SYS NANSI.SYS QBASIC AUTOEXEC.BAT etc. I created the image exactly as above in my message, tim# dd if=/dev/ad1 of=maxtorbackup2 But I still get: tim# vnconfig /dev/vn0s1 ./maxtorbackup2 tim# mount_msdos /dev/vn0s1 /mnt mount_msdos: /dev/vn0s1: Invalid argument tim# vnconfig vn1s1 ./maxtorbackup2 vnconfig: /dev/vn1s1: No such file or directory The problem may be: (which I had forgotten about.) tim# disklabel ad1 disklabel: ioctl DIOCGDINFO: Invalid argument Do I need to put a valid disklabel on the drive first? Or redo the MBR? And if I do either of these will the drive still boot into DOS? It is used usually as the primary drive on an old 486 for my mom. I thought that if I could mount the drive then I could do the same with the image using vnconfig. But I guess I didn't understand much of the manpage. Any idea what is wrong? If you need any other info, let me know. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message