March 19, 201016 yr I want to permanently have an USB stick (formatted with reiserfs) mounted from my go script, however the stick changes its dev name each time unRAID reboots. Is there any work around this? Thanks for hints!
March 20, 201016 yr I want to permanently have an USB stick (formatted with reiserfs) mounted from my go script, however the stick changes its dev name each time unRAID reboots. Is there any work around this? Thanks for hints! Instead using dev name directly, you can mount it through one of the links that are in /dev/disk/ For example, you could use serial number: mount /dev/disk/by-id/ata*${SOME_PART_OF_ITS_SERIAL_NUMBER}*part1 /your/mount/point
March 20, 201016 yr This works for VFAT, not sure if ReiserFS is the same... Give the USB stick a LABEL, and then mount the disk by label. It's how it's done when running unRAID from HDD. You use the following listing inside of /etc/fstab or as parameters to the "mount" command. Replease the "UNRAID" and "/flash" with appropriate settings as needed. /dev/disk/by-label/UNRAID /flash vfat rw,noatime,nodiratime,umask=0,shortname=mixed 0 0
March 20, 201016 yr Author Great, by-label and by-id -- thanks much guys!! Btw, how do I label the disk without destroying the filesystem and data on the stick? PS: Mounting by-id already works wonderful as the stick is a Lexar with a serial number.
Archived
This topic is now archived and is closed to further replies.