Could you please provide commands to:

  • attach pen drive in Ubuntu system
  • unmount command
  • attach external HDD using mount command


  1. Use blkid to view the list of disks and partitions. Note which one is your pendrive, example: sdc3

  2. Create a folder where to mount sdc3 : mkdir /path/to/myfolder

  3. Finally attach it (=mount it) mount /dev/sdc3 /path/yo/myfolder

To "eject" umount /dev/sdc3 or umount /path/to/myfolder


There is enough information for you here:

  • lsblk and fdisk -l are useful to get information on the blocks/devices you potentially can mount – andersoyvind Aug 31 '15 at 12:50
  1. Use lsblk to see attached drives
  2. Mount with sudo mount /dev/sdb1 /dev/mnt (replace sdb1 with output of previous command)
  3. Explore with ls /dev/mnt or nautilus /dev/mnt
  4. Unmount with sudo umount /dev/mnt

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.