Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Weird non fatal issue after SSD upgrade
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
krumpf
Apprentice
Apprentice


Joined: 15 Jul 2018
Posts: 199

PostPosted: Sat Feb 15, 2025 9:55 pm    Post subject: Weird non fatal issue after SSD upgrade Reply with quote

Hi all,
I changed my system SSD for something newer (and bigger), booted from live usb driver, rsync the old partitions to the new ones, reinstalled grub, etc.. etc.. everything works but I got an error in dmesg
Code:
exFAT-fs (sda2): invalid boot record signature
exFAT-fs (sda2): failed to read boot sector
exFAT-fs (sda2): failed to recognize exfat type

Thing is, I'm not using exFat file system on any mounted partition (I got a couple usb drives formatted in exfat so I can copy files from/to Windows, but they're not slotted)

lsblk -f
Code:
sda                                                                               
├─sda1      vfat   FAT32 EFI   2344-8EE7                             446.8M    13% /efi
├─sda2      xfs          root  dcbf42c3-4a76-4201-96c9-d568fc0eaad8   23.2G    42% /
├─sda3      xfs          home  cbb88a1e-65e9-4ec1-8336-7a8343457d95   22.7G    43% /home
└─sda4      xfs          data  876ec83b-7054-4619-bbf1-b9f8802e0d25  258.2G    33% /mnt/data

dmesg -t | grep sda
Code:
sd 5:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
sd 5:0:0:0: [sda] Write Protect is off
sd 5:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 5:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 5:0:0:0: [sda] Preferred minimum I/O size 512 bytes
 sda: sda1 sda2 sda3 sda4
sd 5:0:0:0: [sda] Attached SCSI disk
exFAT-fs (sda2): invalid boot record signature
exFAT-fs (sda2): failed to read boot sector
exFAT-fs (sda2): failed to recognize exfat type
XFS (sda2): Mounting V5 Filesystem dcbf42c3-4a76-4201-96c9-d568fc0eaad8
XFS (sda2): Ending clean mount
XFS (sda3): Mounting V5 Filesystem cbb88a1e-65e9-4ec1-8336-7a8343457d95
XFS (sda3): Ending clean mount
XFS (sda4): Mounting V5 Filesystem 876ec83b-7054-4619-bbf1-b9f8802e0d25
XFS (sda4): Ending clean mount


Could anyone explain me why do I get that complaint about exfat, and how to get rid of it ?
_________________
Dragon Princess Music Games Heroes and villains
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6226
Location: Dallas area

PostPosted: Sat Feb 15, 2025 11:23 pm    Post subject: Reply with quote

what does "fdisk -l /dev/sda" show?
_________________
UM780, 6.12 zen kernel, gcc 13, openrc, wayland
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2023

PostPosted: Sat Feb 15, 2025 11:46 pm    Post subject: Reply with quote

krumpf wrote:
Hi all,
I changed my system SSD for something newer (and bigger), booted from live usb driver, rsync the old partitions to the new ones, reinstalled grub, etc.. etc.. everything works but I got an error in dmesg
Code:
exFAT-fs (sda2): invalid boot record signature
exFAT-fs (sda2): failed to read boot sector
exFAT-fs (sda2): failed to recognize exfat type

Thing is, I'm not using exFat file system on any mounted partition (I got a couple usb drives formatted in exfat so I can copy files from/to Windows, but they're not slotted)

For a root FS, the kernel enumerates the type from its available, known types until one succeeds or all fail.
To stop the kernel from guessing, add rootfstype=xfs (in your case) to the kernel command line of your loader. This will stop the exFAT messages.
Back to top
View user's profile Send private message
krumpf
Apprentice
Apprentice


Joined: 15 Jul 2018
Posts: 199

PostPosted: Sun Feb 16, 2025 6:25 am    Post subject: Reply with quote

grknight wrote:
For a root FS, the kernel enumerates the type from its available, known types until one succeeds or all fail.
To stop the kernel from guessing, add rootfstype=xfs (in your case) to the kernel command line of your loader. This will stop the exFAT messages.

That worked ! Thanks :)
I suppose the enumeration is done in alphabetic order ? Then how come there's no error message for ext4 filesystem ? My kernel is compiled with exfat, ext4, ntfs, and xfs support.
_________________
Dragon Princess Music Games Heroes and villains
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23121

PostPosted: Sun Feb 16, 2025 3:00 pm    Post subject: Reply with quote

As I read the relevant kernel source, filesystems are tried in the order they were registered, which may not be alphabetical. See mount_block_root -> list_bdev_fs_names for where the list of candidate filesystems is obtained. See register_filesystem for how entries are added to the list. See all the many callers of register_filesystem for where each of them is added.
Back to top
View user's profile Send private message
Ralphred
l33t
l33t


Joined: 31 Dec 2013
Posts: 725

PostPosted: Sun Feb 16, 2025 3:11 pm    Post subject: Reply with quote

Hu wrote:
filesystems are tried in the order they were registered, which may not be alphabetical
And XFS is older than EXT4, makes sense.
Back to top
View user's profile Send private message
krumpf
Apprentice
Apprentice


Joined: 15 Jul 2018
Posts: 199

PostPosted: Sun Feb 16, 2025 7:12 pm    Post subject: Reply with quote

Ralphred wrote:
Hu wrote:
filesystems are tried in the order they were registered, which may not be alphabetical
And XFS is older than EXT4, makes sense.

But exFAT is relatively new compared to xfs/ext4 - according to wikipedia linux supported exfat through fuse since 2009, but the native driver appeared in kernel in november 2019. So I suppose the filesystem enumeration is not in chronological order.

@Hu, not that I don't want to read the source code, but mostly I can't, I'm kinda illiterate when it comes to read C (or most languages actually :lol: ). Plus tbh, I don't really know which files, I managed to find the error messages in /usr/src/linux/fs/exfat/super.c but that's all I can do. I mean, my developer skills are limited to really basic scripting :oops:
Still, thanks for taking some time and for your explanations
_________________
Dragon Princess Music Games Heroes and villains
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23121

PostPosted: Sun Feb 16, 2025 7:21 pm    Post subject: Reply with quote

Registration order is whatever order the relevant maintainers set it to be, as modified by what is actually built into the kernel. I stopped trying to trace what the exact order would be, and left my notes above for anyone who wanted to continue running it down. I did notice that the registration list is used to supply /proc/filesystems. I think that shows them in the same order that the guessing function returns them, though the guessing logic excludes filesystems marked as nodev.
Back to top
View user's profile Send private message
krumpf
Apprentice
Apprentice


Joined: 15 Jul 2018
Posts: 199

PostPosted: Sun Feb 16, 2025 9:15 pm    Post subject: Reply with quote

Thanks for clarifying all that, /me understands better now
_________________
Dragon Princess Music Games Heroes and villains
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