How to mount partition in Ubuntu

Problem: If you want to mount new NTFS partition or have a partition is not accessible any more, run following steps.

Note: In case you are trying to mount external drive, and can’t list it using df -h tryย ย lsblk it will list all mounted and not mounted disk, then you can foloowing the folloing steps.

  • Do this to fix non accessible NTFS partition.
    sudo ntfsfix /dev/sda2
  • If partition is not amounted already, run following command.
    sudo mount -o rw /dev/sda2
Author: Danyal
I'm a skilled programmer specializing in Vue.js/Nuxt.js for front-end development and PHP Laravel for back-end solutions. I have a strong focus on API design and development, complemented by experience in web server setup and maintenance. My versatile expertise ensures seamless creation and maintenance of web applications, covering everything from intuitive user interfaces to robust server-side functionality. Passionate about coding and driven by a lifelong learning mindset, I invite you to explore more at danyal.dk.