Scripts for movinand.bin and movinand disk image manipulation

movimount.sh

A simple script for mounting RFS filesystems in disk image extracted from movinand.bin.

  • It mount all founded filesystems in /tmp/movinand/rfs1-4 in read/write directly from image file.
  • You can specify a different image file as first parameter.
                       __   ___ _ _______ ____    ____
                      /  |\/  /| |_   ___| __ \  / _  |\
        -------------/   |/  / | |_\  \__|   _/\/ /\/ / |--------------
      --------------/  /|   / /| |  \  \ | | \/ /_/ / /-------------
                   /__/ |__/ / |_|   \__\|_|\_\|___ / /
                   \__\/\__\/  \_\    \__\__\_\____\/  THe DeMoN (c)

                          CoMPuTeR'S HeaVen SoCieTy

             Samsung M1/H1 movinand disk image mounter script

Mounting RFS1 in out.img on /tmp/movinand/rfs1...  Done
Mounting RFS2 in out.img on /tmp/movinand/rfs2...  Done
Mounting RFS3 in out.img on /tmp/movinand/rfs3...  Done


  • To umount the filesystem you can simply do:


umount /tmp/movinand/rfs*


REMEMBER: if you want to rebuild a movinand.bin file from your image you have to umount filesystems before rebuild to be shure all filesystem's caches are flushed.


movifsck.sh

A simple script for verifying RFS filesystems in disk image extracted from movinand.bin.

  • You can specify a different image file as first parameter.
                       __   ___ _ _______ ____    ____
                      /  |\/  /| |_   ___| __ \  / _  |\
        -------------/   |/  / | |_\  \__|   _/\/ /\/ / |--------------
      --------------/  /|   / /| |  \  \ | | \\/ /_/ / /-------------
                   /__/ |__/ / |_|   \__\|_|\_\|___ / /
                   \__\/\__\/  \_\    \__\__\_\____\/  THe DeMoN (c)

                          CoMPuTeR'S HeaVen SoCieTy

             Samsung M1/H1 movinand disk image mounter script

Setting RFS1 loop device: /dev/loop0... Done
Checking RFS1...dosfsck 2.11, 12 Mar 2005, FAT32, LFN
FATs differ but appear to be intact. Using first FAT.
Leaving file system unchanged.
/dev/loop0: 53 files, 837/32758 clusters
 Error
Freeing loop device: /dev/loop0... Done

Setting RFS2 loop device: /dev/loop1... Done
Checking RFS2...dosfsck 2.11, 12 Mar 2005, FAT32, LFN
FATs differ but appear to be intact. Using first FAT.
Leaving file system unchanged.
/dev/loop1: 5493 files, 11217/26360 clusters
 Error
Freeing loop device: /dev/loop1... Done

Setting RFS3 loop device: /dev/loop2... Done
Checking RFS3...dosfsck 2.11, 12 Mar 2005, FAT32, LFN
FATs differ but appear to be intact. Using first FAT.
Leaving file system unchanged.
/dev/loop2: 2 files, 32/25569 clusters
 Error
Freeing loop device: /dev/loop2... Done


  • From my experiments ALL RFS's FATs differ. The important thing is that the filesystem must be fine using first FAT.


Attachments