Installing parted for creating partition and align it and connecting HDD
sudo apt-get install parted
sudo fdisk -l
if fdisk -l
not show new disk - rebooting system
Starting parted sudo parted
select
select device
print
show devices if need use print
one more time for extended info
rm 1
remove first partition
mkpart hd ext4 1024KiB Actial_Size_MB/GB
align
After it create partition and align use quit
mkfs.ext4 /dev/sdb1
- Create partition to mount
/var/www/hdd
- find UUID
sudo blkid
- Append UUID to
fstab
1.sudo blkid | sudo tee -a /etc/fstab
2. comment all uuids already existing from bottom 3. write proper format/etc/fstab
- UUID***-- /var/www/hdd ext4 errors=remount-ro 0 1