Skip to content

Instantly share code, notes, and snippets.

@liukch
Last active November 30, 2021 12:35
Show Gist options
  • Select an option

  • Save liukch/c0b6310328855b6ca04d76e2b0eb4fe3 to your computer and use it in GitHub Desktop.

Select an option

Save liukch/c0b6310328855b6ca04d76e2b0eb4fe3 to your computer and use it in GitHub Desktop.
Linux Disk Operation

1. mkfs.ext4

mkfs.ext4 -E nodiscard -m0 /dev/nvme2n1

2. echo >> /etc/fstab

blkid
vi /etc/fstab

3. mkdir && data

mkdir /data
mkdir /data2
mount -a

4. review

df -hT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment