DEV Community

Shaikh Al Amin
Shaikh Al Amin

Posted on

Open/Mount HDD in SSD in linux

In order to show all available disk and mount point linux/Ubuntu:

Step 1:

lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
Enter fullscreen mode Exit fullscreen mode

--> 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
Enter fullscreen mode Exit fullscreen mode

] is below

/media/shaikh/HDD /dev/sda1 vfat rw,nosuid,nodev,relatime,uid=1000,gid=1000,fm

Step 2: Result of [

df -h
Enter fullscreen mode Exit fullscreen mode

] is below
/dev/sda1 932G 32K 932G 1% /mnt/sda1

Create new mount point directory
Step 3:

sudo mkdir /mnt/sda1
Enter fullscreen mode Exit fullscreen mode

// mount the sd1 to mount point

Step 4:

sudo mount -t auto /dev/sda1 /mnt/sda1
Enter fullscreen mode Exit fullscreen mode

// Check the mount point

Step 5 :

findmnt /dev/sda1
Enter fullscreen mode Exit fullscreen mode

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

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay