From owner-freebsd-stable@FreeBSD.ORG Sun Jan 15 19:05:51 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE62D16A41F for ; Sun, 15 Jan 2006 19:05:51 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from thorn.pobox.com (thorn.pobox.com [208.210.124.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90BB643D45 for ; Sun, 15 Jan 2006 19:05:51 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from thorn (localhost [127.0.0.1]) by thorn.pobox.com (Postfix) with ESMTP id B54D9E4; Sun, 15 Jan 2006 14:06:12 -0500 (EST) Received: from mappit.local.linnet.org (212-74-113-67.static.dsl.as9105.com [212.74.113.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by thorn.sasl.smtp.pobox.com (Postfix) with ESMTP id 7CBC6299E; Sun, 15 Jan 2006 14:06:11 -0500 (EST) Received: from brian by mappit.local.linnet.org with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1EyDCG-0006Pn-6f; Sun, 15 Jan 2006 19:05:48 +0000 Date: Sun, 15 Jan 2006 19:05:48 +0000 From: Brian Candler To: Andrea Campi Message-ID: <20060115190547.GA24628@uk.tiscali.com> References: <20060115123445.GA14271@uk.tiscali.com> <20060115124950.GA23753@uk.tiscali.com> <20060115131405.GC1181@webcom.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060115131405.GC1181@webcom.it> User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@freebsd.org Subject: Re: newfs_msdos onto an image file X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jan 2006 19:05:52 -0000 On Sun, Jan 15, 2006 at 02:14:05PM +0100, Andrea Campi wrote: > On Sun, Jan 15, 2006 at 12:49:51PM +0000, Brian Candler wrote: > > Furthermore, why do I still have to pretend that the device is a 1440K > > floppy disk? If I remove -f 1440 I get: > > > > # newfs_msdos -h 64 -u 32 -s 256000 -a 125 -F 16 -b 4096 -c 8 /dev/md0 > > newfs_msdos: Cannot get number of sectors, Operation not supported > > Just a wild guess: have you tried using fdisk? Pretending it is a floppy > is probably working because real floppies don't have a partition table, > whereas all kind of HDs in the DOS world have them. > > Try creating just a single slice to cover all disk, and you should be > ready to newfs it. That doesn't really make sense to me - a filesystem exists within and independent of any partition table. I am creating an image of a filesystem, which as it happens I intend to write out to a whole USB device, /dev/da0, but equally I could write it out as the contents of a partition, /dev/da0s1. In either case the filesystem would be the same. Partitioning a loopback device is also not something I've tried. If I create a partition table in /dev/md0, would I see /dev/md0s1? I guess I ought to. But then I'd run newfs_msdos on /dev/md0s1, and would be back to square one. Regards, Brian.