Change external HDD mount behavior
|
12th Sep, 2016, 11:35 PM
Post: #10
|
|||
|
|||
RE: Change external HDD mount behavior
I'm sorry for reliving this old topic, but after a long break, I looked into this once more and I might have discovered the reason for the inconsistent behavior in the first place:
Apparently, xbian's implementation of usbmount handles all the mounting and unmounting rather well, EXCEPT when there are whitespaces in the device label! (Yeah, I know, whitespaces in Unix, big no no...) Thats because findmnt would return the target value of a device named "device name" as "device\x20name". the read command then takes this as "devicex20name" and saves it as variable mountpoint. Using the -r option here leaves the \, but won't help either eventually, because the moutpoint and umount commands only work with device\ name or "device name". I have tested this with an USB stick whose mount point was deleted properly when the label contained no white spaces but remained as an empty folder when it did. I suppose, the mast straightforward solution would be piping the device name through some text stream tool to reformat the hex into the corresponding shell escape sequence. Maybe there is a newer version of usbmount available? Or is this one customized anyway? |
|||
« Next Oldest | Next Newest »
|