local ext_device=/dev/nande
local ext_path=$mountpoint/var/lib/clover
local tmpfs=$temppath/nandc
mkdir -p $ext_path

mkdir -p $tmpfs
if ! mount -o rw,nosuid,nodev,noatime $ext_device $tmpfs ; then
  echo creating fs on $ext_device
  $rootfs/bin/mkfs.ext2 $ext_device
  mount -o rw,nosuid,nodev,noatime $ext_device $tmpfs || return 1
fi
echo moving data from nandc to nande...
cp -rf $ext_path/* $tmpfs
rm -rf $ext_path/*
umount $tmpfs
rm -rf $tmpfs

return 0
