public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* How to format a disk in an USB-Floppy-drive
@ 2006-11-19 16:09 Christian Schmidt
  2006-11-19 18:25 ` Jan Engelhardt
  0 siblings, 1 reply; 5+ messages in thread
From: Christian Schmidt @ 2006-11-19 16:09 UTC (permalink / raw)
  To: linux-kernel

Dear all,

How do I actually low-level format a floppy disk in an 
USB-Floppy-Disk-Drive?

I tried as with usual drives, using fdformat:

[~]>fdformat /dev/sdd
Could not determine current format type: Invalid argument

But setting the format failed as well:
[~]>setfdprm -p /dev/sdd 1440/1440
ioctl: Invalid argument

Next up scsifmt:

[~]>./scsifmt /dev/sdd fmt
scsifmt: non-sense ioctl error

Didn't work too well, too. Any ideas?

Best regards,
Christian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to format a disk in an USB-Floppy-drive
  2006-11-19 16:09 How to format a disk in an USB-Floppy-drive Christian Schmidt
@ 2006-11-19 18:25 ` Jan Engelhardt
  2006-11-19 18:44   ` Willy Tarreau
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Engelhardt @ 2006-11-19 18:25 UTC (permalink / raw)
  To: Christian Schmidt; +Cc: linux-kernel


> How do I actually low-level format a floppy disk in an USB-Floppy-Disk-Drive?
>
> I tried as with usual drives, using fdformat:
>
> [~]>fdformat /dev/sdd
> Could not determine current format type: Invalid argument
>
> But setting the format failed as well:
> [~]>setfdprm -p /dev/sdd 1440/1440
> ioctl: Invalid argument
>
> Next up scsifmt:
>
> [~]>./scsifmt /dev/sdd fmt
> scsifmt: non-sense ioctl error
>
> Didn't work too well, too. Any ideas?


Does not mkfs suffice?


	-`J'
-- 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to format a disk in an USB-Floppy-drive
  2006-11-19 18:25 ` Jan Engelhardt
@ 2006-11-19 18:44   ` Willy Tarreau
  2006-11-19 19:15     ` Jan Engelhardt
  0 siblings, 1 reply; 5+ messages in thread
From: Willy Tarreau @ 2006-11-19 18:44 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Christian Schmidt, linux-kernel

On Sun, Nov 19, 2006 at 07:25:34PM +0100, Jan Engelhardt wrote:
> 
> > How do I actually low-level format a floppy disk in an USB-Floppy-Disk-Drive?
> >
> > I tried as with usual drives, using fdformat:
> >
> > [~]>fdformat /dev/sdd
> > Could not determine current format type: Invalid argument
> >
> > But setting the format failed as well:
> > [~]>setfdprm -p /dev/sdd 1440/1440
> > ioctl: Invalid argument
> >
> > Next up scsifmt:
> >
> > [~]>./scsifmt /dev/sdd fmt
> > scsifmt: non-sense ioctl error
> >
> > Didn't work too well, too. Any ideas?
> 
> 
> Does not mkfs suffice?

No, he's talking about low-level format. This is necessary before writing
anything on a floppy for the first time or after defects have been detected
(remember these old ages ?).

Cheers,
Willy


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to format a disk in an USB-Floppy-drive
  2006-11-19 18:44   ` Willy Tarreau
@ 2006-11-19 19:15     ` Jan Engelhardt
  2006-11-19 19:25       ` Willy Tarreau
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Engelhardt @ 2006-11-19 19:15 UTC (permalink / raw)
  To: Willy Tarreau; +Cc: Christian Schmidt, linux-kernel


On Nov 19 2006 19:44, Willy Tarreau wrote:
>On Sun, Nov 19, 2006 at 07:25:34PM +0100, Jan Engelhardt wrote:
>> > [~]>./scsifmt /dev/sdd fmt
>> > scsifmt: non-sense ioctl error
>> >
>> > Didn't work too well, too. Any ideas?
>> 
>> 
>> Does not mkfs suffice?
>
>No, he's talking about low-level format. This is necessary before writing
>anything on a floppy for the first time or after defects have been detected
>(remember these old ages ?).

Yeah but the scsi *disk* driver does not seem to handle *floppy* 
requests (just as it does not handle *cdrom* ioctls). I sense a Missing 
Feature here.



	-`J'
-- 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to format a disk in an USB-Floppy-drive
  2006-11-19 19:15     ` Jan Engelhardt
@ 2006-11-19 19:25       ` Willy Tarreau
  0 siblings, 0 replies; 5+ messages in thread
From: Willy Tarreau @ 2006-11-19 19:25 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Christian Schmidt, linux-kernel

On Sun, Nov 19, 2006 at 08:15:31PM +0100, Jan Engelhardt wrote:
> 
> On Nov 19 2006 19:44, Willy Tarreau wrote:
> >On Sun, Nov 19, 2006 at 07:25:34PM +0100, Jan Engelhardt wrote:
> >> > [~]>./scsifmt /dev/sdd fmt
> >> > scsifmt: non-sense ioctl error
> >> >
> >> > Didn't work too well, too. Any ideas?
> >> 
> >> 
> >> Does not mkfs suffice?
> >
> >No, he's talking about low-level format. This is necessary before writing
> >anything on a floppy for the first time or after defects have been detected
> >(remember these old ages ?).
> 
> Yeah but the scsi *disk* driver does not seem to handle *floppy* 
> requests (just as it does not handle *cdrom* ioctls). I sense a Missing 
> Feature here.

I'm just wondering whether an SCSI floppy drive should support the hard
disk command set (including low-level fmt). I'm not even sure that our
sd driver supports those commands itself ! Clearly smelling -ENOFEATURE...

Regards,
Willy


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-11-19 19:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-19 16:09 How to format a disk in an USB-Floppy-drive Christian Schmidt
2006-11-19 18:25 ` Jan Engelhardt
2006-11-19 18:44   ` Willy Tarreau
2006-11-19 19:15     ` Jan Engelhardt
2006-11-19 19:25       ` Willy Tarreau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox