Reference:
sudo fdisk -l
sudo fdisk /dev/sdb
- Press
n
to create a partition - Press
p
orl
to create primary or logical partitions - Press
w
to write your changes orq
to quit
sudo mkfs -t ext4 /dev/sdb1
sudo mkfs -t ext4 -N 2000000 /dev/sdb1
- This will manually set the number of inodes to 2,000,000
mount
- Shows what is mountedmkdir /mnt/mydrive
mount -t ext4 /dev/sdb1 /mnt/mydrive
ls -al /dev/disk/by-uuid/
or
blkid
Add the following line to your /etc/fstab
file adjusting the UUID to your device's id and the directory to where you want to mount:
UUID=811d3de0-ca6b-4b61-9445-af2e306d9999 /mnt/mydrive ext4 defaults 0 0
mount -a
- remounts filesystems from /etc/fstab