Mailinglist Archive: packet-writing (85 mails)

< Previous Next >
Re: packet-2.4.18-pre4-2; success story and new problems
  • From: Sergiy Kudryk <linux_ua@xxxxxxxxx>
  • Date: Fri, 25 Jan 2002 10:55:27 +0000 (UTC)
  • Message-id: <20020125105605.77325.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Hello Peter

Thanks a lot !

--- Peter Osterlund <petero2@xxxxxxxxx> wrote:
> On Wed, 23 Jan 2002, Sergiy Kudryk wrote:
>
> > As you can see formatting with cdrwtool takes about 20 minutes and not
> > finished (CDRW LED backs to normal light (yellow); cdrwtool stop
> > responding and lock the CDRW drive).
>
> > On reboot i also have see next messages on screen (interrupt loss):
> >
> > Jan 23 15:30:22 my kernel: hdc: lost interrupt
> > Jan 23 15:31:03 my last message repeated 4 times
> > Jan 23 15:32:04 my last message repeated 6 times
> > ....
>
> A wild guess. If DMA is enabled on the CDRW, maybe turning it off will
> help:
> hdparm -d 0 /dev/hdc

Unfortunally turning off DMA on /dev/hdc doesn't help - same trouble with formatting.

>
> > After reboot Windows DirectCD (Linux can't process disk) recognize
> > filesystem disk of CDRW disk as .. CDFS.
>
> What does this mean? Was the disc correctly formatted even though cdrwtool
> hang?

No, not correctly. DirectCD showed disc as CDFS with capacity ~700 Mb without free space.

>
> > I don't wanna use Windows anymore to format CDRW disk .. but inspite of
> > that DirectCD support for my drive is too expensive (~200 Mbytes)
>
> Are you referring to the fact that UDF formatted discs can not hold as
> much data as ISO9660 discs? This is true for linux as well.

Sorry i mean DirectCD 5.0 and Easy CD Creator space usage on harddrive
after installing in c:\program files\adaptec ..

I know that UDF allow to use only ~ 530 Mbytes on CDRW disc.

>
> > this program has stability and usability features (for example quick
> > disk UDF formatting takes ~ 3 minutes).
>
> Does anyone know how the quick formatting in DirectCD works? Will a
> quick-formatted disc work with the current linux packet writing module, or
> is special support needed?

Quick formatting (i always use this method) with DirectCD work perfectly (takes 1-3 minutes),
and Linux UDF read/write support layer works with DirectCD formatted discs without problems.
No special support is needed.

>
> > P.S. I attach kernel configuration file.
>
> You have scsi emulation compiled as a module, but don't use it in the
> above example. I think someone reported that his problems were solved when
> he started to use scsi emulation.

Thanks. SCSI emulation really helps me to solve formatting (with cdrwtool) problem:

My success story:

--- Add SCSI emulation parameter (i compile ide-scsi support as module)
to kernel line (/boot/grub/grub.conf): ---

...
kernel .... ro root=/dev/hda4 hdc=ide-scsi
...

--- Add "new" scsi device: ---

# mknod /dev/sr0 b 11 0

--- Change line (cdrom -> sr0; for readonly support) in /etc/fstab ---
...
/dev/sr0 /mnt/cdrom udf,iso9660 noauto,user,ro,iocharset=koi8-u 0 0
...

# reboot

--- Check SCSI devices ---
# cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 JÆrg SchillinLinux sg driver version:
3.1.22
Using libscg version 'schily-0.5'
scsibus0:
0,0,0 0) 'MITSUMI ' 'CR-48X5TE ' '1.8A' Removable CD- 0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
--- Plug pktcdvd module ---
# /./sbin/insmod /./lib/modules/2.4.17/kernel/drivers/block/pktcdvd.o
--- View active modules ---
# /./sbin/lsmod
Module Size Used by
pktcdvd 16480 0 (unused)
nls_koi8-u 3888 0 (autoclean)
sr_mod 11872 0 (autoclean)
sg 27840 0 (autoclean)
tulip 36912 1
ide-scsi 7376 0
md 42976 0 (unused)
sb 7344 0
sb_lib 32272 0 [sb]
uart401 6032 0 [sb_lib]
sound 52320 0 [sb_lib uart401]
soundcore 3472 5 [sb_lib sound]
unix 13696 123 (autoclean)
--- Setup CDRW ---
# pktsetup /dev/pktcdvd0 /dev/sr0
--- Format CDRW disc with UDF -------
# cdrwtool -d /dev/sr0 -q
using device /dev/sr0
1312KB internal buffer
setting write speed to 12x
Settings for /dev/sr0:
Fixed packets, size 32
Mode-2 disc

I'm going to do a quick setup of /dev/sr0. The disc is going to
be blanked and formatted with one big track. All data on the
device will be lost!! Press CTRL-C to cancel now.

Initiating quick disc blank
Disc capacity is 275744 blocks (551488KB/538MB)
Formatting track
Writing UDF structures to disc
7200 (EET)/-120
Quick setup complete!

---
Last line important - she shows that disc is correctly formatted.

Then i try to write (with/without SCSI emulation) to CDRW disc ..
and after some transations CDRW drive locks
with i/o errors (/var/log/messages):

Jan 24 19:29:23 my kernel: Ignoring read error on sector:10196
Jan 24 19:29:23 my kernel: I/O error: dev 0b:00, sector 10208
Jan 24 19:29:23 my kernel: Ignoring read error on sector:10208
Jan 24 19:29:23 my kernel: Ignoring read error on sector:10212
Jan 24 19:29:23 my kernel: Ignoring read error on sector:10216
Jan 24 19:29:23 my kernel: Ignoring read error on sector:10220
....

So today i have two questions:

1. How to achieve stable UDF writing ?
2. Where i can find documentation for udf tools (from udf-0.9.5 package) ?

> --
> Peter Osterlund - petero2@xxxxxxxxx
> http://w1.894.telia.com/~u89404340

Thanks !

Regards,
Sergiy Kudryk

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com

< Previous Next >
References