• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

mount -L stopped working

Red Squirrel

No Lifer
I scripted my new backup script so it mounts the backup drive by label that way I don't have to worry about drive letters changing on me and breaking my scripts. It was working great last night. So i tried it again today, and now it's saying "no such partition found". Huh? The drive with that label is plugged in and turned on. It mounted ok when I did it manually. Why would it do this?

Is there maybe a better way I can do it? The goal is that I can preconfigure a drive to be part of a backup rotation (label it, add a few config files on it etc) and then don't have to worry about manually mounting since the script is suppose to do it. I insert the drive in the removable dock, and simply run the backup script and walk away. When I get an email, I can go turn it off and insert another drive (with same label) if I want to run another job.
 
Seems to find it, but maybe that's because I mounted it manually. I'll try that command again next time it stops working. I really hope this will work out, as in concept is a much better backup solution then my other one, and easier to expand.
 
Is this the same machine that was having problems booting?

No different machine, this is my main server, which has had no issues. If I mount it manually, it works fine. I might just use findfs to get the device name, then call mount with that string. It seems to be very sporadic, since this time it worked.
 
Last edited:
That makes even less sense since mount links against libblkid in order to find the volume. I'd say it's just a timing issue and you got "lucky" that findfs and blkid found it the second time.
 
Yeah don't know. it's weird. It has not done it yet today so I'll keep an eye on it. I coded my script so it stops running if the mount fails, that way it does not start backing up stuff to the mount point.
 
Back
Top