Making your external harddrive from Mac readable on ubuntu

. 1 min read

I recently replaced my old harddisk in the Mabbook with an SSD. I decided to put the old hard disk into a USB casing and start using an external drive. I formatted the drive to NTFS with MBR hoping to make it readable across my Mac and Ubuntu systems.

Everything worked smoothly, except that for some reason the harddrive wasnt mounting in a readable mode on the ubuntu system! I looked around for solutions and this finally worked for me!

cd /etc
sudo cp fstab fstab.bak
sudo nano fstab
sudo mkdir /media/macHDD

Add the following line in the fstab

# line for mounting the external drive
UUID=11EA49415BFAE58 /media/macHDD  NTFS   rw,uid=1000,gid=1000,user,exec,umask=003   0   0

The UUID can be got from the properties of the harddisk. Right-click and check properties on the harddisk

Get the UUID of the harddisk in Ubuntu

Now, I hit a new roadblock! I could read and write from the NTFS drive on Ubuntu. But on my Mac it was read-only! Damn! With further research, I was able to fix as follows!

  • Install osxfuse from the Releases · osxfuse/osxfuse page
  • Install ntfs-3g using brew
    brew install homebrew/fuse/ntfs-3g
  • Next we need to disable System Integrity Protection. Reboot the Mac and hold Command+R while it’s booting. It’ll boot into a special recovery mode environment. Launch a terminal from the Utilities menu in recovery mode and run the following command: csrutil disable
  • Reboot to normal mode
  • Open a Terminal window again and run the following commands to make ntfs-3g function:
sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.original

sudo ln -s /usr/local/sbin/mount_ntfs /sbin/mount_ntfs
  • Lastly, re-enable System Integrity Protection. Reboot your Mac and hold Command+R while it’s booting to enter recovery mode. Launch a terminal in recovery mode and run the following command: csrutil enable

That's it! NTFS-write should be enabled! :-)

Reference: How to Write to NTFS Drives on a Mac


Tags

AWS Analytics Antifragile Apache Spark Apple Apps Arbitrage Automation Awesome BBMP Bangalore Black Swan Bonds Boonex Bootstrap Brokerage Charges CFPB CMS CSS Calypso Camelot Capital Markets Charts Chirp Choropleth Chrome Code Igniter Collections Containerization Converters Cycling DalalBeat Data Analytics Data Journalism Data Mining Data Munging Data Privacy Data Science Databases Debt Design Design Stock DesignStock Diet Django Docker Document Processing Dropbox Electron Electronics Entertainment Entrepreneurship Exercise FFMPEG Facebook Finance Fire TV Stick Fitness Forerunner From-The-News Fun Futures Gaana Garmin General Geocoding Getting Started Ghost Google APIs GraphicsMagick HHVM HTTPS Hackathon Hacks Hardware Health House Keeping Housing IBM BlueMix IBrokers IPinfo Ideas Image Conversion Image Processing Infographics Interactive Brokers Internet Investing IoT Legal Lets Encrypt Mac Machine Learning Mailbox app Mapbox Markdown Marketing Meteor Mockups MongoDB Mortgages Movies Music MyPad MySQL Nativefier Nature Netflix Newsletters Nginx Node.js Notes OCR OSX Open Source OpenCPU Options PDF PHP Pebble Peloton Personal Photography Picture Platforms Plex Portable Apps Productivity Property Tax PyroCMS Quantitative Finance R-Project Random Raspberry Pi Research Resources Reticulate Robot S3 SQLite STT Scraping Security Server Shell Shiny Side Project Sikuli Speech Recognition Spider Pro Spinning Spotify Startup Resources Startups Strategy Sublime Text System Monitoring Tax Terminal Tips To Do Tools Torrent Trading Trends Troubleshooting USElection2016 Ubuntu Unix Valuations Video Conversion Visualization Wagtail Wearables Weekend Fun WhatsApp Wordpress anaconda annie bash catalina cv2 daily coding dailycoding data.table debugging devtools downloader e-Signatures ggplot git go google maps hat-tip iOS iPad iPhone iTunes javascript jupyter logging macos numpy opencv optionality plotly python rstats videos youtube