Help!

DVD/CDROM writes not working!


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> General Discussions (archive 2) RSS
Next:  postgresql odbc driver for fc4? or how-to connect..  
Author Message
dchou4u
External


Since: Nov 23, 2005
Posts: 15



PostPosted: Fri Dec 29, 2006 12:18 am    Post subject: DVD/CDROM writes not working!
Archived from groups: comp>os>linux>misc (more info?)

I am running Monta Visita Linux (2.6.10) and I have a USB DVD/CDRW
drive attached.
I have enabled CDROM, UDF, SCSI and etc, in xconfig so that I can mount
a CDRW/DVD with UDF and be able to format a CD-RW disk and write to it.

But when I tried to mount the drive using 'mount -t udb /dev/sda1
/mnt/usbdrive, it failed.

I then downloaded and installed udftools and tried to run the
application cdrwtool, and it too failed.

Should I be able to just mount the DVD/CDRW drive and be able to R/W to
it just like any other HD?

Am I missing some patches to get DVD/CDRW working?

Thanks


root RemoveThis @192.168.0.114:/opt/udf# ./cdrwtool -d /dev/sr0 -q
using device /dev/sr0
cdrom: This disc doesn't have any tracks I recognize!
4690KB 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 f
ormatted 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
usb 1-1: reset high speed USB device using musb_hdrc and address 4

scsi: Device offlined - not ready after error recovery: host 2 channel
0 id 0 lun 0

SCSI error : <2 0 0 0> return code = 0x50000

usb 1-1: USB disconnect, address 4

start=0, blocks=16, type=RESERVED
scsi2 (0:0): rejecting I/O to dead device

start=16, blocks=3, type=VRS
sscsi2 (0:0): rejecting I/O to dead device

tart=19, blocks=237, type=USPACEscsi2 (0:0): rejecting I/O to dead
device


start=256, blocks=1, type=ANCscsi2 (0:0): rejecting I/O to dead device

HOR
start=257, blocks=31, typescsi2 (0:0): rejecting I/O to dead device

=USPACE
start=288, blocks=32, scsi2 (0:0): rejecting I/O to dead device

type=PVDS
start=320, blocks=32scsi2 (0:0): rejecting I/O to dead device

, type=LVID
start=352, blocks=scsi2 (0:0): rejecting I/O to dead device

32, type=STABLE
start=384, bloscsi2 (0:0): rejecting I/O to dead device

cks=1024, type=SSPACE
start=14scsi2 (0:0): rejecting I/O to dead device

08, blocks=293568, type=PSPACE
scsi2 (0:0): rejecting I/O to dead device

start=294976, blocks=31, type=Uscsi2 (0:0): rejecting I/O to dead
device

SPACE
start=295007, blocks=1, scsi2 (0:0): rejecting I/O to dead device

type=ANCHOR
start=295008, blocscsi2 (0:0): rejecting I/O to dead device

ks=160, type=USPscsi2 (0:0): rejecting I/O to dead device

ACE
start=295168, blocks=32, tscsi2 (0:0): rejecting I/O to dead device

ype=STABLE
staSCSI error: host 2 id 0 lun 0 return code = 4000000

rt=295200, block Sense class 0, sense error 0, extended sense 0

s=32, type=RVDS
start=295232, blocks=31, type=scsi2 (0:0): rejecting I/O to dead device

USPACE
start=2SCSI error: host 2 id 0 lun 0 return code = 4000000

95263, blocks=1, Sense class 0, sense error 0, extended sense 0

type=ANCHOR
Wscsi2 (0:0): rejecting I/O to dead device

riting UDF strucsr0: CDROM (ioctl) error, command: tures to disc
Q0x51 uick setup compl00 ete!
00 00 00 00 00 00 02 00

sr: sense = 0 0

Non-extended sense class 0 code 0x0

Raw sense data:0x00 0x00 0x00 0x00

root RemoveThis @192.168.0.114:/opt/udf# usb 1-1: new high speed USB device using
musb_hdrc and address 5

scsi3 : SCSI emulation for USB Mass Storage devices

Unable to handle kernel NULL pointer dereference at virtual address
00000020

pgd = c0004000

[00000020] *pgd=00000000

Internal error: Oops: 17 [#1]

Modules linked in:

CPU: 0

PC is at musb_h_ep0_irq+0x108/0x2d4

LR is at 0x102

pc : [<c01dcfa0>] lr : [<00000102>] Not tainted

sp : c029de40 ip : 00000000 fp : c029de74

r10: 00000001 r9 : c02f6b40 r8 : c05f52c4

r7 : c05f5200 r6 : c8060400 r5 : 00000000 r4 : 00000000

r3 : 00000102 r2 : c05f52c4 r1 : 00000000 r0 : c05f5200

Flags: nZCv IRQs off FIQs on Mode SVC_32 Segment kernel

Control: 5317F Table: 86678000 DAC: 00000017

Process swapper (pid: 0, stack limit = 0xc029c1a0)

Stack: (0xc029de40 to 0xc029e000)

de40: 00010003 c029c000 00010002 c05f5200 c8060400 00000000 c8060000
00000000

de60: c02f6b40 0000005d c029dea4 c029de78 c01db2bc c01dcea8 c029c000
c029df50

de80: c05f5200 c029c000 c8060000 40000013 c02f6b40 c029df50 c029decc
c029dea8

dea0: c01db748 c01db118 c02f6b40 c029c000 c7262ca0 00000000 00000000
0000000c

dec0: c029def4 c029ded0 c002cd70 c01db6bc c02f6e10 0000000c c7262ca0
c029df50

dee0: c029c000 c029df50 c029df14 c029def8 c002d09c c002cd04 c029df84
c029c000

df00: ffffffff 00000002 c029df4c c029df18 c002d250 c002cff8 c003b6ac
c003b504

df20: 00000000 c029df84 e1048000 ffffffff 00000002 c029c000 00000001
80024be0

df40: c029dfac c029df50 c002b5e0 c002d210 00000000 0005317f 0005217f
60000013

df60: c029c000 60000093 c029f2a8 c031a050 80024c10 41069265 80024be0
c029dfac

df80: c029df98 c029df98 c002de00 c002de10 60000013 ffffffff c029c000
c002dd98

dfa0: c029dfcc c029dfb0 c002de7c c002dda8 c029dfcc 00053175 c02f667c
c0301118

dfc0: c029dffc c029dfd0 c00087d0 c002de28 c0008304 00000000 00000000
c02f7ad0

dfe0: 00000000 00053175 c02f7abc c029efd0 00000000 c029e000 8000809c
c0008658

Backtrace:

[<c01dce98>] (musb_h_ep0_irq+0x0/0x2d4) from [<c01db2bc>]
(musb_interrupt+0x1b4/0x354)

[<c01db108>] (musb_interrupt+0x0/0x354) from [<c01db748>]
(davinci_interrupt+0x9c/0xcc)

[<c01db6ac>] (davinci_interrupt+0x0/0xcc) from [<c002cd70>]
(__do_irq+0x7c/0xc8)

r8 = 0000000C r7 = 00000000 r6 = 00000000 r5 = C7262CA0

r4 = C029C000

[<c002ccf4>] (__do_irq+0x0/0xc8) from [<c002d09c>]
(do_edge_IRQ+0xb4/0x148)

[<c002cfe8>] (do_edge_IRQ+0x0/0x148) from [<c002d250>]
(asm_do_IRQ+0x50/0x138)

r7 = 00000002 r6 = FFFFFFFF r5 = C029C000 r4 = C029DF84

[<c002d200>] (asm_do_IRQ+0x0/0x138) from [<c002b5e0>]
(__irq_svc+0x40/0x74)

[<c002dd98>] (default_idle+0x0/0x80) from [<c002de7c>]
(cpu_idle+0x64/0xac)

r5 = C002DD98 r4 = C029C000

[<c002de18>] (cpu_idle+0x0/0xac) from [<c00087d0>]
(start_kernel+0x188/0x1cc)

r6 = C0301118 r5 = C02F667C r4 = 00053175

[<c0008648>] (start_kernel+0x0/0x1cc) from [<8000809c>] (0x8000809c)

Code: e1a02008 e18610b3 e1a01005 e18650b3 (e5953020)

<0>Kernel panic - not syncing: Aiee, killing interrupt handler!
Back to top
dchou4u
External


Since: Nov 23, 2005
Posts: 15



PostPosted: Fri Dec 29, 2006 8:19 am    Post subject: Re: DVD/CDROM writes not working! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sorry, it was a typo. It should be UDF.

Thanks

Gregory Shearman wrote:
> dchou4u.TakeThisOut@hotmail.com wrote:
>
> > I am running Monta Visita Linux (2.6.10) and I have a USB DVD/CDRW
> > drive attached.
> > I have enabled CDROM, UDF, SCSI and etc, in xconfig so that I can mount
> > a CDRW/DVD with UDF and be able to format a CD-RW disk and write to it.
> >
> > But when I tried to mount the drive using 'mount -t udb /dev/sda1
> > /mnt/usbdrive, it failed.
>
> I've never heard of a filesystem type called udb. Don't you mean -t udf
>
> --
> Regards,
>
> Gregory.
> "Ding-a-ding-dang,My Dang-a-long ling-long"
Back to top
Dances With Crows
External


Since: Jun 07, 2006
Posts: 587



PostPosted: Fri Dec 29, 2006 11:49 am    Post subject: Re: DVD/CDROM writes not working! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 29 Dec 2006 08:19:17 -0800, dchou4u.TakeThisOut@hotmail.com staggered into the
Black Sun and said:

Please don't top-post. Message rearranged for easier reading:

> Gregory Shearman wrote:
>> dchou4u.TakeThisOut@hotmail.com wrote:
>> > I am running Monta Visita Linux (2.6.10)

Old kernel. Time to upgrade.

>> > But when I tried to mount the drive using 'mount -t udb /dev/sda1
>> > /mnt/usbdrive, it failed.
>> I've never heard of a filesystem type called udb. Don't you mean -t udf ?
> Sorry, it was a typo. It should be UDF.

Did you type "mount -t udf /dev/sda1 /mnt/somewhere"? That won't work
for any CD-RW, because A) CD-RWs are not seen as disks, but CD-R*
devices B) CD-RWs aren't partitioned. You probably want:

mount /dev/scd0 /mnt/somewhere

....just like a normal CD-R*. Insert "-t udf" if necessary, but a modern
/bin/mount should try udf before iso9660. Depending on your distro,
/dev/scd0 may be called /dev/sr0 . If you want to write to UDF discs
transparently, you'll need to get a newer kernel and enable UDF Write
Support. HTH,

--
Yesterday upon the stair, I met a man who wasn't there.
He wasn't there again today -- I think he's from the CIA.
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Back to top
Gregory Shearman
External


Since: Jun 30, 2004
Posts: 361



PostPosted: Fri Dec 29, 2006 8:15 pm    Post subject: Re: DVD/CDROM writes not working! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

dchou4u.DeleteThis@hotmail.com wrote:

> I am running Monta Visita Linux (2.6.10) and I have a USB DVD/CDRW
> drive attached.
> I have enabled CDROM, UDF, SCSI and etc, in xconfig so that I can mount
> a CDRW/DVD with UDF and be able to format a CD-RW disk and write to it.
>
> But when I tried to mount the drive using 'mount -t udb /dev/sda1
> /mnt/usbdrive, it failed.

I've never heard of a filesystem type called udb. Don't you mean -t udf

--
Regards,

Gregory.
"Ding-a-ding-dang,My Dang-a-long ling-long"
Back to top
dchou4u
External


Since: Nov 23, 2005
Posts: 15



PostPosted: Sat Dec 30, 2006 11:00 pm    Post subject: Re: DVD/CDROM writes not working! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I did a 'mount -t udf /dev/sr0 /mnt/usbdrive and when I have a blank
DVD+R disk in the USB DVD drive, this is what I get:

root DeleteThis @192.168.1.108:/usr/bin# !moun
mount -t udf /dev/sr0 /mnt/usbdrive
mount: block device /dev/sr0 is write-protected, mounting read-only
end_request: I/O error, dev sr0, sector 64
end_request: I/O error, dev sr0, sector 1248
end_request: I/O error, dev sr0, sector 1024
UDF-fs: No partition found (1)
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)
root DeleteThis @192.168.1.108:/usr/bin#

Then I used my Windows XP to burn some files on the blank DVD+R disk
and when I tried to mount it again using the same command as before, it
gave:

root DeleteThis @192.168.1.108:~# mount -t udf /dev/sr0 /mnt/usbdrive
mount: block device /dev/sr0 is write-protected, mounting read-only
UDF-fs: No VRS found
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
or too many mounted file systems
root DeleteThis @192.168.1.108:~#

Any clue why it may be failing?

Thanks
Back to top
Dances With Crows
External


Since: Jun 07, 2006
Posts: 587



PostPosted: Sun Dec 31, 2006 7:27 am    Post subject: Re: DVD/CDROM writes not working! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 30 Dec 2006 23:00:13 -0800, dchou4u.RemoveThis@hotmail.com staggered into the
Black Sun and said:

Include context when you post, so people know WTF you're talking about.
Context restored:

>Dances With Crows wrote:
>> Gregory Shearman wrote:
>>>> I've never heard of a filesystem type called udb. Don't you mean -t
>>>> udf ?
>>> Sorry, it was a typo. It should be UDF.
>>Did you type "mount -t udf /dev/sda1 /mnt/somewhere"? That won't work
>>for any CD-RW, because A) CD-RWs are not seen as disks, but CD-R*
>>devices B) CD-RWs aren't partitioned. You probably want:
>>mount /dev/scd0 /mnt/somewhere
>>
>>...just like a normal CD-R*. Insert "-t udf" if necessary, but
> I did a 'mount -t udf /dev/sr0 /mnt/usbdrive and when I have a blank
> DVD+R disk in the USB DVD drive, this is what I get:
> root.RemoveThis@192.168.1.108:/usr/bin# !moun
> mount -t udf /dev/sr0 /mnt/usbdrive
> end_request: I/O error, dev sr0, sector 64

You can't mount a blank DVD+-/CD; there's no filesystem on it. You have
to mkudffs on it first. However, you shouldn't mount a UDF DVD/CD and
expect to write to it until you know for sure that you have UDF write
support enabled. You didn't respond to that part of my message and
your kernel's old, so I would guess that you don't have that. Use
growisofs with the -udf option to write to DVD+Rs if you want UDF DVDs.
Or use k3b; it's really a very nice frontend.

> Then I used my Windows XP to burn some files on the blank DVD+R disk
> and when I tried to mount it again using the same command as before,
> UDF-fs: No VRS found

Your 'Doze program almost certainly wrote things in iso9660, then. You
should only use -t with mount if just plain mount doesn't work.

--
This is my rifle, this is my GNU
This is for fighting, this is for $FOO!
--AJS in ASR
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Back to top
dchou4u
External


Since: Nov 23, 2005
Posts: 15



PostPosted: Wed Jan 03, 2007 7:46 pm    Post subject: Re: DVD/CDROM writes not working! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Dances With Crows wrote:
> On 30 Dec 2006 23:00:13 -0800, dchou4u.DeleteThis@hotmail.com staggered into the
> Black Sun and said:
>
> Include context when you post, so people know WTF you're talking about.
> Context restored:
>
> >Dances With Crows wrote:
> >> Gregory Shearman wrote:
> >>>> I've never heard of a filesystem type called udb. Don't you mean -t
> >>>> udf ?
> >>> Sorry, it was a typo. It should be UDF.
> >>Did you type "mount -t udf /dev/sda1 /mnt/somewhere"? That won't work
> >>for any CD-RW, because A) CD-RWs are not seen as disks, but CD-R*
> >>devices B) CD-RWs aren't partitioned. You probably want:
> >>mount /dev/scd0 /mnt/somewhere
> >>
> >>...just like a normal CD-R*. Insert "-t udf" if necessary, but
> > I did a 'mount -t udf /dev/sr0 /mnt/usbdrive and when I have a blank
> > DVD+R disk in the USB DVD drive, this is what I get:
> > root.DeleteThis@192.168.1.108:/usr/bin# !moun
> > mount -t udf /dev/sr0 /mnt/usbdrive
> > end_request: I/O error, dev sr0, sector 64
>
> You can't mount a blank DVD+-/CD; there's no filesystem on it. You have
> to mkudffs on it first. However, you shouldn't mount a UDF DVD/CD and
> expect to write to it until you know for sure that you have UDF write
> support enabled. You didn't respond to that part of my message and
> your kernel's old, so I would guess that you don't have that. Use
> growisofs with the -udf option to write to DVD+Rs if you want UDF DVDs.
> Or use k3b; it's really a very nice frontend.
>
> > Then I used my Windows XP to burn some files on the blank DVD+R disk
> > and when I tried to mount it again using the same command as before,
> > UDF-fs: No VRS found
>
> Your 'Doze program almost certainly wrote things in iso9660, then. You
> should only use -t with mount if just plain mount doesn't work.
>
> --
> This is my rifle, this is my GNU
> This is for fighting, this is for $FOO!
> --AJS in ASR
> Matt G|There is no Darkness in Eternity/But only Light too dim for us to see

I have a DVD+R and a CD-RW disk at my disposal in my testing.
In my /sbin directory, I have the following mkxxx utilities. I dont
have mkudffs.
In the /proc/driver directory, there is a pktcdvd directory, which is
empty.

How can I tell if I have UDF write enabled in my build?
In my .config file, I have both CONFIG_UDF_FS and CONFIG_UDF_NLS
enabled. I also got the SCSI stuff enabled since it may need emulation.

Thanks

root.DeleteThis@192.168.1.108:/proc/driver# ls -l
total 0
-r--r--r-- 1 root root 0 Jan 1 12:11 aic33-audio-start
-r--r--r-- 1 root root 0 Jan 1 12:11 aic33-audio-stop
dr-xr-xr-x 2 root root 0 Jan 1 12:11 pktcdvd
-r--r--r-- 1 root root 0 Jan 1 12:11 rtc
root.DeleteThis@192.168.1.108:/proc/driver#

root.DeleteThis@192.168.1.108:~# cd /sbin
root.DeleteThis@192.168.1.108:/sbin# ls mk*
mkcramfs mkfs mkfs.ext3 mkfs.jfs mkfs.vfat
mkdosfs mkfs.cramfs mkfs.jffs mkfs.minix mkfs.xfs
mke2fs mkfs.ext2 mkfs.jffs2 mkfs.msdos mkswap

root.DeleteThis@192.168.1.108:/sbin# usb 1-1: new high speed USB device using
musb_hdrc and
address 2
usb 1-1: Product: USB Storage Adapter
usb 1-1: Manufacturer: PLEXTOR Corp.
usb 1-1: SerialNumber: 004210389D
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: PLEXTOR Model: DVDR PX-712A Rev: 1.03
Type: CD-ROM ANSI SCSI revision: 00
sr0: scsi3-mmc drive: 125x/125x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 5
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> General Discussions (archive 2) All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum