Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-27-2005, 02:37 PM   #1
Registered: Dec 2003
Location: Canada
Distribution: openSUSE Tumbleweed
Posts: 209

Rep: Reputation: 30
pktsetup problem...


i try to do packet writing under linux (suse 10)

in fstab i have

/dev/dvdram /media/dvdram subfs
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?

Old 11-03-2005, 02:43 PM   #2
Registered: Aug 2003
Location: NW Scotland
Distribution: Slackware 10
Posts: 169

Rep: Reputation: 30
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 :

on which he said to apply this patch to the latest udftools even for
kernel 2.6 :

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.

Old 11-03-2005, 02:56 PM   #3
Registered: Dec 2003
Location: Canada
Distribution: openSUSE Tumbleweed
Posts: 209

Original Poster
Rep: Reputation: 30
Originally posted by JohnKFT

I put this in /etc/fstab :

/dev/pktcdvd/cdpkt /mnt/cdpkt udf noauto,user,rw 0 0

John [/B]
thank for the help

but if i want to listen movie, read dvd... i need to change the fstab everytime?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
lfs build with linux-2.6.11 and my pktsetup problem! behmjoe Linux From Scratch 3 04-03-2005 07:32 PM
linux from scratch build with linux-2.6.11 and my pktsetup problem! behmjoe Linux - Software 8 04-02-2005 03:32 AM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration