#[Solved] I am dual booting windows 11 and arch linux.. I can read into ntfs partition but can't w
769 messages ยท Page 1 of 1 (latest)
cough what are you trying to do
I think they just want to mount a ntfs partition R/W
I have windows 11 on that partition
Yea and?
and I want to read write on that
instead of r/o
How??
with mount -o rw -t ntfs $partition
uh yeah specify the mountpoint as well
[Reply to:](#1236272382914592899 message) with mount -o rw -t ntfs $partition
https://www.youtube.com/watch?v=goOXJ56A2BU what about this video??
Arch Read Only Problem On NTFS | Enable Write Permission on NTFS | Linux: NTFS file system support with read and write access in Arch, Manjaro, other Arch Based Distros, ubuntu, fedora, redhat enterprise linux, opensuse, centos and other linux distros with proof that it really works.
NOTE:- "Please, kindly subscribe to this channel as I am prov...
hmmm
mount -o rw -t ntfs /dev/partition /path/to/mount/point
This is the command
did u install ntfs fuse driver?
it is mounted rw by default
mount where??
and where to mount it
/dev/nvme0n1p3
ok ill explain
thanks dude...
the mountpoint is the directory where linux mounts the filesystem
when linux mounts a filesystem it dumps the content into that dir
commonly /mnt is used
cause thats its purpose
and its empty
Ok
so for example
I'll go with ur preference..
sudo mount -v -t ntfs3 -o rw /dev/nvme0n1p3 /mnt
tell me its output
ill explain it
Ok a sec pls
alright
mount is the command used to mount the filesystem
ok so the problem here as u can see in the kernel logs (dmesg) is that ur volume is dirty
Oh.. what to do?
do u have a windows system near?
https://www.youtube.com/watch?v=goOXJ56A2BU
before following this tutorial .. i was able to mount it in file manager and read content
but after doing the tutorial.. i can't mount and can't even read
Arch Read Only Problem On NTFS | Enable Write Permission on NTFS | Linux: NTFS file system support with read and write access in Arch, Manjaro, other Arch Based Distros, ubuntu, fedora, redhat enterprise linux, opensuse, centos and other linux distros with proof that it really works.
NOTE:- "Please, kindly subscribe to this channel as I am prov...
no worry about it
I need to restart to go in windows 11
go to it
ill explain
ur ntfs partition is dirty
so u have to repair it using file system repair utilities
Okay..
in linux is the command fsck (file system check) and its variants
but since ntfs is windows native, the windows native chkdsk (checkdisk) command is prefered
I'm in windows 11 now..
open a cmd
Ok
now type diskpart
list volumes
yes
send output pls
sorry volume not volumes
list volume..
Yes
exit โ๏ธ
chkdsk C: /f /r
Uh won't it last like a decade
[Reply to:](#1236272382914592899 message) not lets chkdsk that with the following command
what?
Okay sorry
bro whos this guy xd @white iris
idk ๐คฃ .. random
I'm a girl?
[Reply to:](#1236272382914592899 message) bro whos this guy xd @white iris
ok chkdsk cant proceed because ur disk is in use caused u booted into ur windows system
Yeah do not check the disk while Windows is mounting it
[(click to see attachment)](#1236272382914592899 message)
u have to do exactly this processs inside a win install media
ntfsck or something you can do that on Linux as well
bro the fsck ntfs in linux isnt as good as windows one
thats why im telling him to use windows one
no worry
reboot?
download the latest win install media
ig it will happen automatically on reboot
nope cause on reboot ur disk will be in use again
anyway sorry
so it will be a loop
Oh.. maybe No.. I did maybe a year back something like this..
Ok wait a min
just telling u to use the iso cause is the safest approach
but a reboot wont fuck ur disk so try it ๐
didn't I say it'll take a decade
perfect now wait for windows to fix
Yep
better than being unable to mount it dont u think?
No, 4 mins it's saying now
sudo mount -v -t ntfs3 -o rw /dev/nvme0n1p3 /mnt
Ok
Ooh
in this case ntfs3 is to use the ntfs driver in the linux kernel
Ok
-o rw is to tell rw as mount options
it is not necessary cause it is mounted rw by default but use it for now
Ok
Okay dude
just to explain xd
๐
like some people on this support threads just tell people what to do without them understanding anything about what they are doing
ah ok so its mounted rw
just the problem is that mnt is root owned
use sudo for the operations, change to the root user or change the /mnt dir owner
This is in vs code.. I'm opening folder of windows here
How??
Ok
yes i saw it
ok so it was mounted nice
Ok
Ok
then if it works just delete it
go to that path in the terminal with cd
and use
touch example.txt
to create a empty file
see if it works
cause dirs with spaces in its name are handled with ' '
then u will have to use sude or use the root user
sudo worked..
now remove it if u want
np...
but how to write normally
I want to use the folder in visual studio code for programming purpose
ok i think this is caused by ntfs nature
Oh
ntfs does not use POSIX access control and permissions
so linux asks u for root to write
i supose u are mounting ur win local disk to code in linux then save the files there right?
yes
so for this u could use something like a exfat or fat filesystem
supported by linux and windows
im gonna search for a fix for the permissions issue but idk if it will be possible
let me search if there is a fix for the ntfs permissions issue
I have space available for new partition...
if there can be shared partition for both.. without issue then I can make one partition ...
try mounting with user flag, i dont remember how i did it earlier
i was helping one guy with mounting ntfs partition
i would not recommend this
ok u have the following options
first of all -> create a shared partition for linux and windows (fat or exfat)
second -> avoid using the native ntfs driver in the linux kernel and use the FUSE one
i would suggest to use the FUSE one
yes, FUSE driver is better
what is it and how to use it??
there are two ways to mount ntfs in linux, using the ntfs3 driver in linux kernel
or the ntfs-3g fuse driver
the fuse one mounts the filesystem INSIDE the user space
Oh
not calling the kernel directly
Oh
Yes
sudo pacman -S ntfs-3g
It takes only 5 sec to switch ๐ ..
then use the same command to mount the partition, but replace -t ntfs3 with -t ntfs-3g
to use the fuse driver
with this u should be able to write
done
without root access
i avoided from the start to use the fuse driver to not bloat ur system with additional drivers but at this point is the best optipn
@echo plinth
ok but umount it first
sudo umount -v /mnt
this is used to unmount the filesystem mounted on /mnt
?
now mount it as a said with -t ntfs-3g
sudo mount -v -t ntfs-3g /dev/nvme0n1p3 /mnt
u can remove -o if wanted
it is redundant
it is saying to boot into windows twice... but we didn't did it after chkdsk
I directly came in arch
Ok
if it does u maybe need to chkdsk it again
thats why i do not like ntfs, is a messy filesystem
so go and chkdsk it again
Ok
this should not happen in the future just for u to know xd
This is one worked now
@echo plinth
But another problem
this onedrive is not opening
since Desktop folder is in onedrive folder...
@echo plinth
probably because this is shortcut?
thats impossible, thats a ntfs link not a directory
when I was reading only...
see this
try to see where it points
bro cause that was using ntfs3 native kernel driver, which i guess it can follow ntfs links
so what can I do now?
see where that link points to
I'm sorry
[Reply to:](#1236272382914592899 message) like some people on this support threads just tell people what to do without them understanding anytโฆ
this guy again xd...
yes please
how to know this?
I tried opening it via dolpine
but can't
mf
ls -l in terminal or right click properties see if it works
ok so as u can see Onedrive is a link to other place not a dir itself
lets seek for the onedrive dir real path
this shortcut is maintained by onedrive application iirc
so it doesnt have actual directory
its also possible but as u know ntfs links/junctions are not the same as other filesystems like ext4 (also the onedrive app must save the data somewhere)
Oh
so what can be done now?
ig this is hard.. can you tell me method to make a shared partition which both linux and windows can use together with harmony without any bullshitt...
fat32/exfat partition
ok thats the easiest thing we can do, but helpers cant tell helped what he must do, just help with his issue
yepp...
so if u want we can help u in partition creating
the easiest is to create a fat32 or exfat partition since those are widely supported filesystems, also in linux and windows
do u have free space in ur disk?
yes
so go to the linux terminal
Ok
then u can use lots of utilities to partition the disk
i would recommend parted or fdisk, but u must know that is dangerous to partition a disk that is being used so i would recommend using a linux iso for this
yes thats not the problem, now ur disk is being used cause u are booted, but part a disk that is being used is QUITE dangerous
so betetr use a linux ise
maybe the arch one cause its lightweight
if u want
that is perfect
boot into it
also note that fat32 and exfat dont use permissions, thats what i said, they are perfect filesystems to save regular files cause they are just simple
Ok
and they are supported even on mac cause they have lots of years since released
are there any cons of these??
honestly i think there is not, obv an ext4 or ntfs filesystem is more complete and complex cause they have access control, permissions, junctions, symbolic links, hard links etc
Oh
but to save regular files across different OS like linux and windows exfat and fat32 are the best options
og there is one
but they are made specifically for different OSes, not for crossOS access
thats it
what?
fat32 can save files bigger than 4gb
can or can't?
cant sorry
individual files
Ok.. I don't have such files
like a fat32 fs can be 3TB long but it cannot store individual 4GB bigger files
exfat can
then fat32 is a safe option
it is old but so stable and trustable
also compatible
that ntfs links are different and u cant access ur onedrive dir
and u wanted to create a compatible and simple filesystem to avoid doing all this bullshit
as u said
whatif I remove onedrive from windows 11??
will that work?
since I don't use onedrive
so then if u files are not in the onedrive dir just do not acess it
acess to the dir where ur files are saved
honestly i do not know how to dereference ntfs links, u could see in windows where that links points to and seek for that path in linux
or just forget about that link if dont need it as u said
do not delete it, just dont use it
Oh
This tutorial will show you how to turn on or off OneDrive folder sync for your Microsoft account across all your Windows 10 and Windows 11 devices you sign in with the same Microsoft account.
You can use OneDrive to sync files and folders between your computer and the cloud, so you can get to...
what if I do this..
turn off onedrive from windows
then ig desktop will be in local instead of onedrive
ok see, if u do not need onedrive, removing it or not is up to you, here we are trying to help u about acessing ur ntfs partition, i think thats solved
go ahead
yes, i want to make it persistent u must add it to fstab
How?
the /etc/fstab file is used by linux to know which filesystems must be mounted at boot time
Ok .. how to do this..??
instead of editing it manually cause it will be hard for u lets use a command
Ok
use genfstab -U / and send the output pls
Ok
if the command does not exist install the package arch-install-scripts with pacman
.
sudo pacman -S arch-install-scripts
whenever I copy paste .. why these unwanted symbols come??
u must use ctrl shift c and v to copy and paste
not just ctrl c or v
Oh kk
exec genfstab -U /
u may need root permissions
try with sudo if needed
Ok
without sudo runnned
and konsole closed
automatically
that command does not do anything special
apart from printing an output
run it and send output if u can
Ok
now we are going to redirect that output into ur /etc/fstab file and edit it to remove those unwanted lines, if u reboot without a good fstab ur system will become unbootable
so proceed with caution
Ok
the file systems table
used by linux to know which filesystems must be mounted at boot time
how?
exact command pls
.
Ok
now
genfstab -U / > /etc/fstab
?
this one now?
@echo plinth
done
this one
now?
No
oh god vim is hard as fuck for beginners
thx
now u must remove the portal lines and the zram lines
to do this there is a shortcut
exit insert mode pressing esc
Ok
move ur cursour to the #portal line
Ok
ok
the same with the line under #portal
remove the last two lines
when done enter insert mode
and move to the word ntfs in the third line
yep thats it
now press i?
remove the blank lines
ok
just leave one blank line between sections
change ntfs to ntfs-3g to use the fuse driver instead of the kernel driver
now leave that blank lines
Ok
~ in vim means there is no line there
Ok
add -3g at the end of ntfs
do u want to leave the windows part in /mnt or do u prefer other dir
like if u need to mount a usb in /mnt u wont be able to
what to now?
we will create this dir after
Ok
do u see the array of optins in the ntfs line
Ok??
the rw,nouid....
yes
remove all of them carefully with the spaces and type default
UUID=... /mnt/windows ntfs-3g defaults 0 0
dont copy paste
it should look like this
defaults??
esc to exit??
this is all ok ?? right??
yes
press enter to save and exit vim
when done umount /mnt if its mounted
is it?
type this command??
ok we will handle that after this
Ok
open /etc/fstab again
and in the line of ntfs part
at the beginning there is UUID=...
do u see it?
remove the UUID parameter and type /dev/nvme0n1p3
really?? ...
just to be sure cause i do not know if filesystems uuid work with NTFS
Using the default settings will mount the NTFS partition(s) at boot. With this method, if the parent folder that it is mounted upon has the proper user or group permissions (e.g. /run/media/<username>/), then that user or group will be able to read and write on that partition(s).
/etc/fstab
<file system> <dir> <type> <options> <dump> <pass>
/dev/NTFS-part /mnt/windows ntfs-3g defaults 0 0
from the arch wiki
Oh
...
it looks ok
Ok
/mnt target is busy
there is no problem if its full
Ok, I will delete useless stuff after some time..
wait
Ok
yep thats up to u
๐
Ok
we almost forgot to create /mnt/windows dir
Oh
command not found
yep
when done ls should list it
now?
good
can I reboot now??
there is not
Ok
that was the last thing to check
ok now rebooting
good
reboot done
again in arch
ntfs partition should be mounted at /mnt/windows without executing mount
there u have it ๐
it was mounted auto
Oh.. all done?? now??
Ok
So if anyhow.. I can get desktop out of onedrive then.. it can be accessed too.. right??
but onedrive link is the problem..
the links obv not cause they are ntfs links
if u do not want to follow onedrive link
go to windows, copy the onedrive files into a normal directory
then u should be able to access the normal ntfs dir
Ok
if ur issue is solved please mark this thread as solved
all done.. now.. right??
Thanks dude @echo plinth
itsgerliz@iusearchbtw:~$ received a thank you cookie!
yepp..
your welcome
I will mark solved after a little while
good
incase something to ask..
alright have a good day
you too.. dude
... solved
#9742 ๐ฃ If there is nothing else that we can do for you, please close this thread by adding "[SOLVED]" to the title.
- You can do this on desktop by clicking the three dots on the top right of the page, and pressing "Edit Post".
- You can also do this on Android / iOS by long tapping your post in the text channel list, and tapping "Edit Post".
Your title should be like so: https://cdn.discordapp.com/attachments/503224329191030787/1039841700417384498/image.png
Thank you