Date: Fri, 20 Aug 2004 10:30:42 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: "Richard P. Williamson" <richard.williamson@u4eatech.com> Cc: freebsd-questions@freebsd.org Subject: Re: vnconfig and a compact flash disk image Message-ID: <20040820101824.V2521@wonkity.com> In-Reply-To: <6.1.2.0.2.20040820150157.027c7920@cygnus> References: <6.1.2.0.2.20040820135438.027c77d8@cygnus> <20040820074543.E1899@wonkity.com> <6.1.2.0.2.20040820150157.027c7920@cygnus>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 20 Aug 2004, Richard P. Williamson wrote: > At 14:49 20/08/2004. Warren Block had this to say: >> See the example of how to mount an ISO CD image in the examples >> section of the vnconfig man page; it should be the same, except the >> filesystem type will be msdos. > msdos? Ok, that confuses me. The flash card isn't msdos > compatible (or shouldn't be). According to fdisk, it is 165, > which is the way it was created: Sorry, I missed that. Flash cards are almost always FAT formatted. > venus# vnconfig vn0 san32.img I don't know what that does, but it does not agree with the examples in the vnconfig man page. Instead, it should be vnconfig -c -v /dev/vn0 san32.img (It may also need the -s labels option.) Then you can mount it: mount /dev/vn0 /mnt > The output is the same regardless if it is an image created by > dd'ing /dev/ad8 or /dev/rad8 (which is how I'm getting the > "san32.img" off the flash card in the first place). > > The 'can't get disk parameters' worries me. Does > dd if=/dev/rad8 of=san32.img > not do what I think? Possibly not. I've only seen the "r" prefix for tape drives, meaning "rewind after use". As shown, I think it would copy every block of the card, the same as /dev/ad8. If the card has a partition table, you should be able to dd the individual slices: dd if=/dev/ad8s1 of=san32slice1.img dd if=/dev/ad8s2 of=san32slice2.img -Warren Block * Rapid City, South Dakota USA
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040820101824.V2521>