Looking over the changelogs, I see that the pktcdvd modules was tweaked to only configure when there is a CD/DVD/CD-R(W)/DVD-RW in the drive. Why is this? As long as using pktsetup requires a medium in the CD/DVD drive, automatically, (ie - via /etc/rc.d) setting up Packet-CD is precluded. I'd like either: a) This feature to be removed. Since there isn't any real reason to require a CD/DVD, or at least none that I know of, it would be a lot simpler if this wasn't necessary. b) A kernel option to require/not require a medium in the drive when setting up packet writing. or c) Someone tell me what I need to change in the kernel sources so that no medium required for setting up packet writing. No need for a patch, I'd just like to know what I should change. (not a programmer, but I have a minimal understanding of C, so it shouldn't be a problem if it is only being checked with an if statement). Thanks in advance for any assistance.
Ühel kenal päeval (laupäev, 12. jaanuar 2002 15:24) kirjutas RK:
Looking over the changelogs, I see that the pktcdvd modules was tweaked to only configure when there is a CD/DVD/CD-R(W)/DVD-RW in the drive. Why is this? As long as using pktsetup requires a medium in the CD/DVD drive, automatically, (ie - via /etc/rc.d) setting up Packet-CD is precluded.
Here's one possible solution (should work with most ide cdrw drives): part of my /etc/modules.conf: # cd-r ide-scsi interface alias scd0 sr_mod #above ide-scsi imm # uncomment for some ZIP drives only above sg ide-scsi # load ide-scsi before sg above sr_mod ide-scsi # load ide-scsi before sr_mod # cd-rw packet-writing alias block-major-97 pktcdvd pre-install pktcdvd modprobe scd0 # load scd0 before pktcdvd post-install pktcdvd pktsetup /dev/pktcdvd0 /dev/scd0 # start pktcdvd writer and /etc/fstab: /dev/pktcdvd0 /mnt/cdrw udf noauto,rw,noatime now, all I have to do is insert cdrw disk into drive and type mount /mnt/cdrw (as root) and everything gets automatically set up. -- Martin Lillepuu | e-mail: martin@lillepuu.com | gsm: +372 515 6450
Hello: This may cause problems on media change, no? Adding an something like: pre-remove pktcdvd pktsetup -d /dev/pktcdvd0 # load scd0 before pktcdvd to /etc/modules/conf might help, but as I can see, one has to: 1. rmmod ptkcdvd 2. mount /dev/pktcdvd0 (again) Cheers, Ozkan. (PS: your 'mount /mnt/cdrw' is a typo, right? -)) Martin Lillepuu wrote:
Ühel kenal päeval (laupäev, 12. jaanuar 2002 15:24) kirjutas RK:
Looking over the changelogs, I see that the pktcdvd modules was tweaked to only configure when there is a CD/DVD/CD-R(W)/DVD-RW in the drive. Why is this? As long as using pktsetup requires a medium in the CD/DVD drive, automatically, (ie - via /etc/rc.d) setting up Packet-CD is precluded.
Here's one possible solution (should work with most ide cdrw drives):
part of my /etc/modules.conf:
# cd-r ide-scsi interface alias scd0 sr_mod #above ide-scsi imm # uncomment for some ZIP drives only above sg ide-scsi # load ide-scsi before sg above sr_mod ide-scsi # load ide-scsi before sr_mod
# cd-rw packet-writing alias block-major-97 pktcdvd pre-install pktcdvd modprobe scd0 # load scd0 before pktcdvd post-install pktcdvd pktsetup /dev/pktcdvd0 /dev/scd0 # start pktcdvd writer
and /etc/fstab:
/dev/pktcdvd0 /mnt/cdrw udf noauto,rw,noatime
now, all I have to do is insert cdrw disk into drive and type
mount /mnt/cdrw
(as root) and everything gets automatically set up.
-- Martin Lillepuu | e-mail: martin@lillepuu.com | gsm: +372 515 6450
On Sat, 12 Jan 2002, RK wrote:
Looking over the changelogs, I see that the pktcdvd modules was tweaked to only configure when there is a CD/DVD/CD-R(W)/DVD-RW in the drive. Why is this? As long as using pktsetup requires a medium in the CD/DVD drive, automatically, (ie - via /etc/rc.d) setting up Packet-CD is precluded.
I'd like either:
a) This feature to be removed. Since there isn't any real reason to require a CD/DVD, or at least none that I know of, it would be a lot simpler if this wasn't necessary.
Agreed. I originally added this because the code locked the door at pktsetup time and required a valid CD in the drive at "pktsetup -d" time. Therefore, without this check, you could get into the nasty situation where you needed to put a CD in the drive to be able to run pktsetup -d, but you couldn't do it because the drive door was locked. I have changed this so that no CD is needed when setting up/tearing down the pktcdvd device, and so that the drive door is only kept locked while the device is opened for read or write. This should make it possible to setup pktcdvd0 once and then mount/umount/insert/remove discs at will. This change is included in the new patch for 2.4.18-pre3: http://w1.894.telia.com/~u89404340/patches/packet/packet-2.4.18-pre3.patch.b... -- Peter Osterlund - petero2@telia.com http://w1.894.telia.com/~u89404340
participants (4)
-
Martin Lillepuu
-
O.Sezer
-
Peter Osterlund
-
RK