Cara Mount/ Menambahkan New Hardisk di Ubuntu Server

Ketikan di command

# lsblk

sdb dan sdc adalah hardisk yang baru saya tambahkan

# parted  /dev/sdb mklabel gpt
# parted  /dev/sdc mklabel gpt
# parted -a opt /dev/sdb mkpart primary ext4 0% 100%
# parted -a opt /dev/sdc mkpart primary ext4 0% 100%
# lsblk
# mkfs.ext4 -L cloud1 /dev/sdb1
# mkfs.ext4 -L cloud2 /dev/sdc1
# lsblk
# mkdir /mnt/cloud1
# mkdir /mnt/cloud2
# nano /etc/fstab

Edit seperti ini

/dev/sdb1       /mnt/cloud1     ext4            defaults        0       2
/dev/sdc1       /mnt/cloud2     ext4            defaults        0       2
# mount -a
# lsblk

Finish

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top