Page 1 of 2

NTFS partition - SOLVED -

Posted: Tue Jan 02, 2018 9:43 pm
by mx65
How do I mount an NTFS partition without entering a root password in MX linux 17? :alien:

Re: NTFS partition

Posted: Wed Jan 03, 2018 12:43 am
by Richard
You have to specify it in /etc/fstab.

Re: NTFS partition

Posted: Wed Jan 03, 2018 1:07 am
by asqwerth
Run Disk Manager, mount the nfts partition by clicking on the checkbox on the left, ensure the driver displayed for said partition is ntfs-3g instead of ntfs. If not, select edit option in Disk Manager and change to correct driver. Then save the settings and close disk manager. Reboot and it will be automounted for normal use.

This is in the Manual, I believe.

Re: NTFS partition

Posted: Wed Jan 03, 2018 2:50 am
by penguin
Have a look in this site. Easy and elegant way.

Code: Select all

https://linuxnewbieguide.org/how-to-read-and-write-to-windows-ntfs-drives-as-any-user/
Maybe you find it interesting.

Re: NTFS partition

Posted: Wed Jan 03, 2018 5:31 am
by balarm
If the partition is internal you can use MXtools >Mx utilities check enable internal drives

Re: NTFS partition

Posted: Wed Jan 03, 2018 10:45 am
by mx65
Thanks balarm, I did not know that option in MX tools :happy:

Re: NTFS partition

Posted: Wed Jan 03, 2018 2:50 pm
by balarm
Please, edit your initil post and write SOLVED.
Thanks.

Re: NTFS partition - SOLVED -

Posted: Sun Jan 21, 2018 8:35 am
by surya88
Thanks, this helped me too. I have a 2 TB disk formatted in NTFS and used as a data drive for both the MX and Windows 10 installations. All of a sudden today, the 2 TB would be mounted and the folders in the drive shown with locked symbols even though right click - > Permissions showed that the logged (non-root) user had permission to read and write to the drive and folders. It didn't behave this way previously. Following instructions on this thread I ran Disk Manager and even though it showed the drive as ntfs-3d, I rechecked it and then it mounted fine and now allows the logged in user to write to the folder. This is a somewhat mysterious and inconsistent behavior.

Re: NTFS partition - SOLVED -

Posted: Sun Feb 18, 2018 9:12 am
by penguin
I am adding a tip for NFTS partition on this case ( small lock on NFTS folder or you have problem with read and write when mount this partition)

On the last days I had the same problem.I do not know why. So. I tried to repair NFTS from Windows , but when I mounted NFTS partition, Linux did not allowed me to write or read. A small lock icon was on file icon. So :

Lets suppose that NFTS partition is sdb1, mounted it on /mnt/WinNFTS and we have labeled this partition as WinNFTS

First : unmount it
sudo umount /mnt/WinNFTS

Suppose that your user name is : mxlinux . You are part of users group .You can check by id mxlinux
If not than add mxlinux user to this group by sudo usermod -a -G users mxlinux
from wiki https://wiki.archlinux.org/index.php/NTFS-3G
Allowing group/user
In /etc/fstab you can also specify other options like those who are allowed to access (read) the partition. For example, for you to allow people in the users group to have access:

/dev/NTFS-partition /mnt/windows ntfs-3g gid=users,umask=0022 0 0
By default, the above line will enable write support for root only. To enable user writing, you have to specify the user who should be granted write permissions. Use the uid parameter together with your username to enable user writing:

/dev/NTFS-partition /mnt/windows ntfs-3g uid=username,gid=users,umask=0022 0 0
If you are running on a single user machine, you may like to own the file system yourself and grant all possible permissions:

/dev/NTFS-partition /mnt/windows ntfs-3g uid=username,gid=users 0 0
Now lets try to mount NFTS partition by: sudo mount -t ntfs /dev/sdb1 /mnt/WinNFTS -o uid=mxlinux,gid=users


uppps ! on this point I get error:

Similar to this error ( I get similar error on my system):

Code: Select all

https://askubuntu.com/questions/462381/cant-mount-ntfs-drive-the-disk-contains-an-unclean-file-system
Error mounting /dev/sdb1 at /mnt/ubuntu/Media Center: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda6" "/media/rolindroy/Media Center"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/sda6': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the 'ro' mount option
scroll down ...

Code: Select all

if you can't access the drive, execute the following command:

sudo ntfsfix /dev/sdXY
where XY is the partition
e.g sda2 or sdb1
Then, mount with:
sudo mount -o rw /dev/sdXY
repair as ....in our case : sudo ntfsfix /dev/sdb1
try to remount by sudo mount -t ntfs /dev/sdb1 /mnt/WinNFTS -o uid=mxlinux,gid=users

upps... No error.

The last thing is adding an entry on your fstab by sudo leafpad /etc/fstab ( I use leafpad as my editor); as recommended by Archwiki (see above on this post).The follow entry mounts automatically WinNTFS partition on boot.
On our case LABEL=WinNFTS /mnt/WinNFTS ntfs-3g auto,uid=mxlinux,gid=users,umask=0022 0 0.

Hope it helps.

Re: NTFS partition - SOLVED -

Posted: Fri Feb 23, 2018 7:46 pm
by sunrat
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the 'ro' mount option
If you disable fastboot and don't hibernate Windows, you shouldn't get this error so thereby won't need to use ntfsfix.