Previously, we discussed how to migrate the entire OpenWrt system to a USB drive to achieve storage expansion. However, USB drives are generally less reliable than hard drives. Say goodbye to storage anxiety, and step by step, I will teach you how to migrate the OpenWrt system to a USB drive.
So, if your OpenWrt router has enough space for software installation and you don’t want to plug in another USB drive due to uncertainty, is there another way to increase the storage space for application data?
Yes, if you have a NAS at home or another storage device that runs 24/7 with a shared folder, you can directly mount that shared folder to OpenWrt.
Alternatively, if you have a shared Home Assistant, you can use Home Assistant OS to create a multi-disk NAS + Aria2 offline download center.
First, we need to install cifsmount to ensure the system supports CIFS mounting. We also need to install kmod-fs-cifs to ensure it can recognize CIFS.
Next, we will need to use the command line to solve this issue. I tried using the graphical interface but couldn’t find a way to configure everything completely.
You can rename smb_share to something more recognizable (without spaces).
Mounting the SMB Share
Use the <span><span>mount</span></span>
command to mount the SMB share. Assuming the SMB share address is<span><span>//192.168.1.100/shared</span></span>
, and your username is<span><span>user</span></span>
, with the password as<span><span>password</span></span>
.
mount -t cifs //192.168.1.100/shared /mnt/smb_share -o username=user,password=password
Make sure to replace the corresponding IP address, mount point, username, and password with your own. After mounting, you can verify whether it was successful with the following command:

Automatic Mounting on Boot (Optional)
Add your mounting information
//192.168.1.100/shared /mnt/smb_share cifs username=user,password=password 0 0
Just like above, replace the corresponding information with yours, and pay attention to spaces in the content.
If your NAS is quite old and the system update is no longer supported, and the SAMBA supported protocol is also outdated, you can try the following command:
mount -t cifs //192.168.1.100/shared /mnt/smb_share -o username=user,password=password,vers=1.0
What is the main purpose of this mounting method?
It is to store the historical records of your applications. No matter how you flash OpenWrt, as long as the corresponding application is installed and this shared mount is set up, your previous data will still be there after a configuration restore. You don’t have to worry about losing historical data, and you don’t need to back it up, which is quite convenient.
Thank you for reading. If you found it useful, please give it a follow!