Re: LS-120 Formatting?

H. Peter Anvin (hpa@transmeta.com)
20 Dec 1998 17:45:58 GMT


Followup to: <Pine.LNX.3.96.981220171141.32110I-100000@ps.cus.umist.ac.uk>
By author: Riley Williams <rhw@bigfoot.com>
In newsgroup: linux.dev.kernel
>
> Hi there.
>
> >>>> mkfs.ext2 /dev/hdb
>
> >>>> works just fine, formats to 120 MB or 1.44 depending on media.
>
> >>> No. NOT FORMATS. Just make filesystem. What you'll do when you'll
> >>> have new 1.44 floppy NOT formatted (LOW-LEVEL formatted, that
> >>> is!!!) ? mkfs.ext2 will just say: "could not write" or something
>
> >> Why would it do something stupid like that?
>
> > Since it was designed this way :-)
>
> Then the design is flawed...
>

No, it's not. Formatting ("low level format") and making a filesystem
("high level format") are two fundamentally different things; in DOS,
the FORMAT command does them both for floppies, but not for hard disks
(FORMAT only makes the filesystem on a hard disk.)

In Linux, the formatting is traditionally done with the fdformat
command and making the filesystem with mkfs.<filesystem> for some
value of <filesystem>.

> >> All I know is, I buy my 1.44 floppies unformatted (as they're
> >> cheaper that way),
>
> > They are still low-level formatted, just not tested.
>
> Really ???

That seems unlikely, especially since different systems use different
magnetic modulation methods.

Anyway, if fdformat doesn't work on LS-120 drives, then either
fdformat, the kernel, or both needs to be updated. LS-120, being a
SCSI or ATAPI device, presumably only needs the high level FORMAT UNIT
command sent to it with the appropriate parameters.

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables

- 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/