Re: unable to pktsetup

Raquel Paz <[email protected]> Fri, 21 Oct 2005 04:06:16 -0500
Newsgroups gmane.linux.suse.packet-writing
Organization Ramses Paz
Message-ID <[email protected]>
Hello

>On Monday 01 August 2005 22:52, Nobody Here wrote: 
>> I'm using SuSE 9.3 .
>>
>> pktsetup fails regardless of what device I tell it. cdrwtool
correctly
>> formats the disk. The module loads from modprobe without sign of
>> difficulty. There is a notice in the syslog that it is loaded.

[....]
>
>Make sure you are using the patched udftools-1.0.0b3 then run: 
>
>
>pktsetup pktcdvd0 /dev/hdc 
>
>
>This worked for me with SuSE 9.3. 

I have SuSE 9.3 too:
linux:~ # rpm -q udftools
udftools-1.0.0b3-1
linux:~ # uname -r
2.6.11.4-21.9-default

And I Added this lines in /etc/udev/rules.d/50-udev.rules, because when
i loaded the kernel module the udev didn't create the directory in dev

KERNEL="pktcdvd", NAME="pktcdvd/control"
KERNEL="pktcdvd[0-9]*", NAME="pktcdvd/pktcdvd%n"

but it only created one file:
linux:~ # la /dev/pkt*
total 178
drwxr-xr-x   2 root root     72 Oct 21 03:33 .
drwxr-xr-x  36 root root 182064 Oct 21 03:33 ..
crw-rw----   1 root root 10, 62 Oct 21 03:33 control

then i manualy created a device file:

linux:~ # mknod /dev/pktcdvd/pktcdvd b 62 10
linux:~ # mknod /dev/pktcdvd/pktcdvd0 b 62 10
linux:~ # ls /dev/pktcd*
.  ..  control  pktcdvd  pktcdvd0

And i tried to setup the packet association:

linux:~ # pktsetup pktcdvd0 /dev/hdd
ioctl: Inappropriate ioctl for device
linux:~ # pktsetup pktcdvd /dev/hdd
ioctl: Inappropriate ioctl for device

Rebeca