CentOS 7 编辑fstab自动挂载磁盘


blkid获得UUID和文件类型

# blkid /dev/sdd5
/dev/sdd5: UUID=”43f2e872-45e4-4837-8214-7238cbb312c6″ TYPE=”xfs”

编辑/etc/fstab文件,增加以下记录

UUID=43f2e872-45e4-4837-8214-7238cbb312c6 /opt xfs defaults 0 0

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com 徽标

You are commenting using your WordPress.com account. Log Out /  更改 )

Google+ photo

You are commenting using your Google+ account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.