![](https://seccdn.libravatar.org/avatar/5ff01bcb3cc11d8374ab1723cd793ca5.jpg?s=120&d=mm&r=g)
Hello, everyone. I am unable to write to my DVD+RW with UDFS. Here's
what I am doing:
ext1:~# dvd+rw-format -force /dev/scd0
* DVD▒RW/-RAM format utility by
![](https://seccdn.libravatar.org/avatar/ce0150ff68789389639241c568dca423.jpg?s=120&d=mm&r=g)
If you check your dmesg you will see udffs complain that the device is not writable, and that it is falling back to read only mode. This may be because your drive is not standards compliant, and will not accept single sector writes. Using the pktcdvd driver might be able to work around that problem. Install the udftools package and use pktsetup to bind /dev/pktcdvd/0 to /dev/scd0 and then try to mount /dev/pktcdvd/0. Michel Vaillancourt wrote:
Hello, everyone. I am unable to write to my DVD+RW with UDFS. Here's what I am doing:
ext1:~# dvd+rw-format -force /dev/scd0 * DVD▒RW/-RAM format utility by
, version 6.1. * 4.7GB DVD+RW media detected. * formatting 9.5/ ext1:~# mkudffs /dev/scd0 start=0, blocks=16, type=RESERVED start=16, blocks=3, type=VRS start=19, blocks=237, type=USPACE start=256, blocks=1, type=ANCHOR start=257, blocks=16, type=PVDS start=273, blocks=1, type=LVID start=274, blocks=2294573, type=PSPACE start=2294847, blocks=1, type=ANCHOR start=2294848, blocks=239, type=USPACE start=2295087, blocks=16, type=RVDS start=2295103, blocks=1, type=ANCHOR
ext1:~# mount /dev/scd0 /media/dvdram/ -t udf -o rw,noatime
ext1:/tmp# cd /tmp ext1:/tmp# cp aJunkFile2copy.file /media/dvdram/ cp: cannot create regular file `/media/dvdram/aJunkFile2copy.file': Read-only file system
ext1:/tmp# mount | grep media /dev/scd0 on /media/dvdram type udf (rw,noatime)
ext1:/tmp# df -h | grep media /dev/scd0 4.4G 290K 4.4G 1% /media/dvdram
... I'm not entirely sure why it is not working. Any suggestions as to where I should start looking. I'd really like to make this work. :)
![](https://seccdn.libravatar.org/avatar/5ff01bcb3cc11d8374ab1723cd793ca5.jpg?s=120&d=mm&r=g)
Phillip Susi wrote:
If you check your dmesg you will see udffs complain that the device is not writable, and that it is falling back to read only mode. This may be because your drive is not standards compliant, and will not accept single sector writes. Using the pktcdvd driver might be able to work around that problem. Install the udftools package and use pktsetup to bind /dev/pktcdvd/0 to /dev/scd0 and then try to mount /dev/pktcdvd/0.
Thanks very much. I'll try this this evening and get back to the list with any success or failure. --Michel
![](https://seccdn.libravatar.org/avatar/5ff01bcb3cc11d8374ab1723cd793ca5.jpg?s=120&d=mm&r=g)
Phillip Susi wrote:
If you check your dmesg you will see udffs complain that the device is not writable, and that it is falling back to read only mode. This may be because your drive is not standards compliant, and will not accept single sector writes. Using the pktcdvd driver might be able to work around that problem. Install the udftools package and use pktsetup to bind /dev/pktcdvd/0 to /dev/scd0 and then try to mount /dev/pktcdvd/0.
Hi, Phillip! ext1:~# ls /dev/pk* /dev/pktcdvd0 /dev/pktcdvd1 /dev/pktcdvd2 /dev/pktcdvd3 ext1:~# pktsetup /dev/pktcdvd0 /dev/scd0 open packet device: No such device or address ... Suggestions as to what the issue might be? /dev/scd0 is the correct target, as I can to DAO-style writes to it. The drive itself is: ext1:~# dmesg | grep -i dvd hdc: HL-DT-ST DVDRAM GSA-4163B, ATAPI CD/DVD-ROM drive Vendor: HL-DT-ST Model: DVDRAM GSA-4163B Rev: A103 sr0: scsi3-mmc drive: 62x/62x writer dvd-ram cd/rw xa/form2 cdda tray ... I'm using IDE-SCSI to access the drive, since I was given to understand that it works best that way for UDF or Packet access. -- -- Michel Vaillancourt Wolfstar Systems
![](https://seccdn.libravatar.org/avatar/e7d2612fdb4b12c9f797339527bda7a8.jpg?s=120&d=mm&r=g)
Michel Vaillancourt wrote:
ext1:~# dmesg | grep -i dvd hdc: HL-DT-ST DVDRAM GSA-4163B, ATAPI CD/DVD-ROM drive Vendor: HL-DT-ST Model: DVDRAM GSA-4163B Rev: A103 sr0: scsi3-mmc drive: 62x/62x writer dvd-ram cd/rw xa/form2 cdda tray
... I'm using IDE-SCSI to access the drive, since I was given to understand that it works best that way for UDF or Packet access.
Oh no don't use ide-scsi you don't need that in 2.6 to do cd/dvd writing... Use your /dev/hdd device directly -- M
![](https://seccdn.libravatar.org/avatar/5ff01bcb3cc11d8374ab1723cd793ca5.jpg?s=120&d=mm&r=g)
M wrote:
Michel Vaillancourt wrote:
... I'm using IDE-SCSI to access the drive, since I was given to understand that it works best that way for UDF or Packet access.
Oh no don't use ide-scsi you don't need that in 2.6 to do cd/dvd writing... Use your /dev/hdd device directly
ext1:~# uname -a Linux ext1 2.4.27-2-686 #1 Wed Nov 30 21:55:37 JST 2005 i686 GNU/Linux Its a Debian box, and I've had a lot of problems with this machine "liking" the 2.6x kernels...
![](https://seccdn.libravatar.org/avatar/5ff01bcb3cc11d8374ab1723cd793ca5.jpg?s=120&d=mm&r=g)
Michel Vaillancourt wrote:
Its a Debian box, and I've had a lot of problems with this machine "liking" the 2.6x kernels...
Hi, everyone! This is a quick email to report back. I had the time to compile a custom 2.6 kernel over the weekend. First try, it worked. So I guess the moral of the story is that even with Debian, its simpler to compile your own kernel and go. Thanks very much to everyone who made suggestions and helped me get to the right/write answer. :) Incidentally, what I am doing is using my DVD+RAM drive as a network backup device. My servers all do TAR/GZ backups each night of key data and the SCP directly onto the mounted DVD+RAM disk. It works like a charm. --Michel
![](https://seccdn.libravatar.org/avatar/ce0150ff68789389639241c568dca423.jpg?s=120&d=mm&r=g)
Michel Vaillancourt wrote:
Hi, Phillip!
ext1:~# ls /dev/pk* /dev/pktcdvd0 /dev/pktcdvd1 /dev/pktcdvd2 /dev/pktcdvd3
ext1:~# pktsetup /dev/pktcdvd0 /dev/scd0 open packet device: No such device or address
It appears that you don't have the packet device driver loaded. Make sure you have the module built, installed, and either configured to auto load, or manually modprobe it and try again.
... Suggestions as to what the issue might be? /dev/scd0 is the correct target, as I can to DAO-style writes to it. The drive itself is:
ext1:~# dmesg | grep -i dvd hdc: HL-DT-ST DVDRAM GSA-4163B, ATAPI CD/DVD-ROM drive Vendor: HL-DT-ST Model: DVDRAM GSA-4163B Rev: A103 sr0: scsi3-mmc drive: 62x/62x writer dvd-ram cd/rw xa/form2 cdda tray
... I'm using IDE-SCSI to access the drive, since I was given to understand that it works best that way for UDF or Packet access.
In 2.6 ide-scsi is obsolete, and scheduled for removal iirc. Ditch ide-scsi and just use /dev/hdc ( or whatever ) directly.
![](https://seccdn.libravatar.org/avatar/5ff01bcb3cc11d8374ab1723cd793ca5.jpg?s=120&d=mm&r=g)
Phillip Susi wrote:
Michel Vaillancourt wrote:
ext1:~# pktsetup /dev/pktcdvd0 /dev/scd0 open packet device: No such device or address
It appears that you don't have the packet device driver loaded. Make sure you have the module built, installed, and either configured to auto load, or manually modprobe it and try again.
Ok... That would be the problem. I had thought that the udftools for Debian package included the modules required. I somehow missed the part in the docs where I have to compile a custom kernel to have this work. I'll get a working custom kernel installed on this box and then patch it to include the pktcdvd stuff. I'll post back when I hit the next brick or have some success. Thanks for your help. --Michel
![](https://seccdn.libravatar.org/avatar/f87393a317f048fb6dd0fd9caa959458.jpg?s=120&d=mm&r=g)
El Lunes, 24 de Julio de 2006 19:02, Michel Vaillancourt escribió:
Hello, everyone. I am unable to write to my DVD+RW with UDFS. Here's what I am doing:
ext1:~# dvd+rw-format -force /dev/scd0 * DVD▒RW/-RAM format utility by
, version 6.1. * 4.7GB DVD+RW media detected. * formatting 9.5/ ext1:~# mkudffs /dev/scd0 start=0, blocks=16, type=RESERVED start=16, blocks=3, type=VRS start=19, blocks=237, type=USPACE start=256, blocks=1, type=ANCHOR start=257, blocks=16, type=PVDS start=273, blocks=1, type=LVID start=274, blocks=2294573, type=PSPACE start=2294847, blocks=1, type=ANCHOR start=2294848, blocks=239, type=USPACE start=2295087, blocks=16, type=RVDS start=2295103, blocks=1, type=ANCHOR
ext1:~# mount /dev/scd0 /media/dvdram/ -t udf -o rw,noatime At this point try to remount again, sometimes I was being forced to do. mount -o remount,rw,noatime /media/dvdram/
Weird, but once I've seen. -- Gustavo Guillermo Pérez Compunauta uLinux www.compunauta.com
![](https://seccdn.libravatar.org/avatar/5ff01bcb3cc11d8374ab1723cd793ca5.jpg?s=120&d=mm&r=g)
Gustavo Guillermo Pérez wrote:
ext1:~# mount /dev/scd0 /media/dvdram/ -t udf -o rw,noatime At this point try to remount again, sometimes I was being forced to do. mount -o remount,rw,noatime /media/dvdram/
Weird, but once I've seen.
Hi, Gustavo! Thanks for the suggestion. It didn't work, unfortunately. I'll post when I have a working solution. -- -- Michel Vaillancourt Wolfstar Systems
participants (4)
-
Gustavo Guillermo Pérez
-
M
-
Michel Vaillancourt
-
Phillip Susi