Mailinglist Archive: packet-writing (84 mails)

< Previous Next >
Re: New cdrwtool (trying to format too many blocks); Success
  • From: Sergiy Kudryk <linux_ua@xxxxxxxxx>
  • Date: Sat, 2 Feb 2002 14:18:19 +0000 (UTC)
  • Message-id: <20020202141928.64410.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Hello Ben.

Thank you for good work.

After applying your patch all problems with formatting
(Verbatim CDRW disc, 700 MB) disappears.

Here is console output:

[serge@my 1.0.0a]# cdrwtool -d /dev/sr0 -i
using device /dev/sr0
1312KB internal buffer
setting write speed to 12x

DISC INFO:
erasable : Yes
border = 0
Disc status = 0
number of first track = 1
number of sessions = 1
number of tracks = 1
status of last track = 1
uru = 0
did_v = 0
dbc_v = 0
disc type = 255
disc_id = 0
lead_in = 97:34:22 (439072)
lead_out = 79:59:74 (359999)
OPC entries = 0

TRACK INFO:

Track 1
track_number = 1
session_number = 1
damage = 0
copy = 0
track_mode = 4
Rt = 0
blank = 1
packet = 0
fp = 0
data_mode = 15
lra_v = 0
nwa_v = 1
track_start = 0
next_writable = 0
last_recorded = 0
free_blocks = 359847
packet_size = 0
track_size = 359847 (719694KB)
[serge@my 1.0.0a]# 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.
ENTER to continue.

Initiating quick disc blank
Disc capacity is 295264 blocks (590528KB/576MB)
Formatting track
start=0, blocks=16, type=RESERVED
start=16, blocks=3, type=VRS
start=19, blocks=237, type=USPACE
start=256, blocks=1, type=ANCHOR
start=257, blocks=31, type=USPACE
start=288, blocks=32, type=PVDS
start=320, blocks=32, type=LVID
start=352, blocks=32, type=STABLE
start=384, blocks=1024, type=SSPACE
start=1408, blocks=293568, type=PSPACE
start=294976, blocks=31, type=USPACE
start=295007, blocks=1, type=ANCHOR
start=295008, blocks=160, type=USPACE
start=295168, blocks=32, type=STABLE
start=295200, blocks=32, type=RVDS
start=295232, blocks=31, type=USPACE
start=295263, blocks=1, type=ANCHOR
Writing UDF structures to disc
Quick setup complete!
[serge@my 1.0.0a]#


..

Regards,
Sergiy Kudryk

--- Ben Fennema <bfennema@xxxxxxxxxxxxx> wrote:
> On Fri, Feb 01, 2002 at 11:09:13AM +0100, Norbert Preining wrote:
> > Hi Ben!
> >
> > On Thu, 31 Jan 2002 11:31:16 -0800, Ben Fennema wrote:
> > > If your seeing the new cdrwtool fail and the value for blocks is more
> > > than it used to be, could you send me the output of cdrwtool -i.
>
> Ok, give this patch a try.. It should fix the problem.
>
> Ben
>
> diff -u -p -r1.3 main.c
> --- main.c 2002/01/30 21:39:59 1.3
> +++ main.c 2002/02/01 18:48:13
> @@ -136,7 +136,7 @@ int quick_setup(int fd, struct cdrw_disc
> return ret;
>
> blocks = msf_to_lba(di.lead_out_m, di.lead_out_s, di.lead_out_f) - 152;
> - if (disc->fpacket && !(ti.packet && ti.fp))
> + if (disc->fpacket)
> {
> /* fixed packets format usable blocks */
> blocks = ((blocks + 7) / (disc->packet_size + 7)) * disc->packet_size;
>
> --
> To unsubscribe, e-mail: packet-writing-unsubscribe@xxxxxxxx
> For additional commands, e-mail: packet-writing-help@xxxxxxxx
>


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

< Previous Next >
References