On 06/16/2010 12:31 AM, Mortaza Doulaty wrote:> Hi,
>
> I'm using SYSLINUX as a boot loader to my OS's. Before booting my
OS's, I
> want to check for existence of some files on my hard drives (NTFS and ext3
> as well).
> I think using COM32 modules to access to file system. I want some resources
> to learn more about COM32 modules and especially accessing file system
using
> COM32 modules.
>
> Any help would highly appreciated.
>
In current versions of Syslinux, COM32 modules (as well as Syslinux
proper) can only access the bootloader filesystem itself. Filesystems
on that filesystem can be accessed using normal C calls. Accessing
filesystems on other devices is not supported in the current version of
Syslinux (it's targetted for Syslinux 5) but your COM32 module can of
course carry its own filesystem access library and access the filesystem
that way. There are open source libraries for a lot of filesystems
available, including FAT, NTFS, and ext2/3/4, but it probably will
entail some porting effort to make them work in the COM32 environment.
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.