yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] Gantar:
Just full wipe! The data partition doesn't affect the rom, because rom is in system partition. The only problems are mismatches of data. Full wipe to assure the system "knows about your forced data wipe".
[General Questions and Answers] NoorBall:
just updated the post

Thanks for reply to everyone!

I've updated the post. You can find more details now. I cannot perform anything because I cannot boot anything.

Hope you can help, will wait for your kind replies before making any radical steps.
[General Questions and Answers] Gantar:
In that case, I would recommend flashing your kernel anew.

If it doesn't help, you could try to flash a stock firmware. If this didn't help, I would probably visit a repair shop.

Hope it helped, best of luck ;)

---------- Post added at 01:26 PM ---------- Previous post was at 01:19 PM ----------

Actually, this happened to me once before. Reflashing kernel worked for me: it restored my recovery.
[General Questions and Answers] NoorBall:
Cannot boot into recovery

As I wrote I cannot boot into recovery.

Can I flash kernel or rom using my laptop if the phone is not going to boot into recovery mode?

Repair shop is asking too much. I want to know could I do it by myself, with your help, of course.
[General Questions and Answers] Gantar:
Now that clarified it all. Of course you can flash it anew... Even in the worst situation your phone could be in, you can always flash kernels and firmwares!!!
[General Questions and Answers] bobix86:
Assuming the rooting process is same or simillar to Desire HD u could use hack ace tool to downgrade to stock rom, root and install cwm recovery.

After that you can flash any custom rom.

You can find a third party site link in this thread (marvin02's post):

http://xdaforums.com/showthread.php?t=1791819&page=2
[General Questions and Answers] NoorBall:
In what way? or what link?

Thanks, Gantar.

But, your post would be a little more informative and useful if you you could explain how can I do that or give a link to this :).
[General Questions and Answers] bobix86:
QUOTE=NoorBall;31362969]Thanks, Gantar.

But, your post would be a little more informative and useful if you you could explain how can I do that or give a link to this :).[/QUOTE]

Excuse me? Did you check my post?

I just gave you a link to the thread and which user posted the link in that thread "to this".

Just go there, follow ALL,the instructions and you'll be flashing a fresh custom rom in no time.

EDIT: Ok since you seem not to have read my post, here's the direct link as posted by marvin02 in the thread:

Look here

Link found on attn1's twitter.

Upper link get's you directly to a guide and tool site. From then on,please read and follow all procedures step by step.
[General Questions and Answers] Gantar:
You need to clarify the model. Is it Incredible or Incredible S?

In case of Incredible S, look here:http://forum.gsmhosting.com/vbb/f475/medusa-box-flasher-v1-0-6-more-htc-via-usb-added-1469331/ Try in both cases, there's nothing you can lose!

You probably know this, but anyway...http://www.droidforums.net/forum/droid-incredible-faq/42039-how-hard-reset-htc-droid-incredible.html

Hope I helped you. I'll keep my fingers crossed for you ;)

---------- Post added at 05:35 PM ---------- Previous post was at 05:33 PM ----------

Excuse me? Did you check my post?

I just gave you a link to the thread and which user posted the link in that thread "to this".

Just go there, follow ALL,the instructions and you'll be flashing a fresh custom rom in no time.

EDIT: Ok since you seem not to have read my post, here's the direct link as posted by marvin02 in the thread:

Look here

Link found on attn1's twitter.

Upper link get's you directly to a guide and tool site. From then on,please read and follow all procedures step by step.[/QUOTE]

I'm not sure about this, bobix. The site explicitly mentions the supported devices and there's no Incredible...
[General Questions and Answers] bobix86:
Big whoops for meh,sorry looks like i was the one not reading (at least not paying attention when reading), mixed up incredible with inspire. Appologies.
[General Questions and Answers] Gantar:
Hehehe, whatever... :P
[General Questions and Answers] NoorBall:
Hehe, I've even tried this method :). Anyway I couldn't do anything because I can't turn on usb debugging mode :confused:

Tomorrow will try second method.
[General Questions and Answers] Gantar:
Note: In fact, you don't need the debugging on. You need flash drivers instead! Kernels may be flashed even if you don't have debugging on! I write from experience:)
[Android] riddz17:
This is a Tutorial to install either Ubuntu or Debian in any Android mobile without using any app :)​
[Android] G.Galante:
Nice, i have tried for my Galaxy Ace so with ARM V6 too, but the terminal emulator gave me error in the step 3 and 4 :(
[Android] PREMOLIKES:
error not working
[Android] wisewood:
I'm getting about a dozen errors in the install process, all of which seem to relate to file permissions.
[Android] riddz17:
what kind of error could you please specify??

First of all check is your phone rooted?
[Android] swordfish:
when I type su

sh install.sh

there are many error like dir.. not found help me...
[Android] dantegl36:
worked for me. I tried to install from the microsd card (sdcard-ext) but i got errors. Once i moved the files to the phones memory (sdcard) it worked like a charm.

note: I am using Debian 6.0 Squeeze
[Android] scientist343:
I get the same error. Anyone know how to fix it?
[Android] mundui007:
hey guys

Thanx to the author of this forum on debian on android. I had the same problem you see in the error logs above. the problem is between regular "mount" command and busybox "mount". you need to use the busybox mount. so I added the word busybox infront of every mount word in the script. eg. busybox mount -o , rw /system remount. the alternative is to delete the mount found on /system/bin so that the terminal will use the busybox one automatically on /system/xbin.
[Android] scientist343:
Thanks, I found that the version of busybox I had didn't install the mount comand. I had to use the smart installer and manually check the box to overwrite the mount command then it worked.
[Android] kididaho:
Nice work. I've been experimenting with Ubuntu some so I can run side by side w/windows.
[Android] scientist343:
Does anyone know if You can connect to the the ubuntu instance on your phone from a computer through vnc? I would like to be able to use a bigger keyboard and mouse to control it.

Edit: If I make changes to the Linux.img on my phone and just copy the whole folder to my tablet will it still keep all of the changes? (I will try it tonight if know one knows).

---------- Post added at 10:52 AM ---------- Previous post was at 10:36 AM ----------

Ok you can connect to the phone from a computer. I used wifi tether and then just put the phones ip and the port into tightvnc and it connected. It took a minute to recognized the phone the first time though.
[Android] patilsb:
HI , THANKS

for your work..i have galaxy ace plus [armv7] ,i tired installing linux on my phone, when i type "sh install.sh "then ,,,such dir not found like error

appears, i am new for linux command [ my dir . /sdcard/external_sd/linux ].what can i do for this? plz help me .
[Android] id4novan:
- try to install "busybox installer" first..

- when you open the app, it will ask to install busybox..

pay attention to "Advanced install" checkbox.. be sure to have it checked..

- you will found so many applets.. try to find named "MOUNT"..

- when you found them, see the triangle sign on the right-side.. click it..

- there are 3 options: symlink applet / remove symlink / skip symlink

pick symlink applet..

- press install

- after it's done, get ou of busy box

- back to terminal, repeat the step "sh install.sh"
[Android] itzwood:
i got stuck @ step 2 " please wait while booting ubuntu.img.. this may take some time ,,. "

i installed busy box , i got my device root

sent from my Arc S
[Android] scientist343:
How long did you wait? Mine took about 15 minutes the first time after the first its just is there.
[Android] itzwood:
i left it before i go to sleep .. waked up nothing "ABOUT 8hours :eek: "
[Android] scientist343:
Try redownloading it to make sure it isn't corrupt.

You can also try a reboot, then try starting at the top again. I had it do that on my old phone and after a reboot it worked.

Also which version of ubuntu did you download 11.04 or 11.10?
[Android] markthetrekkie:
no such file or directory errors

Hi I'm getting "no such file or directory" errors when I try the step "sh install.sh"

can't post pictures yet so I'll type up the short version

# sh install.sh

remounting /system rw ...

mount: no such file or directory

installing scripts in /system/bin ...

mounting the linux image ...

mounting prepwork...

mounting: loopback mount ...

mknod /dev/block/loop254: file exists

mount: invalid argument

mounting: setting up chroot environment ...

mount: no such file or directory

mkdir failed for /data/local/mnt/media/sdcard, no such file....

[done]

then the rest is no such file or directory

I'm on an Epic 4g touch rooted obviously

I tried putting busybox in front of mount in the script as suggested before

I moved all the files from /mnt/sdcard/external_sd to /sdcard

made sure mount is installed in busybox

Not sure what to try next. Guess I could make the folders manually and see what happens.
[Android] id4novan:
Remember where you put the folder "linux"? get into the location before typing "sh install.sh"..

the location should be like \sdcard\linux\.. if your device had an internal memorycard, it should have different location.. maybe sdcard\external_sdcard\linux..

use any file explorer from your device to see the exact location..

when you find it.. open Terminal..

type su to enter as Root..

then type cd sdcard\linux or depend on the location of "linux" folder..

when you already in the "linux" folder.. then type sh install.sh

good luck.. ;)
[Android] kofrad:
This looks really cool and easy enough I may try it for fun. Can the image be stored on the external sd card without issue?

I wonder if I could ever get gentoo running on my phone... :p
[Android] markthetrekkie:
That's how I was doing it. Tried again still no luck :(
[Android] sekerd17:
is compatible whit xperia x10 mini pro ?
[Android] Lidenburg:
This should work with an OTG cable and a USB stick right? Since my phone doesn't have a Micro SD slot, that would be the only way to get this to work...
[Android] AndroidAceTeam:
it really works? I have a Galaxy 530, work?
[Android] TheRealTronics:
good job

Hey I just followed these instructions and successfully installed ubuntu on my TF300T!!!!!

I noticed in the screenshots that the OP ran a GUI desktop env (debian from pic) do you have to install gdb or something using apt after you install the image from the link that was provided? I assume so but thought I would just quickly ask as well as say thanks for this post. This is exactly what I wanted/needed for my tablet.
[Android] scientist343:
I installed the Ubuntu img and I didn't have to install the GUI using apt it was already installed. I did use the following command from the op to switch from icewm to lxde since I decided after a bit of tinkering that I liked the lxde desktop better.

apt-get autoremove icewm- lxde+

I just logged into the GUI using the vnc viewer as mentioned in the original post.
[Android] Mesaman2012:
How do I install Ubuntu on my sensation. Thanks
[Android] drifter94:
are the 2 ubuntu versions specially made for phones or I can install 12.10 from the site?
[Android] chappatti:
I got all this done. But now what? How can we get this to a fuller experience......... Does that just require running apt-get and installing what one wants???

Thanks for any suggestions. Anybody take this further?
[Android] markthetrekkie:
I managed to get ubuntu installed and can use cli features but whenever I try to VNC into it it tells me I'm not authorized. I'm 100% sure I'm using the right password I have tried that multiple times, and I can SSH into it using the same pw. so I'm stumped as to why vnc isn't working.
[Android] scientist343:
When you run the vnc set up it should have asked you what password you wanted to use. You need to use the vnc password you set in the setup it may not be the same as the SSH password.

---------- Post added at 03:09 PM ---------- Previous post was at 03:08 PM ----------

The apps have to be arm compatible to run on this version of Ubuntu so there are Lot of things that don't work.
[Android] Afonso360:
Does anyone know of a good ubuntu gui for 3" phones? i was thinkis somthink like unity but bigger
[Android] inferno7799:
I had this running nice and easily after following the tutorial exactly, great job!

However, I wanted to change the resolution and didn't notice the vncserver geometry command was in the vnc script until after I had already installed and played around in ubuntu for awhile. So I tried just changing the resolution in the script and then re-followed the tutorial, however I ran into a couple issues with files already existing (as expected) and then searched for a long time for a way to basically remove everything that it created and just start fresh, but after many hours of searching I wasn't able to find anything that worked.

So I tried just formatting/factory resetting my tablet and re-flashed my ROM, then I tried following the tutorial again, but I'm still running into one of the last errors I had encountered almost immediately after I tried changing the resolution and re-running the script...

When I type, "linux" (as a super user), it says, "chroot: can't execute 'bin/bash': No such file or directory"

similarly, "linux ssh" says, "chroot: can't execute '/root/scripts/ssh.sh': No such file or directory" and it can't find the vnc script either. It's probably also worth mentioning, in all 3 cases, it says that the linux image is already mounted. So ideally if nobody has a solution, at the very least I'd like to be able to unmount the image, delete everything that it added, and just start fresh since it was working great the first time (before I tried changing the resolution).
[Android] Lidenburg:
Since ubuntu is being installed on your sdcard and not your phone, formatting your sdcard should do it

Just my guess though.
[Android] manishdevraj:
Error while installed on Samsung Galaxy S2 I9100G

I have attached error while installing Ubuntu for Android 4.2.1 on a rooted Samsung Galaxy S2 I9100G which has ARMv7.

I have already tried suggestions like replacing "mount" with "busybox mount" and installing Smart Install from Busybox for mount command, but nothing seems to work.

Any thoughts?
[Android] linearbit8:
Same as above

I'm running into a similar issue. It's a little different than the post above. I have busy box installed with all applets activated. I'm not using the same terminal emulator used in the instructions, but i can still se the install.sh file. when i run it i get things like "/system/bin/linux: not found" and it can't create folders needed. I have a LG Vortex, is there a way to take a screen shot with it, to post?
[Android] nilknarf123:
I have done everything, got ubuntu running and i can connect to the gui through vnc.

However, the problem is, no matter what VNC client i use, i cannot get the mouse to move using touchscreen.

Also, how do i change resolution once installed?

Any advice? Thanks
[Android] kai.verma:
micromax a110

i actually have a micromax a110 .... will it work on it /?? the site u gave doesnt have this phone
[Android] thebillington:
Great idea!

Fantastic idea and it seems it has been well made, only thing is I'm having an issue getting the ssh or the vnc started.

I have installed on my GNex internal SD card, and the install went without a hitch. I then restarted Terminal Emulator and went back into the Linux directory and ran:

su
linux
linux vnc

But when I type 'linux vnc' I get an error "bash: linux: command not found". I restarted terminal, and when I type:

su
linux vnc

I get an error saying "linux.img is already mounted. chroot: can't execute '/root/scripts/ssh.sh' : No such file or directory". I have restarted several times and am still getting this error. Any idea what is causing this? I would really love to use Linux on my phone and thanks for making this possible!
[Android] Cjen1987:
Use Black Ubuntu in my sig.

Comes with:

Gedit

mtpfs

libusb

yum

tcpdump

Added backtrack repo

curl

git

metasploit (NOT TESTED and not fully working)

QBittorrent

Aircrack-ng

Wicd (When booted ignore errors. Just needed to get airmon-ng to find the wireless card)

build-essential

libssl-dev

Reaver 1.4 (wps cracker)

libpcap-dev

sqlite3

libsqlite3-dev

libpcap0.8-dev

Subversion

Enjoy :)

easy install too.
[Android] fastra:
Everything was clear but now...

Hi guys.

I have a problem. I installed Debian using this method on my HTC Wildfire phone with CM7. It worked perfectly (Yes, with GUI too), but I had a error (I don't remember) and now I'm trying to install it again.

I copied all files to /mnt/sdcard and started installation following the guide again.

su
cd /sdcard/linux
sh install.sh

Up to this moment everything is OK. Next I type "linux" and it writes that the image has already mounted. I tried to unmount it using "umount" but it wasn't successful. I don't know what to do next. Should I do full wipe of everything or there is any other method to fix this?
[Android] nisamtetreb:
Hi, thanks for your effort! I want to know if this is the armel or armhf version of linux?

Also, will this work on a Nexus 7 wich has no sdcard? Could I install it to /data/local/debian for example?
[Android] scientist343:
I don't know what version it is. But you can install it to the internal storage. I did that on my Galaxy SII. You will just have to change directories before running any of the commands.
[Android] brewhoxs:
What the biggest different things between suitable OS Ubuntu 11.04 (Natty Narwhal) and Ubuntu 11.10 Oneiric Ocelot? Is there anyone knows? Pardon me cause i'm not experience with Linux.

Edit: Ah okey, now i know the different things about Ubuntu OS version.
[Android] jskandhari:
Is this Active ?

Hi !

Slight history, wanted to install Ubuntu Touch on my phone Droid Razr but found that it is not using full Ubuntu which I was expecting it to use. Then I started looking for alternatives and found this.

Could someone confirm me is it working for Android 4.1.2 & Latest Ubuntu Desktop Build.....
[Android] palbadi:
great share. I will try on my tablet
[Android] alchemygear:
if you have an external sd card and want to copy to it use the command cd /mnt/extsd/linux/ and it should work..
[Android] lonemen:
That's awesome！
[Android] tpchuckles:
got it to work, but after a ton of fooling.

To put it on the external sd card (if there is an internal one too), i had to manually change the first line in all the scripts (the one that previously read "sdcard=$(readlink -f /sdcard)") to manually just be sdcard=/storage/sdcard1, since my internal one is sdcard0 which is the one that is symlinked to from "/sdcard". i had to do this in both install.sh, and in /scripts/linux.

also, how can you reboot it? i assume by unmounting or something? i haven't been able to. i need to reboot my phone to restart it, which is annoying. what am i doing wrong? even shutting down the terminal that launched it doesn't end it.
[Android] Arnold.1441:
Pretty sure you type "exit" (without quotes obviously) and hit enter and wait for boot down.
[Android] new-noob:
Hey, it sounds coold and for learning linux I would love to try it out, but need to ask you guys few q :)

- does anybody installed it on xoom 3g, if so any advice or is it just straight forward like OP wrote?

- whats the performance of linux? I mean is smoothly workable or experiencing lags etc while running both android and linux?

- is there any other distro apart from ubuntu/debian available to install with these method? I just saw ubuntu tablet edition or opensuse would be nice to have...

Thanks
[Android] S0AndS0:
Love the guide. Used it in the past on my epic 4g. However my myTouch 3g(s) wasn't able to handle this method do to sOff limitations and no desire to fix them caused me to go to an app called "Debian Kit" which runs most of the Linux system natively without troubles. If anyone has troubles with chroot methods of duel-booting, then try debian kit as I've yet to not had it boot linux on any of my devices.

Thanks for the guide. It was very helpful in the past.

Sent from either my SPH-D700 or myTouch3Gs

Debian Kit Install guide for all android devices that I'm writing:

http://xdaforums.com/showthread.php?t=2240397

Or

https://docs.google.com/document/d/1ssVeIhdBuuy8CtpBP1lWgUkG6fR6oHxP20ToYPPw6zI/edit?usp=drive_web
[Android] hellknight4206:
I cannot figure out how to get this to work on RAZR m. downloaded it 3 times, changed the scripts like one person mentioned it just gives me file or directory not found, I can see those said directories what gives? The installer seems to work fine until the cp command.
[Android] S0AndS0:
Try posting up the modified version up to the point where those line errors happen (that's what those numbers in you screen shot are referencing) and that will help others in finding errors in the .sh script.

I've received errors like that when I modified an installer and added "mkdir" instead of "mkdir -p" to make it save logs elsewhere; terns out that the mkdir command without the "-p" part doesn't make directories most of the time for me so the second command is what I had to use to make directories if they didn't exist before running the script. From there things should work past the point where your getting "file path doesn't exsist errors"

The other things that could be causing this is not running with full "su" permitions on whatever file system you're trying to write to; sometimes adding "su" or "sudo" to the beguining of some of the commands will help with that.

The other things that I can suggest are taking a look at changing ownership and/or read write permmitions with commands like "chown(sp?)" and "chmon(sp?)" These I found awile back on the wiki for bash.

One last thing that could be an issue; some devices only allow for some read/write pemitions wile the device is powered on. If that's the case then looking up how to "rotate" root (its something that I ran across but don't really know how to do, the gist that I got from what I read was that it 'shifted' super user permitions to a different method to get commands to run) or you may have to adventure down making a flashable .zip file that you can run from recovery (just about the most dangerious method I've run accros, because on most devices this gives you full read write to all parts of your system and could inaverntantly wipe out something important ie your devices' internal partition table or "upgrade" your kernel to a full linux; bothe of which would lead to a bricked device) which should be the last resort just after ADB'ing with a computer.

Hope it helps; if not you can always try the other methods of booting linux on android ie "Limbo" or "Debian Kit" or "Linux installer" all of which can be found on the Market Place.

Sent from either my SPH-D700 or myTouch3Gs

Debian Kit Install guide for all android devices that I'm writing:

http://xdaforums.com/showthread.php?t=2240397

Or

https://docs.google.com/document/d/1ssVeIhdBuuy8CtpBP1lWgUkG6fR6oHxP20ToYPPw6zI/edit?usp=drive_web
[Android] s27moto:
when i use sh install.sh i got this errors ?
[Android] s27moto:
help me please
[Android] S0AndS0:
Hi, looks like you're have a problem with read write permissions on your device, either it's the script or your device, try running "su" command to ensure that you've granted the terminal window super user access. And rerun the script. Hope it works out for you.

Sent from either my SPH-D700 or myTouch3Gs

Debian Kit Install guide for all android devices that I'm writing:

http://xdaforums.com/showthread.php?t=2240397

Or

https://docs.google.com/document/d/1ssVeIhdBuuy8CtpBP1lWgUkG6fR6oHxP20ToYPPw6zI/edit?usp=drive_web
[Android] mclarenmercedes:
Will it work on tablet as well??