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 :: used port linux 
Shell :: install packet tracer on ubuntu 
Shell :: git large files storage 
Shell :: bash exit file path 
Shell :: virtual box config networkt config ubuntu 
Shell :: thousand separator shell 
Shell :: remove fish shell 
Shell :: discord on linux 
Shell :: gitignore visual studio not working android 
Shell :: update homebrew 
Shell :: install mongodb mac m1 
Shell :: Autenticação é necessária para criar um dispositivo gerenciado de cores 
Shell :: linux test port 
Shell :: check ram speed 
Shell :: crontab do action inside folder 
Shell :: npm ERR! Command failed: git clone --depth=1 -q -b 1.3.8 git://github.com/eligrey/FileSaver.js.git 
Shell :: ubuntu history select 
Shell :: npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: react-template@0.1.0 npm ERR! Found: react@18.0.0 
Shell :: get all remote branches 
Shell :: linux start simple http server 
Shell :: bash: ufw : commande introuvable 
Shell :: git get username 
Shell :: git remove .ds_store from commit 
Shell :: ubuntu logout 
Shell :: bash script write linux 
Shell :: rsync --iinclude 
Shell :: bash iterate over list of files 
Shell :: simple way to make a text field to accept numbers only with maximum number of length 13 digit and min 10 
Shell :: npm steps 
Shell :: does jupyter notebook come with anaconda in ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =