can't unmount drive ubuntu code example
Example: how to unmount drive in ubuntu
sudo parted -ls
sudo lsblk -fm
sudo mkdir /mnt/sd1
sudo mount /dev/sdb1 /mnt/sd1
To unmount
sudo umount /mnt/sd1
or
sudo umount /dev/sdb1
sudo parted -ls
sudo lsblk -fm
sudo mkdir /mnt/sd1
sudo mount /dev/sdb1 /mnt/sd1
To unmount
sudo umount /mnt/sd1
or
sudo umount /dev/sdb1