Featured image of post Mounting an External ntfs harddrive on Linux for writing

Mounting an External ntfs harddrive on Linux for writing

Note: This post was created awhile back on another platform and I migrated to my current one.

Epic Mount

Note: In order to mount, you need GNU yak/water-buffalo and apparently a Lion.


Mounting an External Hard Drive on Linux

If you have an external hard drive formatted with FAT32 or FAT16, you can both read and write to it without issues.

However, if your hard drive uses the NTFS file system, you will encounter read-only access by default. This is due to FOSS (Free and Open Source Software) legal restrictions preventing full NTFS write support. The constant “Read-only file system” warning can be frustrating!

Solution: Enabling NTFS Write Support

The solution is to use ntfs-3g, which allows writing to NTFS partitions. Here’s a quick summary:

  1. Install ntfs-3g
    Search for and install the ntfs-3g package using your package manager.
    Example for Debian/Ubuntu:

    1
    
    sudo apt install ntfs-3g
    
  2. Create a Mount Directory
    Before mounting, create a directory to serve as the mount point.
    Example:

    1
    
    sudo mkdir /mnt/window
    
  3. Find Your External Hard Drive Name
    Use fdisk to list available drives and find your external drive based on size:

    1
    
    sudo fdisk -l
    

    If you’re using a USB drive, it is likely to be /dev/sdb.

  4. Edit /etc/fstab to Mount Automatically
    Open the file in a text editor:

    1
    
    sudo nano /etc/fstab
    

    Add the following line:

    1
    
    /dev/sdb1  /mnt/window  ntfs-3g  defaults  0  0
    
  5. Mount the Drive
    Run the mount command to apply changes:

    1
    
    sudo mount -a
    

Desiderata by Max Ehrmann

Go placidly amid the noise and the haste, and remember what peace there may be in silence. As far as possible without surrender be on good terms with all persons. Speak your truth quietly and clearly; and listen to others, even to the dull and the ignorant, they too have their story. Avoid loud and aggressive persons, they are vexations to the spirit.

If you compare yourself with others, you may become vain or bitter; for always there will be greater and lesser persons than yourself. Enjoy your achievements as well as your plans. Keep interested in your own career, however humble; it is a real possession in the changing fortunes of time.

Exercise caution in your business affairs, for the world is full of trickery. But let not this blind you to what virtue there is; many persons strive for high ideals, and everywhere life is full of heroism. Be yourself. Especially do not feign affection. Neither be cynical about love; for in the face of all aridity and disenchantment it is as perennial as the grass. Take kindly the counsel of the years, gracefully surrendering the things of youth.

Nurture strength of spirit to shield you in sudden misfortune. But do not distress yourself with dark imaginings. Many fears are born of fatigue and loneliness. Beyond a wholesome discipline, be gentle with yourself. You are a child of the universe, no less than the trees and the stars; you have a right to be here. And whether or not it is clear to you, no doubt the universe is unfolding as it should.

Therefore, be at peace with God, whatever you conceive Him to be. And whatever your labors and aspirations in the noisy confusion of life, keep peace in your soul. With all its sham, drudgery and broken dreams; it is still a beautiful world. Be cheerful.

Strive to be happy.

Built with Hugo
Theme Stack designed by Jimmy