8,460
个编辑
更改
→在命令行下挂载USB存储设备
root@OpenWrt:~# '''cat /proc/partitions | grep "sd*"'''<br>
<span style="margin-right: 50px;">major</span><span style="margin-right: 50px;">minor </span><span style="margin-right: 55px;">#blocks</span><span style="margin-right: 50px;">name</span><br>
<span style="margin-right: 70px;margin-left: 20px;">8</span><span style="margin-right: 70px;">0</span><span style="margin-right: 40px;">15126528 </span><span style="margin-right: 50px;color:#FF0000">'''sda'''</span><br>
|}
<ol start="3" style="list-style-type: decimal;">
<li>使用mount命令可以将U盘挂载到/mnt中,然后就能查看U盘中的文件了</li></ol>
{| class="wikitable" style="width:800px;" |-|
root@OpenWrt:~# '''mount /dev/sda /mnt/'''
test.txt
|}
<ol start="4" style="list-style-type: decimal;">
<li>挂载完后通过df -h命令就能查看U盘的容量使用情况和挂载点</li></ol>
{| class="wikitable" style="width:800px;" |-|
root@OpenWrt:~# '''df -h | grep "sd"'''
/dev/sda 14.4G 187.2M 14.2G 1% /mnt
|}
<span id="在luci管理界面挂载usb存储设备"></span>