Mailinglist Archive: packet-writing (26 mails)

< Previous Next >
Re: trying to change type of multiple extents
  • From: Peter Osterlund <petero2@xxxxxxxxx>
  • Date: Fri, 23 Jul 2004 22:03:58 +0000 (UTC)
  • Message-id: <Pine.LNX.4.58.0407232332140.3484@xxxxxxxxx>
On Fri, 16 Jul 2004, XMANN wrote:

> that was a long time I haven't problem with this patch, one =
> year I
> think, sign of a good job :-) .

Did it ever work on the same hardware that gives you problems now? If so,
what kernel/udftools versions did you use?

> i tried to format a verbatim 8-10X writing compatible:
>
> $cdrwtool -t 10 -d /dev/hdc -q
...
> Initiating quick disc blank
> Disc capacity is 295264 blocks (590528KB/576MB)
> Formatting track
> start=0, blocks=16, type=RESERVED
...
> start=295263, blocks=1, type=ANCHOR
> Writing UDF structures to disc
> wait_cmd: Input/output error
> Command failed: 2a 00 00 00 00 00 00 00 20 00 00 00 - sense = 02.04.04

Strange, 02.04.04 means "LOGICAL UNIT NOT READY, FORMAT IN PROGRESS". Does
this patch for udftools-1.0.0b3 make any difference?

--- udftools-1.0.0b3/cdrwtool/main.c.orig 2004-07-23 23:51:09.434712176 +0200
+++ udftools-1.0.0b3/cdrwtool/main.c 2004-07-23 23:51:10.853496488 +0200
@@ -163,6 +163,7 @@
printf("Formatting track\n");
if ((ret = format_disc(fd, disc)))
return ret;
+ sync_cache(fd);
add_type2_sparable_partition(&disc->udf_disc, 0, 2, 0);
disc->udf_disc.udf_pd[0]->accessType = cpu_to_le32(PD_ACCESS_TYPE_REWRITABLE);
}

> So it can blank the cdrw in fast or full method, but it can not format
> it with UDF.
>
> If I try to manually format it, I have this message:
>
> $mkudffs /dev/hdc
> trying to change type of multiple extents

You can't run mkudffs directly on /dev/hdc, because it's not possible to
write random 2kb blocks to /dev/hdc. You have to use /dev/pktcdvd instead:

# pktsetup /dev/pktcdvd0 /dev/hdc
# mkudffs /dev/pktcdvd0

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

< Previous Next >
This Thread
References