yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] houzuoguo:
thanks a lot

I tried this idea already but it seems doesn't work under CM6.0...

and the problem was, every newly created loop device will always be busy, if app2sd is used. (Don't know why)

I'm going to try a different approach, I try to mount loop device to /data/local/ubuntu before Android mounts all app2sd applications
[Nexus One Android Development] houzuoguo:
thanks.

my finding is, Android froyo app2sd uses dm-xx loop devices for sd applications, for example, now I have three games on sd card, by entering mount in terminal, i read that

/dev/block/dm-0,dm-1,dm-2 are used.

After I removed all SD applications and reboot system, all of those dm-xxx devices are not mounted anymore.

Also the only difference between mount result with app2sd and mount result without app2sd is usage of dm-xx devices.
[Nexus One Android Development] houzuoguo:
Finally I've found solution to the "device or resource busy" error :D

but it seems like people are now less interested in running Ubuntu on Nexus One :(

the original post got more than 35k hits and more than 200 replies :(
[Nexus One Android Development] devex:
Hi houzuoguo!!

I'm trying to type bootubuntu when enter in system, but i think i'm not fast enough or that not work for me. Everytime i get:

# bootubuntu

SETTING VARIABLES

SETTING UP LOOP DEVICE

losetup: /dev/block/loop1

MOUNTING

mount: mounting /dev/block/loop1 on /data/local/ubuntu failed: Device or resource busy

mount: mounting devpts on /data/local/ubuntu/dev/pts failed: No such file or directory

mount: mounting proc on /data/local/ubuntu/proc failed: No such file or directory

mount: mounting sysfs on /data/local/ubuntu/sys failed: No such file or directory

SETTING UP NETWORK

net.ipv4.ip_forward = 1

bootubuntu: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexistent

bootubuntu: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexistent

bootubuntu: cannot create /data/local/ubuntu/etc/hosts: directory nonexistent

Brought to you by NexusOneHacks.net and the open source community!

chroot: can't execute '/bin/bash': No such file or directory

UMOUNTING

umount: can't forcibly umount /data/local/ubuntu/dev/pts: No such file or directory

umount: can't forcibly umount /data/local/ubuntu/proc: No such file or directory

umount: can't forcibly umount /data/local/ubuntu/sys: No such file or directory

umount: can't forcibly umount /data/local/ubuntu: Invalid argument

losetup: /dev/block/loop1: Device or resource busy

#

Whats the problem then?¿?

Thanks in advance.
[Nexus One Android Development] houzuoguo:
I worked on that problem for few weeks and finally I discovered, once I moved all SD applications back to Internal storage, loop1 no longer be busy.

Are you using Froyo app2sd?
[Nexus One Android Development] Lou2serious:
Some of us are still interested in this info but ubuntu runs pretty slow on the nexus. I say it would be nice to have the newest ubuntu (10.10) installed on the nexus one. Possibly the netbook remix version.
[Nexus One Android Development] houzuoguo:
thanks :D haha, good to hear that I'm not the only one still interested in running Ubuntu on Nexus One.

I'm thinking, if Nexus Two can be overclocked to 1.4Ghz, together with top class SD card, the speed will be enough to run Ubuntu fluently.
[Nexus One Android Development] funkatiko:
Hi! Thanx for ur work! It helped me.....

Now i´m having another issue....i´m triying either to resize the ubuntu.img to make it bigger so i can install the stuff i want ( clean install has 100 mb left) or (preffered option) mounting my sdcard so i can install the native programs from there...any ideas?¿
[Nexus One Android Development] DragosP2010:
I think the simple way is just to create another file bigger.
[Nexus One Android Development] prscott1:
You might want to build your own rootfs - check this site out - it worked great for me.

https://wiki.ubuntu.com/ARM/RootfsFromScratch
[Nexus One Android Development] Orrwil:
@houzuoguo: This is great work, thank you. I've spent a few days trying to figure out why ubuntu stopped working on my Dell Streak and you have confirmed apps2SD was the problem.

i will also be testing your condensed scripts later.

@devex: if you are using terminal emulator you could add boot ubuntu commands (su, cd /sdcard/ubuntu, bootubuntu) as an initial command in preferences, then you would only need to open TE once sdcard checks are complete.

Finally, does anyone know if its possible to write to the sdcard from within ununtu?
[Nexus One Android Development] houzuoguo:
You can run swiftp, kws,or paw server from Android system, then in Ubuntu you connect to your phone and do file operations on sdcard :)
[Nexus One Android Development] reubenjack:
Reg Flash plug in

Hi i got the Ubuntu working on my nexus one...Thx to you. Now i am trying to install the flash plug in to Firefox...any idea how to do that.. thx:)
[Nexus One Android Development] houzuoguo:
Currently the ubuntu will not have any sound and Adobe Flash does not support ARM Linux except those which are optimised for mobile devices (netbook, phones).. so sorry :) you can't get Flash in the ubuntu.
[Nexus One Android Development] htrx:
houzuoguo, your research proved extremely useful, when I decided to try out Ubuntu on my Desire. Here are some of MY findings, when I experimented about two weeks ago with different scripts/commands. Keep in mind that when I did these, my device was just rooted with S-ON and the original Sense Froyo.

First of all - the ubuntu.sh script is really useless, unless you have S-OFFed your device, as it requires writing in the system partition, which is impossible, unless in Recovery Mode (that's why the AdFree app doesn't work on S-ON devices). When experimenting I had to manually copy the stuff listed in "ubuntu.sh", while in Recovery.

Second finding - the umounting is really impossible (at least for me), unless the VNC process is ended (which would be troublesome if, for some reason, you don't have the Ubuntu terminal in front of you - you've exited unsuccessfully from it or whatever). So to umount successfully, you must kill VNC from the GUI (VNC) either with System Monitor or through the Terminal.

Once I fixed the keyboard mapping, using the suggestion from your "Finding #5" post, I wanted to be able to use Ubuntu's "GUI Terminal", which led me to my...

Third finding - using the "GUI Terminal" was troublesome, because when started, it executes the ".bashrc" script (the one from nexusonehacks.net), which automatically starts the VNC server, meaning every time you run the Terminal in the GUI, you basically start another "instance" of Ubuntu, slowing down the phone considerably. So I moved the VNC startup in a "gui" script, which should be executed manually from the Ubuntu Terminal, after the "bootubuntu" one. This way you can also choose if you want to have a GUI, as it chews up another ~50 MB of RAM.

Fourth finding, somehow even after the VNC server is killed, the "bootubuntu" script sometimes fails to umount, when exiting. That's why I removed that part from it and now I only use your "exitu" script, which works perfectly.

PS: Yes, I know I'm writing about a HTC Desire in a Nexus One forum, but I'm pretty sure it doesn't matter - both devices are almost identical.
[Nexus One Android Development] anantshri:
a quick suggestion.

Use Loop255 that's the safest till now.... less chances of people having 255 applications on SDCARD.

also i am working on customizing the same script set for my handset Xperia X10... you can check the thread in my signature.

also losetup -d is the only comand that's giving me pain right now... looking to find a solution for the same.

I have created 3 simple scripts

starttux <- simmiar to bootubuntu of yours

stoptux <- simmilar to exitu of yours

and tuxcmd <- a simple utility to get chroot when ever needed.
[Nexus One Android Development] houzuoguo:
good to know that there are still people interested in this stuff ^_^

by the way, later when htc-linux released version 0.3 of Ubuntu (10.10), I made another tutorial that has some updated scripts, here's the link:

http://xdaforums.com/showthread.php?t=892877
[Nexus One Android Development] rav:
I just successfully increased from 2Gb to 3Gb by doing this:

$ sudo fsck.ext3 -f ubuntu.img

$ sudo resize2fs ubuntu.img 3G

And on booting in Android I now have an extra 1Gb of space.

This was based on:

http://open.eucalyptus.com/wiki/resizing-images
[Nexus One Android Development] SubatomicGenome:
apt-get update

Ign http://ports.ubuntu.com karmic Release.gpg

Ign http://ports.ubuntu.com karmic Release

Ign http://ports.ubuntu.com karmic/main Packages

Ign http://ports.ubuntu.com karmic/universe Packages

Ign http://ports.ubuntu.com karmic/main Packages

Ign http://ports.ubuntu.com karmic/universe Packages

Err http://ports.ubuntu.com karmic/main Packages

404 Not Found

Err http://ports.ubuntu.com karmic/universe Packages

404 Not Found

W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/karmic/main/binary

-armel/Packages.gz 404 Not Found

W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/karmic/universe/bi

nary-armel/Packages.gz 404 Not Found

E: Some index files failed to download, they have been ignored, or old ones used

instead.

root@localhost:/#

_____________________________________________________________

Long story short, "apt-get update" fails miserably... Any suggestions anyone?
[Nexus One Android Development] luks_p:
I have the same problem too. I think it is may because Karmis is not longer supported.
[Nexus One Android Development] SubatomicGenome:
Go to the 10.10 tutorial, I followed those instructions and got updated ubuntu, and all the updated scripts..
[Nexus One Android Development] luks_p:
Yes, u r right. I'm now success to run Ubuntu 10.10 on my Milestone XT720, but memory lack make it very2 lag.
[Nexus One Android Development] hkbladelawhk:
I know this is an ancient thread, but I'm experiencing the same issue on my DNA with Backtrack, no sd card as it's built in memory. No matter what I do, whether I create a new loop device or not, it is instantly taken. I still get resource busy, but losetup lists nothing. Ideas?

Modified script:

perm=$(id|cut -b 5)

if [ "$perm" != "0" ];then echo "This Script Needs Root! Type : su";exit;fi

mount -o remount,rw /dev/block/mmcblk0p5 /system
export kit=/sdcard/bt5
export bin=/system/bin
export mnt=/data/local/mnt
mkdir -p $mntcd /
export PATH=$bin:/usr/bin:/usr/local/bin:/usr/sbin:/bin:/usr/local/sbin:/usr/games:$PATH
export TERM=linux
export HOME=/root
if [ -b /dev/block/loop99 ]; then
echo "Loop device exists"
else
busybox mknod /dev/block/loop99 b 7 99
fi

echo "SETTING UP LOOP DEVICE"
losetup /dev/block/loop99 /sdcard/bt5/bt5.img

mount -o loop,noatime -t ext2 $kit/bt5.img $mnt
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys
busybox sysctl -w net.ipv4.ip_forward=1
echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf
echo "127.0.0.1 localhost bt5" > $mnt/etc/hosts
busybox chroot $mnt /bin/bash

echo "Shutting down BackTrack ARM For DNA"
umount $mnt/dev/pts
umount $mnt/proc
umount $mnt/sys
umount $mnt
losetup -d /dev/block/loop99
[Vibrant Q&A, Help & Troubleshooting] synaesthetic:
Self-explanatory.

For some reason, SMS notifications will not play or interrupt my music when I'm using the Music Player app. This is annoying to other people who may be trying to send me SMS, because I'm not knowing a message has arrived and thus don't immediately respond.

It was working last week. I don't know what changed to make it stop working now.

Edit: gmail notifications work fine. They drop the music volume, play the notification sound, then raise the volume back again. Incoming calls do the same thing.

Both of these also play through the loudspeaker, even if the headphones are connected... another problem which has no answer it seems.
[HD7 General] ecj123:
I have managed to get into boot loader mode it has a sandisk sd card .

while connected to a pc press power + volume down.
[HD7 General] sutt359:
If you hold down both Vol buttons at startup you can hard reset ;)
[HD7 General] Jonno2343:
You say it has an SD Card in it? Is it replaceable with a bigger one then? Where is the card located?
[HD7 General] mnd_bg:
I don't think the card is visible. That would be too easy

It must be hidden somewhere so unless you have a proper equipment and don't care about the warranty...
[HD7 General] red.on.fire:
it's under the back case (bottom section with the windows logo on it)

just be warned, changing the sd card requires a phone wipe
[HD7 General] lumpaywk:
This is documented in the why no sd card thread. I am personally going to upgrade to 32gb this xmas when my wife buys me a card :) I cant wait this will make the pone perfect.
[HD7 General] Jonno2343:
Yeah, but this thread was created before anyone knew that there was an actual SD card in the device.
[General Questions and Answers] benisperry:
I recently have acquired a thread with over 1000 texts on it and is starting to become laggy. When I go to delete it, it just sits there with the loading sign forever. I've tried doing it overnight and everything, nothing works. Is there anyway to get this thread delete off my phone? Thanks in advance.
[EVO 4G Q&A, Help & Troubleshooting] sk8borderx:
Hey guys I have a rooted evo with backed snacks rom u have a question though about system updates... I keep getting a message that says theirs a FOTA or something update available... Should I just ignore it every time it pops up or should I accept it... Also if not is there a way to disable the update message?

Thanks guys
[EVO 4G Q&A, Help & Troubleshooting] wmdunn:
Leave all the updates alone, or you will lose root.
[Galaxy S I9000 General] nandihno:
WOOPI doo

:P

infact the combination of the jp6 (Nordic) + Voodoo is so freaking awsome that i doubt Froyo a la Samsung will be as good.

but yea i will upgrade when the time comes.

not expecting a big bang on this FroYo though
[Galaxy S I9000 General] sostennis:
Not before time!!! Why are we in Aus always one of the last to get new firmware?
[Galaxy S I9000 General] Nitephyre:
Coz we're the arse end of the earth :D
[Galaxy S I9000 General] skuzy:
good news to hear..!! =] =]

right now im stuck between either waiting for the official release or flashing route..??

so far have done only the 3BR fix.. lol
[Galaxy S I9000 General] ickyboo:
MEH. Oddly Optus has been very quiet over all this lag/firmware issue til now :P
[Galaxy S I9000 General] keno_ro:
I have to contradict you on that: Romania is getting it last...always (coca-cola).
[Droid Incredible Q&A, Help & Troubleshooting] ainzwurth:
So I searched and cant find an answer on any forum so far. With Cyanogen and Shadowrom any time I plug it into a charger, I get constant reboots. Can anybody tell me what is wrong and how to fix it?

Richie
[Droid Incredible Q&A, Help & Troubleshooting] Pons:
Try one of the new Cyanogen nightlies.
[EVO 4G Q&A, Help & Troubleshooting] MadDogMaddux:
OK, so I'm a bit of a n00b here, and I need just a quick hand.

I'd flashed Myn's Warm TwoPointTwo a few days ago and was attempting to use metamorph to tweak the battery icon. Ran a Nand backup beforehand. Something went wrong with the metamorph and I was stuck in a bootloop afterwards.

So I hit power and held down on the volume rocker, hoping to get into my Nand.

Instead, it wouldn't let me select anything, went through its own update/recovery process, and now that it's done, I'm back to stock (complete with sprint bloatware) and totally unrooted. I DLed Rom Manager off the market and tried to get into Amon_Ra recovery, but it keeps telling me I don't have permission (thus I deduce I've lost root access.)

Is there anyway I can flash my Nand at this point, or do I need to go back through the rooting process?

Thanks for your help.
[EVO 4G Q&A, Help & Troubleshooting] freeza:
To get a recovery on your phone, you need to have root.

To get root need superuser permissions and/or nand unlock

To get nand unlock and superuser permissions you need to go through the rooting process.

If you've used unrevoked 3.21 and have S-OFF. You can flash recoveries and superuser permissions without having to go through any rooting process.
[EVO 4G Q&A, Help & Troubleshooting] MadDogMaddux:
So I guess then what I need to understand is how would I go about flashing the superuser?

edit: at this point I've already gone through the whole rooting process, including unrevokedforever.zip and the additional ENG bootloader. I get into ROM manager, and go to recovery, but the clockworkmod recovery doesn't see my most recent backup. Reflashing to RA recovery, it finds it, but tells me I have to run the recovery via ADB. ???
[EVO 4G Q&A, Help & Troubleshooting] _MetalHead_:
Pretty sure what happened is that you left a stock pc36img.zip on your sd card, leftover from your rooting process. When you booted into hboot, it loaded it automatically and you must have hit update. Not sure what caused your bootloop though.

Check your sd card, and if theres a pc36img.zip on it, delete it. Look for the superuser app in your app drawer, and also check your hboot to see if you're s-off. If you are in fact back to unrooted stock, you can always run unrevoked to quickly root and then you can restore your nandroid, just make sure you have the same recovery that you used to make the nandroid.
[EVO 4G Q&A, Help & Troubleshooting] xNotta:
When you go into the loader (Vol Down + Power) does it say S-Off in the first line?

If it does then you still have root and you can flash the custom recovery's .zip and you will be able to load back into recovery.

If you have S-Off read this: http://xdaforums.com/showpost.php?p=8285266&postcount=1

Flashable SuperUser is located here: http://xdaforums.com/showthread.php?t=682828
[EVO 4G Q&A, Help & Troubleshooting] MadDogMaddux:
Definitely. So now I need to get my microSD card reader and remove it. Can do.

Any idea why both Clockworkmod and Amon_RA are unable to load my backup? Versions for RA should be the same, and I think the same for Clockwork as well.
[EVO 4G Q&A, Help & Troubleshooting] MadDogMaddux:
OK, I deleted PC36IMG.zip, now it just stays stuck in bootloader.
[EVO 4G Q&A, Help & Troubleshooting] MadDogMaddux:
looks like I'm hosed, but here's what I'm learning on Freeza's thread, where I DLed the PC36IMG.zip in the first place:

With the text I've put in bold, looks like I'm hosed in that regard. So I'll just work on rebuilding it piecemeal.

Heh, first time I've tried to recover from a Nand, too. *sigh*
[EVO 4G Q&A, Help & Troubleshooting] xNotta:
If you reflash using the RUU from stock roms .com will that reset your hboot back to the non-dev hboot?
[EVO 4G Q&A, Help & Troubleshooting] tomh1979:
i do believe so, but someone correct me if im wrong, i do know when i unrooted a few weeks ago with the RUU i went to the newest hboot, but now that i'm rooted again im back to the ENG .76 version.
[EVO 4G Q&A, Help & Troubleshooting] _MetalHead_:
Running a RUU will put you at full stock, including radios and hboot.

If you are still stuck, try running the most current RUU and then rerooting.

http://xdaforums.com/showthread.php?t=800582
[EVO 4G Q&A, Help & Troubleshooting] Igotsanevo4g:
RUU's solve everything. No? haha
[EVO 4G Q&A, Help & Troubleshooting] _MetalHead_:
They've sure helped me out of more than a couple binds :D
[Touch Cruise Android Development] mdaffonso:
OK, so I have WM6.1 on my Polaris. Thinking of flashing Android on it, I got Gen.Y Dual Boot, so that I don't lose the stability and some of the functionality of my WM.

I've seen many threads about how to flash Android on the phone. My question is: how do I flash Android WITHOUT losing any of my WM data that's already in the phone.

I've got a 4GB microSD storage card, so I'm guessing storage is not an issue.

Regards.
[Touch Cruise Android Development] l1q1d:
read this
[Touch Cruise Android Development] mdaffonso:
Oh. I thought haret was designed only to run from Windows, and not with dual boot. Thank you. =)
[Motorola Droid and Milestone General] hat007:
plz my touchscreen dont work I search to unlock phone with physical keyboard

help pllllllz
[Vibrant Q&A, Help & Troubleshooting] Tynen:
Are there any lagfixs that are working on the larger NAND chip Vibrants? I've been looking and have come up with an inconclusive answer. I am currently running Bionix Fusion 1.0. I know there is a lagfix built in. Is this compatible with large NAND chip?
[Vibrant Q&A, Help & Troubleshooting] Master™:
You can use voodoo on larger NAND chips.. >> http://xdaforums.com/showthread.php?t=805222
[Vibrant Q&A, Help & Troubleshooting] Tynen:
I've not used ODIN so I'll have to familiarize myself with it. Also it seems that I'll have to reflash Bionix Fusion??
[Vibrant Q&A, Help & Troubleshooting] Master™:
Yeah.. You would have to reflash & it wipes everything
[Vibrant Q&A, Help & Troubleshooting] rogerchew:
yes there is a lagfix for larger NAND chips besides that odin method, it's still in the alpha phase, but you can read up on it here

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

the original conversion of just the /data folder works for ext2 and ext3, i've tried them both. the experimental versions of the update that convert /dbdata and /cache don't work for the vibrant, at least not for me.

there's also the lagfix that ryanza has up on the market called "one click lag fix" that's easer to use, you might want to give that a try.
[Vibrant Q&A, Help & Troubleshooting] sleeplessfreek:
Unfortunately, my Canadian Bell Vibrant bricked when i was listening to music (seriously dont know how that happened). After doing some searching on this forum, i found it was just a soft brick which can be fixed either with recovery mode or Odin. For some reason, since the brick, my recovery mode has been disable, however, the download mode still works (yay:D). After reading about all the warnings of using Odin, i decided to make sure everything was ok before taking the plunge.

Will the Odin files posted for the Tmobile T959 work on my Canadian Bell Vibrant (i dont want my soft brick to turn into permanent)?

Is Odinv1.000 or Odin1.3 more reliable? ive heard of it bricking phones and without my recovery mode... im kinda hesitant to do it.

Lastly, does anyone know a safer way to get my phone fixed? My phone was unlocked and rooted prior to bricking so im guessing theres no way to get the company to completely fix it. Well, i guess i could act stupid and get them to look at it?

What do people normally do with phone bricked due to tampering with firmware?

Ive seen the video tutorial for Odin and it looks fool proof so i really want to try it.

Any help with this would be great :)
[Vibrant Q&A, Help & Troubleshooting] sleeplessfreek:
bump

It would be great if someone could help me out
[Captivate Q&A, Help & Troubleshooting] gdanko:
I am building Froyo from AOSP sources and was able to pull in the Samsung files from Krylon's github. The build seems to succeed without error but I am getting this when I try to boot the image.

Cannot load library: link_image[1995]: failed to link

Please see the attached pastebin:

http://pastebin.gdanko.net/42

I was told the linker is not properly configured. Any ideas?
[myTouch 3G, Magic General] puce329:
hello i have a rogers htc magic and its been 2 days that I have a problem. I tried to install version 6.0 Cyanogen stable. I will install software on my phone with the application rom manager. Here are my step:

1 - click on the flash recovery clockwork.

2 -download version 6.0 Cyanogen Cyanogen on the site.

3 - put on sd card

4 - click in Roma manager install a rom from the sd card.

5 - reboot phone.

and now my phone restarts and the problem happens on the logo of the company (me that rogers (canada)) then after all the logo is an image and black on the bottom left is marked clockworkmod v. 2.5.0.1 (it is marked this up to 1 second) then the phone restarts and the process is always redone.

tank you