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

Speedy emails, satisfied customers

Postmark Image

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

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay