Firstly, we should install USB storage prerequisites.1
2opkg update
opkg install kmod-usb-storage block-mount kmod-fs-ext4 kmod-usb-storage-extras kmod-scsi-core e2fsprogs fdisk
If your device’s filesystem isn’t ext4 or ext3, I sugguest to format it.1
fdisk /dev/sda
Delete old partitions and creat new partitions with fdisk.
Format your device and mount it:1
2mkfs.ext4 /dev/sda
mount -t ext4 /dev/sda /mnt/
Install samba server:1
2opkg install samba36-server
vi /etc/config/samba
1 | config samba |
Edit /etc/samba/smb.conf.template, and delete invalid users = root. Next:smbpasswd -a root
Enter your samba server’s password.
Now, all the configurations are completed. Start samba server:/etc/init.d/samba start
Finally, Connect our server with PC. “win+R” and enter “\x.x.x.x”. If you want to use IPv6 address, you can append a line “2001:da8:a800::xxxx(server) samba_server” in your hosts. Use “\samba_server” instead of “\x.x.x.x”.
If your device is a Android phone, you can install a APP named “Shared Viewer” from Google Play.