Tag Archives: ubuntu

How to mount an existing EBS to an amazon instance

By existing, I want to say a non empty EBS, a formatted device 🙂

It’s very simple:

1. Use lsblk  command to view all attached devices:

[ec2-user ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvdf 202:80 0 22G 0 disk
xvda1 202:1 0 8G 0 disk /

2. create dir and mount device:

[ec2-user ~]$ sudo mkdir /mnt/my-data
[ec2-user ~]$ sudo mount /dev/xvdf /mnt/my-data

How to use Byobu with PuTTY or MTpuTTY

We often run multiple task on the same server… and while ago we have used screening to manage multiple tasks/screens on server. Now we use Byobu because it’s simple to use.  With Byobu the challenge is to setup function keys to work with your windows SSH client. After we try many ssh clients and many setups we discovered a perfect match between MTPuTTY ( who usees PuTTY ) and Byobu.

How to setup PuTTY to work well with Byobu:

Setup Keyboard in PuTTY config:

Terminal -> Keyboard -> The Function keys and keypad -> SELECT Xterm R6

Setup PuTTY connection:

Connection -> Data -> SET Terminal-type string AS xterm

This is all 🙂

I hope that is useful for you and you can avoid complications.