Re: Force usb drive to /dev/sdb1 ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mikkel L. Ellertson wrote:
Gene Smith wrote:
I have a permanently connected usb hard drive for backups and it is
typically at /dev/sdb1. However, if I have other usb devices, such as a
SD card reader connected at boot, the backup drive moves to /dev/sdb2. I
do the backup by having cron run a script which mounts /dev/sdb1 and it
fails when the backup devices is at /dev/sdb2 (or it might mount the
card reader instead).

Is there a way to ensure that the backup usb drive is *always* /dev/sdb1
even when other usb devices are attached during boot?

Thanks,
-gene

It would probably be easer to use udev to create a persistent symlink
for the drive. Then use the symlink when you want to access the drive.

Mikkel

I think labeling will be better and then access the /media/XYZ name. I do this with my USB and SD cards. It makes life much easier. Then it doesn't matter what port they are plugged into or for that matter, what computer as they are always the same at work or home.

--
Robin Laing

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux