Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-18-2008, 03:54 PM
|
#1
|
|
Member
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: Ubuntu Hardy, Fedora 13
Posts: 92
Rep:
|
Unable to packet write to UDF on DVD+RW
Hello,
At this point I can't tell whether this is a hardware or software issue, so my apologies in advance if this isn't in the right forum. I am trying to use a DVD+RW disk for UDF packet writing in Fedora 7 x86_64, and I get errors that the file system is Read-Only. Here is what I have done.
# dvd+rw-format -force /dev/scd0
# pktsetup pktcdvd0 /dev/scd0
# mkudffs --media-type=dvd --udfrev=0x0150 /dev/pktcdvd/pktcdvd0
# mount -t udf -o rw,noatime /dev/pktcdvd/pktcdvd0 /media/cdvdrw
Now, when I try to copy something to /media/cdvdrw (as root) it tells me the disk is read-only. How can this be, since mount was invoked with -o rw? I'm not sure if this has anything to do with it, but doing hdparm /dev/scd0 gives
/dev/scd0:
IO_support = 0 (default 16-bit)
readonly = 0 (off)
readahead = 256 (on)
HDIO_GETGEO failed: Inappropriate ioctl for device
If it matters, I can't enable DMA (apparently because the device is listed as scd0 as opposed to hdxx).
# sdparm /dev/scd0 gives
/dev/scd0: Optiarc DVD+-RW AD-5540A 103C [cd/dvd]
Read write error recovery mode page:
AWRE 1 [cha: y, def: 1]
ARRE 0 [cha: y, def: 0]
PER 0 [cha: n, def: 0]
Write parameters (MMC) mode page:
BUFE 1 [cha: y, def: 1]
WR_T 0 [cha: y, def: 0]
MULTI_S 3 [cha: y, def: 3]
I'm not sure what's wrong. Thanks in advance.
|
|
|
|
03-18-2008, 04:22 PM
|
#2
|
|
Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697
Rep:
|
I have never done this but i do know there is a packet writing module in the kernel for udf. It is probably not enabled in default Fedora rpm kernels. You can recompile the kernel and enable the feature and see if that is what you need to do for it.
Brian
|
|
|
|
03-18-2008, 05:07 PM
|
#3
|
|
Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697
Rep:
|
Found some links from a quick google search. This might help. If not goto google and search for others. http://packet-cd.sourceforge.net/
Brian
|
|
|
|
03-19-2008, 08:04 AM
|
#4
|
|
Member
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: Ubuntu Hardy, Fedora 13
Posts: 92
Original Poster
Rep:
|
Thanks for the reply. Yes, there is indeed support for this in FC7. When I insert the formatted DVD an icon called "LinuxUDF" appears on the desktop and the disk is mounted to /media/LinuxUDF. All along, I assumed this should be unmounted, and then follow the procedure http://www.g-loaded.eu/2005/11/10/pa...d-dvdrw-media/ for pktcdvd. But after experimenting with LinuxUDF, it appears to allow cut/paste seemlessly, even as an ordinary user! This eliminates the hassle setting up (and later tearing down) pktcdvd and remounting the disk, not to mention using chown all the time and using up costly disk rewrites.
I had previously used pktcdvd for CD-RW, which worked fine. I'm guessing the difference is that DVD's need to be formatted with dvd+rw-format instead of cdrwtool (maybe pktcdvd doesn't like that).
|
|
|
|
06-08-2008, 10:16 AM
|
#5
|
|
Member
Registered: Mar 2006
Location: NYS
Distribution: Mandriva-2006
Posts: 114
Rep:
|
UDF Packet Writing Setup
I had success with DVD+RW udf packet writing in Mandrivia-2008 (kernel-2.6.25) but discovered that I had to break the association between /dev/pktcdvd0 & its associated device (/dev/hdb) until after the udf filesystem was created.
Here are the commands I used to setup my DVD+RW for udf packet writing:
/etc/rc.d/init.d/pktcdvd stop ..break association between /dev/hdb & /dev/pktcdvd/0
dvd+rw-format /dev/hdb ..only needed for new virgin (out of box) discs
growisofs -Z /dev/hdb=/dev/zero ..(optional) writes zeros to disc to clean stale data
mkudffs /dev/hdb ..create a udf filesystem on disc
/etc/rc.d/init.d/pktcdvd start ..start association between /dev/hdb & /dev/pktcdvd0
mount -t udf -o rw,noatime /dev/pktcdvdd0 /mnt/misc
...................
umount /dev/pktcdvd0
eject /dev/hdb
Note: Mandriva uses an initialization script to associate & unassociate /dev/pktcdvd0 to my dvd device /dev/hdb.
If you don't have such a script you can do it manually by running:
pktsetup -d /dev/hdb ..break the association
pktsetup /dev/pktcdvd0 /dev/hdb ..start association
-or-
pktsetup /dev/pktcdvd/0 /dev/hdb
Here are the commands I use setup CD-RW packet writing:
/etc/rc.d/init.d/pktcdvd stop ..break association between /dev/hdb & /dev/pktcdvd0
cdrwtool -d /dev/hdb -q ..quick disc setup (blank, format & write udf filesystem)
/etc/rc.d/init.d/pktcdvd start ..start association between /dev/hdb & /dev/pktcdvd0
mount -t udf -o rw,noatime /dev/pktcdvd0 /mnt/misc
umount /dev/pktcdvd0
Here are the commands I use to setup a DVD+RW with a "PRE-MASTERED" udf filesystem:
/etc/rc.d/init.d/pktcdvd stop
dd if=/dev/zero of=image.udf bs=2k count=2M ..create a 4GB file for dvd use
mkudffs --utf8 image.udf ..create a udf filesystem in file
mount -t udf -o loop,rw,noatime image.udf /mnt/misc
cp * /mnt/misc ..copy files to image.udf file (> 2GB files supported)
umount /mnt/misc
growisofs -Z /dev/hdb=image.udf ..copy image.udf to disc
/etc/rc.d/init.d/pktcdvd start ..start association between /dev/hdb & /dev/pktcdvd0
mount -t udf -o rw,noatime /dev/pkcdvd0 /mnt/misc
umount /dev/pktcdvd0 ..unmount /mnt/misc
I hope this helps you and other who are interested in the udf filesystem. Sorry I couldn't reply to your post sooner
but I just started playing with the udf filesystem a couple of days ago.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:44 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|