[ec2-user@ip ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 10G 0 disk
ââxvda1 202:1 0 1M 0 part
ââxvda2 202:2 0 10G 0 part /
xvdb 202:16 0 50G 0 disk
[ec2-user@ip ~]$ sudo file -s /dev/xvdb
[ec2-user@ip ~]$ sudo mkfs -t ext4 /dev/xvdb
[ec2-user@ip ~]$ sudo mkdir -p /mydir/subdir
[ec2-user@ip ~]$ sudo mount /dev/xvdb /mydir/subdir
Add file system to fstab to remount on system reboot
[ec2-user@ip ~]$sudo cp /etc/fstab /etc/fstab.orig
Add the line to /etc/fstab
/dev/xvdb /mydir/subdir ext4 defaults,nofail 0 2
[ec2-user@ip ~]$sudo mount -a
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 10G 0 disk
ââxvda1 202:1 0 1M 0 part
ââxvda2 202:2 0 10G 0 part /
xvdb 202:16 0 50G 0 disk
[ec2-user@ip ~]$ sudo file -s /dev/xvdb
[ec2-user@ip ~]$ sudo mkfs -t ext4 /dev/xvdb
[ec2-user@ip ~]$ sudo mkdir -p /mydir/subdir
[ec2-user@ip ~]$ sudo mount /dev/xvdb /mydir/subdir
Add file system to fstab to remount on system reboot
[ec2-user@ip ~]$sudo cp /etc/fstab /etc/fstab.orig
Add the line to /etc/fstab
/dev/xvdb /mydir/subdir ext4 defaults,nofail 0 2
[ec2-user@ip ~]$sudo mount -a
Much has been said and written on this subject and members of the public can be forgiven if they are totally confused AWS SAA-C02 Solution Architect Associate Dumps. Governments have a chance to get these initiatives right the first time and not have to undergo expensive retrofitting and adaptation after the event.
ReplyDelete