yashsingh1/xdaforums huggingface dataset:
[Gen8 Android Development] cnewsgrp:
I get "su not found" when I am in Android Terminal

I am at step 3

please help
[Gen8 Android Development] ki8mju7lo9:
please help:o

I am in step 2

I can see only darkness after flashing the Kernel and Initramfs and rebooting with developers edition
[Gen8 Android Development] sdajzdc:
Did you make sure when it was rebooting to hold down the volume key and then boot from the developers edition? If not you were in the normal android os with out root.
[Gen8 Android Development] bthoven:
Can I simply reformat the 3rd partition (from EXT4) to Fat32 after I've completed the step 4? I also want it accessible on my winxp.

Thanks
[Gen8 Android Development] hurrpancakes:
I am interested in achieving this as well.
[Gen8 Android Development] nimrodity:
i have an odd problem,i just realized i didnt complete one step,i forgot to do this

edit /init.rc (it's /init.rc on Android - on Linux box it's going to be something like /tmp/sdcard/init.rc) - use any editor to modify file - do it as a root!

Code:

su

vi /tmp/sdcard/init.rc (edit the file)

umount /tmp/sdcard/

What to edit:

Code:

# Comment this

# mount ext3 /dev/block/mmcblk0p4 /data noatime nosuid

# Uncomment this

# mount ext4 /dev/block/mmcblk2p2 /data noatime

mount ext3 /dev/block/mmcblk0p4 /data.old noatime nosuid

but if i do this now,and reboot my archos,my system is messed up.I dont see any launcher,just a black screen with the notification bar and the 4 soft buttons.

If i boot normal android and want to set the default launcher the original launcher isnt there either,just adw and go launcher which i installed myself,

Please help me solve this problem,dont know what i am doing wrong,

If i copy back my back up version of the init.rc it boots fine.

But for what is this step i forgot anyways.I have one partition,do i even have to do this part of the step and if yes,why does this small change in the init.rc mess everything up
[Gen8 Android Development] $aur0n:
Yes you can do it freely - even on Archos when you have 0.2 version.

su
umount /mnt/storage/sdcard (if it's mounted)
mkfs.vfat /dev/block/mmcblk2p3 (if it's third partition)
mount_sdcard.sh
[Gen8 Android Development] $aur0n:
If you don't do this (third/fourth) step - you use all the time original /data partition (from internal memory) - I guess you've changed something there and that's why it don't booted correctly in stock Android. On this level o changes it's really quite essential to copy this /data and do this step (even for future).

About black screen on Dev mode - you have Uruk 0.2? If so - when downloaded?
[Gen8 Android Development] nimrodity:
Sorry but what is uruk 0.2

I have done everything according your how to, up to the point that I posted, I think there is the problem.

I also don't know for sure how to edit the init.rc with root.

I did it with es file explorer with activated root.

Do I see this right, that I have only to change the 2 # symbols in the init.rc or is there more I am missing.

And I had the whole time the feeling that the system Doesn't run from the sd because of the low quadrants scores and Android didn't show up anymore external sd card aswell.

Sent from my A70S using the XDA mobile application powered by Tapatalk
[Gen8 Android Development] hurrpancakes:
I'm sorry, but I'm not quite sure I'm getting what this is supposed to do. I ran mkfs.vfat on my 3rd partition, I know what that does, then ran mount_sdcard.sh on the Archos, and get nothing. Ran it while it was connected to my computer via usb, and get nothing. What should I do?

Thanks for putting up with me. :P
[Gen8 Android Development] iznogooood:
I will do it one more time, and it's going to be the last one.

If it does not work, the 101 tablet will go to the bin.

Eh eh, the threat worked.

I finally completed the install and booted from SD !!!

:):):)

Thank you &aur0n.
[Gen8 Android Development] $aur0n:
Ok, so IF you run manually mount_sdcard.sh does it show anything (no message) and it does not "hang" (wait for device) for couple of seconds?

Please replace /system/bin/mount_sdcard.sh with this file - it should write some debug info.
[Gen8 Android Development] $aur0n:
Glad to here that :)
[Gen8 Android Development] hurrpancakes:
I ran that and let mount_sdcard.sh run, and it didn't return anything besides

--- Running in debug mode ---
[Gen8 Android Development] taechelsea:
With the old script,it just hangs about 10 seconds and nothing happens. With the new script, there is a new message coming out, then hangs for 10 seconds and nothing happens just like the old script too.

export PATH=/data/local/bin:$PATH
$ $su
#/system/bin/mount_sdcard.sh
--- Running in debug mode ---
#
[Gen8 Android Development] cnewsgrp:
$aur0n: Can you please help me? I cannot start step 3 because I cannot get su working on my Android Emulator
[Gen8 Android Development] haccg:
No su... you are most probably Not in developer mode..
[Gen8 Android Development] nimrodity:
please somebody help,i think i found my problem but no the solution

at step 3 when i have to do this in terminal

su

cp -rp /data/* /data.new/

this step i think does nothing,i type it and enter and thats it.

Shouldnt it copy now the files to the sdcard.

I think this doesnt work,because at no time the android sees any kind of external sd,i believe its never been mounted.How can i mount it ,it tried it but it said no such directory or something like that
[Gen8 Android Development] bthoven:
Sorry to interrupt.

I'm about to reformat my EXT4 3rd partition into FAT32. I put my microsd card into a card reader and use Gparted in Ubutu to look at the partitions. I'm very surprised to find that the first and third partitions are EXT2! The 2nd partition is EXT4.

I don't think I did it wrong. Why these two partitions become EXT2?

Do I have to reformat my first partition to EXT4 and redo the tar? If I leave it as EXT2, will there be any negative consequences?

For the 3rd partition, can I use Gparted to reformat it to FAT32 and that's it? or I have to do some tweak in init.rc?

Thanks
[Gen8 Android Development] cnewsgrp:
I am giving up on this for now. You have a great product, but unfortunately the install instructions assume that everyone is an Unix expert. Also there is no response to my questions at all. I understand the questions might seem silly, but your instructions DO NOT WORK as posted. They need to be more clear on periphery stuff.

Maybe when the product matures I will give it a try.

BTW I was able to get past step 2 and it booted beautifully, but cannot get step 3 to work.
[Gen8 Android Development] nimrodity:
me too,i get root but i cant get the sd card mounted in android to copy the data to the sd.

So no rooted android from sd for me till now.
[Gen8 Android Development] N23:
It is currently in development - it's version 0.2, what are you expecting?

$aur0n did a really great job! Thank you very much!

As the custom-kernel-rom-thing matures also the instructions will mature! Sometimes it is better to frist iron out bugs and get things working stable before everyone should be able to use the software! So it's best to let the linux pros first test this thing and then make it installable for the wide public!
[Gen8 Android Development] nimrodity:
i did never critsize auron he has done a really great job,but you have to understand that it can be frustrating trying it day after day without real progress and seing others enjoying it and writing about linux codes you dont even understand the smallest thing about
[Gen8 Android Development] N23:
@cnewsgrp: what the hell are you trying to do in the android emulator?

@nimrodity: do you have one or more partitions on your sd-card? does the sdcard gets recognized by the booted developer android?
[Gen8 Android Development] nimrodity:
no i have only 1 partition and no the sd doesnt get recognized in developer edition in normal android it says broken sd
[Gen8 Android Development] cnewsgrp:
Thanks for the reply. I really don't mean to be critical, but I have posted several time already asking OP to just explain his instructions a bit more. I am just following instructions in first post. I am on step 3. I am guessing here that what OP wants me to do is to mount the /data partition of the SDCARD using the emulator and copy the files using "su" access. The problem is that when I install the emulator and follow OP's instructions, I get the message "su: not found"
[Gen8 Android Development] dewthat:
Is you're getting su not found you either are not booting into the development environment, didn't setup the rootfs correctly, or you have messed something up installing the zImage and intrafs.
[Gen8 Android Development] sdajzdc:
Which has been explained to you three times already.
[Gen8 Android Development] cnewsgrp:
I understand. I can see "Something" is wrong, it would be great to know what exactly:confused:

Here is what I did ... based on my recollection until step 3
[Gen8 Android Development] dewthat:
If you did those things, su would be there.

Go into the terminal, type df and press enter. Take a screenshot and post it.
[Gen8 Android Development] Big-A-Rob:
Would it be possible for someone to re-write the correct steps with this type of format? It is kind of hard to follow the OP if you are not familiar with linux (like myself). Or maybe create a YouTube video and post the link. Also, would it be possible to outline how to do this with the A70H? Do you partition it with some software on the computer with it connected to the usb and the sd card mounted?

The depth of my knowledge is working with ClockworkMod and tinkering with ADB, and this sounds quite a bit more complicated than using those tools.

I know that it is probably kind of annoying having people who don't have a background in software to be on here asking questions all the time, but I would really like to learn how to do this type of stuff.

Thanks.
[Gen8 Android Development] blazingwolf:
If you don't understand the instructions then you should not be trying to do this mod. Simple as that.

Once it has been made simple for the noobs then you can try again.
[Gen8 Android Development] $aur0n:
Ok - do you have /mnt/storage/sdcard directory (after Vold mount's /mnt/storage) ?

Are you sure it's 10 seconds?
[Gen8 Android Development] $aur0n:
I'm all the time updating instruction - if some part of it can be explained a bit better. But try to understand that instruction like "buy hammer at Castorama, buy nails at "sklep z czesciami metalowymi", buy woods from Tartak and make a bench" will work only for people who actually live in Poland (it's just an example) - instruction can't be too detailed because it will work only for very narrow group of people.

Like I said - ask. But ask particular question, about on thing - someone will try to answer (perhaps me) - but statement "It does not work, I'm to lazy to even read manual" - well figure it out yourself...

And please - this project is two weeks old - it will grow, but like everything in universe - it requires time :D
[Gen8 Android Development] $aur0n:
If you are in step 3 - SD card IS already mounted. This step should copy data from internal partition mounted under /data to first (and only) partition of sd card.
[Gen8 Android Development] soldieroftheone:
@auron I have everything running except one problem and I see many others is having the same problem. The 3rd partion is not mounting and is not showing up on the archos. When I run df -h it is not showing as being mounted. If there is a fixed for this please share. Also can you post your init.rc file so I can compare yours to mine to see if there are any differences?

This is all I have left to fixed. Once I get this going my 101 will rock. But I can't keep it like this because 6gb of space is not being used on my sd card which is a waste.
[Gen8 Android Development] dewthat:
What is the output of /system/bin/mount_sdcard.sh?
[Gen8 Android Development] nimrodity:
@auron

ok,it looks like i got past this.

I deleted data and renamed data.new to data.

So far everything works fine,but the moment i edit the init.rc and reboot.

My launcher disappears i get get so many FCs that i cant do anything,but even if i could it would be senseless without a launcher.On the normal android the launcher is there but in the rooted android even without edited init.rc i can choose the stock launcher only a extra one.

How can this be.

And anothrt thing,i read about the uruk 0.1 and 0.2 again in the kernel thread,what is this?is that another term for your 0.1 and 0.2 version,or what.

I think one time i actually did boot from sd,because i managed to see android even with the edited init.rc but the system was unbelievable slow every button push need 10-15 sec. till something happened,system wasnt usable.But i dont even that get working again,dont know what i did different.

Can i use the undervoltage/OC Kernel from the start or do i need to finish everyxthing with your ones first?.

sorry for all the question but i am so exited about the speed boost of sd card running android and would so happy to have it.
[Gen8 Android Development] anurbanlegend:
After a many tries making the SD card i finally got it working!. Thanks so much $aur0n for putting this together.

Quick question and I think I know the answer but.... if I wanted to make the SD version clean(meaning reformat it with none of the apps i have on archos android), do I need to wipe my archos non sde version first and then do the copy data to sd? Or is there a way to format just the SDcard version and not touch the archos part?
[Gen8 Android Development] $aur0n:
Please write (and this for everyone) what version of mod you are using. My init.rc is exactly like distributed one in Uruk-Droid ;) 0.2.

About missing volume from sd card - please check if you have /mnt/storage/sdcard directory?
[Gen8 Android Development] soldieroftheone:
Yes I have this directory but it shows internal storage only.
[Gen8 Android Development] $aur0n:
Actually if you will give Uruk-Droid clean /data partition - it will be kind of "fresh" install (I mean no installed application and it configuration).

So having 3 partition on SD Card and finished all 4 installation steps. Just erase all content of /data partition (/dev/block/mmcblk2p2) and run SDE version - you should see then Archos installation wizard - just like fresh Archos.

This will erase all installed apps and it's configuration

Best is to do it on some PC Box with Linux on it, mount sd card and format second partition of it (assuming it's /dev/sdb)

su (or "sudo su")
fdisk -l /dev/sdb (just to be sure if it's your sdcard)
mkfs.ext4 -O ^huge_file /dev/sdb2

You can try to do it also from Uruk 0.2 (this version has all necessary tools) - after process it will probably crash - but it should work (but not tested).

Open terminal and

su
mkfs.ext4 -FF -O ^huge_file /dev/block/mmcblk2p2

This will probably crash Android ;) (certainly make it unusable)
[Gen8 Android Development] dewthat:
If you manually run /system/bin/mount_sdcard.sh does it mount?
[Gen8 Android Development] anurbanlegend:
Thank you for quick reply. I tried to do step 4 edit init.rc. I only have 1 partition on sd card, followed steps and now it wont boot. My init.rc looks like :

# Comment this
# mount ext3 /dev/block/mmcblk0p4 /data noatime nosuid
# Uncomment this
# mount ext4 /dev/block/mmcblk2p2 /data noatime
mount ext3 /dev/block/mmcblk0p4 /data.old noatime nosuid

Is that right? It doesnt look right since there is no mount for /data??
[Gen8 Android Development] $aur0n:
A1:This is very strange - boot your Uruk and do "mount" command, check what type of filesystems are there (and you can post it here)

A2: They couldn't became EXT2, ext2 and ext3 are almost alike (except ext3 can have jurnaling) - ext4 is something completely different (if extends are enabled)

A3: You should make it ext4, it is possible to migrate from ext2/3 to ext4 on Linux box (without erase) - but it's going to be much more easy to tar/untar it (if you need help - write). And yes - there is plenty of neg. consequences - ext2 has no journaling (crash makes it marked as faulty filesystem - needs recheck), and is MUCH slower on SD cards then ext4.

A4: You have parted and Uruk 0.2 (command line version) - but to "just" reformat it to vfat/fat32 on Uruk 0.2

umount /mnt/storage/sdcard (umount it)
df -h (check if it's unmounted)
mkfs.vfat /dev/block/mmcblk2p3 (format it [b]erasing all it content[/b])
mount_sdcard.sh
[Gen8 Android Development] $aur0n:
There is no mount - since you have 1 partition only - so it's correct. Have you copy before all /data to /data.new and renamed it?
[Gen8 Android Development] taechelsea:
It's about 10-20 seconds and I can't see /mnt/storage/sdcard too. (only /mnt/storage, /mnt/sdcard and /mnt/sdcard2)

I don't know whether this information will be useful but I've found out that /mnt/sdcard2 has approx. 500 mb somehow.(I can't see any files in it but there are 239.2 Mb used, 272.34 free after checking this via Root Explorer)

---------------------

-These steps below are just for my experiment.-

My workaround at the moment is to edit init.rc to mount mmcblk2p3 to this /mnt/sdcard2 and then I can see my 13 Gb got mounted in /mnt/sdcard2. I can copied my media files there and force to play them manually because the multimedia apps(photo, video, music) can not see them. In my opinion, this proves that the partition mmcblk2p3 already exists but having some problems to get mounted to /mnt/storage/sdcard.

----------------------

p.s. I used all files from Uruk 0.2 (rootfs,zimage,initramfs) and everytime before I follow your advice, I edit init.rc back to the right command lines as we can see in step 4 from your instructions.
[Gen8 Android Development] sdajzdc:
I am having the same problems with the missing sdcard. First the file /mnt/storage/sdcard did not exist I added it. Next I noted that the owner and group is "root", so it will not show up unless logged in as SU. I unmounted the directory, then changed the owner and group to 1000 and 1015 respectively. The owner and group were changed -- I verified it. When I ran mount_sdcard.sh it changed the owner and group back to root. I am at a lost there.
[Gen8 Android Development] soldieroftheone:
There is no output this is what I get and it does nothing.

export PATH=/data/local/bin:$PATH

$ $su

# /system/bin/mount_sdcard.sh
[Gen8 Android Development] anurbanlegend:
YOU ARE AWESOME. Thanks I have fresh install running on SDcard now. Thanks to you and all other people that helped out in the post!
[Gen8 Android Development] $aur0n:
If I should guess - I would say you have old version of Uruk 0.2 with (my fault ;) ) Launcher problem (no laucher at all ;) ). It may also mean that there is some problem with /data partition.

Frankly - yesterday I wanted to play with OC kernel (I hope ardatdat will answer to my email :P ) and my /data got corrupted (plenty of OC, no apps) - it finished with using backup... I don't know why this happened - but my guess so far is, that it's some kind of compatibility problem of modules and OC kernel - Android got crazy and started to overwrite data as with fresh install.
[Gen8 Android Development] $aur0n:
Please (and all who have this problem - and enough will and/or knowledge to do tests) - run this version of mount_sdcard.sh script (it's updated version - few minutes old).

Please write it in /system/bin over old version and do (cut/paste over ssh should do)

su
chown root:root /system/bin/mount_sdcard.sh
chmod ug+rx /system/bin/mount_sdcard.sh
/system/bin/mount_sdcard.sh
ls -ld /mnt/storage/sdcard
mount
[Gen8 Android Development] soldieroftheone:
I was wrong earlier I dont have the /mnt/storage/sdcard directory but I have all the directories like @taechelsea.

@taechelsea I may can live with that, where did you edited this info in the init.rc file. I want to see if this will work for me.
[Gen8 Android Development] pfarrelliv:
ok, i'm a not a total noob at rooting, but i am utterly failing at figuring this out.

i managed to get SDE on my A70, as well as the initramfs from this thread and ardatdat's OC kernel. However, I did all that following a different thread (same procedure, just minus the partition and moving to external sd), and now realize that I want to partition my external and relocate the files there.

I'm using terminal on my Mac and cannot seem to a) find the card under /dev/sdb, nor b) figure out how to partition it (can't get adb shell to work either atm..)

i tried following the instructions listed here, http://xdaforums.com/showpost.php?p=10324687&postcount=89, to no avail.

I have no idea where i am going wrong. sorry for the super noob questions, but i'm desperate to figure this thing out. any help would be much appreciated!
[Gen8 Android Development] $aur0n:
So crate /mnt/storage/sdcard!

su
mkdir /mnt/storage/sdcard
/system/bin/mount_sdcard.sh
[Gen8 Android Development] taechelsea:
You can try this. Just put the last line in init.rc.

# Comment this
# mount ext3 /dev/block/mmcblk0p4 /data noatime nosuid
# Uncomment this
mount ext4 /dev/block/mmcblk2p2 /data noatime
mount ext3 /dev/block/mmcblk0p4 /data.old noatime nosuid
mount ext4 /dev/block/mmcblk2p3 /mnt/sdcard2 noatime nosuid
[Gen8 Android Development] soldieroftheone:
Can I do the cut and paste in root explorer and if so do I still need to put in that code in terminal?
[Gen8 Android Development] Tzbob:
Would you mind telling me how you managed the different boot screens?

I'd LOVE to know! =D
[Gen8 Android Development] sdajzdc:
Yes to both questions. Also add this line after after "su" if you are currently mounted.

umount /mnt/storage/sdcard
[Gen8 Android Development] PAulyhoffman:
Thanks, i am going to give it a try today!
[Gen8 Android Development] cnewsgrp:
Here is the output
[Gen8 Android Development] taechelsea:
The result again with the new mount_sdcard.sh.

$ export PATH=/data/local/bin:$PATH
$su
# chown root:root /system/bin/mount_sdcard.sh
# chmod ug+rx /system/bin/mount_sdcard.sh
# /system/bin/mount_sdcard.sh
--- Running in debug mode ---

with the same hanging time about 15-20 seconds like before.

Then I tried to create /mnt/storage/sdcard with mkdir command in Terminal Emulator before running the new mount_sdcard.sh again.

# mkdir /mnt/storage/sdcard
# /system/bin/mount_sdcard.sh
--- Running in debug mode ---
Mounting /dev/block/mmcblk2p3 as ext4
Debug: .drwxr-xr-x 3 root root 4096 Jan 7 19:36 /mnt/storage/sdcard
Debug: It's not vfat device
#

and it works!!!!! I can finally see my mmcblk2p3 partition got mounted with 13 Gb in /mnt/storage/sdcard. You're great,$aur0n!!! I think the missing part is to mkdir /mnt/storage/sdcard before running mount_sdcard.sh.

Thank you so much. Maybe the next step is to get this part working automatically by fixing this script to boot up correctly.
[Gen8 Android Development] dewthat:
Looks like you're not in development kernel. That matches the df output of the base system.

Are you booting to the SDE menu and choosing developer edition?
[Gen8 Android Development] dewthat:
Now that the mount point exists there shouldn't be a problem. Try rebooting and seeing if it automounts.
[Gen8 Android Development] cnewsgrp:
I am doing this

Shutdown. Wait for 30 seconds

Press Power + Vol+. When I see "Archos" release power and keep Vol+ pressed

I see Boot menu

Vol - to Developer Edition

I see "Booting Develper Edition"

Am I doing anything wrong?
[Gen8 Android Development] taechelsea:
Yes. It's working like you said. All partitions now got mounted automatically. Thank for all you guy's help. (especially $auron)

----------------------------------

For the people who have 3rd partition mounting problem like me. These are the steps I've done to fix it.

-download the script mount_sdcard.sh (update version) from $auron's post#328 or this link

-copy this script to your archos and replace this script in /system/bin/mount_sdcard.sh (you can use Root Explorer to do this)

-run following commands in Terminal Emulator

su
mkdir /mnt/storage/sdcard
/system/bin/mount_sdcard.sh

-now you should have mmcblk2p3 got mounted to /mnt/storage/sdcard

-reboot

----------------------------------

Thank you for all your help. :)