How to install a new drive in Linux larger than 2TB with proper alignment
Created on 2014-Feb-14
Updated on 2014-Mar-14
Let's assume that we already have a primary physical drive in our system (HDD or SDD), and have added a second drive to our box, which we need to partition and mount automatically on boot.
Here's how to that:
Let's see what physical drives we have installed in our server:
Since this is our 2nd drive, you should see /dev/sdb.
/dev/sda /dev/sda1 /dev/sda2 /dev/sda3 /dev/sdb
Let see the currently mounted drives and partition layout:
lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
Here's a full list of all available lsblk options: