New XFS, can't mount

Hi all,

I have partitioned a 500GB nvme drive and fromatted it’s partition with XFS :

type or pcapella{~}# fdisk /dev/nvme1n1 -l
Disk /dev/nvme1n1: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: CT500P3PSSD8                            
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xfebfcd6e

Device         Boot Start       End   Sectors   Size Id Type
/dev/nvme1n1p1       2048 976773167 976771120 465.8G 83 Linux

capella{~}# mkfs.xfs -f /dev/nvme1n1p1
meta-data=/dev/nvme1n1p1         isize=512    agcount=16, agsize=7631024 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=1, sparse=1, rmapbt=1
         =                       reflink=1    bigtime=1 inobtcount=1 nrext64=1
         =                       exchange=0  
data     =                       bsize=4096   blocks=122096384, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0, ftype=1, parent=0
log      =internal log           bsize=4096   blocks=59617, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
Discarding blocks...Done.


However when I come to mount it I get the following error :

capella{~}# mount /dev/nvme1n1p1 /mnt
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/nvme1n1p1, missing codepage or helper program, or other error.
       dmesg(1) may have more information after failed mount system call.

dmesg errors :

type or paste code here[21597.116432] [  T18197] XFS (nvme1n1p1): Superblock has unknown incompatible features (0x20) enabled.
[21597.116438] [  T18197] XFS (nvme1n1p1): Filesystem cannot be safely mounted by this kernel.
[21597.116443] [  T23018] XFS (nvme1n1p1): SB validate failed with error -22.
[21884.084366] [   T1442]  nvme1n1: p1
[22044.325811] [  T18197] XFS (nvme1n1p1): Superblock has unknown incompatible features (0x20) enabled.
[22044.325817] [  T18197] XFS (nvme1n1p1): Filesystem cannot be safely mounted by this kernel.
[22044.325821] [  T24621] XFS (nvme1n1p1): SB validate failed with error -22.

As a test I just tried making the filesystem with mkfs.ext4 and it makes and mounts without problems so pretty sure the drive is OK.

Machine is running latest tumbleweed (did a zypper dup earlier today).

Any idea what is wrong?

Cheers.

Phill.

Will, normally the mount software is pretty good at finding out which type of file system is on a partiton (or other volume), but basically you have to provide it. Maybe that helps:

mount -t xfs /dev/nvme1n1p1 /mnt

Show the running kernel version. And no, “latest tumbleweed” is not enough.

capella{~}# uname -a
Linux capella 5.14.21-150400.24.63-default #1 SMP PREEMPT_DYNAMIC Tue May 2 15:49:04 UTC 2023 (fd0cc4f) x86_64 x86_64 x86_64 GNU/Linux

Cheers.

Phill.

I’ve just noticed on another Tumbleweed system I’m running that the kernel is 6.11.5-1-default. That might explain the problem.

So the question now is how to upgrade capella’s kernel to 6.x. One thing of note is that Capella used to run Leap, and was upgraded to tumbleweed about 6 months ago.

Cheers.

Phill.

Hi all,

I think I’ve solved the problem, kernel is now on

capella{~}# uname -a
Linux capella 6.11.5-1-default #1 SMP PREEMPT_DYNAMIC Wed Oct 23 04:27:11 UTC 2024 (b4e3aa9) x86_64 x86_64 x86_64 GNU/Linux

I think what happened is when I converted from Leap → Tumbleweed, it left the kernel alone and continued to run the old kernel because I am also using ZFS which isn’t supported out of the box by Tumbleweed.

Adding the filesystem repository and re-installing the kernel has allowed me to update and now the xfs mount is working.

Cheers.

Phill.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.