OpenWrt 挂载FAT32 / exFat 硬盘

2020-03-07  本文已影响0人  那个大螺丝
# opkg update
# opkg install kmod-usb-storage block-mount  kmod-fs-vfat kmod-nls-cp437  kmod-nls-iso8859-1 kmod-fs-exfat usbutils
# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/1p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/2p, 480M
    |** Port 1: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M
# ls -l /dev/sd*
brw-------    1 root     root        8,   0 Mar  6 17:19 /dev/sda
brw-------    1 root     root        8,   1 Mar  6 17:19 /dev/sda1
brw-------    1 root     root        8,   2 Mar  6 17:19 /dev/sda2

$ block info | grep "/dev/sd"
/dev/sda1: UUID="67E3-17ED" LABEL="EFI        " VERSION="FAT32" MOUNT="/mnt/sda1" TYPE="vfat"
/dev/sda2: UUID="5DB5-B19D" LABEL="My Passport" MOUNT="/mnt/sda2" TYPE="exfat"
# block detect > /etc/config/fstab
# vim /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/sda1'
    option uuid '67E3-17ED'
    option enabled '1'

config mount
    option target '/mnt/sda2'
    option uuid '5DB5-B19D'
    option enabled '1'
# block mount
# df -h
/dev/sda1               196.9M       512    196.9M   0% /mnt/sda1
/dev/sda2                 1.8T    858.1G   1004.6G  46% /mnt/sda2
上一篇下一篇

猜你喜欢

热点阅读