
係OpenWrt插USB磁碟,要執行『挂載』指令.
『挂載』係指將磁碟映射到指定資料夾. 讀寫資料夾等於讀寫磁碟.
係『Windows』主機cmd命令行執行SSH
| ssh root@openwrt |
root@openwrt’s password: 填密碼.
執行更新安裝包列表
| opkg update |
安裝fdisk架撑
| opkg install fdisk |
執行『fdisk -l』得知USB磁碟路徑 『/dev/sdb1』
| fdisk -l |
創建臨時資料夾『usbdisk1』
| mkdir /mnt/usbdisk1 |
執行『挂載』指令.
| mount /dev/sdb1 /mnt/usbdisk1 |
定位資料夾.
| cd /mnt/usbdisk1 |
寫入數據後,執行刷新,寫入緩存
| sync |
猛出USB磁碟前卸載
| cd / |
| umount /mnt/usbdisk1 |
