Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I can't mount any NTFS partitions, installed NTFS3g
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 342

PostPosted: Sun Apr 04, 2021 7:54 pm    Post subject: I can't mount any NTFS partitions, installed NTFS3g Reply with quote

Hello to all!
I have following problems - can't mount any NTFS partition (installed NTFS 3g, enabled NTFS in kernel), and I can't login as a root.
I can log without problems to XFCE as non-root.
I added wheel to user, but still I can't mount anything.


Last edited by RIA77 on Mon Apr 05, 2021 9:30 am; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3875

PostPosted: Sun Apr 04, 2021 8:37 pm    Post subject: Reply with quote

What do you mean "cant login as root"?
Via display manager?
Or via terminal?
Ssh?
Code:

su -
mount -t ntfs /partition /mountpoint

I hope you have set root passwd.
OR
Code:

sudo mount -t ntfs /partition /mountpoint

usermod -aG wheel <user>
_________________
:)
Back to top
View user's profile Send private message
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 342

PostPosted: Mon Apr 05, 2021 8:59 am    Post subject: Reply with quote

I can't log via display manager as a root.
I can sucessfuly login as non-root user and login as root in terminal.
Quote:
!!! The following update(s) have been skipped due to unsatisfied dependencies
!!! triggered by backtracking:

sys-auth/polkit:0


User is added as a wheel.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3875

PostPosted: Mon Apr 05, 2021 9:11 am    Post subject: Reply with quote

In sddm you can not login as root easily.
In lightdm it is possible.
_________________
:)
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8933

PostPosted: Mon Apr 05, 2021 9:14 am    Post subject: Reply with quote

Don't login as root.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Mon Apr 05, 2021 9:16 am    Post subject: Reply with quote

RIA77,

The kernel NTFS driver is broken/incomplete, depending on your point of view. It should not be used.
Its mostly harmless for read only access though.

Use the kernel FUSE support and sys-fs/ntfs3g for full read/write access to NTFS volumes.
The filesystem type is either ntfs-3g or ntfs3g. I forget which. The kernel driver uses the ntfs filesystem type.

Using a GUI as root is dangerous. So don't do it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 342

PostPosted: Mon Apr 05, 2021 9:23 am    Post subject: Reply with quote

alamahant wrote:
In sddm you can not login as root easily.
In lightdm it is possible.

I have been using Lighdm.
When I try to mount partitions, "not authorized to perform operation" appears.
I can't restart or shutdown from XFCE either. Only logoff is enabled.

NeddySeagoon wrote:
RIA77,
Using a GUI as root is dangerous. So don't do it.

I know. But I just wanted to check why I can't mount any partitions, I hoped that I can as a root.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3875

PostPosted: Mon Apr 05, 2021 9:37 am    Post subject: Reply with quote

Quote:

When I try to mount partitions, "not authorized to perform operation" appears.
I can't restart or shutdown from XFCE either. Only logoff is enabled.

In make.conf
Code:

USE="........elogind policykit"

Then
Code:

emerge -uDNav @world
rc-update add dbus default
rc-update add elogind default

_________________
:)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Mon Apr 05, 2021 10:09 am    Post subject: Reply with quote

RIA77,

Use a root shell to test things like that. Unless the object to be mounted is listed in fstab with the user or users option, only root can perform manual mounts anyway.
If you use an automounter then anyone can mount anything anytime.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 342

PostPosted: Mon Apr 05, 2021 4:18 pm    Post subject: Reply with quote

How to properly list NTFS in fstab in order to automount it ?
Back to top
View user's profile Send private message
Ralphred
Guru
Guru


Joined: 31 Dec 2013
Posts: 470

PostPosted: Mon Apr 05, 2021 6:02 pm    Post subject: Reply with quote

From my fstab
Code:
UUID=20FD93793686F0C4                                           /mnt/NTFS_Storage               ntfs    defaults,rw                                     0 0

EDIT: DO NOT USE SEE BELOW


Last edited by Ralphred on Wed Apr 07, 2021 6:15 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Mon Apr 05, 2021 8:10 pm    Post subject: Reply with quote

Ralphred,

That -t ntfs is the kernel driver and its write support is broken, very limited.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ralphred
Guru
Guru


Joined: 31 Dec 2013
Posts: 470

PostPosted: Tue Apr 06, 2021 5:16 am    Post subject: Reply with quote

It mounts using fuseblk Ned, from mtab:
Code:
/dev/sda1 /mnt/NTFS_Storage fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096 0 0

Never seen any write issues, and 100 of the 150G in use was written from Gentoo after it was decommissioned as a system drive
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Tue Apr 06, 2021 8:20 am    Post subject: Reply with quote

Ralphred,

fuseblk says you are using ntfs3g, not the kernel ntfs driver.

The kernel ntfs driver used to make a mess of the filesystem during writes.
That was 'fixed' by limiting ntfs writes to changing the content of existing files without changing the file size.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ralphred
Guru
Guru


Joined: 31 Dec 2013
Posts: 470

PostPosted: Tue Apr 06, 2021 3:37 pm    Post subject: Reply with quote

So, assuming I wanted to add ntfs kernel support (for purely rhetorical purposes), with the 3g driver I'm using what should the fstype be in fstab to keep similar behaviour to that which I have now?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Tue Apr 06, 2021 3:42 pm    Post subject: Reply with quote

Ralphred,

It would be -t ntfs to use the kernel ntfs driver. You won't like it though. Not for write access anyway.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ralphred
Guru
Guru


Joined: 31 Dec 2013
Posts: 470

PostPosted: Tue Apr 06, 2021 3:55 pm    Post subject: Reply with quote

You misunderstood my premise (my bad for using 'similar' in the mathematical sense), what should fstype be to continue using the 3g driver?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Tue Apr 06, 2021 6:11 pm    Post subject: Reply with quote

Ralphred,

man ntfs-36:
ntfs-3g(8) - Linux man page
Name

ntfs-3g - Third Generation Read/Write NTFS Driver
Synopsis

ntfs-3g [-o option[,...]] volume mount_point
mount -t ntfs-3g [-o option[,...]] volume mount_point
lowntfs-3g [-o option[,...]] volume mount_point
mount -t lowntfs-3g [-o option[,...]] volume mount_point


The web page fomatting has got mangled. I have not had ntfs for nearly 20 years.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ralphred
Guru
Guru


Joined: 31 Dec 2013
Posts: 470

PostPosted: Wed Apr 07, 2021 6:28 am    Post subject: Reply with quote

So, thanks to Neddy I have
Code:
UUID=20FD93793686F0C4                                           /mnt/NTFS_Storage               ntfs-3g defaults,rw                 0 0
in /etc/fstab which produces
Code:
/dev/sda1 /mnt/NTFS_Storage fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096 0 0
in /etc/mtab and /proc/mounts.
More importantly, the mounted partition works like any other mounted FS
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum