To automatically mount a Windows NTFS file system on Debian/Ubuntu Linux, follow these steps:
- Install the
ntfs-3g
package, which provides NTFS support for Linux:
sudo apt-get update
sudo apt-get install ntfs-3g
- Create a mount point for the NTFS file system, for example:
sudo mkdir /mnt/ntfs
- Identify the device name for the NTFS file system, for example by using the
lsblk
command. - Add an entry for the NTFS file system to the
/etc/fstab
file. For example:
/dev/<device_name> /mnt/ntfs ntfs-3g defaults 0 0
- Mount the NTFS file system:
sudo mount -a
The NTFS file system should now be automatically mounted at boot time and should be available at /mnt/ntfs
. Replace <device_name>
with the appropriate device name for your environment.