Discussion:
Howto change names of /dev/sg?
(zu alt für eine Antwort)
Simon Brandmair
2011-07-18 20:02:49 UTC
Permalink
Hello,

I would like to change the device names of the /dev/sg? devices.
/dev/sg0 is my hard drive, /dev/sg1 my cdrom drive. I would like them to
be /dev/sg1 and /dev/sg2.

If I understand it right, these names aren't given by udev, but by the
kernel, so a udev rule doesn't work.

Background: I have an encrypted usb stick (SafeStick), that - strangely
- requires to be /dev/sg0 in order to get decrypted.

Any ideas?
Simon
Tim Boneko
2011-07-19 14:55:11 UTC
Permalink
Post by Simon Brandmair
Hello,
We DO speak german :-D
Post by Simon Brandmair
I would like to change the device names of the /dev/sg? devices.
/dev/sg0 is my hard drive, /dev/sg1 my cdrom drive. I would like them to
be /dev/sg1 and /dev/sg2.
Ich vermute mal, dass man dazu im Kernel- Quelltext rummachen müsste...
*schauder*
Deine Devicenamen kommen mir komisch vor. Sind die Geräte an SATA
angeschlossen? Dann müsste die Platte sdNY heißen, die erste Partition
am ersten SATA- Anschluss hieße dann sda1. CDROMs heißen gerne mal sr0,
sr1 usw.

Kann es sein, dass du einen selbst gebauten Kernel hast, dem der Support
für SCSI- Platten fehlt?

tim
--
No courtesy copies, please!
Bitte keine Privatmails parallel zur ML!
Loading...