UB
Universal Blue•5mo ago
Tray

How to mount my NTFS drive?

I was able to use this earlier, but after reinstalling a bunch of games, I noticed my drive said it was read only, and I am unable to add or edit any files. It works perfectly fine when I use it in Windows, and when restarting (for the first time since I flashed the HTPC nvidia iso) it took me to the os tree, and the first option had failed for a reason i cant remember, and had to pick the second option
124 Replies
Tray
Tray•5mo ago
oh and now my other drives aren't being mounted. drives that aren't ntfs
Tray
Tray•5mo ago
No description
Tray
Tray•5mo ago
it feels like i have 0 permissions or something
hive
hive•5mo ago
Linux will make drives read-only if bad blocks (data corruption) are found. These are most common on NTFS drives from time to time, requiring chkdsk for a fix. But non-NTFS having that problem might be something else too. Try booting a live USB (gparted live is good for that) to check the health of your disks as well as mounting the problematic ones to see which are still read-only.
Tray
Tray•5mo ago
haven't tried what you said, but last night I did use kde partition manager and scanned it with that it did say it was fine, but tbh I didn't rly trust it cuz it felt like it didn't work idk boutta try gparted live also kinda understandable if some blocks are messed up, files going from one partition to another from the same portable HDD for many hours all day the HDD is slow
HikariKnight
HikariKnight•5mo ago
isnt this the read only system partition used for updates that shouldnt be touched? i know that one is named "basic data partition" in windows
Tray
Tray•5mo ago
basic data partition is my windows drive, and another temp ntfs drive I made for transferring some files two different basic data partitions
HikariKnight
HikariKnight•5mo ago
is this a laptop?
Tray
Tray•5mo ago
no its a desktop running htpc bazzite
HikariKnight
HikariKnight•5mo ago
nvm htpc, i know windows enables "fast startup" on laptops in power options which will hybernate the pc when you shut it down which will make the ntfs partition read only. hence the question
Tray
Tray•5mo ago
top is my windows c drive and bottom is the ntfs drive i was using to transfer certain files
No description
Tray
Tray•5mo ago
but out of ALL of them, i can only access bazzite and steam, and i cant even DO anything in the steam folder, only read files i can check my windows to see if it has that isnt it bios or is it windows settings i t hink windows ima restart
HikariKnight
HikariKnight•5mo ago
did you follow the mounting guide from the documentation
Tray
Tray•5mo ago
no cuz i didnt need it at first everything was working
HikariKnight
HikariKnight•5mo ago
well i know there are things from windows that will mark an ntfs drive as dirty which makes it read only in linux
Tray
Tray•5mo ago
another thing to note is that at first when I noticed this problem and restarted my PC last night, my Linux boot drive wasn't showing up in the BIOS even tho it showed up in windows just fine
Tray
Tray•5mo ago
pretend it says windows instead of it being Linux, and that's what it said BEFORE I figured out how to see it
Tray
Tray•5mo ago
and then here I was able to pick between the two of them, but not add them both to the boot order, like I had it before
Tray
Tray•5mo ago
pressing f11 when booting does show all my boot devices at once, and the ostree when launching bazzite shows windows too
HikariKnight
HikariKnight•5mo ago
thats more funkyness with the bios/uefi and efivars (think thats the right term)
Tray
Tray•5mo ago
and I can't boot into windows cuz now it blue screens and says unaccessible boot device
HikariKnight
HikariKnight•5mo ago
uh i would suggest you run a smart check on your windows drive then, see if that says anything and run filesystem checks for windows on the drive if you can since that would indicate that something is severely wrong with your windows install or the disk just is not even connected but the EFI bootloader is present
hive
hive•5mo ago
Ironically if you simply disconnect the NTFS drive in Windows without using the safe disconnect option it will mark it as dirty and be read only on Linux
HikariKnight
HikariKnight•5mo ago
yeah it will but i have no idea what has caused this and when even the windows bootloader is complaining, something is severely wrong
Tray
Tray•5mo ago
okay so the windows boot specifically is cuz of me being dumb and I accidentally deleted something that windows needed ig 🙄 so I have to reinstall windows overy current install to be able to get into windows and see what's wrong with my drives 💀 I remember stepping out of my room, and coming back to games still being installed, but one monitor was black and wouldn't come back until I unplugged and replugged from the mobo, and my Ethernet cable also wasn't working when I came back until replug so I assume my cat wanted to leave out my CLOSED window, hopped BEHIND my monitors and bumped the cables on my pc even tho the floor is easier to traverse what should I use to flash my USB? and is it built in or do I need to install it oh also something I just noticed is that my PC never booted into game mode during my several restarts
HikariKnight
HikariKnight•5mo ago
which image are you using?
Tray
Tray•5mo ago
htpc, Nvidia, kde
HikariKnight
HikariKnight•5mo ago
well there is your problem nvidia
Tray
Tray•5mo ago
?
HikariKnight
HikariKnight•5mo ago
gamemode is not supported on nvidia because nvidia
Tray
Tray•5mo ago
oh
HikariKnight
HikariKnight•5mo ago
nvidia promised to fix that almost 2 years ago
Tray
Tray•5mo ago
then what's the point in having both options? for when it is?
HikariKnight
HikariKnight•5mo ago
because the nvidia image gives you the desktop image
Tray
Tray•5mo ago
that makes sense as to why the image was the exact same name
HikariKnight
HikariKnight•5mo ago
i dont own a functional crystal ball 😄
Tray
Tray•5mo ago
:/
HikariKnight
HikariKnight•5mo ago
however
Tray
Tray•5mo ago
I was saying that it's the game mode iso, but it wouldn't be active until Nvidia fixes it and it'd magically work one day
HikariKnight
HikariKnight•5mo ago
if it is a 20 series or newer, nvk is probably going to support gamemode before nvidia proprietary drivers
Tray
Tray•5mo ago
but you said both are desktop okay I got 30 series what's nvk tho
HikariKnight
HikariKnight•5mo ago
nvk also doesnt support gamemode yet
Tray
Tray•5mo ago
open source drivers?
HikariKnight
HikariKnight•5mo ago
if gamemode crashes, it attempts to boot to desktop yes nvk is the opensource nvidia vulkan drivers
Tray
Tray•5mo ago
my chimeraos (amd GPU) usually doesn't even work in game mode so that's why I'm using bazzite rn thought so. I remember using em when I tried popos a couple years ago that was like right before we got all this proton Linux gaming
HikariKnight
HikariKnight•5mo ago
nvk became available this year i believe
Tray
Tray•5mo ago
ah okay
HikariKnight
HikariKnight•5mo ago
youre thinking of nouveau
Tray
Tray•5mo ago
possibly
HikariKnight
HikariKnight•5mo ago
hey on the bright side, at least not all hope is lost
Tray
Tray•5mo ago
^
HikariKnight
HikariKnight•5mo ago
my htpc got a polaris amd card and is stuck on fedora 39 also you can use fedora media writer or popsickle for burning the iso or balena etcher or ventoy
Tray
Tray•5mo ago
as soon as I get my 16mb windows partition fixed I'll be able to access my drives
HikariKnight
HikariKnight•5mo ago
i believe etcher and ventoy are probably the best ones by my preference
Tray
Tray•5mo ago
I would have used ventoy but iirc I heard bazzite doesn't like it?
HikariKnight
HikariKnight•5mo ago
i cant help you in fixing that partition though, never had to repair it and i have been using linux as my main driver for the past 16 years ^^'
Tray
Tray•5mo ago
I can't play league of legends on Linux😔 I would've switched full time if proton came out sooner. couldn't game much when I tried pop os ill ping you later my win11 iso is still downloading
HikariKnight
HikariKnight•5mo ago
windows will delete the linux bootloader if it detects the linux efi boot partition first
Tray
Tray•5mo ago
different ssd so it shou;dnt right
HikariKnight
HikariKnight•5mo ago
does not matter, windows is dumb and will overwrite it if it sees it before its own this is why you get dumb issues like "i removed my 2nd drive and windows no longer boots"
hive
hive•5mo ago
Yeah on that one we need to use at least a Windows recovery image or boot into a functional Windows and use CMD’s chkdsk
HikariKnight
HikariKnight•5mo ago
its why i always recommend disconnecting any other drive with efi partitions when installing windows
Tray
Tray•5mo ago
id have to unscrew my ssd which luckily i did that last night tryna figure out why it wasnt working, so my case is still open
hive
hive•5mo ago
Linux has some NTFS fix tools but they are just halfway there. It’s generally a bad idea to share a read-write NTFS partition with both Windows and Linux
Tray
Tray•5mo ago
i was told before that its generally fine esp now that there are ntfs drivers being built into distros which i was told after i formatted a drive into ext4 so that i couild use one drive for both but i have problems when using both ext4 or ntfs, on the other operating systems respectively
HikariKnight
HikariKnight•5mo ago
filecheck tools for ntfs are not good, use the windows ones ntfs is not good for games on linux
Tray
Tray•5mo ago
but thats my steam drive 😔 i can see if steam will be okay with going thru wsl on windows but i have to manually mount every time i want to use an ext4 drive on windows every boot
hive
hive•5mo ago
Ah that’s a big problem. Been there done that. Things stopped working randomly and after making everything ext4 I had no issues whatsoever with Steam or games anymore
Tray
Tray•5mo ago
No description
HikariKnight
HikariKnight•5mo ago
btrfs works in windows, sucks to setup correctly for dual boot, but it is the only driver that works for both systems
Tray
Tray•5mo ago
im looking at the github rn
hive
hive•5mo ago
I would honestly have two entirely separate disks, one for Windows games and another ext4 for Linux games, as sharing the same disk with ext4 and NTFS can have automount issues already
HikariKnight
HikariKnight•5mo ago
you just have to correctly map your windows user to uid 1000 and gid 1000 for the btrfs driver and only use the driver to access the games disk and homedir. do not access the system root with it (ideally ignore mounting that partition)
Tray
Tray•5mo ago
top bdp is my windows C drive, bazzite is this, Steam is my ntfs drive specifically for steam games and the occasional offloading files, roms is my retro games i have backed up (soon to be a nas but rn on portable hdd in ext4), second bdp being the same portable hdd, but an ntfs partition i made, dont remember why i picked ntfs i think its because it was the fastest by a lot to format into
No description
Tray
Tray•5mo ago
downloaded ventoy to put the windows iso on flashed ventoy just fine
Tray
Tray•5mo ago
No description
Tray
Tray•5mo ago
cant mount the usb to put the win iso onto
HikariKnight
HikariKnight•5mo ago
livecd? the heck? it thinks the usb is a cd/dvd drive
Tray
Tray•5mo ago
is that not the one to put on my usb 💀
Tray
Tray•5mo ago
No description
Tray
Tray•5mo ago
my b i got the linux one 💀 lmao
HikariKnight
HikariKnight•5mo ago
Ventoy
Ventoy is an open source tool to create bootable USB drive for ISO files. With ventoy, you don't need to format the disk again and again, you just need to copy the iso file to the USB drive and boot it.
Tray
Tray•5mo ago
its flashing ventoy its been a couple years since i used ventoy
Tray
Tray•5mo ago
No description
No description
Tray
Tray•5mo ago
the exact same error on the usb still
HikariKnight
HikariKnight•5mo ago
i have no idea why it thinks your usbs are a cd/dvd i have no idea what you have managed to do to your system
Tray
Tray•5mo ago
i dragged .pkg files from my ntfs drive into rpcs3 :moyaiguy: i used ventoy cuz popsicle said it didnt support windows iso, but its letting me flash it so im trying that directly maybe I should've listened? tried booting from USB and i was able to add it to the boot order, but couldn't force override the boot into it directly. then when booting it said to insert a CD to boot from 🙄and automatically went into bazzite since it failed I'ma use my laptop to make a win usb thinking its failing cuz of the problems with mounting, it couldn't actually write what it thought it could
HikariKnight
HikariKnight•5mo ago
yeah idk how you managed this but it seems to think everything is done through dvd drives
Tray
Tray•5mo ago
😭
hive
hive•5mo ago
that’s the user name
HikariKnight
HikariKnight•5mo ago
im dumb 🤣
hive
hive•5mo ago
I had the same thought for 10 mins or so lol
Tray
Tray•5mo ago
windows USB finally finished after forever put it in boot order 1 okay I got it to windows setup it's attempting repairs so idk ffs I thought installing without deleting my files would just fix it instead of making me completely start over with setup, but with my files saved in a separate folder after all this time copying all my files into windows I'm finally doing chkdsk on my drives to clean em it's gonna take forever @HikariKnight@hiveset up windows, copied all my old files back into windows, checked drives for dirty (they werent but that took 5 hours to find out), updated everything, installed windows subsystem for linux, mounted drive and went back to bazzite and things work now
Tray
Tray•5mo ago
my games are all here
No description
Tray
Tray•5mo ago
I didn't like that my drive was mounted in the location it was so I unmounted, changed mount path, mounted, and now I can't edit anything in the steam drive anymore again what have I done
Tray
Tray•5mo ago
No description
Tray
Tray•5mo ago
I try to login, and then it spits out one of those boxes and sends me back to bazzite black loading screen then spits more boxes
wolfyreload
wolfyreload•5mo ago
I suspect you broke something in your /etc/fstab file When you boot, see if you can boot into your previous image from grub. Essentially: * Get to BIOS boot options * Select Fedora or Bazzite * Immediately press ESC once, this should load the grub menu * When you in grub select the second option that has (Ostree:1) see if that boots
Tray
Tray•5mo ago
in the ostree booting into the second option let's me go in but still can't write to my drive yea that's what I just did so what do I do now?
wolfyreload
wolfyreload•5mo ago
let's first look at your fstab config cat /etc/fstab
Tray
Tray•5mo ago
No description
wolfyreload
wolfyreload•5mo ago
lets check your permissions in that media folder ll /run/media/
Tray
Tray•5mo ago
total 32 drwxrwxrwx. 1 root root 32768 Jun 4 21:20 tray with tray being highlighted
wolfyreload
wolfyreload•5mo ago
ok it's owned by root so your user cannot access it try this sudo chown $USER:$USER /run/media/tray Then see if you can write to the drive
Tray
Tray•5mo ago
somehow accidentally closed the termincal when tryna copy what it said but it said it changed permission for the read only file system still cant do anything
wolfyreload
wolfyreload•5mo ago
try ntfsfix /dev/nvme0n1p2what does that do?
Tray
Tray•5mo ago
Mounting volume... Error opening read-only '/dev/nvme0n1p2': Permission denied FAILED Attempting to correct errors... Error opening read-only '/dev/nvme0n1p2': Permission denied FAILED Failed to startup volume: Permission denied Error opening '/dev/nvme0n1p2': Read-only file system Volume is corrupt. You should run chkdsk. even tho it was JUST working
wolfyreload
wolfyreload•5mo ago
Try this one sudo ntfsfix /dev/nvme0n1p2
Tray
Tray•5mo ago
but even my ext4 drive isnt letting me do anything Mounting volume... The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. FAILED Attempting to correct errors... Processing $MFT and $MFTMirr... Reading $MFT... OK Reading $MFTMirr... OK Comparing $MFTMirr to $MFT... OK Processing of $MFT and $MFTMirr completed successfully. Setting required flags on partition... OK Going to empty the journal ($LogFile)... OK Checking the alternate boot sector... OK NTFS volume version is 3.1. NTFS partition /dev/nvme0n1p2 was processed successfully.
wolfyreload
wolfyreload•5mo ago
Now try see if it's usable
Tray
Tray•5mo ago
its not okay so i unmounted it and did what you told me and now i can do something
wolfyreload
wolfyreload•5mo ago
Cool we getting somewhere
Tray
Tray•5mo ago
now i am going to unmount it, and move it from /run/media/tray to /run/media/steam i do not have permission to create a folder
wolfyreload
wolfyreload•5mo ago
in /run/media or in the mounted drive?
Tray
Tray•5mo ago
i tried /run/media/steam and /run/media/tray/steam couldnt
wolfyreload
wolfyreload•5mo ago
This will make the folder and give your user access to it
sudo mkdir /run/media/steam
sudo chown $USER:$USER /run/media/steam
sudo mkdir /run/media/steam
sudo chown $USER:$USER /run/media/steam
Then you'd need to update your /etc/fstab file
Tray
Tray•5mo ago
how so i think not editing that is what was causing my issues then cuz i didnt know i had to do that i changed it, but did not mount yet
wolfyreload
wolfyreload•5mo ago
have a look at nicks guide here https://universal-blue.discourse.group/docs?topic=970 the "nofail" parameter is very important, if you don't put that there and you disconnect the drive you might end up with an unbootable machine
Universal Blue
Auto-Mounting Secondary Drives
Thanks, I fixed it now.
Tray
Tray•5mo ago
i malways thought it was the opposite and was always confused
No description
Tray
Tray•5mo ago
documentation is good
wolfyreload
wolfyreload•5mo ago
I got to get to work. Good luck.
Tray
Tray•5mo ago
thank u for everything so far i think u got me passed the big hurdle i can prolly just ask ai the rest after reading
wolfyreload
wolfyreload•5mo ago
🙂
Tray
Tray•5mo ago
ending up just formatting it into brtfs after i transfer these few files cuz its basically just my steam games plus some files i dont need anymore
Want results from more Discord servers?
Add your server