Hi, I am playinh with packet writing again since it is included in the main 2.6 tree, and having lots of problems. First, this freezing umount thingy also hits me, however emergency sync seems to be working. Also could be relvante information that after trying to umount the dvd+rw, I cannot umount _anything_ even a hdd partition mounted just to back it up to dvd. I'm runing 2.6.11-pre1, pktcdvd 0.2.0a Any ideas? compi
Hello. Attila Body wrote:
Hi,
I am playinh with packet writing again since it is included in the main 2.6 tree, and having lots of problems.
First, this freezing umount thingy also hits me, however emergency sync seems to be working. Also could be relvante information that after trying to umount the dvd+rw, I cannot umount _anything_ even a hdd partition mounted just to back it up to dvd.
I'm runing 2.6.11-pre1, pktcdvd 0.2.0a
Any ideas?
compi
I'm using 2.6.10 with FC3 and it's working fine for both cdrw and dvd. Mount the media with: pktsetup cdrw /dev/hdc mount /dev/pktcdvd/cdrw /mnt/cdrw -t udf -o rw,noatime and umount/eject it with: umount /mnt/cdrw pktsetup -d cdrw eject /dev/hdc The bit that caught me for a while was the need to tear down the pktcdvd device so you can eject the media. If that doesn't work send us the relevant bits of the messages log file as you try to umount... Good luck. Graham p.s. Full marks to Peter Osterlund and Ben Fennema for finally getting packet writing into the kernel - well done guys!
On Sun, 2005-01-23 at 10:20 +1300, Graham Vincent wrote:
Hello.
Attila Body wrote:
Hi,
I am playinh with packet writing again since it is included in the main 2.6 tree, and having lots of problems.
First, this freezing umount thingy also hits me, however emergency sync seems to be working. Also could be relvante information that after trying to umount the dvd+rw, I cannot umount _anything_ even a hdd partition mounted just to back it up to dvd.
I'm runing 2.6.11-pre1, pktcdvd 0.2.0a
Any ideas?
compi
I'm using 2.6.10 with FC3 and it's working fine for both cdrw and dvd.
Mount the media with:
pktsetup cdrw /dev/hdc mount /dev/pktcdvd/cdrw /mnt/cdrw -t udf -o rw,noatime
and umount/eject it with:
umount /mnt/cdrw pktsetup -d cdrw eject /dev/hdc
the device setup is handled motly automativally in debian with udftools package, but I assume the mechanism is the same, based on the file /etc/defaults/udftools.
The bit that caught me for a while was the need to tear down the pktcdvd device so you can eject the media. If that doesn't work send us the relevant bits of the messages log file as you try to umount...
The tricky point is that there is no message. The umount goest to D state and that's it. Btw it could be dependant to the amount of the data transfered to the DVD. if I copy few hundred megabytes i can umount the device, while if I fill the whole media I cannot. (And no, it is not the time necessary to write the buffers to the disk as a whole DVD cold be written during the time I was waiting for the umount to return.) I'll give it a try with the new 2.6.11-pre2. Thanks, compi
Good luck.
Graham
p.s. Full marks to Peter Osterlund and Ben Fennema for finally getting packet writing into the kernel - well done guys!
Attila Body(compi-lists@freemail.hu) is reported to have said:
On Sun, 2005-01-23 at 10:20 +1300, Graham Vincent wrote:
Hello.
Attila Body wrote:
Hi,
I am playinh with packet writing again since it is included in the main 2.6 tree, and having lots of problems.
First, this freezing umount thingy also hits me, however emergency sync seems to be working. Also could be relvante information that after trying to umount the dvd+rw, I cannot umount _anything_ even a hdd partition mounted just to back it up to dvd.
I'm runing 2.6.11-pre1, pktcdvd 0.2.0a
Any ideas?
compi
I'm using 2.6.10 with FC3 and it's working fine for both cdrw and dvd.
Mount the media with:
pktsetup cdrw /dev/hdc mount /dev/pktcdvd/cdrw /mnt/cdrw -t udf -o rw,noatime
and umount/eject it with:
umount /mnt/cdrw pktsetup -d cdrw eject /dev/hdc
the device setup is handled motly automativally in debian with udftools package, but I assume the mechanism is the same, based on the file /etc/defaults/udftools. I have UDF running on Debian but found that the /etc/init.d/udstools did _not_ automatically set up the devices correctly. I did get it working, dfor cd's and dvd's, using the above (packsetup method) shown.
I discovered that I had a /etc/init.d/udftools.dpkg-dist file that was more recent than the /etc/init.d/udftools file. Note: I am using udftools version 1.0.0b3-9 and kernel 2.6.10. I modified the udftools.dpkg-dist file and the /etc/default/udftools files and _now_ the devices are setup automatically. FYI here are the parts of those files that pertain. My DVD Burner is on /dev/hdc and CD Burner is on /dev/hdd. _____________________ /etc/default/udftools # Drives to register for packet writing: DEVICES="/dev/dvd /dev/hdd" # In case detection of udev on your system fails, override it here. # Possible values are "true" or "false". UDEV=false # Pktcdvd patches for kernels 2.6.8 and later use a new interface for # talking to the kernel, as well as a new set of device nodes. In case # detection of the proper interface on your system fails, override # it here. Possible values are "true" or "false". NEWINT=true # Only when using the new interface do you have the option to choose the # names for the packet writing devices. This is ignored otherwise. # For example, if DEVICES="/dev/hdd /dev/sr0" and # NEWINTNAMES="cdwriter dvdwriter", then /dev/hdd will correspond to # /dev/pktcdvd/cdwriter, and /dev/sr0 will correspond to # /dev/pktcdvd/dvdwriter. The default setting is NEWINTNAMES="0 1 2 3". #NEWINTNAMES="0 1 2 3" NEWINTNAMES="dvd cdrom" ___________________________________ /etc/init.d/udftools PATH=/sbin:/bin:/usr/sbin:/usr/bin DESC="udftools packet writing" PKTSETUP=/usr/bin/pktsetup DEFAULTFILE=/etc/default/udftools DEVICES="" NEWINTNAMES="dvd cdrom" #NEWINTNAMES="0 1 2 3" UDEVNAMES="/dev/pktcdvd/0 /dev/pktcdvd/1 /dev/pktcdvd/2 /dev/pktcdvd/3" UDEV="" NEWINT=""
The bit that caught me for a while was the need to tear down the pktcdvd device so you can eject the media. If that doesn't work send us the relevant bits of the messages log file as you try to umount...
Now the pktcdvd is taken up/down with /etc/init.d/udftools start/stop As you can see from the two files I am _not_ using udev so if you are you would have to change some of the entries. HTH Wayne
Hi Attila! Saturday 22, at 04:59:49 PM you wrote: > Hi, > > I am playinh with packet writing again since it is included in the main > 2.6 tree, and having lots of problems. > > First, this freezing umount thingy also hits me, however emergency sync > seems to be working. Also could be relvante information that after > trying to umount the dvd+rw, I cannot umount _anything_ even a hdd > partition mounted just to back it up to dvd. > > I'm runing 2.6.11-pre1, pktcdvd 0.2.0a > > Any ideas? Looks like you use kernel with swsusp2 patches, because I got this problem too - cannot mount/umount/tear down pkt device. Googling gives me solution - inline patch from Peter Osterlund. --- a/drivers/block/pktcdvd.c~ 2005-01-23 14:22:56 +0300 +++ a/drivers/block/pktcdvd.c 2005-01-23 15:08:51 +0300 @@ -2364,7 +2364,7 @@ static int pkt_new_dev(struct pktcdvd_de pkt_init_queue(pd); atomic_set(&pd->cdrw.pending_bios, 0); - pd->cdrw.thread = kthread_run(kcdrwd, pd, "%s", pd->name); + pd->cdrw.thread = kthread_run(kcdrwd, pd, PF_SYNCTHREAD, "%s", pd->name); if (IS_ERR(pd->cdrw.thread)) { printk("pktcdvd: can't start kernel thread\n"); ret = -ENOMEM; -- WBR, Konstantin chat with ==>ICQ: 109916175 Lepikhov, speak to ==>JID: lakostis@jabber.org aka L.A. Kostis write to ==>mailto:lakostis@pisem.net.nospam ...The information is like the bank... (c) EC8OR
Thanks Konstantin, it seems this does not compile with 2.6.11-rc2: drivers/block/pktcdvd.c: In function `pkt_new_dev': drivers/block/pktcdvd.c:2363: error: `PF_SYNCTHREAD' undeclared (first use in this function) compi@smiley:~/work/external/linux-2.6.11-rc2$ grep -lri PF_SYNCTHREAD . ./drivers/block/pktcdvd.c compi@smiley:~/work/external/linux-2.6.11-rc2$ Thanks, compi On Sun, 2005-01-23 at 15:22 +0300, Konstantin A. Lepikhov wrote: > Hi Attila! > > Saturday 22, at 04:59:49 PM you wrote: > > > Hi, > > > > I am playinh with packet writing again since it is included in the main > > 2.6 tree, and having lots of problems. > > > > First, this freezing umount thingy also hits me, however emergency sync > > seems to be working. Also could be relvante information that after > > trying to umount the dvd+rw, I cannot umount _anything_ even a hdd > > partition mounted just to back it up to dvd. > > > > I'm runing 2.6.11-pre1, pktcdvd 0.2.0a > > > > Any ideas? > Looks like you use kernel with swsusp2 patches, because I got this problem > too - cannot mount/umount/tear down pkt device. Googling gives me solution > - inline patch from Peter Osterlund. > > --- a/drivers/block/pktcdvd.c~ 2005-01-23 14:22:56 +0300 > +++ a/drivers/block/pktcdvd.c 2005-01-23 15:08:51 +0300 > @@ -2364,7 +2364,7 @@ static int pkt_new_dev(struct pktcdvd_de > pkt_init_queue(pd); > > atomic_set(&pd->cdrw.pending_bios, 0); > - pd->cdrw.thread = kthread_run(kcdrwd, pd, "%s", pd->name); > + pd->cdrw.thread = kthread_run(kcdrwd, pd, PF_SYNCTHREAD, "%s", pd->name); > if (IS_ERR(pd->cdrw.thread)) { > printk("pktcdvd: can't start kernel thread\n"); > ret = -ENOMEM; >
participants (5)
-
Attila Body
-
Chris Clayton
-
Graham Vincent
-
Konstantin A. Lepikhov
-
Wayne Topa