Blog Home
Updated: 2023 Oct 09

How To Mount Drives on Linux

列出块设备

lsblk

格式化磁盘

sudo mkfs.ext4 /dev/sda

挂载磁盘

sudo mount /dev/sda /mnt

启动自动挂载

sudo emacs /etc/fstab
/dev/sda /mnt ext4 defaults 0 0

Comments:

Email questions, comments, and corrections to hi@smartisan.dev.

Submissions may appear publicly on this website, unless requested otherwise in your email.