JackeyHere
New Member
Today,I complete Linux kernel 5.15 and install it,I complete ntfs driver in kernel,too.I test mount the ntfs filesystem to "/home/user/data",it's OK.But I can not wirte anything in it.
We appreciate your effort, Jackey, and welcome to the forum. You might try to use a translator like DeepL or Google Translate... they may help you.I can't speek english very much(-_-).
sudo -i
mount -t ntfs -o rw /dev/sdXY /home/user/data
chown 1000:1000 /home/user/data
Thanks for your help,but they could not provide me with practical help.233We appreciate your effort, Jackey, and welcome to the forum. You might try to use a translator like DeepL or Google Translate... they may help you.
If the NTFS drive you are trying to write to is your Windows drive (or partition)... this is a common problem. It happens because when you tell Windows to "shut down".... it doesn't. Instead it goes into "hibernation"... which means that Windows is still running, and Linux will not write to that drive to protect your Windows from damage.
To test this, boot into Windows and instead of choosing "shut down".... choose "restart".... but then boot into Linux instead. Windows will not "hibernate" if it is restarted. You should be able to write to the NTFS drive now, if this is the problem.
If this fixes the problem, you may want to permanently disable hibernation in Windows so then you could "shut down" again as usual. This is a very simple step:
1. Boot Windows
2. Run CMD (the Windows Command Prompt) as Administrator
3. Give this command: powercfg.exe /hibernate off
(These instructions are also provided by Microsoft here.)
Thanks for you help,too.But they could not provide me with practical help.(T⌓T)If not using/dual-booting Windows...
Try option (-o) to mount:
Explicit tell mount make writable. Explicit ownership. You need superuser/root to mount.Code:sudo -i mount -t ntfs -o rw /dev/sdXY /home/user/data chown 1000:1000 /home/user/data
Hope this helps.
Another thing:
Translates best: https://www.deepl.com/translator
I don't think I clearly understand your problem. You should not need to compile a kernel to get R/W support on NTFS.Thanks for your help,but they could not provide me with practical help.233
What I'm trying to say is that after compiling the new Linux 5.15 release (and compiling it with NTFS read/write support), I still can't use the mounted.I would like to try to see feedback from pioneers like me on the forum.
Today,I complete Linux kernel 5.15 and install it,...
I use Debian Unstable(sid),upgrade Kernel to 5.15,kernel.org release new NTFS supprot here.Now I use ntfs-3g to give me temporary NTFS read and write support.For "complete" I suspect "update" or "upgrade" is appropriate.
@JackeyHere , welcome.
What Linux distribution are you using? Name and version number?
For example
Linux Mint 20.2
Ubuntu 21.10
and so on.
Chris Turner
wizardfromoz
Or, you can write it in the file fstab:I use Debian Unstable(sid),upgrade Kernel to 5.15,kernel.org release new NTFS supprot here.Now I use ntfs-3g to give me temporary NTFS read and write support.
I think the packet "linux-util" isn't support kernel NTFS support.
sudo gedit /etc/fstab
/dev/sdXY /home/drive ntfs-3g defaults,auto,nofail,x-systemd.device-timeout=10,uid=1000,gid=1000,umask=000 0 0
/dev/sdc1 /media/1000GB ntfs-3g defaults,auto,nofail,x-systemd.device-timeout=10,uid=1000,gid=1000,umask=000 0 0
/dev/sda2 /media/390GB ntfs-3g defaults,auto,nofail,x-systemd.device-timeout=10,uid=1000,gid=1000,umask=000 0 0