Thursday, 16 January 2025

How to mount and umount the device in ubuntu?

to mount the device:

sudo lsblk

sudo mkdir /mnt

sudo mount /dev/sdc1 /mnt


to umount the device

sudo umount /mnt

or 

sudo umount /dev/sdc1

sudo udisksctl power-off -b /dev/sdc1