From owner-freebsd-questions Wed Mar 20 03:58:04 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id DAA26873 for questions-outgoing; Wed, 20 Mar 1996 03:58:04 -0800 (PST) Received: from nixpbe.pdb.sni.de (mail.sni.de [192.109.2.33]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id DAA26865 for ; Wed, 20 Mar 1996 03:57:51 -0800 (PST) Received: (from nerv@localhost) by nixpbe.pdb.sni.de (8.6.12/8.6.12) id MAA22788 for questions@freebsd.org; Wed, 20 Mar 1996 12:57:18 +0100 Message-Id: <199603201157.MAA22788@nixpbe.pdb.sni.de> Subject: Re: newfs on a floppy disk To: phang@cpm.com.my Date: Wed, 20 Mar 96 12:54:22 MET From: Greg Lehey Cc: questions@freebsd.org In-Reply-To: ; from "k.k phang" at Mar 20, 96 12:17 pm X-Mailer: xmail 2.4 (based on ELM 2.2 PL16) Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Can someone out there tell me how to construct a new file system on a > floppy disk? > > This was my attempt, no luck. > > cluck: {10} disklabel -r -w /dev/rfd1a floppy3 > cluck: {11} newfs /dev/rfd1a > Warning: Block size and bytes per inode restrict cylinders per group to 5. > Warning: 1216 sector(s) in last cylinder unallocated > /dev/rfd1a: 2880 sectors in 1 cylinders of 1 tracks, 4096 sectors > 1.4MB in 1 cyl groups (5 c/g, 10.00MB/g, 4448 i/g) > super-block backups (for fsck -b #) at: > 32, > clusk: {12} I discuss this problem in some detail in the forthcoming book, "Installing and Running FreeBSD", available from Walnut Creek Real Soon Now. Basically: - You need to tell newfs the number of cylinders and heads. This is probably a bug: $ newfs -t 2 -u 18 /dev/rfd1a - You probably don't want to create a ufs file system on diskette. ufs is optimized for performance, not for space, and you won't get more than about 1190 kB on a 3 1/2" disk. Consider using tar or cpio instead, or a DOS file system if you want to exchange data with DOS. Greg