解决openwrt安装软件时提示/overlay空间不足的问题

解决方法:将软件安装到U盘

1.接入U盘

#确认挂载
df -h
#创建使用的目录
mkdir /mnt/sda1/openwrt

2.修改/etc/opkg.conf

]# vim /etc/opkg.conf
dest root /
dest usb /mnt/sda1/openwrt        #添加的内容,指定路径
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
option check_signature

3.修改/etc/profile

]# vim /etc/profile
#红色的是添加的内容
export LD_LIBRARY_PATH="/mnt/sda1/openwrt/usr/lib:/mnt/sda1/openwrt/lib"                          #指定库文件
export PATH="/usr/sbin:/usr/bin:/sbin:/bin:/mnt/sda1/openwrt/usr/bin:/mnt/sda1/openwrt/usr/sbin"  #可执行文件
export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
export HOME=${HOME:-/root}                                    
export PS1='\u@\h:\w\$ '

4.使配置生效

]# source /etc/profile     #立即生效
或
]# reboot                  #重启生效

 

转载于:https://my.oschina.net/xinsui1314x/blog/3062234

你可能感兴趣的:(解决openwrt安装软件时提示/overlay空间不足的问题)