Reputation: 6177
I have a android iso inside virtual box.
I need to mount the /system in write mode.
It looks as if I am the root user, but when I try to mount it gived permission denied.
Below are the command outputs.
My shell:
root@eeepc:/ #
root@eeepc:/ # whoami
root
root@eeepc:/ # mount
rootfs / rootfs rw 0 0
proc /proc proc rw,relatime 0 0
sys /sys sysfs rw,relatime 0 0
tmpfs / tmpfs ro,relatime 0 0
/dev/sda1 /mnt ext3 rw,relatime,errors=continue,barrier=0,data=writeback 0 0
/dev/loop0 /sfs squashfs ro,relatime 0 0
/dev/loop1 /system ext4 ro,relatime,user_xattr,barrier=1,data=ordered 0 0
tmpfs /cache tmpfs rw,relatime 0 0
/dev/sda1 /data ext3 rw,relatime,errors=continue,barrier=0,data=writeback 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
Command that i tried to remount:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mount -o rw,remount -t yaffs2 /dev/loop1 /system
mount -o rw,remount -t ext4 /dev/loop1 /system
All of the above gave permission denied.
Any help ?
Upvotes: 2
Views: 10237
Reputation: 6177
So, I was not able to do this, but I installed android-x86-2.3 iso , and it's working now.
Now I am having problem of orientation, it is only working on landscape..
Hope I find some solution
Upvotes: 0
Reputation: 21
An ISO is based upon a write only file system, ISO9660
does not have the concept of write once it is committed. Think of trying to change a file on a CD or DVD.
If you want to change a file in the /system then you need to approach the problem differently.
The /system mount point is a loop mount to (probably) a file. You can either use a shadow file system over the top of it (good luck, casper etc.) or copy its contents to another file system and toy with them there.
e.g. loop mount an file formatted to ext2
Upvotes: 2