LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 10-27-2005, 03:37 PM   #1
os2
Member
 
Registered: Dec 2003
Location: Canada
Distribution: Suse 10
Posts: 206

Rep: Reputation: 30
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
 
Old 11-03-2005, 03:43 PM   #2
JohnKFT
Member
 
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 :

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
 
Old 11-03-2005, 03:56 PM   #3
os2
Member
 
Registered: Dec 2003
Location: Canada
Distribution: Suse 10
Posts: 206

Original Poster
Rep: Reputation: 30
Quote:
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?
 
  


Reply


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 08:32 PM
linux from scratch build with linux-2.6.11 and my pktsetup problem! behmjoe Linux - Software 8 04-02-2005 04:32 AM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 08:45 PM


All times are GMT -5. The time now is 09:27 AM.

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