mrw + packet writing + variable packet sizes
Hi guys, Is it possible to do packet writing of variable sizes? I've applied the mrw patch to my kernel as i found on the site, but the only way it seems I can create a usable disk is if i use pktsetup with the -q option. Is there a manual way to reserve a track & say format it with ext2 or so? also what exactly is mrw? :) Regards Nigel
On Fri, Jan 09 2004, Nigel Kukard wrote:
Hi guys,
Is it possible to do packet writing of variable sizes? I've applied the mrw patch to my kernel as i found on the site, but the only way it seems I can create a usable disk is if i use pktsetup with the -q option.
Is there a manual way to reserve a track & say format it with ext2 or so?
also what exactly is mrw? :)
mrw is mount rainier, and you don't need packet writing support for that (it's basically packet writing in firmware, with added defect management). so if you have a mrw capable drive and the small mrw patch, then you can access the drive like a hard drive. -- Jens Axboe
also what exactly is mrw? :)
mrw is mount rainier, and you don't need packet writing support for that (it's basically packet writing in firmware, with added defect management). so if you have a mrw capable drive and the small mrw patch, then you can access the drive like a hard drive.
I have found mrw patch for 2.4.23 kernel only. http://w1.894.telia.com/~u89404340/patches/packet/2.4/cd-mrw-2.4.23-rc1.patc... Are there patches for other 2.4 kernels? Is it possible to apply cd-mrw-2.4.23-rc1 patch on 2.4.22 kernel? Where can I find instructions on how to use Mt. Rainier in Linux? Thanks! Best regards, Ljubo
Hrmmm, I have an LG 52/24/52 drive... i tried adding the mrw patch, but i seem to get syslog messages saying the following when i echo 1 > /dev/sr1 Jan 9 10:33:57 nigel-lappy kernel: blk: queue d42afe18, I/O limit 4095Mb (mask 0xffffffff) Jan 9 10:33:57 nigel-lappy kernel: Vendor: HL-DT-ST Model: CD-RW GCE-8520B Rev: 1.02 Jan 9 10:33:57 nigel-lappy kernel: Type: CD-ROM ANSI SCSI revision: 02 Jan 9 10:33:57 nigel-lappy kernel: blk: queue d42afc18, I/O limit 4095Mb (mask 0xffffffff) Jan 9 10:33:57 nigel-lappy kernel: Attached scsi CD-ROM sr1 at scsi1, channel 0, id 0, lun 0 Jan 9 10:33:57 nigel-lappy kernel: sr1: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 1 0 Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 2 0 Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 3 0 Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 4 0 Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 5 0 Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 6 0 Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 7 0 Jan 9 10:34:35 nigel-lappy kernel: cdrom: bash opening for WRITE Jan 9 10:34:35 nigel-lappy kernel: sr1: disc change detected. Jan 9 10:34:35 nigel-lappy kernel: cdrom: sr1: mrw address space GAA selected Jan 9 10:34:35 nigel-lappy kernel: cdrom open: mrw_status 'not mrw' i'm oviously doing something wrong :( On Fri, Jan 09, 2004 at 11:00:25AM +0100, Jens Axboe wrote:
On Fri, Jan 09 2004, Nigel Kukard wrote:
Hi guys,
Is it possible to do packet writing of variable sizes? I've applied the mrw patch to my kernel as i found on the site, but the only way it seems I can create a usable disk is if i use pktsetup with the -q option.
Is there a manual way to reserve a track & say format it with ext2 or so?
also what exactly is mrw? :)
mrw is mount rainier, and you don't need packet writing support for that (it's basically packet writing in firmware, with added defect management). so if you have a mrw capable drive and the small mrw patch, then you can access the drive like a hard drive.
-- Jens Axboe
-- To unsubscribe, e-mail: packet-writing-unsubscribe@suse.com For additional commands, e-mail: packet-writing-help@suse.com
On Fri, Jan 09 2004, Nigel Kukard wrote:
Hrmmm, I have an LG 52/24/52 drive... i tried adding the mrw patch, but i seem to get syslog messages saying the following when i echo 1 > /dev/sr1
Jan 9 10:33:57 nigel-lappy kernel: blk: queue d42afe18, I/O limit 4095Mb (mask 0xffffffff) Jan 9 10:33:57 nigel-lappy kernel: Vendor: HL-DT-ST Model: CD-RW GCE-8520B Rev: 1.02 Jan 9 10:33:57 nigel-lappy kernel: Type: CD-ROM ANSI SCSI revision: 02 Jan 9 10:33:57 nigel-lappy kernel: blk: queue d42afc18, I/O limit 4095Mb (mask 0xffffffff) Jan 9 10:33:57 nigel-lappy kernel: Attached scsi CD-ROM sr1 at scsi1, channel 0, id 0, lun 0 Jan 9 10:33:57 nigel-lappy kernel: sr1: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 1 0 Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 2 0 Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 3 0 Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 4 0 Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 5 0 Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 6 0 Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 7 0 Jan 9 10:34:35 nigel-lappy kernel: cdrom: bash opening for WRITE Jan 9 10:34:35 nigel-lappy kernel: sr1: disc change detected. Jan 9 10:34:35 nigel-lappy kernel: cdrom: sr1: mrw address space GAA selected
That's a bug in my older version, it's supposed to select DMA (defect managed area). Thanks to Peter for spotting that, weird mistake.
Jan 9 10:34:35 nigel-lappy kernel: cdrom open: mrw_status 'not mrw'
You need to initiate the background format first with the cdmrw tool. I've attached it for reference. -- Jens Axboe
Wow, MRW rox!!! quick question, when using the -p (poll) option in the utility it says the drive doesn't support format status. is this in the mrw spec, or is it vendor specific if the drive supports it or not? can you maybe stick the utility on your site? also i saw that sourceforge hsn't been updated in a very long time, is there a reason? keep up the good work! -Nigel On Sat, Jan 10, 2004 at 11:13:24AM +0100, Jens Axboe wrote:
On Fri, Jan 09 2004, Nigel Kukard wrote:
Hrmmm, I have an LG 52/24/52 drive... i tried adding the mrw patch, but i seem to get syslog messages saying the following when i echo 1 > /dev/sr1
Jan 9 10:33:57 nigel-lappy kernel: blk: queue d42afe18, I/O limit 4095Mb (mask 0xffffffff) Jan 9 10:33:57 nigel-lappy kernel: Vendor: HL-DT-ST Model: CD-RW GCE-8520B Rev: 1.02 Jan 9 10:33:57 nigel-lappy kernel: Type: CD-ROM ANSI SCSI revision: 02 Jan 9 10:33:57 nigel-lappy kernel: blk: queue d42afc18, I/O limit 4095Mb (mask 0xffffffff) Jan 9 10:33:57 nigel-lappy kernel: Attached scsi CD-ROM sr1 at scsi1, channel 0, id 0, lun 0 Jan 9 10:33:57 nigel-lappy kernel: sr1: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 1 0 Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 2 0 Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 3 0 Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 4 0 Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 5 0 Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 6 0 Jan 9 10:33:57 nigel-lappy kernel: scsi singledevice 1 0 7 0 Jan 9 10:34:35 nigel-lappy kernel: cdrom: bash opening for WRITE Jan 9 10:34:35 nigel-lappy kernel: sr1: disc change detected. Jan 9 10:34:35 nigel-lappy kernel: cdrom: sr1: mrw address space GAA selected
That's a bug in my older version, it's supposed to select DMA (defect managed area). Thanks to Peter for spotting that, weird mistake.
Jan 9 10:34:35 nigel-lappy kernel: cdrom open: mrw_status 'not mrw'
You need to initiate the background format first with the cdmrw tool. I've attached it for reference.
-- Jens Axboe
On Sat, Jan 10 2004, Nigel Kukard wrote:
Wow, MRW rox!!!
quick question, when using the -p (poll) option in the utility it says the drive doesn't support format status. is this in the mrw spec, or is it vendor specific if the drive supports it or not?
It's supposed to work, but may not on all drives. So YMMV, and I guess it isn't supported on your drive.
can you maybe stick the utility on your site? also i saw that sourceforge hsn't been updated in a very long time, is there a reason?
mrw has nothing to do with packet-writing page. The tools in on kernel.org here: http://www.kernel.org/pub/linux/kernel/people/axboe/tools/cdmrw.c -- Jens Axboe
participants (3)
-
Jens Axboe
-
Ljubomir Bozic Jr.
-
Nigel Kukard