Re: Not able to create/modify file in root partiton of android.

73 views
Skip to first unread message

chainz roid

unread,
Sep 28, 2012, 3:37:08 AM9/28/12
to android-...@googlegroups.com
Hello pavan.
                  Me too facing same problem. i had unpacked,edited, repacked my ramdisk but when i try to flash the image into device by 
 " flash_image boot /sdcard/rooted.img " i'm getting the "error scanning partitions: No such file or directory" how can i overcome this problem any idea.?

Thanks in advance. 

On Thursday, September 27, 2012 2:07:58 AM UTC+5:30, Sunny wrote:

Hi all,

   I am facing problem with root partition of android. I was trying bootchart on android. I followed "http://elinux.org/Using_Bootchart_on_Android" link. So in that i want to copy only init script in android root partition. So, i remounted as read-wirte and i copied my init file there in /. Now problem is that when i rebooted device it is showing me old init file.(I found this by comparing file size). So, How can i over come this problem? And How is this happening?  Basically, I also tried to create file in / of android, but after reboot it is not there.

chainz roid

unread,
Oct 1, 2012, 2:25:44 AM10/1/12
to android-...@googlegroups.com
Hello sunny

I had completed this task. have you completed ? if you still struggling let me know, i hope i can help you.

chainz roid

unread,
Oct 3, 2012, 9:27:57 AM10/3/12
to android-...@googlegroups.com
Hello sunny.
    
            I've completed this by merging many links not by single link. so if you post your error log or let me know at where you are struggling i can give a solution to your problem 

Cheers
Chainz

Pavan Savoy

unread,
Sep 26, 2012, 8:39:46 PM9/26/12
to android-...@googlegroups.com

You should unpack the ram disk image using cpio then modify the init.rc then repack it using gzip ..

Droid sent - Ignore typos

On Sep 26, 2012 7:02 PM, "Sunny" <nimitk...@gmail.com> wrote:

Hi all,

   I am facing problem with root partition of android. I was trying bootchart on android. I followed "http://elinux.org/Using_Bootchart_on_Android" link. So in that i want to copy only init script in android root partition. So, i remounted as read-wirte and i copied my init file there in /. Now problem is that when i rebooted device it is showing me old init file.(I found this by comparing file size). So, How can i over come this problem? And How is this happening?  Basically, I also tried to create file in / of android, but after reboot it is not there.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-platform/-/9OcykjKJU94J.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.

Nimit Kalaria

unread,
Sep 27, 2012, 5:17:23 AM9/27/12
to android-...@googlegroups.com
But if i want to do it on tablet then how? Is there any way to retrieve ramdisk image of tablet and modify it and put it back.

Pavan Savoy

unread,
Sep 27, 2012, 12:06:20 PM9/27/12
to android-...@googlegroups.com

Nimit Kalaria

unread,
Oct 1, 2012, 5:42:18 AM10/1/12
to android-...@googlegroups.com
Hello Chainz,

I have not completed yet, But i will inform you soon. One question i want to ask "Is two different init scripts are same?"
I mean, Init script of emulator and init script of any device. Or you take init script of two different devices.

Thanks Chainz.

On Mon, Oct 1, 2012 at 11:55 AM, chainz roid <sangilikuma...@marudham.co.in> wrote:
Hello sunny

I had completed this task. have you completed ? if you still struggling let me know, i hope i can help you.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-platform/-/14WWrSbWCs8J.

Praveen PB

unread,
Oct 1, 2012, 7:38:29 PM10/1/12
to android-...@googlegroups.com
Hi.
Usually, In android, root file system is a part of boot image, it will be mounted an RAM, even if you remount with read write permission your changes will be in ram not in boot image. Therefore, when device reboots, you will see old file.
There are couple of method to insert you file in root file system.
1) If you have code and build setup just, then just replace this new file in the root directory of out folder, remove boot img and recompile for kernel.
2) Take boot image, unpack modify and pack it. You can try below link.
 
Br,
Praveen P B

On Thu, Sep 27, 2012 at 5:37 AM, Sunny <nimitk...@gmail.com> wrote:

Hi all,

   I am facing problem with root partition of android. I was trying bootchart on android. I followed "http://elinux.org/Using_Bootchart_on_Android" link. So in that i want to copy only init script in android root partition. So, i remounted as read-wirte and i copied my init file there in /. Now problem is that when i rebooted device it is showing me old init file.(I found this by comparing file size). So, How can i over come this problem? And How is this happening?  Basically, I also tried to create file in / of android, but after reboot it is not there.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-platform/-/9OcykjKJU94J.

Nimit Kalaria

unread,
Oct 3, 2012, 9:10:33 AM10/3/12
to android-...@googlegroups.com
Hello Chainz,

Can you send me your steps to complete this task. So i can check where i am making some mistake. Actually i am facing some problem.

Thanks,

On Mon, Oct 1, 2012 at 11:55 AM, chainz roid <sangilikuma...@marudham.co.in> wrote:
Hello sunny

I had completed this task. have you completed ? if you still struggling let me know, i hope i can help you.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-platform/-/14WWrSbWCs8J.

Nimit Kalaria

unread,
Oct 4, 2012, 12:19:37 PM10/4/12
to android-...@googlegroups.com
Hello Chainz,

I have changed init.rc file. Now i want to debug it. i want check where it's execution is stuck. How can i do this?
If any error is occurred then how can i know or may be if it will write it some where in log then where?

Thanks,
Sunny

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-platform/-/J1CPDqf3aHkJ.
Reply all
Reply to author
Forward
0 new messages