1、查看系统中是否有外接设备,并查看相应的设备类型
设备列表
sh-4.3# cat /proc/partitions
major minor #blocks name
31 0 8192 mtdblock0
31 1 307200 mtdblock1
31 2 8192 mtdblock2
31 3 307200 mtdblock3
31 4 61440 mtdblock4
31 5 61440 mtdblock5
31 6 294912 mtdblock6
31 7 1024 mtdblock7
31 8 1024 mtdblock8
31 9 6144 mtdblock9
179 0 30375936 mmcblk0
179 1 30371840 mmcblk0p1
8 0 3942400 sda
8 1 3941916 sda1
2、mount
sh-4.3# mount -t vfat /dev/mmcblk0p1 /tmp/config_sd/输出mount结果
sh-4.3# mount|grep /dev/mmcblk0|awk '{print $3}'5、umount
sh-4.3# umount -t /dev/mmcblk0p1 /mnt/config_sd
6、修改mount读写权限
mount -o remount rw /
7、查看磁盘占用
sh-4.3# df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 70888 56596 14292 80% /
ubi0:rootfs 70888 56596 14292 80% /
devtmpfs 958776 4 958772 1% /dev
none 991948 684 991264 1% /tmp
ubi1_0 9792 32 9196 1% /config_smca
/dev/mmcblk0p1 30363648 9024 30354624 1% /tmp/config_sd
/dev/sda1 3934212 4 3934208 1% /mnt/usb
sh-4.3# df|grep /dev/sda1
/dev/sda1 3934212 4 3934208 1% /mnt/usb
sh-4.3# df|grep /dev/sda1|awk '{print $5}'
1%
sh-4.3# df|grep /dev/sda1|awk '{print $6}'
8、列出所有的分区,包括没有挂上的分区和usb设备