chris41g

New RFS file

May 23rd, 2011
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.40 KB | None | 0 0
  1. dd if=/dev/zero of=/path/to/factoryfs.rfs bs=4096 count=66560
  2. losetup /dev/loop0 /path/to/factoryfs.rfs
  3. fat.format -S 4096 -s 1 -F 32 /dev/loop0
  4. mount -t vfat /dev/loop0 /mnt/wherever
  5.  
  6. #Edit files
  7.  
  8. umount /dev/loop0
  9. losetup -d /dev/loop0
  10.  
  11. #To make it easier to edit in the future
  12. #mount
  13. mount -t vfat -o loop=/dev/loop0 /path/to/factoryfs.rfs /mnt/wherever
  14. #unmount
  15. umount /path/to/factoryfs.rfs
Advertisement
Add Comment
Please, Sign In to add comment