From owner-freebsd-questions Thu Aug 3 11:45:35 2000 Delivered-To: freebsd-questions@freebsd.org Received: from relay2.inwind.it (relay2.inwind.it [212.141.53.73]) by hub.freebsd.org (Postfix) with ESMTP id 9459B37B5B5 for ; Thu, 3 Aug 2000 11:45:27 -0700 (PDT) (envelope-from fcasadei@inwind.it) Received: from gw5a60-1-d693.wind.it (212.141.91.59) by relay2.inwind.it; 3 Aug 2000 20:45:24 +0200 Received: (qmail 1710 invoked by uid 1000); 3 Aug 2000 18:44:19 -0000 Date: Thu, 3 Aug 2000 20:44:19 +0200 From: Francesco Casadei To: freebsd-questions mailing list Subject: LS-120 & normal floppy disk Message-ID: <20000803204419.A1666@casimirhost.kasby> Mail-Followup-To: freebsd-questions mailing list Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i X-Operating-System: FreeBSD 4.1-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have an LS-120 drive at IDE1 master: root> dmesg | grep afd afd0: 120MB [963/8/32] at ata0-master using PIO2 How can I put a UFS on a 1.44 MB diskette? The following operations result in an error. root> fdformat -f 1440 -c 80 -s 18 -h 2 -S 2 /dev/rafd0 fdformat: not a floppy disk: /dev/rafd0 root> disklabel -w -r /dev/rafd0 fd1440 disklabel: ioctl DIOCWLABEL: Operation not supported by device root> newfs /dev/rafd0 newfs: /dev/rafd0: '0' partition is unavailable root> fdisk -i /dev/rafd0 ******* Working on device /dev/rafd0 ******* parameters extracted from in-core disklabel are: cylinders=80 heads=2 sectors/track=18 (36 blks/cyl) parameters to be used for BIOS calculations are: cylinders=80 heads=2 sectors/track=18 (36 blks/cyl) Do you want to change our idea of what BIOS thinks ? [n] Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: Do you want to change it? [n] y Supply a decimal value for "sysid (165=FreeBSD)" [0] 165 Supply a decimal value for "start" [0] 1 Supply a decimal value for "size" [0] 2880 Explicitly specify beg/end address ? [n] Adjusting partition to start at a cylinder boundary sysid 165,(FreeBSD/NetBSD/386BSD) start 0, size 2880 (1 Meg), flag 0 beg: cyl 0/ sector 1/ head 0; end: cyl 79/ sector 18/ head 1 Are we happy with this entry? [n] y The data for partition 2 is: Do you want to change it? [n] The data for partition 3 is: Do you want to change it? [n] The data for partition 4 is: Do you want to change it? [n] Do you want to change the active partition? [n] We haven't changed the partition table yet. This is your last chance. parameters extracted from in-core disklabel are: cylinders=80 heads=2 sectors/track=18 (36 blks/cyl) parameters to be used for BIOS calculations are: cylinders=80 heads=2 sectors/track=18 (36 blks/cyl) Information from DOS bootblock is: 1: sysid 165,(FreeBSD/NetBSD/386BSD) start 0, size 2880 (1 Meg), flag 0 beg: cyl 0/ sector 1/ head 0; end: cyl 79/ sector 18/ head 1 2: 3: 4: Should we write new partition table? [n] y root> fdisk /dev/rafd0 Aug 3 20:34:46 casimirhost /kernel: afd0: cannot find label (no disk label) Aug 3 20:34:46 casimirhost /kernel: afd0s1: cannot find label (no disk label) ******* Working on device /dev/rafd0 ******* parameters extracted from in-core disklabel are: cylinders=80 heads=2 sectors/track=18 (36 blks/cyl) parameters to be used for BIOS calculations are: cylinders=80 heads=2 sectors/track=18 (36 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 0, size 2880 (1 Meg), flag 0 beg: cyl 0/ sector 1/ head 0; end: cyl 79/ sector 18/ head 1 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: root> newfs /dev/rafd0 Aug 3 20:34:57 casimirhost /kernel: afd0: cannot find label (no disk label) Aug 3 20:34:57 casimirhost /kernel: afd0s1: cannot find label (no disk label) Aug 3 20:34:57 casimirhost /kernel: afd0: cannot find label (no disk label) newfs: /dev/rafd0: partition is unavailable Aug 3 20:34:57 casimirhost /kernel: afd0s1: cannot find label (no disk label) I'm able to create a msdos filesystem: root> newfs_msdos /dev/rafd0 /dev/rafd0: 2840 sectors in 355 FAT12 clusters (4096 bytes/cluster) bps=512 spc=8 res=1 nft=2 rde=512 sec=2880 mid=0xf0 spf=2 spt=18 hds=2 hid=0 I can also put files on a diskette using tar: root> tar cf /dev/rafd0 CASIMIRHOST GENERIC LINT root> tar tf /dev/rafd0 CASIMIRHOST GENERIC LINT Francesco Casadei To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message