Re: BD-RE mount problem

2012-08-10 Thread Thomas Schmitt
Hi, > I did another test using system rescue cd. While it gives me the same error > when I run dvd+rw-format, I note that mkudffs complains about multiple > extents. I don't know why it gives a different message under system rescue > cd than under Debian/Wheezy but I thought it might be a clue as

Re: BD-RE mount problem

2012-08-10 Thread Gary Dale
On 10/08/12 12:46 PM, Gary Dale wrote: On 10/08/12 10:33 AM, Thomas Schmitt wrote: Hi, i can reproduce the symptoms by a read-only situation of drive and media. (It should not happen with BD-RE in a BD writer, of course.) open_sr0.c with O_NDELAY yielded: open: fd= 3 , errno= 0 write: ret= 20

Re: BD-RE mount problem

2012-08-10 Thread Gary Dale
On 10/08/12 10:33 AM, Thomas Schmitt wrote: Hi, i can reproduce the symptoms by a read-only situation of drive and media. (It should not happen with BD-RE in a BD writer, of course.) open_sr0.c with O_NDELAY yielded: open: fd= 3 , errno= 0 write: ret= 2048 , errno= 0 I get the same behavior w

Re: BD-RE mount problem

2012-08-10 Thread Thomas Schmitt
Hi, i can reproduce the symptoms by a read-only situation of drive and media. (It should not happen with BD-RE in a BD writer, of course.) open_sr0.c with O_NDELAY yielded: > open: fd= 3 , errno= 0 > write: ret= 2048 , errno= 0 I get the same behavior when i put a DVD into a DVD-ROM drive. It al

Re: BD-RE mount problem

2012-08-10 Thread Thomas Schmitt
Hi, > I'm wondering if the problem is the iso9660 file system that K3B put onto > the disc? I seriously doubt. At least dd should have no scruples to overwrite any filesystem. The block device driver has no idea of filesystems. The only connection would be open(2) flag O_EXCL. mount uses it to

Re: BD-RE mount problem

2012-08-10 Thread Gary Dale
On 10/08/12 05:23 AM, Thomas Schmitt wrote: Hi, -fd = open("/dev/sr0", O_RDWR); +fd = open("/dev/sr0", O_RDWR | O_NDELAY); open: fd= 3 , errno= 0 write: ret= 2048 , errno= 0 This explains why xorriso or dvd+rw-format can open the drive device file. (The failure to re-format is a diffe

Re: BD-RE mount problem

2012-08-10 Thread Thomas Schmitt
Hi, > > -fd = open("/dev/sr0", O_RDWR); > > +fd = open("/dev/sr0", O_RDWR | O_NDELAY); > open: fd= 3 , errno= 0 > write: ret= 2048 , errno= 0 This explains why xorriso or dvd+rw-format can open the drive device file. (The failure to re-format is a different problem.) > No one in Debian

Re: BD-RE mount problem

2012-08-10 Thread Gary Dale
On 10/08/12 01:50 AM, Thomas Schmitt wrote: Hi, fd = open("/dev/sr0", O_RDWR); root@transponder:/home/garydale# ./open_sr0 open: fd= -1 , errno= 30 open: Read-only file system This is surprising, because xorriso uses open(..., O_RDWR | O_NDELAY); when it acquires a drive. (I would have

Re: BD-RE mount problem

2012-08-09 Thread Thomas Schmitt
Hi, > > fd = open("/dev/sr0", O_RDWR); > root@transponder:/home/garydale# ./open_sr0 > open: fd= -1 , errno= 30 > open: Read-only file system This is surprising, because xorriso uses open(..., O_RDWR | O_NDELAY); when it acquires a drive. (I would have expected to see the error with write()

Re: [Bulk] Re: BD-RE mount problem

2012-08-09 Thread Gary Dale
On 09/08/12 04:36 PM, Thomas Schmitt wrote: Hi, # xorriso -scsi_log on -dev /dev/sr0 -format "full" ... xorriso : FAILURE : libburn indicates failure with formatting. It should have reported the SCSI error (will have to dig for that). That error came with command FORMAT UNIT FORMAT UNIT 04

Re: BD-RE mount problem

2012-08-09 Thread Thomas Schmitt
Hi, > # xorriso -scsi_log on -dev /dev/sr0 -format "full" > ... > xorriso : FAILURE : libburn indicates failure with formatting. It should have reported the SCSI error (will have to dig for that). That error came with command FORMAT UNIT > FORMAT UNIT > 04 11 00 00 00 00 > To drive: 12b > 00 82

Re: [Bulk] Re: BD-RE mount problem

2012-08-09 Thread Gary Dale
On 09/08/12 02:39 PM, Thomas Schmitt wrote: Hi, I also tried using K3B to burn as udf. mkisofs print size result: 0 (0 bytes) This looks like a different problem. A size prediction of 0 is hardly to explain by any state of the target medium. How large should the result have been ? 59M or there

Re: BD-RE mount problem

2012-08-09 Thread Gary Dale
On 09/08/12 01:45 PM, Thomas Schmitt wrote: Hi, Yes, I have read-write permissions. Something does not work properly. Are any related messages to see in the output of dmesg ? Nothing in dmesg | tail or syslog just now when I tried a dvd+rw-format -force=full. I tried xorriso to fix the

Re: BD-RE mount problem

2012-08-09 Thread Gary Dale
On 09/08/12 01:46 PM, Keith McKenzie wrote: On 9 August 2012 18:28, Gary Dale wrote: On 09/08/12 01:19 PM, Keith McKenzie wrote: On 9 August 2012 17:43, Gary Dale wrote: Already tried that. dd complains: dd: opening `/dev/sr0': Read-only file system It sounds like it is mounted; try

Re: BD-RE mount problem

2012-08-09 Thread Thomas Schmitt
Hi, > I also tried using K3B to burn as udf. > mkisofs print size result: 0 (0 bytes) This looks like a different problem. A size prediction of 0 is hardly to explain by any state of the target medium. How large should the result have been ? What do you get from xorriso -outdev /dev/sr0 -bla

Re: BD-RE mount problem

2012-08-09 Thread Thomas Schmitt
Hi, > Yes, I have read-write permissions. Something does not work properly. Are any related messages to see in the output of dmesg ? > I tried xorriso to fix the disc as well but it also fails. What did you try and what did it report when it failed ? (We could get a log of SCSI commands from x

Re: BD-RE mount problem

2012-08-09 Thread Keith McKenzie
On 9 August 2012 18:28, Gary Dale wrote: > On 09/08/12 01:19 PM, Keith McKenzie wrote: >> >> On 9 August 2012 17:43, Gary Dale wrote: >>> >>> >>> Already tried that. dd complains: >>>dd: opening `/dev/sr0': Read-only file system >>> >> It sounds like it is mounted; try unmounting it,& then t

Re: BD-RE mount problem

2012-08-09 Thread Gary Dale
On 09/08/12 12:08 PM, Thomas Schmitt wrote: Hi, [i am subscribed to cdwr...@other.debian.org, not to debian-user] You could use sequential burn programs like growisofs or xorriso. Both can add files to ISO 9660 filesystems on BD-RE. Those filesystems are mountable read-only. If you canafford t

Re: BD-RE mount problem

2012-08-09 Thread Gary Dale
On 09/08/12 01:19 PM, Keith McKenzie wrote: On 9 August 2012 17:43, Gary Dale wrote: Already tried that. dd complains: dd: opening `/dev/sr0': Read-only file system It sounds like it is mounted; try unmounting it,& then try dd again. root@transponder:/home/garydale# umount /dev/sr0 umo

Re: BD-RE mount problem

2012-08-09 Thread Keith McKenzie
On 9 August 2012 17:43, Gary Dale wrote: > > > Already tried that. dd complains: > dd: opening `/dev/sr0': Read-only file system > It sounds like it is mounted; try unmounting it, & then try dd again. -- Sent from FOSS (Free Open Source Software) Debian GNU/Linux -- To UNSUBSCRIBE, email

Re: BD-RE mount problem

2012-08-09 Thread Gary Dale
On 09/08/12 12:08 PM, Thomas Schmitt wrote: Hi, [i am subscribed to cdwr...@other.debian.org, not to debian-user] I tried a new disc again, and this time formatted it through K3B instead of using dvd+rw-format directly. I don't know what K3B does as "formatting", but dvd+rw-format does only a

Re: BD-RE mount problem

2012-08-09 Thread Thomas Schmitt
Hi, [i am subscribed to cdwr...@other.debian.org, not to debian-user] > > >I tried a new disc again, and this time formatted it through K3B > > >instead of using dvd+rw-format directly. I don't know what K3B does as "formatting", but dvd+rw-format does only a hardware level formatting. It does n

Re: BD-RE mount problem

2012-08-09 Thread Chris Bannister
[Ccing cdwr...@other.debian.org] Any ideas? On Tue, Aug 07, 2012 at 03:49:13PM -0400, Gary Dale wrote: > On 06/08/12 11:51 PM, Gary Dale wrote: > >I've been using BD-RE discs for backups on a Debian/Squeeze server > >for a couple of years now. In the last week or so the backups have > >been faili

Re: BD-RE mount problem

2012-08-09 Thread Chris Bannister
On Mon, Aug 06, 2012 at 11:51:36PM -0400, Gary Dale wrote: > I'm using Memorex BD-RE 2x discs. I've used an LG, ASUS and Pioneer > BluRay writer - the first two on the older machine. The ASUS and > Pioneer are brand new writers. > > Any ideas? Have you tried different media? Also a quick google

Re: BD-RE mount problem

2012-08-07 Thread Gary Dale
On 06/08/12 11:51 PM, Gary Dale wrote: I've been using BD-RE discs for backups on a Debian/Squeeze server for a couple of years now. In the last week or so the backups have been failing. I haven't modified my backup script so I thought about possible hardware issues. - I tried changing the Bl

BD-RE mount problem

2012-08-06 Thread Gary Dale
I've been using BD-RE discs for backups on a Debian/Squeeze server for a couple of years now. In the last week or so the backups have been failing. I haven't modified my backup script so I thought about possible hardware issues. - I tried changing the BluRay writer but got the same problem. -