Hi Saurav, Please take a look at "static const struct fsmap_t g_bdfsmap[]" in the file nuttx/fs/mount/fs_mount.c
You will figure-out how the "magic" happens. Best Regards, Alan On Mon, Feb 12, 2024 at 9:20 AM Saurav Pal <resyfer....@gmail.com> wrote: > Hi all, > > I am trying to write some docs for VFS in NuttX, but there's one thing I've > been stumbling on for some time. > > How are the file systems detected from the storage devices? For example, if > I have a storage device which has been formatted using VFAT...after (say) > power on, how does NuttX detect that vfat was used to format the storage > device? > > From what I can see, NuttX does not have a "superblock" concept explicitly > defined, nor does it seem to require the file systems to store magic > numbers in the disk in any way. > > Thanks in advance. > Regards, > SP >