Add Storage
Update youre Package list and install "gdisk"
apt-get update
apt-get install gdisk
Execute "gdisk"
gdisk /dev/sdb
Create a new GPT partition table: Press
o
and thenEnter
.Create a new partition: Press
n
and follow the prompts:Press
Enter
to accept default partition number.Press
Enter
to accept default start sector.Press
Enter
to accept default end sector (uses the whole disk).
Set partition type: Press
t
, thenEnter
to accept the default type (Linux filesystem, type8300
).Write changes and exit: Press
w
, thenEnter
.Format the partition:
mkfs.ext4 /dev/sdb1
Create a mount point:
mkdir /mnt/storage
Mount the Disk:
nano /etc/fstab
Add the following entry:
/dev/sdb1 /mnt/storage ext4 defaults 0 2
Last updated