pktsetup problem...
hi
i try to do packet writing under linux (suse 10) in fstab i have /dev/dvdram /media/dvdram subfs fs=cdfss,rw,procuid,nosuid,nodev,exec,users,gid=users,umask=0002,iocharset=utf8 0 0 modprobe pktcdvd modprobe udf cdrwtool -d /dev/dvdram/ -q pktsetup /dev/pktcdvd0 /dev/dvdram i get ioctl: Inappropriate ioctl for device linux:/var/lib/rpm # ls -ls /dev/pktcdvd* 0 crw-rw---- 1 root root 10, 62 2005-10-26 23:59 /dev/pktcdvd 0 --wx---r-- 1 root root 0 2005-10-27 00:11 /dev/pktcdvd0 any idea? thanks |
I sent this recently to the SUSE packet writing mailing list - it may help you. Note carefully the syntax of pktsetup - you can call the block device (that I named cdpkt) anything you like.
I think I may have the answer to this. I struggled for days to get this working and had the same 'Inappropriate ioctl' error despite doing exactly what every instruction told me. I use kernel 2.6.12 on Vector Linux and the latest udftools-1.0.03b. However, I finally found this site run by the current maintainer : http://web.telia.com/~u89404340/packet.html on which he said to apply this patch to the latest udftools even for kernel 2.6 : http://web.telia.com/~u89404340/patc....0b3.patch.bz2 That did the trick for me and it all works perfectly. What happened was that <modprobe pktcdvd> created the directory /dev/pktcdvd and <pktsetup cdpkt /dev/hdc> created the file /dev/pktcdvd/cdpkt. Problem was that this was an empty text file instead of a block device - hence the 'inappropriate ioctl' error. Patching the udftools made it create a block device instead that pointed to my cdrom /dev/hdc. I put this in /etc/fstab : dev/pktcdvd/cdpkt /mnt/cdpkt udf noauto,user,rw 0 0 amd made a folder /mnt/cdpkt to contain the contents. I then put pktsetup /cdpkt /dev/hdc in my /etc/rc.d/rc.local so it registers automatically every time I bootup. Hope this helps. My researches showed lots of people seem to have this problem, and the need for the patch is not at all clear - all sources implied that the latest udftools-1.0.03b together with kernel >= 2.6.10 should work. Seems not so. John |
Quote:
but if i want to listen movie, read dvd... i need to change the fstab everytime? |
All times are GMT -5. The time now is 10:08 AM. |