Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Mounting Fat32 results in Corrupted file system detected: (5 Items)
   
Mounting Fat32 results in Corrupted file system detected  
I am booting QNX 6.4.1 from the second partition on a usb drive. The first partition is FAT32. The idea is to store the 
configuration files on the FAT32 partition so that they can be edited in the field by technicians on their Windoze 
laptops. The problem that I'm having is that when I run 

# mount /dev/hd0t11 /someDir

no error

but then 

# ls /someDir 
ls: Corrupted file system detected (/someDir)

running chkfsdos returns no errors.

I am running this off of a bsp that was created for me so I realize that I may be missing an executable or a dll or some
 other necessary item. I have looked for Fatfsys, Dosfsys, and mount_dos and have not been able to locate any of those 
items. I did add fs-dos.so 

Any help at all is greatly appreciated. 
Re: Mounting Fat32 results in Corrupted file system detected  
>>># mount /dev/hd0t11 /someDir

Try 
# mount -tdos /dev/hd0t11 /someDir

Re: Mounting Fat32 results in Corrupted file system detected  
Thanks Dennis, I've tried that and I get the same error. 

increasing the verbosity of the mount command reveals the source of my problem (but not the solution) 

Parsed: mount from [/dev/hd0t11] mount on [/wtf] type [dos] 
exec: mount_dos /dev/hd0t11 /wtf
Using internal mount (mount_dos not found)
Type    [dos] Flags 0x00000000 
Device  [/dev/hd0t11] Directory [/wtf] 
Options [NULL] 

So mount_dos is not in my bsp image. Unfortunately its also not included in my Neutrino development suite nor is it in 
any of the 2 vmware images I have tried running. So the million dollar question is how do I get mount_dos? 

RE: Mounting Fat32 results in Corrupted file system detected  
We don't ship mount_dos, because it is not needed to mount the
filesystem.  If chkdosfs /dev/hd0t11 returns with no errors, then I'm
surprised this doesn't mount.  Is there any information in sloginfo?

David

> -----Original Message-----
> From: Jerry Reiner [mailto:community-noreply@qnx.com]
> Sent: November 9, 2010 2:33 PM
> To: general-filesystems
> Subject: Re: Mounting Fat32 results in Corrupted file system detected
> 
> Thanks Dennis, I've tried that and I get the same error.
> 
> increasing the verbosity of the mount command reveals the source of my
> problem (but not the solution)
> 
> Parsed: mount from [/dev/hd0t11] mount on [/wtf] type [dos]
> exec: mount_dos /dev/hd0t11 /wtf
> Using internal mount (mount_dos not found)
> Type    [dos] Flags 0x00000000
> Device  [/dev/hd0t11] Directory [/wtf]
> Options [NULL]
> 
> So mount_dos is not in my bsp image. Unfortunately its also not
> included in my Neutrino development suite nor is it in any of the 2
> vmware images I have tried running. So the million dollar question is
> how do I get mount_dos?
> 
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post74129
Re: RE: Mounting Fat32 results in Corrupted file system detected  
Thanks for the reply David. There is no information in sloginfo. Heres the output from chkdosfs

Filesystem is marked clean (use '-u' to force check)

and then with the -u to force the check...

Phase 1 - Read and compare FATs
Phase 2 - Check cluster chains
Phase 3 - Check directories
Phase 4 - Check for lost files

2 kb used, 32735 kb free, 0 files, 2 directories
Filesystem is clean.

I'm beginning to think theres a minimum size for a FAT32 partition in QNX.(smaller than the one required by Linux) I 
created and formatted this partition in Linux, which can mount and r/w the partition just fine. But as I have read many 
times in these forums, QNX is not Linux. 

So I decided to let QNX format the partition using mkdosfs and QNX decided that it was much happier with this tiny 
partition as FAT16 

Format complete: FAT16 (2048-byte clusters), 33183 kB available. 

That solves my problem since FAT32 was not a requirement for this project and I can now r/w the partition in Windoze and
 Linux. 


Thanks for taking a look.

Jerry



> We don't ship mount_dos, because it is not needed to mount the
> filesystem.  If chkdosfs /dev/hd0t11 returns with no errors, then I'm
> surprised this doesn't mount.  Is there any information in sloginfo?
> 
> David
> 
> > -----Original Message-----
> > From: Jerry Reiner [mailto:community-noreply@qnx.com]
> > Sent: November 9, 2010 2:33 PM
> > To: general-filesystems
> > Subject: Re: Mounting Fat32 results in Corrupted file system detected
> > 
> > Thanks Dennis, I've tried that and I get the same error.
> > 
> > increasing the verbosity of the mount command reveals the source of my
> > problem (but not the solution)
> > 
> > Parsed: mount from [/dev/hd0t11] mount on [/wtf] type [dos]
> > exec: mount_dos /dev/hd0t11 /wtf
> > Using internal mount (mount_dos not found)
> > Type    [dos] Flags 0x00000000
> > Device  [/dev/hd0t11] Directory [/wtf]
> > Options [NULL]
> > 
> > So mount_dos is not in my bsp image. Unfortunately its also not
> > included in my Neutrino development suite nor is it in any of the 2
> > vmware images I have tried running. So the million dollar question is
> > how do I get mount_dos?
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > 
> > General
> > http://community.qnx.com/sf/go/post74129