View previous topic :: View next topic |
Author |
Message |
manu.rhel n00b

Joined: 11 Apr 2014 Posts: 56
|
Posted: Tue Jun 10, 2025 5:06 pm Post subject: Mount issue with 5.10 jer |
|
|
Hi Experts, I am trying to mount /dev/sdb1 which is 2Tb HDD , which is formatted by xfs file system on a mount point, however I am getting below error -
Quote: | # mount /dev/sdb1 /home/internal-2tb-1
mount: /home/internal-2tb-1: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.
|
Quote: | ~ # eselect kernel list
Available kernel symlink targets:
[1] linux-5.10.156-gentoo * |
If I go ahead and upgrade the kernel to 6.1.132, and then format the same disk thorough xfs and mount it to a mount point, all works well.
Is there any issues with 5.10 kernel ? I am not sure what exactly am I missing here, please suggest.
Thanks in advance |
|
Back to top |
|
 |
grknight Retired Dev

Joined: 20 Feb 2015 Posts: 2215
|
Posted: Tue Jun 10, 2025 5:19 pm Post subject: |
|
|
That is a generic mount (command) error. The real message will be in dmesg |
|
Back to top |
|
 |
manu.rhel n00b

Joined: 11 Apr 2014 Posts: 56
|
Posted: Thu Jun 12, 2025 4:56 pm Post subject: |
|
|
Apologies for the delay grknight, below is the dmesg
Code: | [Jun12 22:24] XFS (sdb1): Superblock has unknown incompatible features (0x20) enabled.
[ +0.000002] XFS (sdb1): Filesystem cannot be safely mounted by this kernel.
[ +0.000002] XFS (sdb1): SB validate failed with error -22. |
|
|
Back to top |
|
 |
grknight Retired Dev

Joined: 20 Feb 2015 Posts: 2215
|
Posted: Thu Jun 12, 2025 5:01 pm Post subject: |
|
|
This means that the mkfs.xfs command enabled a feature which older kernels are incompatible with.
For example
bigtime and inobtcount features need kernel 5.10
nrext64 feature needs kernel 5.19
mkfs.xfs can be told not to enable a feature. See its man page
Last edited by grknight on Thu Jun 12, 2025 5:02 pm; edited 1 time in total |
|
Back to top |
|
 |
manu.rhel n00b

Joined: 11 Apr 2014 Posts: 56
|
Posted: Thu Jun 12, 2025 5:02 pm Post subject: |
|
|
So Kernel upgrade is the only option , right ? |
|
Back to top |
|
 |
grknight Retired Dev

Joined: 20 Feb 2015 Posts: 2215
|
Posted: Thu Jun 12, 2025 5:03 pm Post subject: |
|
|
manu.rhel wrote: | So Kernel upgrade is the only option , right ? |
If reformatting is not an option, then yes. |
|
Back to top |
|
 |
manu.rhel n00b

Joined: 11 Apr 2014 Posts: 56
|
Posted: Sat Jun 14, 2025 2:15 pm Post subject: |
|
|
I can reformat, please suggest how to go about that - any specific options to be passed along with mkfs.xfs ? |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23545
|
Posted: Sat Jun 14, 2025 2:33 pm Post subject: |
|
|
Yes, you need to pass the option(s) that tell it not to enable features that are newer than what kernel 5.10 provides. No, I don't have a list of those options at hand. Per grknight's second to last post above, see the manual page for which option(s) you need. Depending on how helpful the manual is, you may need to cross-check that with kernel documentation on when it gained support for particular XFS features. |
|
Back to top |
|
 |
|