Quote:
Originally Posted by kaboom
Is it possible to change name of a device on /dev/sda to (for example) /dev/sdz ?
Or how can i give a certain device /dev/sdx ? Instead of the automatic creation of devices when installing an OS (like RHE3).
Thnks!
|
I think you can use symlinks for this. I. e. not actually renaming the physical device, just making a symlink to it with the name you want to call it.
I, for example, wanted to do this to get MPlayer and Xine working for watching / playing DVD's. MPlayer wanted a /dev/dvd device to read DVD's, but I had no such device in my default setup. So I became root, and did the following:
cd /dev
ln -s /dev/dvd /dev/hdc1
This meant that effectively I "renamed" my IDE DVD drive (/dev/hdc1) to /dev/dvd as far as MPlayer was concerned, thus "renaming" /dev/hdc1 to /dev/dvd.
Hope this helps...