using flash drive changes device /dev/sr0 to /dev/sr1 for mapping to /dev/pktcdvd/0?
Installed udf packet writing to external, USB DVD+RW. Works allright except after using memory stick in the USB hole - it only has one hole (into each life ....) After doing this the drive's device name changes from /dev/sr0 to /dev/sr1, I think.
Since the computer thinks that /dev/pktcdvd/0, the packet writing special device, is mapped to /dev/sr0 package writing no longer works. This can be remedied by re-booting. Is there a more convenient way of getting package writing back than rebooting. Tried, on the off chance, MAKEDEV; it makes /dev/.static/pckcdvd0, etc.. If the answer has something to do with pktsetup, this does not seem to work - trying 'pktsetup /dev/pktcdvd/0 /dev/sr0' or some variant of this gives ioctl: Inappropriate ioctl for device. When the pktcdvd0 device is created. Thanks any help. |
I would think your best bet would be to write some udev rules for the devices, so they always get the same device name..
http://reactivated.net/writing_udev_rules.html |
Quote:
|
Something like:
# /something/init.d/udftools start does it, i.e. the thing that runs on startup. Using a soft-link, courtesy of udev that always points to the DVD/RW doesn't. Do not know why. |
All times are GMT -5. The time now is 07:45 PM. |