I think what you explained was very clear, so I fully formatted my disk
# dvd+rw-format -force=full /dev/dvd
# dvd+rw-mediainfo /dev/dvd INQUIRY: [TOSHIBA ][DVD-ROM SD-R6112][1031] GET [CURRENT] CONFIGURATION: Mounted Media: 13h, DVD-RW Restricted Overwrite Media ID: OPTODISCK001 GET [CURRENT] PERFORMANCE: Write Performance: 1.0x1385=1350KB/[EMAIL PROTECTED] -> 2297887] Speed Descriptor#0: 00/2298495 [EMAIL PROTECTED]/s [EMAIL PROTECTED]/s READ DVD STRUCTURE[#10h]: Media Book Type: 32h, DVD-RW book [revision 2] Legacy lead-out at: 2298496*2KB=4707319808 READ DVD STRUCTURE[#0h]: Media Book Type: 32h, DVD-RW book [revision 2] Last border-out at: 2297888*2KB=4706074624 READ DISC INFORMATION: Disc status: complete Number of Sessions: 1 State of Last Session: complete Number of Tracks: 1 READ TRACK INFORMATION[#1]: Track State: complete incremental Track Start Address: 0*2KB Free Blocks: 0*2KB Fixed Packet Size: 16*2KB Track Size: 2297888*2KB FABRICATED TOC: Track#1 : [EMAIL PROTECTED] Track#AA : [EMAIL PROTECTED] Multi-session Info: [EMAIL PROTECTED]
# cat tmp/VIDEO_TS/* | growisofs -use-the-force-luke=0 -Z /dev/dvd=/dev/fd/0 Executing 'builtin_dd if=/dev/fd/0 of=/dev/dvd obs=32k seek=0' /dev/dvd: "Quick Grow" session... /dev/dvd: "Current Write Speed" is 1.0x1385KBps. 7766016/4706074624 ( 0.2%) @1.6x, remaining 50:24 12419072/4706074624 ( 0.3%) @1.0x, remaining 50:23 17039360/4706074624 ( 0.4%) @1.0x, remaining 55:02 21692416/4706074624 ( 0.5%) @1.0x, remaining 53:59 26312704/4706074624 ( 0.6%) @1.0x, remaining 53:21 30965760/4706074624 ( 0.7%) @1.0x, remaining 55:21 35586048/4706074624 ( 0.8%) @1.0x, remaining 54:41 40206336/4706074624 ( 0.9%) @1.0x, remaining 54:09 44859392/4706074624 ( 1.0%) @1.0x, remaining 55:25 49479680/4706074624 ( 1.1%) @1.0x, remaining 54:53 54099968/4706074624 ( 1.1%) @1.0x, remaining 54:27 58753024/4706074624 ( 1.2%) @1.0x, remaining 55:22 63373312/4706074624 ( 1.3%) @1.0x, remaining 54:56 builtin_dd: 32352*2KB out /dev/dvd: flushing cache /dev/dvd: writing lead-out /dev/dvd: reloading tray
However, I can't even mount it back, # mount /dev/dvd -t udf /mnt/dvd mount: block device /dev/dvd is write-protected, mounting read-only mount: wrong fs type, bad option, bad superblock on /dev/dvd, or too many mounted file systems
# dvd+rw-mediainfo /dev/dvd INQUIRY: [TOSHIBA ][DVD-ROM SD-R6112][1031] GET [CURRENT] CONFIGURATION: Mounted Media: 13h, DVD-RW Restricted Overwrite Media ID: OPTODISCK001 GET [CURRENT] PERFORMANCE: Write Performance: 1.0x1385=1350KB/[EMAIL PROTECTED] -> 2297887] Speed Descriptor#0: 00/2298495 [EMAIL PROTECTED]/s [EMAIL PROTECTED]/s READ DVD STRUCTURE[#10h]: Media Book Type: 32h, DVD-RW book [revision 2] Legacy lead-out at: 2298496*2KB=4707319808 READ DVD STRUCTURE[#0h]: Media Book Type: 32h, DVD-RW book [revision 2] Last border-out at: 2297888*2KB=4706074624 READ DISC INFORMATION: Disc status: complete Number of Sessions: 1 State of Last Session: complete Number of Tracks: 1 READ TRACK INFORMATION[#1]: Track State: complete incremental Track Start Address: 0*2KB Free Blocks: 0*2KB Fixed Packet Size: 16*2KB Track Size: 2297888*2KB FABRICATED TOC: Track#1 : [EMAIL PROTECTED] Track#AA : [EMAIL PROTECTED] Multi-session Info: [EMAIL PROTECTED]
Can you please explain what happened, thanks in advance, Chen
From: Andy Polyakov <[EMAIL PROTECTED]> To: chen zhao <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: growisofs minus_rw_quickgrow question Date: Sat, 06 Mar 2004 10:02:37 +0100
> I was trying to write arbitrary files to DVD-RW using growisofs. When I
> use
> dumpsomething | growisofs -use-the-force-luke=seek:N -Z /dev/dvd=/dev/fd/0,
> the DVD can not be play back. I think it was because the media wasn't
> closed,
Define "can not be played back." Point is that under most circumstances recorder unit is perfectly capable of accessing open media and it's essential to understand how does "can not be played back" manifest itself in order to answer the question. Always(!) complement problem reports with dvd+rw-mediainfo output (as well as exact growisofs command line and exact output).
> but I don't know how to set "quickgrown=1" to active "Close session" > cmd in minus_rw_finalize.
"quickgrown" is DVD-RW Restricted Overwrite thing, so I assume we're talking about DVD-RW Restricted Overwrite. Note that in order for the referred procedure to work with DVD-RW media, the latter has to be *fully* formatted prior recording(*), e.g. with 'dvd+rw-format -force=full /dev/dvd'(**). Why? Here is how DVD-RW Restricted Overwrite works. Imagine you've just formatted your DVD-RW disc with 'dvd+rw-format -force /dev/dvd'. The only thing you can do with it at this point is *write* from LBA 0 in sequential(!) manner. After you've written some data (in sequential manner) you write a lead-out, let's say at LBA X. After that [and only after that] you can intermix reads *and* [aligned] writes with arbitrary LBA less than X. Whenever you want to add more data you have to remove the lead-out at LBA X, after which the only thing you can do is *write* again and from LBA X in strictly sequential(!) manner. Before you can intermix reads and writes again, you have to write lead-out at the point sequential recording has proceeded to beyond X. What does it mean for the referred command? Given that growisofs does not support "on-the-fly(***) DVD-RW Quick Grow," it means that if N is less than X, but the stream is larger than X-N, then recording is bound to fail. As you most likely don't know the exact values of stream size and X in advance, the only way to assure reliable results is to fully format the media. The fact that Quick Grow procedure is not properly applied with -use-the-force-luke=seek:N might as well be a bug, and I'll look into it(****), but meanwhile do make sure the media is fully formatted.
(*) Keep in mind that we're talking about DVD-RW, DVD+RW does not have to be fully formatted and the referred command should always work. (**) Another way to make sure media is fully formatted is to 'growisofs -Z /dev/dvd=/dev/zero'; (***) Not with -use-the-force-luke=seek:N that is. Quick Grow procedure is properly applied for growisofs -M recordings automatically/transparently. (****) But I need your dvd+rw-mediainfo output for this.
> So, I checked the minus_rw_quickgrow function, and > get confused. Can Andy or anyone please explain how can type ==2 be true > when format was not initialized?
See above and imagine yourself at the point right after you've written lead-out at LBA X.
> If I just add quickgrown=1, what will happen?
Isn't it easier to just try? We're talking about rewritable media, so you can always just start from scratch with 'dvd+rw-format -force /dev/dvd':-) A.
_________________________________________________________________
All the action. All the drama. Get NCAA hoops coverage at MSN Sports by ESPN. http://msn.espn.go.com/index.html?partnersite=espn
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]