Linux - HardwareThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
# 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
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,700
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.
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 procedurehttp://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).
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.