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
13th Sep, 2016, 03:25 AM
Post: #11
Nachteule Offline
Administrator
******
Posts: 2,406
Joined: Dec 2014
Reputation: 122
RE: Change external HDD mount behavior
(12th Sep, 2016 11:35 PM)daharn Wrote:  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?

There is no newer version and it is not configurable

A simple solution could be changing line 273 of file /usr/local/sbin/usbmount to

Code:
findmnt -S "$DEVNAME"  -n -o fstype,target -r | sed 's/\\x20/ /g' | sort -k2r \

This changes \x20 to ' '

Tested it here and it works
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: 10th Jun, 2025, 06:24 AM Powered By MyBB, © 2002-2025 MyBB Group.