Messages in this thread | | | Date | Sat, 19 Dec 1998 15:20:51 +0000 (GMT) | From | Alex Butcher <> | Subject | Re: LS-120 Formatting? |
| |
On 19 Dec 1998, Paul Flinders wrote:
> "Alex Butcher(linkern)" <linkern@cocoa.demon.co.uk> writes: > > On Thu, 17 Dec 1998, SethMeister G. wrote: > > > Hi, > > > > > > I've checked the dox, but cannot seem to find a utility to format LS-120 > > > floppy disks (either 1.44 or 120M). Has someone modified fdformat to do > > > this? I didn't see any ioctl code in the IDE floppy driver to even > > > support formatting media, or did I miss it? > > > > My guess is that seeing as the LS-120 is an ATAPI device, you probably want > > to modify a low-level SCSI formatter to do the job for you. Once you've > > LL formatted it, just chuck a filesystem on it, be it FAT or ext2fs. > > It is ATAPI. I tried the SCSI emulator and my LS120 doesn't appear to > work under it - this may warrent more investigation.
Hmmm. I would have expected that it would show up as a /dev/sd? device. If that was the case you (sh|w)ould be able to use scsifmt unchanged.
> > Look for scsifmt.lsm and you'll find my low-level SCSI formatter that I > > wrote for Zip drives. I believe that ATAPI even uses the same command > > numbers, but failing that, you could always try using the ide-scsi emulation > > in the kernel... :) > > Ok, that could be very useful. At the moment I'm hoping that the LS120 > supports "FORMAT_UNIT" which should make it very easy.
From drivers/block/ide-floppy.c:
/* * ATAPI floppy drive packet commands */ #define IDEFLOPPY_FORMAT_UNIT_CMD 0x04
Coincidence that it's 0x04, the same as SCSI's FORMAT_UNIT command?
Alex. -- Alex Butcher Using Linux since '95 - because windows are too easy to break. Berkshire, UK URLBLAST:slashdot.org:www.freshmeat.net:www.dejanews.com: lwn.net:www.tomshardware.com:www.stardiv.de:www.gimp.org:
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |