Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Mount EBS volume on Linux

## Instance 1

lsblk
sudo file -s /dev/xvdf <confirm nothing is mounted>
sudo mkfs -t xfs /dev/xvdf <create file system>
sudo file -s /dev/xvdf <confirm system is made>
sudo mkdir /ebstest <create folder to mount>
sudo mount /dev/xvdf /ebstest <mount volume to folder>
cd /ebstest
sudo nano amazingtestfile.txt
add a message
save and exit
ls -la

## Reboot Instance 1

sudo reboot

## Instance 1 After Reboot

df -k
sudo blkid <lists volumes and names. copy>
sudo nano /etc/fstab
  ADD LINE 
  UUID="YOURUUIDHEREREPLACEME"  /ebstest  xfs  defaults,nofail
sudo mount -a
cd /ebstest
ls -la
Comment

PREVIOUS NEXT
Code Example
Shell :: delete namespace 
Shell :: surge flutter web 
Shell :: git remove all pdf files 
Shell :: create branch from existing branch 
Shell :: wallpaper engine linux 
Shell :: ll by date 
Shell :: wp-cli search-replace 
Shell :: como instalar brew en linux 
Shell :: check laptop battery health using upower 
Shell :: heic open linux 
Shell :: bash data types 
Shell :: ubuntu edit sources.list 
Shell :: graphql comment 
Shell :: [INS-30131] Initial setup required for the execution of installer validations failed. 
Shell :: ubuntu find folder through terminal 
Shell :: docker kill running container(s) 
Shell :: ionic social sharing 
Shell :: reload .bashrc 
Shell :: flutter android sdkmanager not found 
Shell :: bash multiline ech 
Shell :: linux how many cpus 
Shell :: whereis 
Shell :: How to start a service with systemctl command 
Shell :: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/pgdg.list:1 and /etc/apt/sources.list.d/pgdg.list:2 
Shell :: git ignore folder command 
Shell :: linux get ownership of own user directory folder ubuntu chown operation not permitted 
Shell :: git revert pr merge 
Shell :: gitlab clone with username and password 
Shell :: how to install docker in ubuntu 
Shell :: git diff of a file between two commits 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =