This is a discussion on Using consistent mount points for USB & Firewire ieee1394 drives within the Linux Operating System forums, part of the Unix Operating Systems category; --> I have had 1394 and USB drives working very well for a while now under Debian Sarge with kernel ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I have had 1394 and USB drives working very well for a while now under Debian Sarge with kernel 2.6.7. My only gripe is with the changing mount points or rather device nodes assigned to these devices. For example, if I boot my machine with the firewire disk plugged in, it is assigned /dev/sdb but if I unplug it and plug it in again it then becomes /dev/sdc or some other thing. This is a pain because now the entry in my fstab won't load the drive. Is there any way that I can get the system to set this device up under the same device node each time so that it is always /dev/sdb no matter how many times I plug and unplug it? Thanks, Hish |
| |||
| hish wrote: > I have had 1394 and USB drives working very well for a while now under > Debian Sarge with kernel 2.6.7. My only gripe is with the changing > mount points or rather device nodes assigned to these devices. For > example, if I boot my machine with the firewire disk plugged in, it is > assigned /dev/sdb but if I unplug it and plug it in again it then > becomes /dev/sdc or some other thing. This is a pain because now the > entry in my fstab won't load the drive. > > Is there any way that I can get the system to set this device up under > the same device node each time so that it is always /dev/sdb no matter > how many times I plug and unplug it? Sure. Don't ever plug in any other peripheral that might monopolize this device. Alternative: write a shell script that figures out which device got the mapping for the hardware, and creates a symlink with a specific name that doesn't change. -- Paul Lutus http://www.arachnoid.com |
| |||
| hish wrote: > Is there any way that I can get the system to set this device up under > the same device node each time so that it is always /dev/sdb no matter > how many times I plug and unplug it? Yes, the solution is called "udev": http://www.linuxjournal.com/article.php?sid=7316 http://www.kernel.org/pub/linux/util...tplug/udev-FAQ http://webpages.charter.net/decibels...DEVPrimer.html http://www.reactivated.net/udevrules.php -- Markku Kolkka markku.kolkka@iki.fi |
| ||||
| begin hish@myself.com (hish) dedi ki: > I have had 1394 and USB drives working very well for a while now under > Debian Sarge with kernel 2.6.7. My only gripe is with the changing > mount points or rather device nodes assigned to these devices. For > example, if I boot my machine with the firewire disk plugged in, it is > assigned /dev/sdb but if I unplug it and plug it in again it then > becomes /dev/sdc or some other thing. This is a pain because now the > entry in my fstab won't load the drive. You can mount your USB volumes based on volume-label instead of device name. E.g: As root issue: # e2label /dev/sdc1 USBPART1 and then in /etc/fstab: LABEL=USBPART1 /mnt/myusb1 ext3 defaults 1 2 so the first partition on the USB drive will always mount as /mnt/myusb1 regardless of which device it is on. > Is there any way that I can get the system to set this device up under > the same device node each time so that it is always /dev/sdb no matter > how many times I plug and unplug it? Alternatively you can get your USB device recognized consistently, as explained in other posts. -- Abdullah | aramazan@ | Ramazanoglu | myrealbox | ________________| D.0.T cöm |__ |