Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

mount nvme disk on aws ec2

first get the location nvme drive is located at:

lsblk

mine was always mounted at nvme1n1. Then check if it is an empty volume and doens't has any file system, (it mostly doesn't, unless you are remounting). the output should be /dev/nvme1n1: data for empty drives:

sudo file -s /dev/nvme1n1

Then do this to format(if from last step you learned that your drive had file system and isn't an empty drive. skip this and go to next step):

sudo mkfs -t xfs /dev/nvme1n1

Then create a folder in current directory and mount the nvme drive:

sudo mkdir /data
sudo mount /dev/nvme1n1 /data

you can now even check it's existence by running:

df -h
Comment

PREVIOUS NEXT
Code Example
Shell :: how to install apache server in ubuntu 
Shell :: remove files inside .gitignore files 
Shell :: google drive linux 
Shell :: add gpg key to zsh .zprofile 
Shell :: how to install a lite-server on package.json 
Shell :: Install GDAL on AWS EC2 ubuntu instance 
Shell :: verify elementary os iso image 
Shell :: install discord ubuntu 
Shell :: How to revert uncommitted changes including files and folders? 
Shell :: shell count number of lines 
Shell :: cmd delete folder 
Shell :: Criar um dispositivo gerido por cores 
Shell :: openssl generate certificate 
Shell :: ram speed check 
Shell :: add github repo 
Shell :: get last modified date pdf online 
Shell :: install kubenertes using chocolatey 
Shell :: How to check git config username? 
Shell :: git remove directory from tracking 
Shell :: speed up video with ffmpeg 
Shell :: dpkg: error processing package gitweb (--configure): installed gitweb package post-instal 
Shell :: git config github username 
Shell :: git remoev .DS_Store 
Shell :: nohup & 2 &1 
Shell :: errno 2 no such file or directory less 
Shell :: chmod read only command in linux 
Shell :: eclipse in ubuntu snap 
Shell :: git undo rebase 
Shell :: python pip upgrade 
Shell :: npm_config_node_gyp 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =