Mount NVMe Device in Linux
Jump to navigation
Jump to search
Step 1: Install tools
sudo yum install xfsprogs
Step 2: Create a file system on it:
sudo mkfs -t ext4 /dev/nvme1n1
Step 3: Create a mount point:
sudo mkdir /u01
Step 4: Mount the device:
sudo mount /dev/nvme1n1 /u01
Step 5: Get the UUID:
sudo blkid
Step 6: Permanent mount:
To get it to mount every time, add a line to /etc/fstab UUID=UUID /u01 ext4 defaults 0 0 Step 7: Permissions:
sudo chown -R user:usergroup /