2017/03/29

OpenWrt - How to enable support for external USB Drive

This is a quick summary on how to enable support for external USB Drive.

1st - Follow the steps in https://medium.com/openwrt-iot/lede-openwrt-setting-up-usb-storage-support-adec9c0d484e to install the needed packages.


2nd - Use dmesg | grep sd to check the result.


3rd - Use the commands below to create a mounting point and  mount the USB drive to it.

root@mylinkit:/Media# mkdir flashdrive
root@mylinkit:/Media# mount /dev/sda /Media/flashdrive

4th - Check the content of the USB drive.


To safely remove the USB drive.

Use the command below to unmount the USB drive.

root@mylinkit:/Media/flashdrive# umount /dev/sda


Reference:

OpenWRT — Setting Up USB Storage Support
https://medium.com/openwrt-iot/lede-openwrt-setting-up-usb-storage-support-adec9c0d484e

How do I access an external drive mounted on a machine on my own network?
http://askubuntu.com/questions/50104/how-do-i-access-an-external-drive-mounted-on-a-machine-on-my-own-network

How to umount a USB drive?
http://unix.stackexchange.com/questions/45820/how-to-umount-a-usb-drive

Linux (Ubuntu): safely remove USB flash disk via command line [closed]
http://stackoverflow.com/questions/13224509/linux-ubuntu-safely-remove-usb-flash-disk-via-command-line

OpenWrt Wiki - USB Storage
http://webcache.googleusercontent.com/search?q=cache:swXK9O6jidEJ:https://wiki.openwrt.org/doc/howto/usb.storage&num=1&hl=en&gl=tw&strip=1&vwsrc=0

No comments:

Post a Comment