Date: Thu, 3 Aug 2000 20:44:19 +0200 From: Francesco Casadei <fcasadei@inwind.it> To: freebsd-questions mailing list <freebsd-questions@freebsd.org> Subject: LS-120 & normal floppy disk Message-ID: <20000803204419.A1666@casimirhost.kasby>
next in thread | raw e-mail | index | archive | help
I have an LS-120 drive at IDE1 master: root> dmesg | grep afd afd0: 120MB <LS-120 CSMO 05 UHD Floppy> [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: <UNUSED> 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: <UNUSED> Do you want to change it? [n] The data for partition 3 is: <UNUSED> Do you want to change it? [n] The data for partition 4 is: <UNUSED> 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: <UNUSED> 3: <UNUSED> 4: <UNUSED> 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: <UNUSED> The data for partition 3 is: <UNUSED> The data for partition 4 is: <UNUSED> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000803204419.A1666>