PSL Posted October 14, 2023 Posted October 14, 2023 (edited) I installed "Armbian 23.8.3 bookworm" to Odroid HC1. Installation was OK, it boots. Armbian is installed on microSDHC card. I wanted to format SATA drive with XFS but I cannot mount it. 1) I installed xfsprogs (apt install xfsprogs) $ dpkg -la | grep xfs ii xfsprogs 6.1.0-1 armhf Utilities for managing the XFS filesystem 2) I created GPT partition table on SATA drive and I created one partition, /dev/sdb1 # fdisk -l /dev/sdb Disk /dev/sdb: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors Disk model: Generic Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: EF0AF689-AAD7-C443-B5AE-03EFFC99E02D Device Start End Sectors Size Type /dev/sdb1 2048 3907028991 3907026944 1.8T Linux filesystem 3) I formated partition with xfs: # mkfs.xfs /dev/sdb1 4) I checked partition with xfs_repair, no issues # xfs_repair /dev/sdb1 5) Info about filesystem: # xfs_info /dev/sdb1 meta-data=/dev/sdb1 isize=512 agcount=4, agsize=122094592 blks = sectsz=4096 attr=2, projid32bit=1 = crc=1 finobt=1, sparse=1, rmapbt=0 = reflink=1 bigtime=1 inobtcount=1 nrext64=0 data = bsize=4096 blocks=488378368, imaxpct=5 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0, ftype=1 log =internal log bsize=4096 blocks=238466, version=2 = sectsz=4096 sunit=1 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 6) The issue, I cannot mount the partition: # mount /dev/sdb1 /srv/ mount: /srv: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error. dmesg(1) may have more information after failed mount system call. # dmesg |grep XFS [ 7578.496569] SGI XFS with ACLs, security attributes, realtime, no debug enabled ... [ 7578.525167] XFS (sdb1): Superblock has unknown read-only compatible features (0x8) enabled. [ 7578.525175] XFS (sdb1): Attempted to mount read-only compatible filesystem read-write. [ 7578.525180] XFS (sdb1): Filesystem can only be safely mounted read only. [ 7578.525201] XFS (sdb1): SB validate failed with error -22. # uname -a Linux hc1 5.4.253-current-odroidxu4 #2 SMP PREEMPT Mon Aug 14 01:33:04 UTC 2023 armv7l GNU/Linux Any idea what is broken? Is it kernel?? Edited October 14, 2023 by PSL 0 Quote
PSL Posted October 14, 2023 Author Posted October 14, 2023 Maybe kernel is old, it is 5.4 in this build. Other builds of Armbian have kernel 6.1.53 (like OrangePi ZERO or NanoPI NEO)... 0 Quote
PSL Posted October 14, 2023 Author Posted October 14, 2023 (edited) I tried to replicate this issue on i686 box running Debian Bookworm and it works there, no problem. 1) Create file for disk, 50GB # dd if=/dev/zero of=xfstest.bin bs=1M count=50000 2) Format disk with XFS # mkfs.xfs xfstest.bin 3) show XFS details # xfs_info xfstest.bin meta-data=/dev/loop0 isize=512 agcount=4, agsize=3276800 blks = sectsz=512 attr=2, projid32bit=1 = crc=1 finobt=1, sparse=1, rmapbt=0 = reflink=1 bigtime=1 inobtcount=1 nrext64=0 data = bsize=4096 blocks=13107200, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0, ftype=1 log =internal log bsize=4096 blocks=16384, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 4) mount FS, no issue here! # mount -o loop xfstest.bin /srv # # mount | grep xfs /root/xfstest.bin on /srv type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota) 5) check dmesg # dmesg | grep XFS [2992759.600513] SGI XFS with ACLs, security attributes, realtime, quota, no debug enabled [2992759.618175] XFS (loop0): Mounting V5 Filesystem [2992759.649994] XFS (loop0): Ending clean mount 6) system info, kernel is 6.1.0 # uname -a Linux worm 6.1.0-12-686-pae #1 SMP PREEMPT_DYNAMIC Debian 6.1.52-1 (2023-09-07) i686 GNU/Linux # # dpkg -l | grep xfsprogs ii xfsprogs 6.1.0-1 i386 Utilities for managing the XFS filesystem So, I assume that issue is really the kernel 5.x that is delivered with Armbian for Odroid XU4 (HC1/HC2)... Edited October 14, 2023 by PSL 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.