![](https://seccdn.libravatar.org/avatar/9f7000f89204b80709be5ba8ce9fc7e8.jpg?s=120&d=mm&r=g)
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
![](https://seccdn.libravatar.org/avatar/caa790d71750969d2d6aa5700d57c1c6.jpg?s=120&d=mm&r=g)
On Thursday 27 Oct 2005 19:34, Marc Collin wrote:
pktsetup /dev/pktcdvd0 /dev/dvdram
Packet writing setup changed when pktcdvd made its way into mainline kernel. If you have recent 2.6 sources have a look at Documentation/cdrom/packet-writing.txt If you don't have the sources, mail me off-list and I will mail packet-writing.txt back to you. Chris
![](https://seccdn.libravatar.org/avatar/9f7000f89204b80709be5ba8ce9fc7e8.jpg?s=120&d=mm&r=g)
Le 27 Octobre 2005 15:52, Chris Clayton a écrit :
On Thursday 27 Oct 2005 19:34, Marc Collin wrote:
pktsetup /dev/pktcdvd0 /dev/dvdram
Packet writing setup changed when pktcdvd made its way into mainline kernel. If you have recent 2.6 sources have a look at Documentation/cdrom/packet-writing.txt
If you don't have the sources, mail me off-list and I will mail packet-writing.txt back to you.
Chris
i use suse 10, kernel: 2.6.13-15-default in this txt file: Grab a new CD-RW disc and format it (assuming CD-RW is hdc, substitute as appropriate): # cdrwtool -d /dev/hdc -q - Setup your writer # pktsetup dev_name /dev/hdc - Now you can mount /dev/pktcdvd/dev_name and copy files to it. Enjoy! # mount /dev/pktcdvd/dev_name /cdrom -t udf -o rw,noatime what i do cdrwtool -d /dev/dvdram/ -q pktsetup pktcdvd0 /dev/hdc ctl open: Not a directory and after i tried: # pktsetup /dev/pktcdvd0 /dev/hdc 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 don't know if there are a bug with pktsetup provide by suse 10...
![](https://seccdn.libravatar.org/avatar/caa790d71750969d2d6aa5700d57c1c6.jpg?s=120&d=mm&r=g)
On Thursday 27 Oct 2005 20:00, Marc Collin wrote:
Le 27 Octobre 2005 15:52, Chris Clayton a écrit :
On Thursday 27 Oct 2005 19:34, Marc Collin wrote:
pktsetup /dev/pktcdvd0 /dev/dvdram
Packet writing setup changed when pktcdvd made its way into mainline kernel. If you have recent 2.6 sources have a look at Documentation/cdrom/packet-writing.txt
If you don't have the sources, mail me off-list and I will mail packet-writing.txt back to you.
Chris
i use suse 10, kernel: 2.6.13-15-default
in this txt file:
Grab a new CD-RW disc and format it (assuming CD-RW is hdc, substitute as appropriate): # cdrwtool -d /dev/hdc -q
- Setup your writer # pktsetup dev_name /dev/hdc
- Now you can mount /dev/pktcdvd/dev_name and copy files to it. Enjoy! # mount /dev/pktcdvd/dev_name /cdrom -t udf -o rw,noatime
what i do
cdrwtool -d /dev/dvdram/ -q
pktsetup pktcdvd0 /dev/hdc ctl open: Not a directory
It looks like you don't have the directory /dev/pktcdvd. Create that directory and your pktsetup command should work. Then you should be able to mount the packet device with: # mount /dev/pktcdvd/pktcdvd0 /cdrom -t udf -o rw,noatime The key point is that the first argument provided to pktsetup is the name of the device file that will be created (temporarily) in /dev/pktcdvd and it can be any string that is a valid file name. Therefore, if you want you can change pktcdvd0 in the above example to something more meaningful. For example: # pktsetup cdrw /dev/hdc # mount /dev/pktcdvd/cdrw /cdrom -t udf -o rw,noatime I use cdrw and dvdrw as the names for my devices. Hope this helps Chris
![](https://seccdn.libravatar.org/avatar/ce78c9f6d849f43434fca00a0f406a48.jpg?s=120&d=mm&r=g)
Hello list: El jue, 27-10-2005 a las 20:30 +0000, Chris Clayton escribió:
On Thursday 27 Oct 2005 20:00, Marc Collin wrote:
Le 27 Octobre 2005 15:52, Chris Clayton a écrit :
On Thursday 27 Oct 2005 19:34, Marc Collin wrote:
pktsetup /dev/pktcdvd0 /dev/dvdram
Packet writing setup changed when pktcdvd made its way into mainline kernel. If you have recent 2.6 sources have a look at Documentation/cdrom/packet-writing.txt
If you don't have the sources, mail me off-list and I will mail packet-writing.txt back to you.
Chris
i use suse 10, kernel: 2.6.13-15-default
in this txt file:
Grab a new CD-RW disc and format it (assuming CD-RW is hdc, substitute as appropriate): # cdrwtool -d /dev/hdc -q
- Setup your writer # pktsetup dev_name /dev/hdc
- Now you can mount /dev/pktcdvd/dev_name and copy files to it. Enjoy! # mount /dev/pktcdvd/dev_name /cdrom -t udf -o rw,noatime
what i do
cdrwtool -d /dev/dvdram/ -q
pktsetup pktcdvd0 /dev/hdc ctl open: Not a directory
It looks like you don't have the directory /dev/pktcdvd. Create that directory and your pktsetup command should work. Then you should be able to mount the packet device with:
I have the same problem, and I sended a mail to the list but anybody answer me, I have the last version of udf, I created that directory then the device file in /dev is not created: linux:/dev # linux:/dev # ls -ls pkt* total 178 0 d--------- 2 root root 48 Oct 28 01:26 . 178 drwxr-xr-x 36 root root 182088 Oct 28 01:30 .. but i need the device file then I deleted the directory and When I loaded the module the system created a device file in /dev: linux:/dev # ls -ls pkt* 0 crw-rw---- 1 root root 10, 62 Oct 28 02:10 pktcdvd After of that i run: linux:/dev # pktsetup cdrw /dev/hdd ioctl: Inappropriate ioctl for device then the system created a file cdrw in the directory where i ejecuted pktsetup: linux:/dev # la cdrw --wSr-sr-x 1 root root 0 Oct 28 02:12 cdrw pealeeee guys can anybody help me? Reachel
![](https://seccdn.libravatar.org/avatar/caa790d71750969d2d6aa5700d57c1c6.jpg?s=120&d=mm&r=g)
Hi Reachel On Friday 28 Oct 2005 07:13, Raquel Paz wrote: (or should that have been Hi Raquel? :-)
Hello list:
<snip>
I have the same problem, and I sended a mail to the list but anybody answer me, I have the last version of udf, I created that directory then the device file in /dev is not created:
linux:/dev # linux:/dev # ls -ls pkt* total 178 0 d--------- 2 root root 48 Oct 28 01:26 . 178 drwxr-xr-x 36 root root 182088 Oct 28 01:30 ..
but i need the device file then I deleted the directory and When I loaded the module the system created a device file in /dev:
linux:/dev # ls -ls pkt* 0 crw-rw---- 1 root root 10, 62 Oct 28 02:10 pktcdvd After of that i run:
linux:/dev # pktsetup cdrw /dev/hdd ioctl: Inappropriate ioctl for device
then the system created a file cdrw in the directory where i ejecuted pktsetup:
linux:/dev # la cdrw --wSr-sr-x 1 root root 0 Oct 28 02:12 cdrw
I don't understand what is happening here - not that I'm in any way an expert :). The only think I can think of is a mismatch between your kernel version and udftools. What distribution are you using and what are the versions of your kernel and udftools/pktsetup, please? uname -r will give you kernel version and the output from pktsetup with no arguments will give enough information about your udftools/pktsetup version. The version of pktcdvd might also help. You can get the version from dmesg after the pktcdvd module has loaded Chris
pealeeee guys can anybody help me?
Reachel
![](https://seccdn.libravatar.org/avatar/9f7000f89204b80709be5ba8ce9fc7e8.jpg?s=120&d=mm&r=g)
Le 28 Octobre 2005 07:22, Chris Clayton a écrit :
I don't understand what is happening here - not that I'm in any way an expert :). The only think I can think of is a mismatch between your kernel version and udftools. What distribution are you using and what are the versions of your kernel and udftools/pktsetup, please?
uname -r will give you kernel version and the output from pktsetup with no arguments will give enough information about your udftools/pktsetup version.
The version of pktcdvd might also help. You can get the version from dmesg after the pktcdvd module has loaded
my fstab: /dev/dvdram /media/dvdram subfs fs=cdfss,rw,noatime,procuid,nosuid,nodev,exec,users,gid=users,umask=0002,iocharset=utf8 0 0 /dev/dvdram is linked to /dev/hdc pktcdvd: v0.2.0a 2004-07-14 Jens Axboe (axboe@suse.de) and petero2@telia.com linux 2.6.13-15-default #1 Tue Sep 13 14:56:15 UTC 2005 i686 athlon i386 GNU/Linux i renamed /dev/pktcdvd to /dev/pktcdvd_old suse 10 seem to recreate it each time i boot... don't know if it's normal and if there is a way to stop that... step done #cdrwtool -d /dev/hdc -q using device /dev/hdc 1029KB internal buffer setting write speed to 12x Settings for /dev/hdc: Fixed packets, size 32 Mode-2 disc I'm going to do a quick setup of /dev/hdc. The disc is going to be blanked and formatted 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 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=31, type=USPACE start=288, blocks=32, type=PVDS start=320, blocks=32, type=LVID start=352, blocks=32, type=STABLE start=384, blocks=1024, type=SSPACE start=1408, blocks=293568, type=PSPACE start=294976, blocks=31, type=USPACE start=295007, blocks=1, type=ANCHOR start=295008, blocks=160, type=USPACE start=295168, blocks=32, type=STABLE start=295200, blocks=32, type=RVDS start=295232, blocks=31, type=USPACE start=295263, blocks=1, type=ANCHOR Writing UDF structures to disc Quick setup complete! pktsetup pktcdvd0 /dev/hdc dmesg return me: pktcdvd: writer pktcdvd0 mapped to hdc after i do mount /dev/dvdram (after this operation, the led burner alway flash...) cp test* /media/dvdram (the led stoped to flash during a few second... and restarted to flash) dmesg return: Unable to identify CD-ROM format. UDF-fs INFO UDF 0.9.8.1 (2004/29/09) Mounting volume 'LinuxUDF', timestamp 2005/10/28 10:59 (1f10) ls -ls /media/dvdram/ total 0 0 drwxr-xr-x 3 root root 388 2005-10-28 10:59 . 0 drwxr-xr-x 4 root root 120 2005-10-28 10:46 .. 0 drwxr-xr-x 2 root root 40 2005-10-28 10:59 lost+found 0 -rwxr-xr-x 1 root root 237 2005-10-28 12:02 test 0 -rwxr-xr-x 1 root root 158 2005-10-28 12:02 test2.sh 0 -rwxr-xr-x 1 root root 134 2005-10-28 12:02 test2.sh~ 0 -rwxr-xr-x 1 root root 134 2005-10-28 12:02 test.sh 0 -rwxr-xr-x 1 root root 0 2005-10-28 12:02 test.sh~ dmesg return: Unable to identify CD-ROM format. UDF-fs INFO UDF 0.9.8.1 (2004/29/09) Mounting volume 'LinuxUDF', timestamp 2005/10/28 10:59 (1f10) all theses operations was done with root... now if i copy a file to the media, i don't get any error... but the file is not copied umount /dev/dvdram pktsetup -d pktcdvd0 i removed the media and to mount it mount /dev/dvdram dmesg return: Unable to identify CD-ROM format. under root i do: # ls -ls /media/dvdram /bin/ls: /media/dvdram/test: Permission non accordée /bin/ls: /media/dvdram/test2.sh: Permission non accordée /bin/ls: /media/dvdram/test2.sh~: Permission non accordée /bin/ls: /media/dvdram/test.sh: Permission non accordée /bin/ls: /media/dvdram/test.sh~: Permission non accordée /bin/ls: /media/dvdram/Xmodmap: Permission non accordée 0 drwxr-xr-x 3 root root 436 2005-10-28 10:59 . 0 drwxr-xr-x 4 root root 96 2005-10-28 12:29 .. 0 drwxr-xr-x 2 root root 40 2005-10-28 10:59 lost+found Permission non accordée is french.. and is equivalent to: Permission non agreement and do a umount and pktsetup -d pktcdvd0 pktsetup pktcdvd0 /dev/hdc mount /dev/dvdram cp nuvola-1.0.tar.gz /media/dvdram # ls -ls /media/dvdram /bin/ls: /media/dvdram/test: Permission non accordée /bin/ls: /media/dvdram/test2.sh: Permission non accordée /bin/ls: /media/dvdram/test2.sh~: Permission non accordée /bin/ls: /media/dvdram/test.sh: Permission non accordée /bin/ls: /media/dvdram/test.sh~: Permission non accordée /bin/ls: /media/dvdram/Xmodmap: Permission non accordée /bin/ls: /media/dvdram/nuvola-1.0.tar.gz: Permission non accordée total 0 0 drwxr-xr-x 3 root root 492 2005-10-28 10:59 . 0 drwxr-xr-x 4 root root 96 2005-10-28 12:29 .. 0 drwxr-xr-x 2 root root 40 2005-10-28 10:59 lost+found with nero linux, if i do a disk info it said me: fixd packetwriting, cd-rw 577MB (it's a 80minutes strange...) mode data(udf)
![](https://seccdn.libravatar.org/avatar/caa790d71750969d2d6aa5700d57c1c6.jpg?s=120&d=mm&r=g)
Hi Marc, On Friday 28 Oct 2005 16:44, Marc Collin wrote:
Le 28 Octobre 2005 07:22, Chris Clayton a écrit :
<snip>
/dev/dvdram /media/dvdram subfs fs=cdfss,rw,noatime,procuid,nosuid,nodev,exec,users,gid=users,umask=0002,iocharset=utf8 0 0
<snip>
pktsetup pktcdvd0 /dev/hdc
dmesg return me: pktcdvd: writer pktcdvd0 mapped to hdc
after i do mount /dev/dvdram (after this operation, the led burner alway flash...)
Well, this is where I think you are going wrong. pktsetup has set up the packet device on /dev/pktcdvd/pktcdvd0 but you are trying to mount /dev/dvdram. Try replacing /dev/dvdram with /dev/pktcdvd/pktcdvd0 in fstab. Good luck Chris
![](https://seccdn.libravatar.org/avatar/a84048f5da5ccb677569ef82401df035.jpg?s=120&d=mm&r=g)
Hi, maybe the problem is with directory permissions. The directory has 000, so nobody can read or write. Regards Georg Chris Clayton wrote:
Hi Reachel
On Friday 28 Oct 2005 07:13, Raquel Paz wrote:
(or should that have been Hi Raquel? :-)
Hello list:
<snip>
I have the same problem, and I sended a mail to the list but anybody answer me, I have the last version of udf, I created that directory then the device file in /dev is not created:
linux:/dev # linux:/dev # ls -ls pkt* total 178 0 d--------- 2 root root 48 Oct 28 01:26 . 178 drwxr-xr-x 36 root root 182088 Oct 28 01:30 ..
but i need the device file then I deleted the directory and When I loaded the module the system created a device file in /dev:
linux:/dev # ls -ls pkt* 0 crw-rw---- 1 root root 10, 62 Oct 28 02:10 pktcdvd After of that i run:
linux:/dev # pktsetup cdrw /dev/hdd ioctl: Inappropriate ioctl for device
then the system created a file cdrw in the directory where i ejecuted pktsetup:
linux:/dev # la cdrw --wSr-sr-x 1 root root 0 Oct 28 02:12 cdrw
I don't understand what is happening here - not that I'm in any way an expert :). The only think I can think of is a mismatch between your kernel version and udftools. What distribution are you using and what are the versions of your kernel and udftools/pktsetup, please?
uname -r will give you kernel version and the output from pktsetup with no arguments will give enough information about your udftools/pktsetup version.
The version of pktcdvd might also help. You can get the version from dmesg after the pktcdvd module has loaded
Chris
pealeeee guys can anybody help me?
Reachel
![](https://seccdn.libravatar.org/avatar/ce78c9f6d849f43434fca00a0f406a48.jpg?s=120&d=mm&r=g)
Hi George, i checked the permissions in the directory /dev/pktcdvd and this was all permissions nedded, and to be sure i modified the permissions and set it for the group and others: linux:~ # chmod go+w /dev/pktcdvd linux:~ # ls -la /dev/pktcdvd total 178 drwxrwxrwx 2 root root 48 Oct 28 14:51 . drwxr-xr-x 36 root root 182088 Oct 28 14:51 .. linux:~ # lsmod | grep 'pktcdvd' linux:~ # modprobe pktcdvd linux:~ # ls /dev/pktcdvd . .. the directory is empty! :( ok, i send you again all my versions: * The version of pktcdvd: linux kernel pktcdvd: v0.2.0a 2004-07-14 Jens Axboe (axboe@suse.de) and petero2@telia.com * The version of pktsetup: linux:~ # rpm -q udftools udftools-1.0.0b3-1 * My kernel version of curse: linux:~ # uname -r 2.6.11.4-21.9-default * My version of SuSE is 9.3 I used "rpm -q udftools" because when I ejecuted pktsetup without arguments it displayed the option needed: linux:~ # pktsetup pktsetup /dev/pktcdvd0 /dev/cdrom setup device pktsetup -d /dev/pktcdvd0 tear down device Thank you Raquel o Reachel it's the same :) El vie, 28-10-2005 a las 21:33 +0200, Georg Chini escribió:
Hi,
maybe the problem is with directory permissions. The directory has 000, so nobody can read or write.
Regards Georg
Chris Clayton wrote:
![](https://seccdn.libravatar.org/avatar/caa790d71750969d2d6aa5700d57c1c6.jpg?s=120&d=mm&r=g)
Hi Raquel, <snip>
I used "rpm -q udftools" because when I ejecuted pktsetup without arguments it displayed the option needed:
linux:~ # pktsetup pktsetup /dev/pktcdvd0 /dev/cdrom setup device pktsetup -d /dev/pktcdvd0 tear down device
That may be your problem. On my system pktsetup with no arguments gives: $ pktsetup For pktcdvd < 0.2.0: pktsetup /dev/pktcdvd0 /dev/cdrom setup device pktsetup -d /dev/pktcdvd0 tear down device For pktcdvd >= 0.2.0: pktsetup dev_name /dev/cdrom setup device pktsetup -d dev_name tear down device pktsetup -d major:minor tear down device pktsetup -s show device mappings When packet writing was included in the mainline kernel, some changes that were made to the driver meant that a patch to pktsetup was also needed. However, 1.0.0b3 is the right (patched) version so it's strange that pktsetup is producing the wrong output. The only thing I can think of is that you have two versions of pktsetup on your system and the wrong one is being found first. Hope this helps. Chris
![](https://seccdn.libravatar.org/avatar/f6ecda9e11cb5551d99fa7ac3861b5a8.jpg?s=120&d=mm&r=g)
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/patches/packet/udftools-1.0.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
---------------------------------------------------------
On 27/10/2005, "Marc Collin"
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
-- To unsubscribe, e-mail: packet-writing-unsubscribe@suse.com For additional commands, e-mail: packet-writing-help@suse.co
![](https://seccdn.libravatar.org/avatar/d96a80f53656582def0809411f095f6e.jpg?s=120&d=mm&r=g)
On Thu, 2005-10-27 at 15:34 -0400, Marc Collin wrote:
modprobe pktcdvd modprobe udf cdrwtool -d /dev/dvdram/ -q
pktsetup /dev/pktcdvd0 /dev/dvdram
i get ioctl: Inappropriate ioctl for device
Most probably the problem is that when you run "modprobe pktcdvd", a wrong pktcdvd device is created in /dev instead of a pktcdvd directory. I think that loading the module manually is not needed as it will be loaded automatically at the time you setup the device mapping with pktsetup. Second thing is that you use pktsetup in the wrong way. The usage for latest pktsetup versions is: pktsetup NAME /dev/mydvdwriter NAME is just a name for the device association. Running: pktsetup -h shows the correct usage notes for pktsetup. Its manual page seems incomplete. I have encountered the same problems, but after many hours of trial and error I got things working and I have written my notes in a form of a mini-howto. You can find it here: http://www.raoul.shacknet.nu/desktop/pktwriting.html I use fedora core, but linux is linux. You can create a UDEV rule for the pktcdvd devices to get rid of the above ioctl issue. Have a look at the "Common Errors" section of the document. Best regards, Raoul (...is just a nickname)
participants (6)
-
Chris Clayton
-
Georg Chini
-
John Mellor
-
Marc Collin
-
Raoul
-
Raquel Paz