justinmassiot
10/18/2016 - 8:32 AM

Mount a new disk from CentOS shell

# create a new partition on disk sdb
fdisk /dev/sdb
n, Enter
Enter
Enter
Enter
Enter
p
w

# create a filesystem (ext4) on the newly created /dev/sdb1 partition
mkfs.ext4 /dev/sdb1

# create a mounting point
mkdir /mnt/watt

# mount sdb1 to /mnt/watt
mount -t ext4 /dev/sdb1 /mnt/watt