DEV Community

loading...

disk mount ubuntu20

youngjoonwon profile image Youngjoon Won ・1 min read
sudo lsblk #get /dev/sd*
sudo fdisk /dev/sda

>>n
>>p
>>default
>>default
>>w

sudo mkfs.ext4 /dev/sda1
sudo blkid #get UUID for /dev/sda1
sudo mkdir /mnt/sda1
sudo vim /etc/fstab

>>UUID= /mnt/sda1 ext4 defaults 0 0

sudo mount -a
Enter fullscreen mode Exit fullscreen mode

Discussion (0)

pic
Editor guide