In order to show all available disk and mount point linux/Ubuntu:
Step 1:
lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
--> Result of above command
sda 931.5G
└─sda1 vfat 931.5G HDD
sr0 1024M
nvme0n1 119.2G
├─nvme0n1p1 vfat 512M /boot/efi
└─nvme0n1p2 ext4 118.8G /
From my end it was sda1 and it was not mounted
Find mount point of the disk by below command
Step 2: Result of [
findmnt /dev/sda1
] is below
/media/shaikh/HDD /dev/sda1 vfat rw,nosuid,nodev,relatime,uid=1000,gid=1000,fm
Step 2: Result of [
df -h
] is below
/dev/sda1 932G 32K 932G 1% /mnt/sda1
Create new mount point directory
Step 3:
sudo mkdir /mnt/sda1
// mount the sd1 to mount point
Step 4:
sudo mount -t auto /dev/sda1 /mnt/sda1
// Check the mount point
Step 5 :
findmnt /dev/sda1
TARGET SOURCE FSTYPE OPTIONS
/mnt/sda1 /dev/sda1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
#https://cloud.google.com/compute/docs/disks/add-persistent-disk
Top comments (0)