LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-06-2005, 03:59 AM   #1
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 827

Rep: Reputation: 43
Cannot set up Packet Writing


My system is Mandrake 10.1 with 2 HDDs (Linix and Windows), a CDRW and a DVD-ROM.

I have compiled the kernel 2.6.10-3mdk, primarily to be able to use packet writing. I have installed UDFtools1.0.03b.

cdrwtool seems to work OK. It formats the disc and does not give me any error messages.

When I boot, /dev/pkdcdvd is created as a character device. If I delete it it is recreated at the next boot.

The command:

mknod /dev/pktcdvd0 b 97 0

creates the block device.

The command pktsetup /dev/pktcdvd0 /dev/hdc returns:

open packet device: No such device or address

I don't know which device the message refers to. /dev/pktcdvd0 exists, /dev/hdc exists and I can mount and unmount it.

Could the following have any bearing on the problem:

1. While booting I see a message: "special device /dev/hdc does not exist" followed by a similar message for /dev/hdd. However when KDE 3.2 is up I do have these devices mounted and working.

2. Just before X starts this message flashes up:

Assigning raw devices: Cannot open master raw device 'dev/rawctl' (No such file or directory).

There is in fact no /dev/rawctl.

Any help will be appreciated.
 
Old 03-10-2005, 12:34 AM   #2
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 827

Original Poster
Rep: Reputation: 43
The deafening silence on ths thread makes me wonder.

Can I ask: Has anybody else tried and failed to get packet writing to work?

and Has anybody got it working with no problem and can't see why it should cause a problem?

Thanks in advance.
 
Old 03-11-2005, 07:06 PM   #3
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,397

Rep: Reputation: 92
I failed too. udf and pktcdvd are loaded. I took the -current udev Slackware package.
I got /dev/pktcdvd/control.
After that, nothing works.
 
Old 03-11-2005, 11:33 PM   #4
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 827

Original Poster
Rep: Reputation: 43
There may be a solution in the offing. www.linuxquestions.org/questions/showthread.php?s=&postid=1524371#post1524371

but it's too early in the morning for me to try it now.
 
Old 03-12-2005, 10:32 AM   #5
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Re: Cannot set up Packet Writing

Quote:
Originally posted by davcefai
My system is Mandrake 10.1 with 2 HDDs (Linix and Windows), a CDRW and a DVD-ROM.

I have compiled the kernel 2.6.10-3mdk, primarily to be able to use packet writing. I have installed UDFtools1.0.03b.

cdrwtool seems to work OK. It formats the disc and does not give me any error messages.

When I boot, /dev/pkdcdvd is created as a character device. If I delete it it is recreated at the next boot.

The command:

mknod /dev/pktcdvd0 b 97 0

creates the block device.

The command pktsetup /dev/pktcdvd0 /dev/hdc returns:

open packet device: No such device or address

I don't know which device the message refers to. /dev/pktcdvd0 exists, /dev/hdc exists and I can mount and unmount it.

Could the following have any bearing on the problem:

1. While booting I see a message: "special device /dev/hdc does not exist" followed by a similar message for /dev/hdd. However when KDE 3.2 is up I do have these devices mounted and working.

2. Just before X starts this message flashes up:

Assigning raw devices: Cannot open master raw device 'dev/rawctl' (No such file or directory).

There is in fact no /dev/rawctl.

Any help will be appreciated.
The rawcontrol problem is usually due to a device which the OS is looking for but you do not actually have.

In my case I saw the same thing when I installed Mandrake 10.1 on a floppyless Laptop.

It's unimportant, and I commented out the offending line in the script.


It has nothing really to do with X windows or the UDF file system...

If you've installed the UDF tools for Mandrake you must first UNMOUNT any existing drive then remove the entries for it in FSTAB so that it is not automatically mounted again, interfering with what you are doing.

The Mandrake UDF tools give you a nice "service" which as root you can start with...

service pktdrvr start

(note check my spelling by looking in /etc/init.d)


Also your syntax is incorrect...

See the posted thread.

You must "format" the device with dvd+rw-format (for DVD+R/W disks) specifying the actual device name, not it's packet driver alias...

Then you must create the udf file system using the pktdrvr device name as I indicated... using the

mkudffs

command... you can also symlink the /dev/pktdvd0 (sp?) to /dev/cdrom and not need to specify the device itself on the command line... but this is not needed.

See the other thread.

I have it up and running and have transferred many disks worth of stuff back and forth, testing it out.

It works quite well.

XP sees the UDF disk with a labeled called LinuxUDF, when mounted.

Speed is very good too, especially on large continguous files.

Small files are another matter, probably because the I/O is all syncronous to avoid data corruption.
 
Old 03-12-2005, 11:33 AM   #6
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 827

Original Poster
Rep: Reputation: 43
I think my problem starts earlier than this. I looked in /etc/sysconfig/pktcdvd and the file was empty apart from default comments. I added:

hdc /dev/hdc

I unmounted my cdwriter (/dev/hdc mounted on /mnt/cdrom) and commented out the line in fstab.

Then I got:

Quote:
[root@davcefai david]# service pktcdvd start
Activating pktcdvd devices:
pktcdvd module already loaded
ctl open: Not a directory
/dev/hdc [ OK ]
[root@davcefai david]#
The Mandrake Control Centre shows the service as stopped. Trying to start it from there gives me:

Deactivating pktcdvd devices:ctl open: Not a directory /dev/hdc[ OK]
ERROR: Module pktcdvd does not exist in /proc/modules

followed by the error message above.

I'm more confused than ever
 
Old 04-04-2005, 08:21 AM   #7
behmjoe
Member
 
Registered: Mar 2005
Posts: 80

Rep: Reputation: 15
Hi,

ditto i have a similar problem, and i am using linux-2.6.11.6 also using udftools-1.0.0b3. I must also say i am using the latest udev and hotplug scripts. I added a couple of lines to my udev rules and permissions files. Here they are:

i added this line to my /etc/udev/50-udev.permissions:

pktcdvd/*:root:cdrw:0660

I added these lines to my /etc/udev/rules.d/50-udev.rules:

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

Here is my problem at the command line:

ls -l /dev/pktcdvd
crw- --- --- 10, 63 /dev/control

pktsetup /dev/pktcdvd/pktcdvd0 /dev/hdf
ioctl: Inappropriate ioctl for device

ls -l /dev/pktcdvd
crw- --- --- 10, 63 /dev/pktcdvd/control
-r-- --x r-t 0 /dev/pktcdvd/pktcdvd0

pktsetup /dev/pktcdvd/pktcdvd0 /dev/hdf
ioctl: Inappropriate ioctl for device

So, I think you have the same problem. I have the packet writing driver built into my kernel so I don't think it has to do with modprobe. Googling has done me no good. So i hope this adds information to a possible viewer of this thread to help us both out.

thanks,
warren rockefellar
 
Old 03-29-2007, 07:20 PM   #8
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
UPDATE: Packet writing success.

http://www.linuxquestions.org/questi...d.php?t=538283

Check that thread for how I got packet writing to finally work if you haven't yet
 
Old 03-30-2007, 03:02 AM   #9
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,397

Rep: Reputation: 92
Thanks dude !
Reviving old threads with a solution is nice.
I'll try it soon. Did you tried the deletion ?
 
  


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
CD Packet Writing Software SML Linux - Software 3 03-29-2007 07:16 PM
Packet Writing MasterC Linux - Software 6 03-29-2007 07:15 PM
Packet writing apffal Linux - Software 2 03-29-2007 07:13 PM
packet writing in MDK 10 gurty Mandriva 0 03-24-2004 07:51 AM
packet writing - cdrw vinay_s_s Linux - Software 4 02-15-2004 05:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:42 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration