From owner-freebsd-questions Wed Mar 20 17:17:01 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA21867 for questions-outgoing; Wed, 20 Mar 1996 17:17:01 -0800 (PST) Received: from cluck.cpm.com.my (cluck.cpm.com.my [192.228.140.136]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id RAA21723 for ; Wed, 20 Mar 1996 17:16:00 -0800 (PST) Received: (from phang@localhost) by cluck.cpm.com.my (8.6.12/8.6.12) id JAA00251; Thu, 21 Mar 1996 09:16:32 +0800 Message-ID: X-Mailer: XFMail 0.3 [p0] on FreeBSD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <96Mar20.093357est.18435-1@janus.border.com> Reply-To: phang@cpm.com.my Date: Thu, 21 Mar 1996 08:58:21 SGT From: "k.k phang" To: Jerry Kendall Subject: Re: newfs on a floppy disk Cc: questions@FreeBSD.org Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk On 20-Mar-96 Jerry Kendall wrote: > >try 'disklabel -r -w fd1 floppy3'.... > >Basically you want to put the label on /dev/rfd1c not /dev/rfd1a. > >/dev/rfd1a is where you do the 'newfs' ie: 'newfs /dev/rfd1a'... > cluck: {13} disklabel -r -w fd1 floppy3 cluck: {14} 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, cluck: {15} mount /dev/fd1 /mnt cluck: {16} df /mnt Filesystem 512-blocks Used Avail Capacity Mounted on /dev/fd1 1711 1 1573 0% /mnt cluck: {17} umount /mnt :( No luck ... Anyway Greg Lehey seem solve my problem >-You need to tell newfs the number of cylinders and heads. This is > probably a bug: > > $ newfs -t 2 -u 18 /dev/rfd1a cluck: {18} newfs -t 2 -u 18 /dev/rfd1a /dev/rfd1a: 2880 sectors in 80 cylinders of 2 tracks, 18 sectors 1.4MB in 5 cyl groups (16 c/g, 0.28MB/g, 128 i/g) super-block backups (for fsck -b #) at: 32, 632, 1184, 1784, 2336, cluck: {19} mount /dev/fd1 /mnt > probably a bug: > > $ newfs -t 2 -u 18 /dev/rfd1a cluck: {18} newfs -t 2 -u 18 /dev/rfd1a /dev/rfd1a: 2880 sectors in 80 cylinders of 2 tracks, 18 sectors 1.4MB in 5 cyl groups (16 c/g, 0.28MB/g, 128 i/g) super-block backups (for fsck -b #) at: 32, 632, 1184, 1784, 2336, cluck: {19} mount /dev/fd1 /mnt > probably a bug: > > $ newfs -t 2 -u 18 /dev/rfd1a cluck: {18} newfs -t 2 -u 18 /dev/rfd1a /dev/rfd1a: 2880 sectors in 80 cylinders of 2 tracks, 18 sectors 1.4MB in 5 cyl groups (16 c/g, 0.28MB/g, 128 i/g) super-block backups (for fsck -b #) at: 32, 632, 1184, 1784, 2336, cluck: {19} mount /dev/fd1 /mnt cluck: {20} df /mnt Filesystem 512-blocks Used Avail Capacity Mounted on /dev/fd1 2567 1 2360 0% /mnt Thank for your help guys. Cheers, ~phang -- K.K Phang, Software Engineer Computer Protocol phang@cpm.com.my http://www.cpm.com.my