LWM-Linux/08 - Advanced Linux Administration/Networking File System.md

2.4 KiB

Let's discuss NTFS (New Technology File System) and how to work with it in Linux Mint.

  1. Mounting NTFS Partitions:

    • NTFS is the default file system for Windows systems, but we can also mount NTFS partitions in Linux to read and write data.
    • To mount an NTFS partition, follow these steps:
      • First, create a mount point using the mkdir command:
        sudo mkdir /mnt/ntfs
        
      • Next, use the mount command to mount the partition you want (e.g., /dev/sdb2):
        sudo mount -t ntfs-3g /dev/sdb2 /mnt/ntfs
        
      • To check if the partition is mounted, run:
        df -hT
        
      • Now you have read/write permissions for the NTFS partition you mounted¹².
  2. Changing File Permissions on NTFS Partitions:

    • To apply Linux-compatible file permissions to an NTFS drive, modify the /etc/fstab file.
    • Add the following line to /etc/fstab:
      /dev/sdb /mnt/ntfs ntfs uid=1000,gid=1000,dmask=022,fmask=133 0 0
      
      This line specifies that the /dev/sdb partition should be mounted as NTFS in the /mnt/ntfs directory.
    • Remount the partition or reboot for the changes to take effect².

Feel free to explore further or ask if you need additional assistance! 😊🚀

Source: Conversation with Copilot, 7/12/2024