Re: pktsetup problem...

Chris Clayton <[email protected]> Thu, 27 Oct 2005 20:30:08 +0000
Newsgroups gmane.linux.suse.packet-writing
Message-ID <[email protected]>
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