Re: help to get packet writing working
gm c wrote:
Hello I dont understand the mount command to a path I dont have. That being /dev/pktcdvd/cdrw. I do have /dev/pktcdvd0,1,2,3. Was pktsetup cdrw /dev/hdc suppose to make the path??
Yes. If you have the properly patched pktsetup discussed several emails back it will create it for you. If it doesn't you don't have the correct version of pktsetup. Is it possible you have different version in different places on your machine? Send extracts from the logs next time. Graham
mike
*/Graham Vincent
/* wrote: Hello Mike.
gm c wrote: > Hello Graham > > I added > cdr_device=cdrw > cdrw=ata:1.0.0 > to /etc/default/cdrecord > I am not sure if that did anything because I committed out later with > no change.
No idea about this - I don't need anything here.
> > Then pktsetup cdrw /dev/hdc > On an new disk I could I could cdrwtool -d /dev/hdc -i and -q. > I could then mount -t udf /dev/hdc /cdrom -o noatime,rw and see the > lost+found file. It mounted read only though. > After umount /cdrom I could cdrwtool -d /dev/hdc -f filename and it > seemed like it was writing. When I tried to mount to look at files > copied I got error message cant read superblock etc. > Why wont this work???
I think you're making progress :-)
From the pktsetup syntax I presume you are using a 2.6.9 kernel for this?
After the "pktsetup cdrw /dev/hdc" you should try to mount with:
"mount /dev/pktcdvd/cdrw /cdrom -t udf -o rw,noatime".
The mount you are using mounts /dev/hdc but you want to mount the /dev/pktcdvd/cdrw device which should give you the rw access...
Take a look at the messages log (/var/log/messages on my FC2 system). It should give you a fair bit of information on whether you have the right device mounted.
Good luck!
Regards,
Graham
p.s. I see some of this traffic escaped being copied to the packet writing list - my apologies to anyone who missed any of the interesting bits.
> > One of my problems has been the disk I had been using. I could > cdrwtool -d /dev/hdc -i and see files listed but cdrwtool -d /dev/hdc > -q would not write to the disk. I tried a different disk which > cdrwtool -d /dev/hdc -q formated ok. I tried to cdrecord -d /dev/hdc > -force blank all with no success. Then used windows to format the > disk and then it would cdrwtool -q. > > Mike > > > > --- Graham Vincent wrote: > > >>Hello Mike. >> >>I don't think you are going to have much success changing between >>the >>2.4 and 2.6 kernels - both work but there have been significant >>changes >>in the access methods written into the kernel. I sugggest you >>decide >>which one you want to get working and stick with that (I'd choose >>2.6.9 >>if it's compatible with your distribution). >> >>the 1.0.0b3 version of udftools should be OK for 2.6.9 If you just >>run >>the command "pktsetup" what does it say? On my system I get: >> >># pktsetup >>For pktcdvd < 0.2.0: >> pktsetup /dev/pktcdvd0 /dev/cdrom setup device >> pktsetup -d /dev/pktcdvd0 tear down device >>For pktcdvd >= 0.2.0: >> pktsetup dev_name /dev/cdrom setup device >> pktsetup -d dev_name tear down device >> pktsetup -d major:minor tear down device >> pktsetup -s show device mappings >> >>Note the different syntax. >> >>The dmesg you sent me is for a 2.4 boot. It says you have a command >>line >>option of hdc=ide-scsi set. Not sure if you are using lilo or grub >>but >>check the configuration file. >> >>The config-2.6.9 looks OK for packet writing. I've got packet >>writing >>configured as a module which may work a bit better than built into >>the >>kernel. >> >>Summary: 2.4 kernel use scsi emulation. >>2.6.9 kernel no scsi emulation. >> >>Do you have a 2.6.9 kernel that works with your distribution? >> >>Regards, >> >>Graham >> >>gm c wrote: >> >>>Hello again >>>I patched udftools and installed. No difference from what I had >>>before. Do I have to do something in /etc/defaults/udftools?? The >>>Instructions in packet-writing.txt show giving the comand >> >>cdrwtool -d >> >>>/dev/hdc -q before doing pktsetup. Will that work? I do a >> >>cdrwtool >> >>>-d /dev/hdc -i and get error mesg that dev does not exist. >>>I am attaching copy of dmesg and config. I am confused about it >>>showing hdc having attached ide-scsi. I dont have any scsi >> >>configured >> >>>in this kernel. >>>mike >>>--- Graham Vincent wrote: >>> >>> >>> >>>>Hello Mike. >>>> >>>>gm c wrote: >>>> >>>> >>>>>I tried a year ago to get packet writing working with no success >>>> >>>>and >>>> >>>> >>>>>am trying again. I read the latest postings, patched kernel >>>> >>>>2.4.27 >>>> >>>> >>>>>with patch 2.4.27 and kernel 2.6.9 with patch 2.6.8-2. On 2.4.27 >>>> >>>>said >>>> >>>> >>>>>yes to pw on cd/dvd and udf filesystems and yes to scsi >>>> >>>>emulation.On >>>> >>>> >>>>>2.6 no scsi emulation and yes to packet-writing. >>>>>My first try was with k 2.6.9. >>>>>pksetup /dev/pktcdvd0 /dev/hdc >>>>>mount -t udf /dev/pktcdvd0 /cdrw >>>> >>>>snip... >>>> >>>>There have been a few changes to the pktsetup program recently >> >>for >> >>>>the >>>>newer 2.6 kernels that require an additional patch and a >> >>different >> >>>>syntax. >>>> >>>>Take a look at the packet-writing.txt file in the >>>>Documentation/cdrom >>>>directory of your kernel source tree after applying the 2.6.8-2 >>>>patch. >>>>The first section should help a lot :-) >>>> >>>>Regards, >>>> >>>>Graham
-- To unsubscribe, e-mail: packet-writing-unsubscribe@suse.com For additional commands, e-mail: packet-writing-help@suse.com
------------------------------------------------------------------------ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com http://www.yahoo.com
-- Graham Vincent GPV Enterprises Limited PO Box 5001, New Plymouth, New Zealand Ph +64 21 046 8910 Fax +64 6 753 6970 graham@gpv.co.nz http://www.gpv.co.nz
Hello
Sorry ,I forgot a couple of times to cc packet-writing@suse.
also sorry, I now have a /dev/pktcdvd/cdrw. I must not have checked
after configuring udftools 0.2.0.
I can cdrwtool -d /dev/hdc -q and get a red light and after some time
message setup complete. If I mount disk with mount /dev/pktcdvd/cdrw
/cdrwudf -t udf -o rw,noatime I get no error message and can ls
/cdrwudf and see lost+found. With disk still mounted, if I cdrwtool
-d /dev/hdc -f /filename I get error message -mode_select: Illegal
seek.
I add -w mode2 to above and get same error message.
If I umount /cdrwudf and cdrwtool -d /dev/hdc -f /filename, it looks
to write and I get message about writing at lba="numbers". To see if
the file was copied I mount -d /pktcdvd/cdrw /cdrwudf -t udf -o
rw,noatime and get error mesg. mount:wrong fs etc.
I tried using different devices (/dev/pktcdvd/cdrw, /dev/cdrw) in
write file command above with no success.
mike
--- Graham Vincent
gm c wrote:
Hello I dont understand the mount command to a path I dont have. That being /dev/pktcdvd/cdrw. I do have /dev/pktcdvd0,1,2,3. Was pktsetup cdrw /dev/hdc suppose to make the path??
Yes. If you have the properly patched pktsetup discussed several emails back it will create it for you. If it doesn't you don't have the correct version of pktsetup. Is it possible you have different version in different places on your machine?
Send extracts from the logs next time.
Graham
mike
*/Graham Vincent
/* wrote: Hello Mike.
gm c wrote: > Hello Graham > > I added > cdr_device=cdrw > cdrw=ata:1.0.0 > to /etc/default/cdrecord > I am not sure if that did anything because I committed out later with > no change.
No idea about this - I don't need anything here.
> > Then pktsetup cdrw /dev/hdc > On an new disk I could I could cdrwtool -d /dev/hdc -i and -q. > I could then mount -t udf /dev/hdc /cdrom -o noatime,rw and see the > lost+found file. It mounted read only though. > After umount /cdrom I could cdrwtool -d /dev/hdc -f filename and it > seemed like it was writing. When I tried to mount to look at files > copied I got error message cant read superblock etc. > Why wont this work???
I think you're making progress :-)
From the pktsetup syntax I presume you are using a 2.6.9 kernel for this?
After the "pktsetup cdrw /dev/hdc" you should try to mount with:
"mount /dev/pktcdvd/cdrw /cdrom -t udf -o rw,noatime".
The mount you are using mounts /dev/hdc but you want to mount the /dev/pktcdvd/cdrw device which should give you the rw access...
Take a look at the messages log (/var/log/messages on my FC2 system). It should give you a fair bit of information on whether you have the right device mounted.
Good luck!
Regards,
Graham
p.s. I see some of this traffic escaped being copied to the packet writing list - my apologies to anyone who missed any of the interesting bits.
> > One of my problems has been the disk I had been using. I could > cdrwtool -d /dev/hdc -i and see files listed but cdrwtool -d /dev/hdc > -q would not write to the disk. I tried a different disk which > cdrwtool -d /dev/hdc -q formated ok. I tried to cdrecord -d /dev/hdc > -force blank all with no success. Then used windows to format the > disk and then it would cdrwtool -q. > > Mike > > > > --- Graham Vincent wrote: > > >>Hello Mike. >> >>I don't think you are going to have much success changing between >>the >>2.4 and 2.6 kernels - both work but there have been significant >>changes >>in the access methods written into the kernel. I sugggest you >>decide >>which one you want to get working and stick with that (I'd choose >>2.6.9 >>if it's compatible with your distribution). >> >>the 1.0.0b3 version of udftools should be OK for 2.6.9 If you just >>run >>the command "pktsetup" what does it say? On my system I get: >> >># pktsetup >>For pktcdvd < 0.2.0: >> pktsetup /dev/pktcdvd0 /dev/cdrom setup device >> pktsetup -d /dev/pktcdvd0 tear down device >>For pktcdvd >= 0.2.0: >> pktsetup dev_name /dev/cdrom setup device >> pktsetup -d dev_name tear down device >> pktsetup -d major:minor tear down device >> pktsetup -s show device mappings >> >>Note the different syntax. >> >>The dmesg you sent me is for a 2.4 boot. It says you have a command >>line >>option of hdc=ide-scsi set. Not sure if you are using lilo or grub >>but >>check the configuration file. >> >>The config-2.6.9 looks OK for packet writing. I've got packet >>writing >>configured as a module which may work a bit better than built into >>the >>kernel. >> >>Summary: 2.4 kernel use scsi emulation. >>2.6.9 kernel no scsi emulation. >> >>Do you have a 2.6.9 kernel that works with your distribution? >> >>Regards, >> >>Graham >> >>gm c wrote: >> >>>Hello again >>>I patched udftools and installed. No difference from what I had >>>before. Do I have to do something in /etc/defaults/udftools?? The >>>Instructions in packet-writing.txt show giving the comand >> >>cdrwtool -d >> >>>/dev/hdc -q before doing pktsetup. Will that work? I do a >> >>cdrwtool >> >>>-d /dev/hdc -i and get error mesg that dev does not exist. >>>I am attaching copy of dmesg and config. I am confused about it >>>showing hdc having attached ide-scsi. I dont have any scsi >> >>configured >> >>>in this kernel. >>>mike >>>--- Graham Vincent wrote: >>> >>> >>> >>>>Hello Mike. >>>> >>>>gm c wrote: >>>> >>>>
=== message truncated === __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com
participants (2)
-
gm c
-
Graham Vincent