Mount USB drive using something other then /dev/sdcx
Hi:
I'm using an external USB drive to perform system backups. The script I'm using has a mount command - mount /dev/sdcx /systembak, it works fine until the external drive is mounted into a different USB port which causes the device path to change and the script needs to be modified to reflect that change. Looking in the /dev/disk/ directory I see ./by-id ./by-label ./by-path ./by-uuid. I've been able to mount the disk using one of the device pointers in those directories; are any of those device pointers static or do they change every time the USB disk is plugged into a different USB port. OS: RHEL/CentOS (I don't have the ability to actually test it right now which is why I'm asking the question) _thanks |
Looks like the symlink name in /dev/disk/by-label is not affected by the choice of USB port. The device to which the symlink points changes as appropriate. HTH
|
They are static.
You could also use any of them in your in your fstab |
Quote:
Code:
mount LABEL=your_drives_label /systembak/ Hope this helps |
Thanks for the assist & answers...
|
All times are GMT -5. The time now is 10:34 AM. |