dev.nlited.com

>>

AWS: Mounting a Volume

<<<< prev
next >>>>

2015-12-22 18:12:39 chip Page 1477 📢 PUBLIC

I created a new 80GB EBS volume and attached it to the vekolako instance using the EC2 control panel. Now I need to mount it into the file system.

The new storage configuration looks like this:
17:48:22 ~> df Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda1 8115168 1394396 6285496 19% / none 4 0 4 0% /sys/fs/cgroup udev 7695500 12 7695488 1% /dev tmpfs 1540092 340 1539752 1% /run none 5120 0 5120 0% /run/lock none 7700456 0 7700456 0% /run/shm none 102400 0 102400 0% /run/user /dev/xvdb 82427568 57220 78176608 1% /mnt 17:48:28 ~> lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT xvda 202:0 0 8G 0 disk ââxvda1 202:1 0 8G 0 part / xvdb 202:16 0 80G 0 disk /mnt xvdc 202:32 0 80G 0 disk xvdf 202:80 0 80G 0 disk

I log into vekolako, format the new volume as ext4, and mount it as /src.


vekolako: sudo su -p mkfs -t ext4 /dev/xvdf mkdir /src mount /dev/xvdf /src df
Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda1 8115168 1394408 6285484 19% / none 4 0 4 0% /sys/fs/cgroup udev 7695500 12 7695488 1% /dev tmpfs 1540092 340 1539752 1% /run none 5120 0 5120 0% /run/lock none 7700456 0 7700456 0% /run/shm none 102400 0 102400 0% /run/user /dev/xvdb 82427568 57220 78176608 1% /mnt /dev/xvdf 82438832 57088 78171056 1% /src
cp /etc/fstab /etc/fstab.20151222 vi /etc/fstab /dev/xvdf /src ext4 defaults,nofail 0 2 mount -a mkdir /src/yocto chown chip /src/yocto exit

I now have 80GB under /src/yocto/ that I can use for my yocto environment. Everything in this directory will be persistent with the volume "vekolako-yocto" (vol-ec188e14). The boot disk is stored on "vekolako-boot" (vol-ec188e14).



WebV7 (C)2018 nlited | Rendered by tikope in 134.216ms | 18.220.13.15