Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[solved]linux 5.15 and new ntfs driver

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
Irre
Guru
Guru
Posts: 434
Joined: Sat Nov 09, 2013 10:03 am
Location: Stockholm

[solved]linux 5.15 and new ntfs driver

  • Quote

Post by Irre » Sun Nov 07, 2021 11:25 am

I have configured the kernel only to use the new ntfs3 driver. It works excellent, but how do I tell "mount" to use this new driver by default?

Code: Select all

mount /dev/sda2 /tmp1
mount: /tmp1: unknown filesystem type 'ntfs'  
:(

This works, but -t ntfs3, must be written:

Code: Select all

mount -t ntfs3 /dev/sda2 /tmp1
mount -v | grep /dev/sda2
/dev/sda2 on /tmp1 type ntfs3 (rw,relatime,uid=0,gid=0,iocharset=utf8)
Last edited by Irre on Mon Nov 08, 2021 9:41 pm, edited 1 time in total.
Top
cboldt
Veteran
Veteran
User avatar
Posts: 1046
Joined: Wed Aug 24, 2005 2:54 pm

  • Quote

Post by cboldt » Sun Nov 07, 2021 11:42 am

Put a line in your /etc/fstab file, specify ntfs3 as filesystem type, and you should be good to go.

A benefit of this is no need to list the device on the command line, because fstab has that information.

Neddy and others will perhaps recommend device id using something other than /dev/sda2, such as partition or filesystem UUID, as the device identifier. This is sound advice in the general case, but your system may be stable at assigning /dev/sda2 the way you expect.
Top
Irre
Guru
Guru
Posts: 434
Joined: Sat Nov 09, 2013 10:03 am
Location: Stockholm

  • Quote

Post by Irre » Sun Nov 07, 2021 11:57 am

cboldt wrote:Put a line in your /etc/fstab file, specify ntfs3 as filesystem type, and you should be good to go.

A benefit of this is no need to list the device on the command line, because fstab has that information.
stab.
Neddy and others will perhaps recommend device id using something other than /dev/sda2, such as partition or filesystem UUID, as the device identifier. This is sound advice in the general case, but your system may be stable at assigning /dev/sda2 the way you expect.
Yes specifying ntfs3 in /etc/fstab works fine. But I want it to be default when I use mount for any (eg external usb disk) ntfs not specified in fstab.
Top
cboldt
Veteran
Veteran
User avatar
Posts: 1046
Joined: Wed Aug 24, 2005 2:54 pm

  • Quote

Post by cboldt » Sun Nov 07, 2021 9:20 pm

Maybe an entry in /etc/filesystems will take care of things.

I take it you are trying to avoid only the "-t ntfs3" part of the `mount` command line.
Top
Irre
Guru
Guru
Posts: 434
Joined: Sat Nov 09, 2013 10:03 am
Location: Stockholm

  • Quote

Post by Irre » Mon Nov 08, 2021 9:41 pm

cboldt wrote:Maybe an entry in /etc/filesystems will take care of things.

I take it you are trying to avoid only the "-t ntfs3" part of the `mount` command line.
Thank you. Now it works
Top
smartding
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 129
Joined: Fri Jan 22, 2021 5:38 am

  • Quote

Post by smartding » Fri Dec 24, 2021 8:41 am

@Irre

I added an entry ntfs3 in /etc/filesystems, but I still can't mount a ntfs file system with sudo mount -t auto /dev/xxx /mnt or sudo mount /dev/xxx /mnt, the error message is:
mount: /mnt: unknown filesystem type 'ntfs'.
But if I run sudo mount -t ntfs3 /dev/xxx /mnt, it works.

How did you make it work?

My /etc/filesystems is as below:

Code: Select all

# /etc/filesystems
#
# This file defines the filesystems search order used by a
# 'mount -t auto' command.
#

# Uncomment the following line if your modular kernel has vfat
# support and you want mount to try vfat.
#vfat
ntfs3

# Keep the last '*' intact as it directs mount to use the
# filesystems list available at /proc/filesystems also.
# Don't remove it unless you REALLY know what you are doing!
*
Top
pietinger
Moderator
Moderator
Posts: 6608
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Fri Dec 24, 2021 11:01 am

cboldt wrote:Maybe an entry in /etc/filesystems will take care of things.

I take it you are trying to avoid only the "-t ntfs3" part of the `mount` command line.
/etc/filesystems is only needed when you have some fs-modules in your kernel built as module. If you have for example vfat static built in your kernel then it is not needed to activate it in etc/filesystems for finding it with "-t auto" (I have vfat static in my kernel + never touched /etc/filesystems => "-t auto" works for all my preconfigured lines in /etc/fstab).
Top
Post Reply

7 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy