centos U盘挂载问题

查看u盘路径

fdisk -l
Disk /dev/sda: 16.2 GB, 16236150784 bytes, 31711232 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

挂载

mount /dev/sda /mnt/disk/

/mnt/disk/需要提前创建

如果向/mnt/disk/写入文件报错(read-only)
则可能是u盘格式的问题,要么装第三方插件,要么格式化成支持的类型

格式化
比如:

sudo mkfs -t ext4 /dev/sda
posted @ 2018-03-29 10:31  懒企鹅  阅读(212)  评论(0编辑  收藏  举报