Working on a fresh install of Ubuntu 22.04 LTS on hardware that was a mid-tier gaming PC when custom built about 12 years ago. 2 hard drives, primary was reformatted with 4 partitions: swap, boot, OS, and data, secondary drive was left untouched as NTFS with data from when machine was a Windows PC. Was always a secondary NTFS data drive, never had an OS installed.
At first, I manually mounted the NTFS drive as needed, and moved around files between various folders. But I decided to auto mount this drive in fstab
using settings:
/dev/sdb1 /media/location ntfs defaults 0 0
Which worked fine, no errors when i checked, automatically mounted when I rebooted (for some reason verification came back with an error when I tried using the UUID, so just using /dev/sdb1
until I can figure that out). All seemed fine, able to access the drive immediately upon boot, able to access and play media files without issue.
I had a subfolder of the drive open in the File Explorer window, and was renaming files. Select the file, hit F2, edit name, and hit enter to save the new name. Never had any warnings or errors appear at this point. Did this for 50-60 files. However, I then navigate out of this subfolder, and then back to it, and on return I receive an Input/Output error, stating it cannot retrieve the file information of one of the files with a changed name. The file explorer window does not show any files or data in this subfolder.
In terminal, I navigate to this directory, and ls displays all the files, both the ones still with the original names, and the ones with edited names, as well as an error for each file that was renamed.
In searching about this issue, I see information that states using ntfs
instead of ntfs-3g
in fstab
means that the drive is read-only. If this is the case, why was I able to rename the files? And if I was able to rename the files via the file explorer, why did it then lead to an Input/Output error?
Everything else on the drive in other directories is still accessible, and I was able to use the terminal to move everything that has its original name to a new directory on the data partition of the other. I have confirmed that I can access and use these moved files.
I installed nfts-3g
and tried to run ntfsfix
on the drive, but it says:
refusing to operate on read-write mounted device
Any idea why changing file names caused such an issue? Any way to correct the errors? Or do I need to look into transferring all data to other drives and reformatting this drive?