avatarJason Zhang

Summary

The provided content outlines a method for enabling direct read and write access to an NTFS portable driver on macOS without the need for additional applications by modifying the fstab file.

Abstract

The article discusses a workaround for macOS users to access and edit NTFS formatted drives, which are native to Windows systems. This is typically not supported by macOS without third-party software. The solution involves editing the system's fstab file to include specific parameters for the NTFS drive, allowing it to be mounted with read-write capabilities. The process includes identifying the driver name with diskutil list, editing the /etc/fstab file with the appropriate configuration, and restarting the computer. Additionally, the article provides steps to create a symbolic link for the NTFS drive to appear on the desktop for easy access.

Opinions

  • The author suggests that normally, macOS users can only read an NTFS formatted drive, implying a limitation in cross-platform compatibility.
  • The method described is presented as an alternative to installing third-party applications, suggesting a preference for native solutions.
  • The use of the nobrowse option indicates a preference for a cleaner user interface, as it prevents the drive from appearing in the Finder sidebar or on the desktop by default.
  • By providing command-line instructions and screenshots, the author conveys a do-it-yourself approach that empowers users with technical skills.
  • The article assumes that the reader has a basic understanding of the terminal and command-line operations, indicating that it may not be suitable for novice users.

Directly Read and Write An NTFS Portable Driver in macOS without any Apps

If you had a portable driver or a USB Flash working in the Windows system, its file format may be NTFS which is developed by Microsoft. One day you want to use this driver in your MBP with macOS which is developed by Apple, unfortunately, these two system’s file format is totally different. Normally, you just read an NTFS driver in macOS.

There is a solution to make you directly read and write an NTFS drive, without install any apps. This method is mainly achieved by modifying the fstab file.

What is fstab file?

The fstab (or file systems table) file is a system configuration file commonly found at /etc/fstab on Unix and Unix-like computer systems. In Linux it is part of the util-linux package. The fstab file typically lists all available disk partitions and other types of file systems and data sources that are not necessarily disk-based, and indicates how they are to be initialized or otherwise integrated into the larger file system structure. The fstab file is read by the mount command, which happens automatically at boot time to determine the overall file system structure, and thereafter when a user executes the mount command to modify that structure. It is the duty of the system administrator to properly create and maintain the fstab file. While fstab is still used for basic system configuration, for other uses it has been superseded by automatic mounting mechanisms. (Wikipedia)

  • The fstab file is a file about the file system configuration in Unix and Unix-like System.
  • The fstab file lists all available disk file partitions and other types of file systems and other non-disk data resources.
  • The fstab file will be automatically loaded by mount at system startup.

Proceed as follows: System: macOS Catalina version 10.15.4

  1. check the name of your Driver open a terminal, input command diskutil list
command:diskutil list

As shown in the screenshot, my driver name is 500N

2. Edit etc/fstab Type in the terminal sudo vi /etc/fstab

sudo vi /etc/fstab

Add LABEL=NAME none ntfs rw,auto,nobrowse in the fstab, save, and exit.

Command interpretation:

Label = fs_spec fs_file fs_type fs_options fs_dump fs_pass
  • fs_spec , The driver name found in step one.
  • fs_file, This field describes the mount point (target) for the filesystem. For swap partitions, this field should be specified as `none’.
  • fs_type, The type of the filesystem. Here is ntfs .
  • fs_options, The mount options associated with the filesystem. - rw, Be mounted read-write - auto, A file system is mounted automatically - nobrowse, Don’t show the disk in the Finder sidebar or Desktop.
  • fs_dump, This option is used by the dump command to check how quickly a file system should be dumped and set this field to 0 if no dump is required
  • fs_pass, This field is used by the fsck command to determine the sequence of file systems that need to be scanned at startup, the value of the root file system/pair should be 1, and the other file system should be 2. Set this field to 0 if the file system does not need to be scanned at boot time

3. Restart computer. There is no portable driver icon on your desktop. You can find the portable driver has mounted the /Volumes

Just add the connection manually. Open the terminal, input command

sudo ln -s /Volumes/Your Driver Name ~/Desktop/Your Driver Name

Finish, when you will use your portable driver, just plug in the driver and click the icon.

Macos
Tips
MacBook
Apple
Productivity
Recommended from ReadMedium