NAS
A network attached storage (NAS) provides file-based data storage
to other devices on the network. The files can be shared between the devices.
Contents
Mount Points
Packages
- kmod-usb-storage
Kernel module for USB storage support. - block-mount
When this package is installed, the web interface shows Mount Points under System. - kmod-fs-ext4
Kernel module for EXT4 file system support. - ntfs-3g
In case NTFS support is needed.
Configuration
In the web interface, the option Mount Points edits /etc/config/fstab
:
config global option anon_swap '0' option anon_mount '0' option auto_swap '1' option auto_mount '1' option delay_root '5' option check_fs '0' config mount option target '/mnt/ssd' option label 'SSD' option enabled '1'
Network Shares
Packages
- samba4-server
The actual server software that shares the files. - luci-app-samba4
This package shows Network Shares under Services in the web interface.
Configuration
The option Network Shares edits /etc/config/samba4
:
config samba option workgroup 'WORKGROUP' option charset 'UTF-8' option description 'Samba on OpenWRT' option interface 'lan' option allow_legacy_protocols '1' config sambashare option path '/mnt/ssd' option name 'ssd' option read_only 'no' option guest_ok 'yes' option create_mask '0666' option dir_mask '0777'
Do not forget to restrict the access to the share to the LAN interface.
DLNA
Packages
- minidlna
DLNA compliant server software. - luci-app-minidlna
This package shows miniDLNA under Services in the web interface.
External Links
CONTENT.html | 2020-10-18 | 3.4 KB |