Spyke
linux4noobs·Linux 101 stuff. Questions are encouraged, noobs are welcome!byaltkey (he\him)

Mint-Arch migration led to unmountable drive

Just installed CachyOS and the drive I used alongside system drive for media\archive storage can't get mounted anymore. It's internal HDD and uses NTFS, I created it on Windows 10 years ago and used all this time from under Mint (no dualboot, only Mint). I did a regular reboot before OS switch and didn't even mount it this time.

While trying to access said drive, dolphin prints that:

An error occurred while accessing 'drive', the system responded: The requested operation has failed: Error mounting /dev/sda1 at /run/media/user/drive: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error

Where can I start my fixing journey? Where I can look for precise reason it fails?

All components are 5-10 years old if it matters. The other HDD that I formatted under Mint works just fine. It's probably a CachyOS vs NTFS problem.

[new]

I succeed at force-mounting it via ntfs 3g, but it seems it really was a problem with a bad block or something originating from windows. Checks were passed with 0 errors, so I assume it's a little funni M$ gave me with a divorce letter.

Instead of finding a way to force-mount it every time, I tried checking it via WinPE, and it helped remove the cause of errors.

I'm yet to understand what is really behind that, filesystem differences and how OSs work with them, so if you have good articles, please share these.

View original on lemmy.dbzer0.com
lemmy.dbzer0.com

What was your mount command? You might have to do something like mount -t ntfs3 /dev/sda1 /whereveryouwannamountthething or edit your fstab entry, something like /dev/sda1 /whereveryouwannamountthething ntfs3 defaults 0 0

Here's the Arch wiki page for NTFS, the Arch wiki is usually where I'd start for fixing stuff, their documentation is fantastic.

7

If adding entries to your using fstab you should probably use UUID's instead of device names.

To get the UUID type sudo blkid | grep /dev/sdb2 where /dev/sdb2 is replaced with your partition name. This should give you the UUID for your partition.

Then you can make an entry into your fstab that looks like this.

#/dev/sdb2
UUID=6CE0B016E0AFE514   /mnt/Disk_2     ntfs3            rw,relatime     0       0

The reason you want to use UUID's is because the device name /dev/sda, /dev/sdb etc... can change but the UUID of your partition stays the same.

2

Thank you. I resolved the issue thanks to our brainstorming. Upd in OP.

(Sorry for a copy-paste answer, it's not about you, it's that my anxiety doesn't handle personal adresses well rn)

1

Not sure if cachy-os will auto mount. But after installing the ntfs-3g package, make sure you reboot.

If it still doesn't work you can try to manually mount it or edit you're fstab so it it auto-mounted and assigned to the same device label.

3
feddit.org

The linked post is 8 years old. AfaIk, by now ntfs is in the regular Linux kernel (ntfs3) and the ntfs-3g FUSE driver in principle isn't necessary anymore. Yet, one may give ntfs-3g a try if the ntfs3 kernel module doesn't work.

OP may also try running ntfsfix to repair the partition.

1
shrugsreply
lemmy.world

TBH I was only interested in the install instructions (program name) for arch/pacman. Havent used an ntfs fs in ages but there is still a package for ntfs-3g in debian. He obviously lacks ntfs support atm

2

No, ntfs-3g is not strictly necessary for NTFS support, (mount -t ntfs should already work). It just offers more options and features than the standard ntfs3 which is already built into the Linux kernel. Yet, ntfs-3g performs better under some circumstances (mount -t ntfs-3g). It also provides ntfsfix and other neat tools.

2

Thank you. I resolved the issue thanks to our brainstorming. Upd in OP.

(Sorry for a copy-paste answer, it's not about you, it's that my anxiety doesn't handle personal adresses well rn)

1

NTFS doesn't like to not cleanly getting shit down. I remember I needed to boot windows again and then shutdown, in order to access my NTFS volume from Linux, because last time windows didnt shutdown cleanly. Glad you got it fixed

2

see if you can get it to manually mount with ntfs-3g. If you can, set an auto mount after.

Manually it should look something like

sudo mkdir /mnt/drivename

sudo mount ntfs-3g /dev/sda1 /mnt/drivename

4

Thank you. I resolved the issue thanks to our brainstorming. Upd in OP.

(Sorry for a copy-paste answer, it's not about you, it's that my anxiety doesn't handle personal adresses well rn)

2

Thank you. I resolved the issue thanks to our brainstorming. Upd in OP.

(Sorry for a copy-paste answer, it's not about you, it's that my anxiety doesn't handle personal adresses well rn)

2

You reached the end

Mint-Arch migration led to unmountable drive | Spyke