GP2X Remount In Sync


RiX0R

Idler-Inside
Joined
Sep 20, 2005
Messages
294
Website
rix0r.nl
You know how in some launcher scripts the SD card is apparently being remounted in "sync" mode, so that writes to the card will be safely completed?

This is the command used:

Code:
mount /mnt/sd -o remount,sync

Except, I had problems with a launcher script of my own, so I ran it from sterm. I used the exact command above, which got me the following error message:

/mnt/sd is not in /etc/fstab!

Checking out /etc/fstab reveals that, indeed, /mnt/sd is not mounted from there.

Or, to cut a long story short: the remount-to-sync command doesn't actually do anything, because it fails!

Is this a result of me still having the 1.0 firmware, or have these launcher scripts indeed been based on a mistaken assumption?
 
I'm pretty sure the Linux kernel doesn't support sync mounting for DOS filesystems anyway...
 
Strange I thought it did. (Its a VERY good idea because FAT lacks any kind of journaling.)

Especially useful for removeable media, like SD and CF.

If you are paranoid you could always issue a sync command manually.
 
the SD card slot is not in the fstab.

The SD cards are mounted by the mmsd modules of the kernel.

Use the full mount command.
Code:
mount -o sync,remount /dev/mmcsd/disc0/part1 /mnt/sd/
 
Back
Top