Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mount issue with 5.10 jer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
manu.rhel
n00b
n00b


Joined: 11 Apr 2014
Posts: 56

PostPosted: Tue Jun 10, 2025 5:06 pm    Post subject: Mount issue with 5.10 jer Reply with quote

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
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2215

PostPosted: Tue Jun 10, 2025 5:19 pm    Post subject: Reply with quote

That is a generic mount (command) error. The real message will be in dmesg
Back to top
View user's profile Send private message
manu.rhel
n00b
n00b


Joined: 11 Apr 2014
Posts: 56

PostPosted: Thu Jun 12, 2025 4:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2215

PostPosted: Thu Jun 12, 2025 5:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
manu.rhel
n00b
n00b


Joined: 11 Apr 2014
Posts: 56

PostPosted: Thu Jun 12, 2025 5:02 pm    Post subject: Reply with quote

So Kernel upgrade is the only option , right ?
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2215

PostPosted: Thu Jun 12, 2025 5:03 pm    Post subject: Reply with quote

manu.rhel wrote:
So Kernel upgrade is the only option , right ?

If reformatting is not an option, then yes.
Back to top
View user's profile Send private message
manu.rhel
n00b
n00b


Joined: 11 Apr 2014
Posts: 56

PostPosted: Sat Jun 14, 2025 2:15 pm    Post subject: Reply with quote

I can reformat, please suggest how to go about that - any specific options to be passed along with mkfs.xfs ?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23545

PostPosted: Sat Jun 14, 2025 2:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum