sudo -s
mkdir /mnt/system
mount -o loop ~/Desktop/factoryfs.rfs /mnt/system
cd /mnt
tar cvf system.img system
umount /mnt/system
rm -rf /mnt/system
sudo -s
mkdir /mnt/system
mount -o loop ~/Desktop/factoryfs.rfs /mnt/system
cd /mnt
rm -rf system/*
tar xvf ~/Desktop/system.img
umount /mnt/system
rm -rf /mnt/system
Wouldnt it be easier if you run this commands?
the mount command mounted it succesfully for meCode:mount -o loop factoryfs.rfs ~/Desktop/system tar cvf system.img system
Wait a sec.. I have to use adb for this? Cuz I tried the commands as mark mentioned but it didnt turn up any results.. I do recognize some of these commands, so probably it should run on the mac Terminal..
sudo -s
su
tar cvf system.img system
tar cvf /sdcard/system.img system
I have superuser enabled on mac.. WHen I try the first command.. mkdir /mnt/system.. it says no such file or directory found.. and losetup is apparently not a command recognized by mac terminal..