每天一命令之mount

来自linux中国网wiki
跳到导航 跳到搜索

前面是设备 后面是目录


#mydata 2T hdd
/dev/sdb1   /home/evan/data    ext4    defaults        0       0
#UUID=d0544c53-5ad7-4492-8398-a5bfe6bbd6c6  /home/evan/data    ext4    defaults        0       0

mount --target /mountpoint

 The  mount program does not read the /etc/fstab file if both device (or LABEL, UUID, ID, PARTUUID or PARTLABEL) and dir are specified.  For example, to mount de‐
       vice foo at /dir:

              mount /dev/foo /dir