Mount NVMe Device in Linux

From SmartHCM Wiki
Revision as of 07:58, 26 October 2021 by Usman (talk | contribs) (Created page with "'''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 mk...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 /