Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Change external HDD mount behavior
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Change external HDD mount behavior
12th Sep, 2016, 11:35 PM
Post: #10
daharn Offline
Registered
Posts: 27
Joined: Mar 2016
Reputation: 0
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?
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Change external HDD mount behavior - daharn - 23rd Mar, 2016, 12:18 AM
RE: Change external HDD mount behavior - Nachteule - 23rd Mar, 2016, 12:45 AM
RE: Change external HDD mount behavior - daharn - 25th Mar, 2016, 04:23 AM
RE: Change external HDD mount behavior - Nachteule - 25th Mar, 2016, 07:35 AM
RE: Change external HDD mount behavior - daharn - 25th Mar, 2016, 12:29 PM
RE: Change external HDD mount behavior - Nachteule - 25th Mar, 2016, 11:49 PM
RE: Change external HDD mount behavior - daharn - 5th Apr, 2016, 12:47 AM
RE: Change external HDD mount behavior - Nachteule - 5th Apr, 2016, 11:41 PM
RE: Change external HDD mount behavior - Nachteule - 5th Apr, 2016, 11:45 PM
RE: Change external HDD mount behavior - daharn - 12th Sep, 2016 11:35 PM
RE: Change external HDD mount behavior - Nachteule - 13th Sep, 2016, 03:25 AM
RE: Change external HDD mount behavior - daharn - 13th Sep, 2016, 09:47 AM
RE: Change external HDD mount behavior - Nachteule - 13th Sep, 2016, 07:43 PM
RE: Change external HDD mount behavior - Nachteule - 29th Dec, 2016, 05:20 AM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 9th Jun, 2025, 10:28 PM Powered By MyBB, © 2002-2025 MyBB Group.