OpenWrt Forum Archive

Topic: howto change mountpoint for usb-drive at startup

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi everybody,

I'm looking for a way to change the mountpoint for my USB flashdisk at startup. OpenWRT always wants to mount the device at /tmp/mnt/disc0_1 (and actually does so).
I thought about adding a 'umount old mountpoint' followed by 'mount new mountpoint' to /etc/profiles, but that's a bit unsophisticated... Since there is no /etc/fstab or anything similar and I wasn't able to find any script to change, could someone please point me into the right direction?
Thanks in advance.

Regards,
dEvS

btw: I'm running white russian rc4 on an asus wl500g deluxe (since today) and totally impressed by the great work!

dEvS wrote:

I'm looking for a way to change the mountpoint for my USB flashdisk at startup.

Since it gets mounted via the hotplug scripts you have to modify /etc/hotplug.d/usb/01-mount

I dont see the /etc/hotplug.d dir in my distro at all - is this a "new" feature in RC3/4 or something? (I am still using some older intermediate nbd compile...)

I really could use the usb hotplug stuff, so I was wondering....:-)

The discussion might have continued from here.