NTFS partition - SOLVED -

Message
Author
mx65
Posts: 16
Joined: Sat Jan 07, 2017 3:11 pm

NTFS partition - SOLVED -

#1 Post by mx65 »

How do I mount an NTFS partition without entering a root password in MX linux 17? :alien:
Last edited by mx65 on Thu Jan 04, 2018 8:34 am, edited 1 time in total.

User avatar
Richard
Posts: 1577
Joined: Fri Dec 12, 2008 10:31 am

Re: NTFS partition

#2 Post by Richard »

You have to specify it in /etc/fstab.
Thinkpad T430 & Dell Latitude E7450, both with MX-21.3.1
kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.

User avatar
asqwerth
Developer
Posts: 7210
Joined: Sun May 27, 2007 5:37 am

Re: NTFS partition

#3 Post 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.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
penguin
Posts: 260
Joined: Wed Jan 04, 2017 3:15 pm

Re: NTFS partition

#4 Post 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.

balarm
Posts: 147
Joined: Thu Dec 07, 2017 3:15 pm

Re: NTFS partition

#5 Post by balarm »

If the partition is internal you can use MXtools >Mx utilities check enable internal drives
You do not have the required permissions to view the files attached to this post.
mx Kernel: 4.19.0-6-amd64 x86_64 bits: 64 Desktop: Xfce 4.14.2
Distro: MX-19.3x64 patito feo October 21 2019
Machine: Type: Laptop System: LENOVO product: 1951A47 v: ThinkPad T60

mx65
Posts: 16
Joined: Sat Jan 07, 2017 3:11 pm

Re: NTFS partition

#6 Post by mx65 »

Thanks balarm, I did not know that option in MX tools :happy:

balarm
Posts: 147
Joined: Thu Dec 07, 2017 3:15 pm

Re: NTFS partition

#7 Post by balarm »

Please, edit your initil post and write SOLVED.
Thanks.
mx Kernel: 4.19.0-6-amd64 x86_64 bits: 64 Desktop: Xfce 4.14.2
Distro: MX-19.3x64 patito feo October 21 2019
Machine: Type: Laptop System: LENOVO product: 1951A47 v: ThinkPad T60

User avatar
surya88
Posts: 1
Joined: Sun Jan 14, 2018 12:40 pm

Re: NTFS partition - SOLVED -

#8 Post 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.

User avatar
penguin
Posts: 260
Joined: Wed Jan 04, 2017 3:15 pm

Re: NTFS partition - SOLVED -

#9 Post 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.

User avatar
sunrat
Posts: 636
Joined: Mon Mar 28, 2016 9:54 pm

Re: NTFS partition - SOLVED -

#10 Post 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.

Post Reply

Return to “General”