drastic_dldi.img Setup on device [ROOT ONLY]
Posted: Sun Aug 03, 2014 2:42 pm
I managed to set up the virtual filesystem entirely on my phone, so I thought I'd make a tutorial.
Prerequisites: root, busybox, a file explorer that can remount / and /system as rw, and terminal knowledge
Mount instructions adapted from http://www.techpository.com/?page_id=1201
Prerequisites: root, busybox, a file explorer that can remount / and /system as rw, and terminal knowledge
- cd into the DraStic data folder and create a blank file with dd:
Replace 128 with how many MB you want your virtual filesystem to be.
Code: Select all
dd if=/dev/zero of=drastic_dldi.img bs=1048576 count=128
- Create the filesystem with mkfs.vfat. If mkfs.vfat doesn't exist, try mkdosfs or update busybox
Code: Select all
mkfs.vfat ./drastic_dldi.img
- Create a block device to mount the image on (only needs to be done once per reboot)
where 250 is an arbitrary unused device number
Code: Select all
mknod /dev/block/loop250 b 7 250
- Link the filesystem to the new block device
Code: Select all
losetup /dev/block/loop250 drastic_dldi.img
- Create a blank directory to mount the image on
Code: Select all
mkdir fatfolder
- And finally, mount the image
Code: Select all
mount -t vfat /dev/block/loop250 fatfolder
- Add data files or whatever you want to the image
- Unmount the image
Code: Select all
umount fatfolder
Code: Select all
losetup -d /dev/block/loop250
Mount instructions adapted from http://www.techpository.com/?page_id=1201