Skip to contentSkip to conversation

formatting CD-RW locks the system

DISCUSSION Robert Hancock 2 participants 2 messages Apr 11, 2005 4 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 4 lines · Stas Sergeev

OK, I'll try cdrecord too, thanks.
But there might be a bug in the kernel
if the system literally dies with the
cdrwtool.

If the format is being done as a single blocking ATAPI command, then that will definitely block any other accesses on the same IDE channel, at least - that's just the way IDE works. That shouldn' have an effect on other IDE channels though..

Signature · 3 lines
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from [email protected]
Home Page: http://www.roberthancock.com/

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw
Quoted 5 lines · Gene Heskett

Every disk system I have ever delt with, has as a default, (and I've walked around in a couple of them at the assembly language level) the assumption that if track 0 is to be formatted, then the whole device is assumed to be needing formatted, and every filesystem I've ever screwed with will do exactly that.

There is one "new" filesystem you should screw with:

$ echo foo > test
$ mkisofs test > /dev/fd0h1440
Total translation table size: 0
Total rockridge attributes bytes: 0
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 21000
175 extents written (0 Mb)
$ fdformat -n /dev/fd0h1440
Double-sided, 80 tracks, 18 sec/track. Total capacity 1440 kB.
Formatting ...   0
(press ^C after writing most of the first track, hexdump will show
 blocks of 0xf6)
$ mount /dev/fd0h1440 /z -t iso9660
$ cat /z/test
foo
$
Quoted 4 lines

Often, but not always, that can
actually be offloaded to the device itself if its smart enough, and the operating system itself can go on about its business, whether its you composing a letter to your aunt Tilly or whatever.

This would require a) the device being smart enough and b) the bus being smart enough.

Quoted 5 lines

IDE/ATAPI drives have been cheerfully ignoreing format messages from the OS now for what, 12 years now unless backed up by super secret code word access to such builtin functions of the drive, only possessed by the factory technicians who do have the tools to control the track spaceings and data densities on the surfaces etc etc?

That's because in contrast to floppy media and CD/RW, the tracks on HDD don't need reformating. Floppy drives suffer from aging sector headers, and CD/RW will AFAIK suffer from a loss in writing quality.

Quoted 2 lines

Are the firmwares of modern cd/dvd writers actualy dumb enough they need the OS's help for that? If the answer is yes, lord help us.

They need to report success. This would require delaying the end of the operation till the formating has finished. ATAPI is dumb enough to block the bus during that time. Off cause you could implement SCSI disconnect for IDE, but that would be too easy.

Signature · 4 lines
Top 100 things you don't want the sysadmin to say:
31. I hate it when that happens.

Friß, Spammer: [email protected] [email protected]