mount additional storage disk in AWS Lightsail instances
1. bitnami@/opt/bitnami/apache2/htdocsCopy$
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 20G 0 disk
└─xvda1 202:1 0 20G 0 part
/xvdf 202:80 0 8G 0 disk
2. bitnami@/opt/bitnami/apache2/htdocsCopy$
sudo file -s /dev/xvdf
/dev/xvdf: data
3. bitnami@/opt/bitnami/apache2/htdocsCopy$
sudo mkfs -t ext4 /dev/xvdf
mke2fs 1.42.13 (17-May-2015)
Creating filesystem with 2097152 4k blocks and 524288 inodes
Filesystem UUID: 0d51c225-806f-4121-a2b5-29d5852425fe
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
4. (command 2 again) bitnami@/opt/bitnami/apache2/htdocsCopy$
sudo file -s /dev/xvdf
/dev/xvdf: Linux rev 1.0 ext4 filesystem data, UUID=0d51c25-86f-4121-a2b5-29fe (extents) (large files) (huge files)
4.1 bitnami@/opt/bitnami/apache2/htdocsCopy$
cd / - i prefer to create a directry at the roo as the mount point and then mount the devic on thi spoint (5, 6)
5. itnami@:/$
sudo mkdir me
6. bitnami@:/$
sudo mount /dev/xvdf /me