Date: Wed, 1 Apr 1998 07:28:50 -0500 (EST) From: Mike Jeays <jeays@statcan.ca> To: Mike Smith <mike@smith.net.au> Cc: Satoh Junichi <junichi@astec.co.jp>, freebsd-stable@FreeBSD.ORG Subject: Re: ATAPI Zip drive Message-ID: <Pine.SOL.3.96.980401070433.58A-100000@austral> In-Reply-To: <199803311638.IAA00460@dingo.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 31 Mar 1998, Mike Smith wrote: > > > wfd0: medium type unknown (no disk) ## There WAS a disk in it! ## > > > > No problem. The wfd driver always says so when it found the ATAPI ZIP > > drive. I have to add code to probe ZIP correctly. (^^; > > The problem here is that the Zip is fairly unhelpful when it comes to > telling you what's in the drive. In this case, the message should > probably not be printed. > > > > When I attempt to mount either the CD-ROM or the ZIP drive, mount > > > hangs, and I have to interrupt it with ctrl-C. If I do this > > > a second time, the system crashes. (X stops. Attempts to > > > log on through another tty don't work - characters entered after > > > the login prompt just get echoed to the screen. It is big red > > > switch time!) > > > > Hmm... I don't know why. > > I'll test if the ZIP drive works well with a CD-ROM drive. > > The problem is that the ATAPI Zip drive doesn't coexist well with our > ATAPI code and a CDROM. The Zip has highlighted a number of problems > with the way we do ATAPI, and this is one of them. > > You can try moving the Zip and CDROM to separate IDE channels, which > should cure your problem. > > > > If I disconnect the CD-ROM and make the Zip drive the master, > > > things seems a tiny bit better. When I attempt a disklabel, I get: > > > > > > /home/mike% disklabel -r -w wfd0 auto > > > disklabel: /dev/rwfd0c: Undefined error: 0 > > > The light on the drive blinks once. > > It occurs when the ZIP disk has incorrect fdisk informatinos. > > You need to execute 'fdisk wfd0' and create the FreeBSD slice on the > > first time. > > You can do this another way: > > # dd if=/dev/zero of=/dev/wfd0 count=16 > # disklabel -rwB wfd0 auto > # disklabel -e wfd0 > <edit disklabel to suit> > Thanks for the various suggestions, to Mike Smith, Satoh Junichi and John Saunders. I can now mount msdos file systems with mount -t msdos /dev/wfd0s4 /mnt successfully (with the CD-ROM disconnected of course). I had less success making a FreeBSD file system, probably due to lack of experience with fdisk and disklabel. Information from DOS bootblock is now: 1: sysid 165,(FreeBSD/NetBSD/386BSD) start 0, size 180000 (87 Meg), flag 80 beg: cyl 1/ sector 0/ head 0; end: cyl 32/ sector 0/ head 0 2: <UNUSED> 3: <UNUSED> 4: <UNUSED> /home/mike% dd if=/dev/zero of=/dev/wfd0 count=16 16+0 records in 16+0 records out 8192 bytes transferred in 0.146601 secs (55880 bytes/sec) /home/mike% disklabel -rw wfd0 auto /home/mike% newfs wfd0 newfs: wfd0: `0' partition is unavailable /home/mike% newfs wfd0s1 newfs: /dev/rwfd0s1: Device not configured /home/mike% disklabel -r wfd0 # /dev/rwfd0c: type: unknown disk: label: flags: bytes/sector: 512 sectors/track: 96 tracks/cylinder: 64 sectors/cylinder: 6144 cylinders: 32 sectors/unit: 196608 rpm: 720 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 3 partitions: # size offset fstype [fsize bsize bps/cpg] c: 196608 0 unused 0 0 # (Cyl. 0 - 31) /home/mike% disklabel -e wfd0 couldn't open "/tmp/EdDk.aNj3602": no such file or directory There is no /usr/mdec/wfdboot on my system, and I did install all the distributions under 2.2.6-RELEASE. I don't think I need it, as I don't intend to boot from these disks. Correct values of the various parameters would be a great help, please, such as a good copy of an /etc/disktab entry. I don't know the correct values for sectors/track, tracks/cylinder and total cylinders. ---------------------------------------------------------------- As a second question; I currently have a dual boot setup, with Win95 on wd0s1, and freebsd on wd1s1. If I move the FreeBSD disk to the second controller to make room for the CD-ROM on the first, what do I need to do to adjust the dual-boot configuration? I am a bit nervous about taking this step! Thnaks once more for all the help. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.3.96.980401070433.58A-100000>