Skip to content
Search

NTFS

lastmod 2023-12-13created 2016-03-259 edits

NTFS (New Technology File System) is the file system of the Windows NT family of operating systems, and is also included in Windows 2000, Windows XP, Windows Server 2003, Windows Server 2008, Windows Vista, Windows 7, Windows Server 2008 R2, Windows 8, Windows Server 2012, Windows 8.1, Windows Server 2012 R2, and others. The NT in NTFS, like in Windows NT, is short for New Technology. It replaced Microsoft's earlier FAT file system used in MS-DOS and earlier versions of Windows. NTFS has several improvements over FAT and HPFS (High Performance File System). For example: support for metadata, improved performance through the use of advanced data structures, reliability, and disk space utilization with additional extensions.

Install

Ubuntu

On older Ubuntu versions, you can mount with the ntfs-3g command

$ sudo install ntfs-3g

Redhat

sudo yum install epel-release -y
sudo yum install ntfs-3g -y

Mount procedure

To mount manually from the terminal, follow the procedure below.

  • Check the UUID: ls -al /dev/disk/by-uuid
  • Create the directory to mount: sudo mkdir /mnt/디렉토리명
  • Configure automatic mounting: sudo gedit /etc/fstab
  • Apply /etc/fstab immediately: sudo mount -a

Examples

sudo mount /dev/sdc /mnt/usb

Or:

sudo mount.ntfs-3g /dev/sdc /mnt/usb

Mount options

See fstab#Mount Option.

Troubleshooting

Files not recognized after booting Windows

Summary

One-line summary - use Paragon NTFS.

Notes:

  • Mounting NTFS as RW on Ubuntu is not recommended, because file system compatibility between Windows 10 and Ubuntu is still poor.
  • Reading NTFS files on Ubuntu works fine, but when writing, Windows 10 does not recognize files created on Ubuntu and deletes them.
  • Update, June 21, 2020: If you initialize the hard disk as GPT and format it as NTFS in Windows, it is accessible from both Ubuntu and Windows. It is not clear whether this works because it is a GPT disk or because of an Ubuntu software update.
  • Update, September 2021: If you update the kernel on Ubuntu to version 5.15 or later, Paragon NTFS can be used, and NTFS Read/Write works

Details

After booting into Ubuntu, reading files created in Windows works normally, but conversely, after booting into Windows, files created in Ubuntu are not recognized, are treated as errors, and are all deleted. So I formatted it again as FAT and checked on Ubuntu and Windows: on Ubuntu you have to specify the user and group (*command to be added later), and if you don't, you use sudo. A disk formatted as FAT allows file Read/Write on Windows as well.

I bought a new hard disk, installed it, initialized it as GPT in Windows 10, and formatted it as NTFS. Windows has no problem since it was formatted in Windows, but I needed to check whether Ubuntu recognizes it properly. Checking on Ubuntu, the drive formatted as NTFS in Windows is recognized normally, and both Read/Write work. In a Windows and Ubuntu dual-boot setup, a single disk can be used to share files between both OSes. Even though Read/Write on an NTFS-formatted disk works on Ubuntu, disk I/O performance drops significantly. Therefore, if you use Ubuntu as your main OS, formatting as EXT4 is recommended.

See also

Favorite site

author Zer0 sitemap