Linux 磁盘格式化自动挂载

df -Th

fdisk /dev/sdb

mkfs.xfs /dev/sdb1

fdisk -l

mount /dev/sdb1 /home/postgres/data/

df -Th

blkid /dev/sdb1

vim /etc/fstab

UUID=8d0558f7-0406-46fb-91b4-4f0af634ce27 /home/postgres/data xfs defaults 0 0

分类:Default

发表评论

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

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理