Re: Problems when writing DVDs with growisofs

2006-07-11 Thread Andy Polyakov

  ...Am I right here ?:"When writing to a DVDRAM with growisofs I will
 get a filesystem identical to that of a DVD: udf or iso9660."


Or you can make an empty placeholder on hard disk, losetup it, format to 
your liking and burn it. I mean growisofs is actually a recording 
program and formally is filesystem neutral. But it does treat mkisofs 
output in special way, so you might get an impression that iso9660 is 
what you "get"...



  I heard, that using ext2 or such will kill DVDRAM soon, since there
  are sectors (blocks? or whatever it is named ... sorry, I am not a
  native English speaker...) constantly written to, so they will die
  to soon since there max. write count has been reached.


And so would read-write mounted UDF. It's definitely good idea to mount 
*either* with noatime, but otherwise I don't think that ext2 would "wear 
out" the media faster than UDF. Even safer approach would be to keep 
media mounted read-only for most of the time and re-mount read-write 
when you actually intend to manipulate data. A.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Problems when writing DVDs with growisofs

2006-07-11 Thread Meino Christian Cramer
From: Andy Polyakov <[EMAIL PROTECTED]>
Subject: Re: Problems when writing DVDs with growisofs
Date: Tue, 11 Jul 2006 18:39:58 +0200

> >  What data transferrate would you exspect while writing to a DVDRAM?
> 
> What does media case say? 3x? 2x? But no, not that much...

  H...the media case is a plastic box witn a slider. Inside is a
  two sided DVDRAM. The writing on the slider says:

  Verbatim DVD-RAM 9.4GB - 4.7GB/side rewriteable TYPE A
  
  below that there is the DVD-logo with "RAM RAM 4.7" added

  Beside "SIDE A" and "SIDE B" there nothing more on the media.

  I can removed the media from the box for writing.
 
> >  I know, that is slower than DVD+/-RW, since it does verify the data,
> 
> Keep in mind that data written to DVD-RAM is verified immediately upon 
> write only when explicitly asked for with WRITE AND VERIFY
> command[*]. 

  ...Am I right here ?:"When writing to a DVDRAM with growisofs I will
 get a filesystem identical to that of a DVD: udf or iso9660."

> Otherwise data verification is performed upon later playback and if 
> block smells deteriorated, then the data is transparently moved to spare 
> area. It should also be noted that advertised velocity of 2-3x can only 
> be observed when you switch off defect control system [or bypass it be 
> means of "streaming recording"[**]]. So that as defect control is 
> [presumably] on by default, you're likely to observe lower speeds, 1x if 
> not less, so that an order of one hour magnitude for 4GB should be 
> reasonable...
> 
> [*] growisofs can do this with -use-the-force-luke=wrvfy, also note that 
> Linux kernel does *not* do anything of that sort;
> [**] for technically minded "streaming recording" refers to WRITE(12) 
> with "streaming" bit set;
> 
> >  but with my setup it takes hours to write 4GB...
> > 
> >  Hardware: LG 4163B (A106 firmware, newest stable)
> >  Software: Linux 2.6.17.4 (newest stable)
> > 
> >  formatted with udf (udftools)
> >  Mounted directly (no pktcdvd...)
> 
> I wouldn't put so much faith to Linux UDF write performance. Use ext2 or 
> stick to growisofs:-) One way or another it hardly have anything to do 
> with pktcdvd. A.

  I heard, that using ext2 or such will kill DVDRAM soon, since there
  are sectors (blocks? or whatever it is named ... sorry, I am not a
  native English speaker...) constantly written to, so they will die
  to soon since there max. write count has been reached.

   [ ] true  ?
   [ ] false ?

 Thanks a lot for your help in advance, Andy ! :)
 Keep hacking!
 mcc


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Problems when writing DVDs with growisofs

2006-07-11 Thread Andy Polyakov

 What data transferrate would you exspect while writing to a DVDRAM?


What does media case say? 3x? 2x? But no, not that much...


 I know, that is slower than DVD+/-RW, since it does verify the data,


Keep in mind that data written to DVD-RAM is verified immediately upon 
write only when explicitly asked for with WRITE AND VERIFY command[*]. 
Otherwise data verification is performed upon later playback and if 
block smells deteriorated, then the data is transparently moved to spare 
area. It should also be noted that advertised velocity of 2-3x can only 
be observed when you switch off defect control system [or bypass it be 
means of "streaming recording"[**]]. So that as defect control is 
[presumably] on by default, you're likely to observe lower speeds, 1x if 
not less, so that an order of one hour magnitude for 4GB should be 
reasonable...


[*] growisofs can do this with -use-the-force-luke=wrvfy, also note that 
Linux kernel does *not* do anything of that sort;
[**] for technically minded "streaming recording" refers to WRITE(12) 
with "streaming" bit set;



 but with my setup it takes hours to write 4GB...

 Hardware: LG 4163B (A106 firmware, newest stable)
 Software: Linux 2.6.17.4 (newest stable)

 formatted with udf (udftools)
 Mounted directly (no pktcdvd...)


I wouldn't put so much faith to Linux UDF write performance. Use ext2 or 
stick to growisofs:-) One way or another it hardly have anything to do 
with pktcdvd. A.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Problems when writing DVDs with growisofs

2006-07-11 Thread Meino Christian Cramer
From: Andy Polyakov <[EMAIL PROTECTED]>
Subject: Re: Problems when writing DVDs with growisofs
Date: Tue, 11 Jul 2006 15:43:35 +0200

Hi Andy,

 thanks for your reply !

> Folks! Do math first! Dataset size was reportedly about 4.4GB, while I/O 
> error logged at 4GB *exactly*. It can't be some prefetch/pad bug! It 
> looks as if kernel can't manage volumes larger than 4GB *at all*. Or at 
> least refuses to...
> 
> > The problem has been "solved" (moved):
> > 
> > For the device of my DVD-burners there was "pktsetup" (for writing to
> > DVDRAM) called via a initscript from which I dont know that it was
> > aktivated.
> 
> This is misconception. pktsetup is not for DVD-RAM, but for CD-RW packet 
> writing, but can as well be used with DVD-RW Restricted Overwrite and 
> DVD+RW [at least as far as I understand].

 What data transferrate would you exspect while writing to a DVDRAM?
 I know, that is slower than DVD+/-RW, since it does verify the data,
 but with my setup it takes hours to write 4GB...

 Hardware: LG 4163B (A106 firmware, newest stable)
 Software: Linux 2.6.17.4 (newest stable)

 formatted with udf (udftools)
 Mounted directly (no pktcdvd...)
 
> > Ok, I can now read my DVD successfully and completly.
> 
> So that packet writing module limits volume size to 4GB? Talk to the 
> maintainer... readcd worked because it bypasses block device and issues 
> raw read commands to its liking.
> 
> > But it remains the question, why I should not read my my DVDRAM now
> > completly...
> 
> You should not have any problems reading or writing DVD-RAM with pkt 
> module disengaged. Nor should you have problems *reading* any kind of 
> DVD media and writing with growisofs with pkt module disengaged. A.

  Yes, if pktdvd disabled everything -- with exception of DVDRAM (see
  above) -- fine.

  Kind regards,
  mcc 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Problems when writing DVDs with growisofs

2006-07-11 Thread Andy Polyakov
Folks! Do math first! Dataset size was reportedly about 4.4GB, while I/O 
error logged at 4GB *exactly*. It can't be some prefetch/pad bug! It 
looks as if kernel can't manage volumes larger than 4GB *at all*. Or at 
least refuses to...



The problem has been "solved" (moved):

For the device of my DVD-burners there was "pktsetup" (for writing to
DVDRAM) called via a initscript from which I dont know that it was
aktivated.


This is misconception. pktsetup is not for DVD-RAM, but for CD-RW packet 
writing, but can as well be used with DVD-RW Restricted Overwrite and 
DVD+RW [at least as far as I understand].



Ok, I can now read my DVD successfully and completly.


So that packet writing module limits volume size to 4GB? Talk to the 
maintainer... readcd worked because it bypasses block device and issues 
raw read commands to its liking.



But it remains the question, why I should not read my my DVDRAM now
completly...


You should not have any problems reading or writing DVD-RAM with pkt 
module disengaged. Nor should you have problems *reading* any kind of 
DVD media and writing with growisofs with pkt module disengaged. A.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Problems when writing DVDs with growisofs

2006-07-06 Thread Rob Bogus

Volker Kuhlmann wrote:


I did a blockdev --setra 8 /dev/hdd as root ( 8*512 byte = 4k ).

Unfortunately the problem remains the same.
   



It is necesssary to first test whether you're running into said kernel
bug, before considering other possibilities. For this, you will need to
set read-ahead to zero, not something small.

hdparm -a0 /dev/hdd

will do it. So might blockdev. Check with hdparm /dev/hdd
 

AFAIK different layers. hdparm works on the drive, blockdev may work in 
the o/s, since I can ret readahead far larger than the drive claims to 
support. And I believe on CD/DVD blockdev is sufficient, it works for me 
when verifying copies.


However, by all means set or check it both ways, I haven't waded through 
the code.



Note this will make your DVD drive very slow. It is sufficient to
disable read-ahead from another shell while your reading is going on, as
long as you make sure that you do it well before the kernel reads near
the end of the recording.

 


What next ?
   



Provide missing info ;)

Volker

 




--
E. Robert Bogusta
 It seemed like a good idea at the time


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Problems when writing DVDs with growisofs

2006-07-06 Thread Meino Christian Cramer
From: Bill Davidsen <[EMAIL PROTECTED]>
Subject: Re: Problems when writing DVDs with growisofs
Date: Wed, 05 Jul 2006 17:32:18 -0400

The problem has been "solved" (moved):

For the device of my DVD-burners there was "pktsetup" (for writing to
DVDRAM) called via a initscript from which I dont know that it was
aktivated.

Ok, I can now read my DVD successfully and completly.

But it remains the question, why I should not read my my DVDRAM now
completly...

Sigh...

mcc

> Meino Christian Cramer wrote:
> 
> >Hi,
> >
> >The System
> >=
> >Softwware:
> >Gentoo Linux (recent stable) with Linux kernel 2.6.17.3 (vanilla
> >source).
> >* growisofs by <[EMAIL PROTECTED]>, version 6.1,
> >  front-ending to mkisofs: mkisofs 2.0 (i686-pc-linux-gnu)
> >readcd 1.11a15 (i686-pc-linux-gnu) Copyright (C) 1987, 1995-2001 Jörg 
> >Schilling
> >dd (coreutils) 5.94
> >
> >Hardware:
> >1GB RAM
> >Athlon 64 X2 3800+
> >Asus Av8 motherboard
> >LG 4163B DVD/CD/DVDRAM burner
> >
> >
> >
> >The problem:
> >Recordings from a DVB-T receiver were copied to a DVD+RW medium. The
> >files:
> >
> >-r--r--r-- 1 mccramer users 1205874688 Jul  5 16:59 
> >2006-04-02_20-15_Ice_Age.mpg
> >-r--r--r-- 1 mccramer users 1492150272 Jul  5 17:01 
> >2006-06-27_22-15_Twister.mpg
> >-r--r--r-- 1 mccramer users 1754710016 Jul  5 17:04 
> >2006-06-28_20-15_Final_Fantasy.mpg
> >
> >Sum of all filesizes:   4452734976 
> >
> >I wrote the files with varying parameter;
> >
> >growisofs -Z /dev/hdd 2006-04-02_20-15_Ice_Age.mpg \
> >2006-06-27_22-15_Twister.mpg 2006-06-28_20-15_Final_Fantasy.mpg
> >
> >and
> >
> >growisofs -Z /dev/hdd 2006-04-02_20-15_Ice_Age.mpg \
> >2006-06-27_22-15_Twister.mpg 2006-06-28_20-15_Final_Fantasy.mpg -udf
> >
> >and
> >
> >growisofs -dvd-compat -Z /dev/hdd 2006-04-02_20-15_Ice_Age.mpg \
> >2006-06-27_22-15_Twister.mpg 2006-06-28_20-15_Final_Fantasy.mpg -udf 
> >
> >None of the processes reports any error neither on user level nor in
> >the kernel log files.
> >
> >After each process I ejected the medium and inserted it again and
> >mounted the medium first with "-t iso9660" and cat'ed all files 
> >to /dev/null.
> >
> >Short before end an I/O-Error happens and was logged to the kernel log
> >file as:
> >
> > attempt to access beyond end of device
> > hdd: rw=0, want=8388608, limit=8388604
> > Buffer I/O error on device hdd, logical block 2097151
> > attempt to access beyond end of device
> > hdd: rw=0, want=8388612, limit=8388604
> > Buffer I/O error on device hdd, logical block 2097152
> > attempt to access beyond end of device
> > hdd: rw=0, want=8388616, limit=8388604
> > Buffer I/O error on device hdd, logical block 2097153
> > attempt to access beyond end of device
> > hdd: rw=0, want=8388608, limit=8388604
> > Buffer I/O error on device hdd, logical block 2097151
> > 
> >Then I unmounted the medium and mounted again with "-t udf" where
> >appropiate (see above).
> >
> >Again the cat-process failed as described above.
> >
> >Then I umounted the device and uses dd to copy an image of the dvd to 
> >my harddisk:
> >
> >dd if=/dev/hdd of=/tmp/dvd.iso
> >
> >The processes reports no error neither on user level nor in
> >the kernel log files.
> >
> >I mounted the image via loop-device and tried again to cat all files
> >to /dev/null which again fails as described above.
> >
> >Then I used readcd to create an image of the dvd. Also this process
> >does not report any error.
> >
> >I mounted the image via loop device and THIS time I was able to
> >retrieve all files. They were identical to the originals.
> >
> >
> >I am near desparation. I cannot find the reason for this
> >behaviour. Since I copy more valuable data as some dvb-t recordings to
> >DVD I would be happy to have a reliable scheme how to copy
> >successfully files to DVD+RW and other media.
> >
> >Thank you very much in advance for any help !
> >
> >Kind regards,
> > Meino Cramer
> >
> >PS: I tried to subscribe to this mailinglist, I was told, that a
> >conformation mail will be send to me. But no mail arrives me. So I am
> >unsubscribed yet and would be happy, if - when replying to this mail -
> >one could CC: me. Thanks!
> >  
> >
> Try using the 'blockdev' command to set the readahead to 4k, and see if 
> that solves the problem. If so, let's prepare a polite note to the 
> kernel list, something like "no this isn't fixed after all."
> 
> -- 
> bill davidsen <[EMAIL PROTECTED]>
>   CTO TMR Associates, Inc
>   Doing interesting things with small computers since 1979
> 


Re: Problems when writing DVDs with growisofs

2006-07-05 Thread Volker Kuhlmann
> I did a blockdev --setra 8 /dev/hdd as root ( 8*512 byte = 4k ).
> 
> Unfortunately the problem remains the same.

It is necesssary to first test whether you're running into said kernel
bug, before considering other possibilities. For this, you will need to
set read-ahead to zero, not something small.

hdparm -a0 /dev/hdd

will do it. So might blockdev. Check with hdparm /dev/hdd

Note this will make your DVD drive very slow. It is sufficient to
disable read-ahead from another shell while your reading is going on, as
long as you make sure that you do it well before the kernel reads near
the end of the recording.

> What next ?

Provide missing info ;)

Volker

-- 
Volker Kuhlmann is list0570 with the domain in header
http://volker.dnsalias.net/ Please do not CC list postings to me.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Problems when writing DVDs with growisofs

2006-07-05 Thread Meino Christian Cramer
From: Bill Davidsen <[EMAIL PROTECTED]>
Subject: Re: Problems when writing DVDs with growisofs
Date: Wed, 05 Jul 2006 17:32:18 -0400

> Meino Christian Cramer wrote:
> 
> >Hi,
> >
> >The System
> >=
> >Softwware:
> >Gentoo Linux (recent stable) with Linux kernel 2.6.17.3 (vanilla
> >source).
> >* growisofs by <[EMAIL PROTECTED]>, version 6.1,
> >  front-ending to mkisofs: mkisofs 2.0 (i686-pc-linux-gnu)
> >readcd 1.11a15 (i686-pc-linux-gnu) Copyright (C) 1987, 1995-2001 Jörg 
> >Schilling
> >dd (coreutils) 5.94
> >
> >Hardware:
> >1GB RAM
> >Athlon 64 X2 3800+
> >Asus Av8 motherboard
> >LG 4163B DVD/CD/DVDRAM burner
> >
> >
> >
> >The problem:
> >Recordings from a DVB-T receiver were copied to a DVD+RW medium. The
> >files:
> >
> >-r--r--r-- 1 mccramer users 1205874688 Jul  5 16:59 
> >2006-04-02_20-15_Ice_Age.mpg
> >-r--r--r-- 1 mccramer users 1492150272 Jul  5 17:01 
> >2006-06-27_22-15_Twister.mpg
> >-r--r--r-- 1 mccramer users 1754710016 Jul  5 17:04 
> >2006-06-28_20-15_Final_Fantasy.mpg
> >
> >Sum of all filesizes:   4452734976 
> >
> >I wrote the files with varying parameter;
> >
> >growisofs -Z /dev/hdd 2006-04-02_20-15_Ice_Age.mpg \
> >2006-06-27_22-15_Twister.mpg 2006-06-28_20-15_Final_Fantasy.mpg
> >
> >and
> >
> >growisofs -Z /dev/hdd 2006-04-02_20-15_Ice_Age.mpg \
> >2006-06-27_22-15_Twister.mpg 2006-06-28_20-15_Final_Fantasy.mpg -udf
> >
> >and
> >
> >growisofs -dvd-compat -Z /dev/hdd 2006-04-02_20-15_Ice_Age.mpg \
> >2006-06-27_22-15_Twister.mpg 2006-06-28_20-15_Final_Fantasy.mpg -udf 
> >
> >None of the processes reports any error neither on user level nor in
> >the kernel log files.
> >
> >After each process I ejected the medium and inserted it again and
> >mounted the medium first with "-t iso9660" and cat'ed all files 
> >to /dev/null.
> >
> >Short before end an I/O-Error happens and was logged to the kernel log
> >file as:
> >
> > attempt to access beyond end of device
> > hdd: rw=0, want=8388608, limit=8388604
> > Buffer I/O error on device hdd, logical block 2097151
> > attempt to access beyond end of device
> > hdd: rw=0, want=8388612, limit=8388604
> > Buffer I/O error on device hdd, logical block 2097152
> > attempt to access beyond end of device
> > hdd: rw=0, want=8388616, limit=8388604
> > Buffer I/O error on device hdd, logical block 2097153
> > attempt to access beyond end of device
> > hdd: rw=0, want=8388608, limit=8388604
> > Buffer I/O error on device hdd, logical block 2097151
> > 
> >Then I unmounted the medium and mounted again with "-t udf" where
> >appropiate (see above).
> >
> >Again the cat-process failed as described above.
> >
> >Then I umounted the device and uses dd to copy an image of the dvd to 
> >my harddisk:
> >
> >dd if=/dev/hdd of=/tmp/dvd.iso
> >
> >The processes reports no error neither on user level nor in
> >the kernel log files.
> >
> >I mounted the image via loop-device and tried again to cat all files
> >to /dev/null which again fails as described above.
> >
> >Then I used readcd to create an image of the dvd. Also this process
> >does not report any error.
> >
> >I mounted the image via loop device and THIS time I was able to
> >retrieve all files. They were identical to the originals.
> >
> >
> >I am near desparation. I cannot find the reason for this
> >behaviour. Since I copy more valuable data as some dvb-t recordings to
> >DVD I would be happy to have a reliable scheme how to copy
> >successfully files to DVD+RW and other media.
> >
> >Thank you very much in advance for any help !
> >
> >Kind regards,
> > Meino Cramer
> >
> >PS: I tried to subscribe to this mailinglist, I was told, that a
> >conformation mail will be send to me. But no mail arrives me. So I am
> >unsubscribed yet and would be happy, if - when replying to this mail -
> >one could CC: me. Thanks!
> >  
> >
> Try using the 'blockdev' command to set the readahead to 4k, and see if 
> that solves the problem. If so, let's prepare a polite note to the 
> kernel list, something like "no this isn't fixed after all."
> 
> -- 
> bill davidsen <[EMAIL PROTECTED]>
>   CTO TMR Associates, Inc
>   Doing interesting things with small computers since 1979
> 

I did a blockdev --setra 8 /dev/hdd as root ( 8*512 byte = 4k ).

Unfortunately the problem remains the same.

What next ?

mcc



Re: Problems when writing DVDs with growisofs

2006-07-05 Thread Volker Kuhlmann
>  attempt to access beyond end of device
>  hdd: rw=0, want=8388608, limit=8388604

Writing files several times takes more space on disk than writing them
all at once. Perhaps 

> dd if=/dev/hdd of=/tmp/dvd.iso
> 
> The processes reports no error neither on user level nor in
> the kernel log files.

There's a >10 year old kernel bug which could be causing this.

What is the size of the filesystem in bytes? Use df with the DVD or
loop-mounted iso file. Then run isoinfo -d -i /dev/hdd and multiply the
sectors number by 2048 - is this more than the size of your
/tmp/dvd.iso? If so, you found the problem and confirmed the >10y kernel
bug.

The solution to this old kernel bug is to add -pad padsize=10x75s to
your mkisofs or growisofs command line. Also, you won't see this bug on
a DVD+RW which has been written once before with more blocks than you're
currently trying to read. If this padding doesn't fix your problem, post
again.

Volker

-- 
Volker Kuhlmann is list0570 with the domain in header
http://volker.dnsalias.net/ Please do not CC list postings to me.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Problems when writing DVDs with growisofs

2006-07-05 Thread Bill Davidsen

Meino Christian Cramer wrote:


Hi,

The System
=
Softwware:
Gentoo Linux (recent stable) with Linux kernel 2.6.17.3 (vanilla
source).
* growisofs by <[EMAIL PROTECTED]>, version 6.1,
 front-ending to mkisofs: mkisofs 2.0 (i686-pc-linux-gnu)
readcd 1.11a15 (i686-pc-linux-gnu) Copyright (C) 1987, 1995-2001 Jörg Schilling
dd (coreutils) 5.94

Hardware:
1GB RAM
Athlon 64 X2 3800+
Asus Av8 motherboard
LG 4163B DVD/CD/DVDRAM burner



The problem:
Recordings from a DVB-T receiver were copied to a DVD+RW medium. The
files:

-r--r--r-- 1 mccramer users 1205874688 Jul  5 16:59 2006-04-02_20-15_Ice_Age.mpg
-r--r--r-- 1 mccramer users 1492150272 Jul  5 17:01 2006-06-27_22-15_Twister.mpg
-r--r--r-- 1 mccramer users 1754710016 Jul  5 17:04 
2006-06-28_20-15_Final_Fantasy.mpg

Sum of all filesizes:   4452734976 


I wrote the files with varying parameter;

growisofs -Z /dev/hdd 2006-04-02_20-15_Ice_Age.mpg \
2006-06-27_22-15_Twister.mpg 2006-06-28_20-15_Final_Fantasy.mpg

and

growisofs -Z /dev/hdd 2006-04-02_20-15_Ice_Age.mpg \
2006-06-27_22-15_Twister.mpg 2006-06-28_20-15_Final_Fantasy.mpg -udf

and

growisofs -dvd-compat -Z /dev/hdd 2006-04-02_20-15_Ice_Age.mpg \
2006-06-27_22-15_Twister.mpg 2006-06-28_20-15_Final_Fantasy.mpg -udf 


None of the processes reports any error neither on user level nor in
the kernel log files.

After each process I ejected the medium and inserted it again and
mounted the medium first with "-t iso9660" and cat'ed all files 
to /dev/null.


Short before end an I/O-Error happens and was logged to the kernel log
file as:

attempt to access beyond end of device
hdd: rw=0, want=8388608, limit=8388604
Buffer I/O error on device hdd, logical block 2097151
attempt to access beyond end of device
hdd: rw=0, want=8388612, limit=8388604
Buffer I/O error on device hdd, logical block 2097152
attempt to access beyond end of device
hdd: rw=0, want=8388616, limit=8388604
Buffer I/O error on device hdd, logical block 2097153
attempt to access beyond end of device
hdd: rw=0, want=8388608, limit=8388604
Buffer I/O error on device hdd, logical block 2097151

Then I unmounted the medium and mounted again with "-t udf" where
appropiate (see above).

Again the cat-process failed as described above.

Then I umounted the device and uses dd to copy an image of the dvd to 
my harddisk:


dd if=/dev/hdd of=/tmp/dvd.iso

The processes reports no error neither on user level nor in
the kernel log files.

I mounted the image via loop-device and tried again to cat all files
to /dev/null which again fails as described above.

Then I used readcd to create an image of the dvd. Also this process
does not report any error.

I mounted the image via loop device and THIS time I was able to
retrieve all files. They were identical to the originals.


I am near desparation. I cannot find the reason for this
behaviour. Since I copy more valuable data as some dvb-t recordings to
DVD I would be happy to have a reliable scheme how to copy
successfully files to DVD+RW and other media.

Thank you very much in advance for any help !

Kind regards,
Meino Cramer

PS: I tried to subscribe to this mailinglist, I was told, that a
conformation mail will be send to me. But no mail arrives me. So I am
unsubscribed yet and would be happy, if - when replying to this mail -
one could CC: me. Thanks!
 

Try using the 'blockdev' command to set the readahead to 4k, and see if 
that solves the problem. If so, let's prepare a polite note to the 
kernel list, something like "no this isn't fixed after all."


--
bill davidsen <[EMAIL PROTECTED]>
 CTO TMR Associates, Inc
 Doing interesting things with small computers since 1979


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Problems when writing DVDs with growisofs

2006-07-05 Thread scdbackup
Hi,

for subscription:

List-Post: 
List-Help: 
List-Subscribe: 
List-Unsubscribe: 

probably you fell victim to false addresses on some web site.


> Short before end an I/O-Error happens and was logged to the kernel log
> file as:
>  attempt to access beyond end of device
>  hdd: rw=0, want=8388608, limit=8388604
>  Buffer I/O error on device hdd, logical block 2097151
> Then I umounted the device and uses dd to copy an image of the dvd to 
> my harddisk:
> I mounted the image via loop-device and tried again to cat all files
> to /dev/null which again fails as described above.

Up to this point i would say the DVD did not accept all
data that were sent to it. (Swallowed a last buffer full)

But...

> Then I used readcd to create an image of the dvd. Also this process
> does not report any error.
> I mounted the image via loop device and THIS time I was able to
> retrieve all files. They were identical to the originals.

Now the DVD-ROM driver of the operating system is under
suspicion. (We had and still have this effect with CDs.)

Compare the size of the images extracted by dd and readcd.
How much larger is the one of readcd ?


> I am near desparation. I cannot find the reason for this
> behaviour. Since I copy more valuable data as some dvb-t recordings to
> DVD I would be happy to have a reliable scheme how to copy
> successfully files to DVD+RW and other media.

The ill effects with CD readers are traditionally compensated
by generous padding. 300 kB are considered to be enough.

You may try to add a designated victim file to the ISO
image but better would be to split the jobs of mkisofs
and growisofs and to add the padding *after* the ISO image.
  mkisofs ... >buffer_file
  dd bs=1m count=10 if=/dev/zero >>buffer_file
  growisofs ... -Z /dev/hdd=buffer_file
or
  mkisofs ... >buffer_file | \
  let_through_and_pad_10_mb | \
  growisofs ... -Z /dev/hdd=/dev/fd/0

let_through_and_pad_10_mb would add 10 MB of zeros after
it first passed all stdin unaltered to stdout.
(I use the latter method in my backup tool.
Out of mere superstition i still pad 300 kB to DVDs.)


Have a nice day :)

Thomas


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Problems when writing DVDs with growisofs

2006-07-05 Thread Meino Christian Cramer
Hi,

The System
=
Softwware:
Gentoo Linux (recent stable) with Linux kernel 2.6.17.3 (vanilla
source).
* growisofs by <[EMAIL PROTECTED]>, version 6.1,
  front-ending to mkisofs: mkisofs 2.0 (i686-pc-linux-gnu)
readcd 1.11a15 (i686-pc-linux-gnu) Copyright (C) 1987, 1995-2001 Jörg Schilling
dd (coreutils) 5.94

Hardware:
1GB RAM
Athlon 64 X2 3800+
Asus Av8 motherboard
LG 4163B DVD/CD/DVDRAM burner



The problem:
Recordings from a DVB-T receiver were copied to a DVD+RW medium. The
files:

-r--r--r-- 1 mccramer users 1205874688 Jul  5 16:59 2006-04-02_20-15_Ice_Age.mpg
-r--r--r-- 1 mccramer users 1492150272 Jul  5 17:01 2006-06-27_22-15_Twister.mpg
-r--r--r-- 1 mccramer users 1754710016 Jul  5 17:04 
2006-06-28_20-15_Final_Fantasy.mpg

Sum of all filesizes:   4452734976 

I wrote the files with varying parameter;

growisofs -Z /dev/hdd 2006-04-02_20-15_Ice_Age.mpg \
2006-06-27_22-15_Twister.mpg 2006-06-28_20-15_Final_Fantasy.mpg

and

growisofs -Z /dev/hdd 2006-04-02_20-15_Ice_Age.mpg \
2006-06-27_22-15_Twister.mpg 2006-06-28_20-15_Final_Fantasy.mpg -udf

and

growisofs -dvd-compat -Z /dev/hdd 2006-04-02_20-15_Ice_Age.mpg \
2006-06-27_22-15_Twister.mpg 2006-06-28_20-15_Final_Fantasy.mpg -udf 

None of the processes reports any error neither on user level nor in
the kernel log files.

After each process I ejected the medium and inserted it again and
mounted the medium first with "-t iso9660" and cat'ed all files 
to /dev/null.

Short before end an I/O-Error happens and was logged to the kernel log
file as:

 attempt to access beyond end of device
 hdd: rw=0, want=8388608, limit=8388604
 Buffer I/O error on device hdd, logical block 2097151
 attempt to access beyond end of device
 hdd: rw=0, want=8388612, limit=8388604
 Buffer I/O error on device hdd, logical block 2097152
 attempt to access beyond end of device
 hdd: rw=0, want=8388616, limit=8388604
 Buffer I/O error on device hdd, logical block 2097153
 attempt to access beyond end of device
 hdd: rw=0, want=8388608, limit=8388604
 Buffer I/O error on device hdd, logical block 2097151
 
Then I unmounted the medium and mounted again with "-t udf" where
appropiate (see above).

Again the cat-process failed as described above.

Then I umounted the device and uses dd to copy an image of the dvd to 
my harddisk:

dd if=/dev/hdd of=/tmp/dvd.iso

The processes reports no error neither on user level nor in
the kernel log files.

I mounted the image via loop-device and tried again to cat all files
to /dev/null which again fails as described above.

Then I used readcd to create an image of the dvd. Also this process
does not report any error.

I mounted the image via loop device and THIS time I was able to
retrieve all files. They were identical to the originals.


I am near desparation. I cannot find the reason for this
behaviour. Since I copy more valuable data as some dvb-t recordings to
DVD I would be happy to have a reliable scheme how to copy
successfully files to DVD+RW and other media.

Thank you very much in advance for any help !

Kind regards,
 Meino Cramer

PS: I tried to subscribe to this mailinglist, I was told, that a
conformation mail will be send to me. But no mail arrives me. So I am
unsubscribed yet and would be happy, if - when replying to this mail -
one could CC: me. Thanks!