LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   using flash drive changes device /dev/sr0 to /dev/sr1 for mapping to /dev/pktcdvd/0? (https://www.linuxquestions.org/questions/linux-software-2/using-flash-drive-changes-device-dev-sr0-to-dev-sr1-for-mapping-to-dev-pktcdvd-0-a-581025/)

lugoteehalt 08-30-2007 01:11 PM

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.

farslayer 08-31-2007 07:21 AM

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

lugoteehalt 09-01-2007 08:35 AM

Quote:

Originally Posted by farslayer (Post 2876722)
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

Thanks, you're probably right but it sounds like hard work. Anyway I'll read the link, thanks again.

lugoteehalt 10-24-2007 10:27 AM

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.