yashsingh1/xdaforums huggingface dataset:
[Epic 4G Android Development] urboy4mbx:
sh ./ubuntu.sh issues

Hello Guys,

I've been fallowing up on this and I am also getting errors when trying to use sh ./ubuntu.sh

this is what I get

Microsoft Windows XP [Version 5.1.2600]

(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\omega>cd c:\sdk\tools

C:\sdk\tools>adb shell

# su

su

# cd /sdcard/ubuntu

cd /sdcard/ubuntu

# sh ./ubuntu.sh

sh ./ubuntu.sh

modprobe: chdir(): No such file or directory

clear: not found

rm failed for -f, No such file or directory

rm failed for -f, No such file or directory

rm failed for -f, No such file or directory

rm failed for -f, No such file or directory

rm failed for -f, No such file or directory

mkdir failed for /data/local/mnt, File exists

clear: not found

rm failed for -/system/bin/mountonly, No such file or directory

Unable to chmod bootlinux: Operation not permitted

clear: not found

Ubuntu Chroot Bootloader v0.1

Ubuntu Bootloader is now installed!

This process does NOT damage Android OS!

To enter the Debian Linux console just type 'bootlinux'

# bootlinux

bootlinux

mknod: not found

losetup: not found

mount: Invalid argument

mount: No such file or directory

mount: No such file or directory

mount: No such file or directory

sysctl: not found

Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4

bootlinux: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexiste

nt

bootlinux: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexiste

nt

Setting localhost on /etc/hosts

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

Created by KellyLewis3985 and BThomas22x!

Brought to you by Team BrokeDick!

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

Shutting down Ubuntu

failed.

failed.

failed.

failed.

losetup: not found

#

Please Advise.....and thanks for the great work!!!!
[Epic 4G Android Development] DevinXtreme:
That's a little misinformed... I have a 28Mbps connection into my house... An 800MB filed takes, at most, five minutes to download for me....

Plus, I don't see how a faulty download would still be able to unzip. Incontinuity would would cause errors in the decrompression, not errors after-the-fact.

Either way, I'm getting the same errors everyone else has. I have su built into my kernel, BusyBox 1.17.0 (the latest Titanium Backup uses is 1.16.0, so obviously not the issue here), and very strong understanding of adb.... Something is sour, but who knows where. I suspect the script is iffy.

Also, if su is a concern, why don't you just write it all into the script? You can declare su and cd to /sdcard/ubuntu all from ubuntu.sh...

I tried running the script manually and it's the modprobe ext2 command that fails. Just an fyi.
[Epic 4G Android Development] epicroot:
I see wat your saying I may try working on a script and see wat come up with won't be anytime soon maybe mid week
[Epic 4G Android Development] epicroot:
Redownload the files seems like theubuntu img file may have corrupted during download.... that's atleast what happened to me if you use winrar to extract it will verify the file and tell you if it is corrupt or not
[Epic 4G Android Development] KellyLewis3985:
It worked for epic just fine, it worked for BThomas just fine and a couple people I know. Its not the scripts. Im thinking certain phones cant handle it. Or its user error not saying you just saying.
[Epic 4G Android Development] DevinXtreme:
Certain phones can't handle the modprobe command? Look at the output errors you're getting... It's not having issues actually booting Ubuntu, it's having issues using the commands in the script that installs the ubuntu.img.
[Epic 4G Android Development] KellyLewis3985:
Like I have stated before, I have around 20 people with this exact same update running on there phone with no problem. We will see what we can do to make this easier.
[Epic 4G Android Development] urboy4mbx:
I did get to read this post after 5PM today Sunday and downloaded the file again (about 1MB per second download speed) but still getting the errors. tried titanium backup like advised but it didn't work. bummer :(

Any more advise??
[Epic 4G Android Development] urboy4mbx:
Question....when you guys add the 6 ubuntu files to sdcard/ununtu do you copy and paste to the sdcard or use the c:\sdk\tools\ command to import??
[Epic 4G Android Development] BThomas22x:
I use the copy and paste... with as much as I'm taking off and putting back on I don't have the time or patience to use adb push... it does the same thing though, so that wouldn't make a difference
[Epic 4G Android Development] KellyLewis3985:
Try these scripts just replace the ones you have.

http://db.tt/LhKAVtL there are more scripts on the next page to try aswell.
[Epic 4G Android Development] KellyLewis3985:
Thomas post the stock scripts for everyone having problems to try.
[Epic 4G Android Development] DevinXtreme:
I'm only trying to help pin the problem. But you can skirt the issue and play the blame game all you want. I'm a developer as well and have experience with debugging. But, whatever. You have 20 successes, but you still have a ton of failures, all getting the same errors, in this thread.
[Epic 4G Android Development] KellyLewis3985:
If your having issues download this and replace your scripts with these.

Im not pointing fingers or playing a game, Im just trying to figure this out.

http://db.tt/PLZTmH9
[Epic 4G Android Development] urboy4mbx:
tried

tried the script with same results :( I will try everything again from step 1 and will let you guys know what happens. Thanks for your efforts!!
[Epic 4G Android Development] KellyLewis3985:
I have been alittle ungrateful to you and I apologize. I appreciate the help, I was up until 6 this morning Hawaii time getting this up for you guys, just alittle tired.
[Epic 4G Android Development] JungleJiujitsu:
I'd like to apologize if this has been asked already but just wanted to quickly ask if Aircrack is able to be ran off of this OS and if not, what are the chances of BackTrack being ported over as well? TIA
[Epic 4G Android Development] tbparker09:
update

after i put the busybox 1.18 (unofficial) it worked. similar errors to it, but it booted. it runs very, very slow, and it doesnt really work for me, lol, but its still pretty sweet. i appreciate all your work guys. i think ill work on cutting the android gui down on ram/cpu and see if i cant make the vnc/linux run a little bit faster. but itll be hard considering its running off of android
[Epic 4G Android Development] spitefulrain:
My download stalled at 758/762 MB -.-

More on topic, I can't wait to try this. I've never tried a virtual machine, or anything linux other than android :p This seems really cool though.

But is there like, a minimum memory required for this? like, internal phone memory? I'm not worried for myself, because I have hardly any apps installed, I just think its a valid question.
[Epic 4G Android Development] BThomas22x:
There's a couple things you can do while iside ubuntu to delete stuff and make it run faster... look into that
[Epic 4G Android Development] BThomas22x:
Sorry about your download, it seems to be a reoccuring theme so I'm uploading on a different server, and as for the requirements, I haven't run into an issue saying it needed more space or anything so I don't know, but obviously the more space you have, the faster it will run.
[Epic 4G Android Development] KellyLewis3985:
After doing alot with this and watching memory uses this is what I've come to. It uses 2gb of sdcard, and roughly about 80mb of ram while running. Everything you do inside the ubuntu stays in the Ubuntu, it all saves to the .img itself. The ubuntu hardrive is the actual .img so have fun, tear it up, modify it just keep an extra .img handy.
[Epic 4G Android Development] spitefulrain:
Im tired as hell, and don't really have time to play around yet, but i did get it working on the first try after finally getting it downloaded :) I am definitely impressed. Ill be looking forward to more updates.
[Epic 4G Android Development] rufflez2010:
Got it working... Very Neat!!! 1 more thing to show the iPhone 4 guy. He was impressed by the screen yesterday and the emulators galore.
[Epic 4G Android Development] BThomas22x:
I'm glad you guys got it working... were already working on another version, while also maintaining the edit of these scripts to get them to work flawlessly. We will update you as soon as we have an update. Thanks.
[Epic 4G Android Development] BThomas22x:
Here... Show this to the iPhone 4 guy :p
[Epic 4G Android Development] KellyLewis3985:
LMAO.
[Epic 4G Android Development] KellyLewis3985:
I did some research and have confirmed that the issues you guys have been having is a corrupt img file. We are looking into a different upload source, dropbox isnt wanting to play nice with everyone. Im sorry for this and as soon as we get it uploaded we will post. For right now if your having problems try downloading again thats the only way to fix it.
[Epic 4G Android Development] urboy4mbx:
I see your point kelly. It makes total sense. Let me know if you find a way arund, I will fallo this thread religiously. :)
[Epic 4G Android Development] epicroot:
I just used a dedicated downloader to download it 3xs on my desktop the .img did notcorrupt once
[Epic 4G Android Development] spitefulrain:
Has anyone else noticed the phone running 100% of the time bug after installing this? or is it just me? I did reboot the phone afterwards to be ubuntu was closed.
[Epic 4G Android Development] urboy4mbx:
ha ha ha ha....nice background!!!!
[Epic 4G Android Development] Djinn23:
Just an update. I just redid with 1.1 and it went well. Very cool. Thanks again. Still a beast and pegs at 100% cpu when I initially connect.. It gets better after a min or two. Nice work.

My performance on my phone had implied this before and I just cycle the phone due to not really knowing better and wanting it done
[Epic 4G Android Development] KellyLewis3985:
Im glad you got it working. Were working on a couple of things for this. We will keep you guys updated.
[Epic 4G Android Development] Djinn23:
Thanks for both of your work.
[Epic 4G Android Development] thomasskull666:
Well I just tried it and it works, I just wish there was a better way than using VNC as it has mucho lag. Ah the wonders of RDP... Oh well I guess that is the price you pay for open source vs. Microsoft!
[Epic 4G Android Development] BThomas22x:
You are most certainly welcome my good man. Thanks for the appreciation. :)
[Epic 4G Android Development] mrkrabs:
stuck at bootlinux...the sh ./ubuntu.sh seems to work, but the bootlinux never does,,

Microsoft Windows [Version 6.1.7600]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Chris>cd\

C:\>cd sdk/tools

C:\sdk\tools>adb shell

adb server is out of date. killing...

* daemon started successfully *

# cd /sdcard/ubuntu

cd /sdcard/ubuntu

# sh ./ubuntu.sh

sh ./ubuntu.sh

modprobe: chdir(2.6.29): No such file or directory

←[H←[Jmkdir: can't create directory '/data/local/mnt': File exists

←[H←[Jrm: invalid option -- /

BusyBox v1.18.0.git (2010-08-11 01:17:17 CDT) multi-call binary.

Usage: rm [OPTIONS] FILE...

Remove (unlink) FILEs

Options:

-i Always prompt before removing

-f Never prompt

-R,-r Recurse

chmod: README.txt: Operation not permitted

chmod: bootlinux: Operation not permitted

chmod: fsrw: Operation not permitted

chmod: mountonly: Operation not permitted

chmod: ubuntu.img: Value too large for defined data type

chmod: ubuntu.sh: Operation not permitted

chmod: unionfs: Operation not permitted

←[H←[J

Ubuntu Chroot Bootloader v0.1

Ubuntu Bootloader is now installed!

This process does NOT damage Android OS!

To enter the Debian Linux console just type 'bootlinux'

# bootlinux

bootlinux

mknod: /dev/loop5: File exists

mount: Stale NFS file handle

net.ipv4.ip_forward = 1

Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4

bootlinux: cannot create /data/local/ubuntu/etc/resolv.conf: remote access faile

d

bootlinux: cannot create /data/local/ubuntu/etc/resolv.conf: remote access faile

d

Setting localhost on /etc/hosts

bootlinux: cannot create /data/local/ubuntu/etc/hosts: remote access failed

Created by KellyLewis3985 and BThomas22x!

Brought to you by Team BrokeDick!

chroot: can't execute '/bin/bash': Stale NFS file handle

Shutting down Ubuntu

failed.

losetup: /dev/loop5: No such device or address

#
[Epic 4G Android Development] epicroot:
Curropted img file mate try downloading with a dedicated downloader on ur desktop then transfering
[Epic 4G Android Development] spitefulrain:
May want to consider adding the steps to removing to the OP, just for convenience and ease to fine.

But FWIW, easy to install, and easy to remove if you have everything thats needed.
[Epic 4G Android Development] KellyLewis3985:
This is true anytime you see that its a corrupt img with this mod. Or you need to reboot your phone and try again.
[Epic 4G Android Development] BThomas22x:
You need to type "su" after adb shell... allow superuser permissions.
[Epic 4G Android Development] spitefulrain:
After uninstalling ubuntu using the instructions on page 3, the issue is gone :) I plan on installing it again later, and will post results. Here's hoping it was a 1 time thing.
[Epic 4G Android Development] KellyLewis3985:
Not saying this doesnt exsist but I personally have had this on my phone for a couple of weeks with no problems
[Epic 4G Android Development] KellyLewis3985:
If your having this problem try rebooting your phone then starting the install. The only times I could get this error was, 1. Corrupt img 2. I didnt type su after adb shell. 3. I moved my img to a different folder. The last way I got it was after putting the files on my sdcard my sdcard dismounted a reboot fixed this.
[Epic 4G Android Development] BThomas22x:
Like KellyLewis3985 said ...try rebooting the phone, but before you reboot, try this: after typing "adb shell", type "su" ...You have to allow superuser permissions or it wont boot. If that doesn't work, THEN reboot your phone and try again. From this code, i see that you didn't allow superuser, so try that, and post results.
[Epic 4G Android Development] epicroot:
Didn't catch that su wasn't typed in like btthomas and kellylewis said. But if that doesn't work most likely a corrupted image.

On another note I've bee running this since Saturday with really no problems at all. Only issue I've found is that say I want to type in the ubuntu shell sudo -aptget I can not get the - symbol to come up. When I press Fn and w only w come up can not get the - to. Anyone know what I'm missing here

Besides that my phone now officially makes iphone look like a *****!
[Epic 4G Android Development] KellyLewis3985:
You have to hold the function key and press m.
[Epic 4G Android Development] BThomas22x:
Just re-posting this because of the updates to it. :)
[Epic 4G Android Development] epicroot:
Ahh missed that ty makes life easier
[Epic 4G Android Development] BThomas22x:
Not a problem
[Epic 4G Android Development] epicroot:
Wish they made an external usb mouse for our phones.. that's a million dollar idea

©epicroot 2010. External usb mouse. Lol
[Epic 4G Android Development] KellyLewis3985:
Maybe a bluetooth mouse will work.
[Epic 4G Android Development] epicroot:
Possibly but they usualy come with their own usb stick reciever that has the drivers etc with in it.... but definatley something I'm going to look into
[Epic 4G Android Development] epicroot:
Double post
[Epic 4G Android Development] Djinn23:
Quick update. After using for a short period I appear to loose all gui functionality except moving the mouse and dragging windows. Now that I am thinking all I did was crank the mouse acceleration. I will undo later and report back. Anyone else seen this?
[Epic 4G Android Development] KellyLewis3985:
I will take a look at it aswell.
[Epic 4G Android Development] ecker2008:
Awesome work guys! I'll be giving this a try soon...
[Epic 4G Android Development] BThomas22x:
As will I. Thanks for pointing it out.
[Epic 4G Android Development] dfitzpatrick:
Is there any reason someone needs a full OS on their phone? I mean, other than because you can :-)
[Epic 4G Android Development] BThomas22x:
Thank you. We spent countless hours working on the update, so thanks for the appreciation, it actually means a lot. KellyLewis and I stayed up till 6 in the morning all weekend trying to figure it out lol. But again, thanks.
[Epic 4G Android Development] KellyLewis3985:
Its more of a because I can thing. But in the future it might have some real uses.
[Epic 4G Android Development] BThomas22x:
Yes, Real uses such as rooting someone elses phone from your phone. Now wouldn't that be something?
[Epic 4G Android Development] epicroot:
Only time I lost functionality was when I was using set cpu I had min @200mhz and max at 800mhz seemed to create severe lag and once screen went off and came baxk on all I could do was move mouse/zoom

Just my 2 cents if you use setcpu just oook into it
[Epic 4G Android Development] Djinn23:
Good thoughts here. Thanks. As a test I booted it last night and left it on the charger. It was fine untill I launched ff to try to find a new desktop. Then it occured to me that it may be the ff thing noted in the thread.

Also, is there presently a way to shut it down outside of cycling the phone? A shutdown comman from term seems to just stare at me. Is anyone keeping it running and finding their phones reasonably responsive?
[Epic 4G Android Development] epicroot:
I've left it running for an hr or 2 besides big battery drain I was still able to make phone calls mms/sms and use the android browser without any noticable lag... havnt tried angry birds with it running tho.. but I will try 2nite and let everyone know...

What command are you using for shutdown?
[Epic 4G Android Development] Djinn23:
I am a little rusty but "shutdown now" from the ssh sesion in the terminal should have done it I think.
[Epic 4G Android Development] epicroot:
I'm not sure but give shutdown -r now a tryI know this command works in adb shell not sure abot a terminal tho
[Epic 4G Android Development] BThomas22x:
The command prompted in the scripts for shutdown is "exit", but as of right now we're working on this issue because it won't shutdown fully without reboot.
[Epic 4G Android Development] epicroot:
Makes sinc3
[Epic 4G Android Development] ccline84:
I just wanted to say that what you all are doing with these Android phones continues to blow my mind, day in and day out. I remember when I got my first windows mobile phone back in my early days working with Sprint ( PPC-6700 ) and thinking it was the coolest thing ever. After many custom ROM installs later, I had everyone I knew and all the guys at my store tinkering with their pocket pc's. Now look where we are. Booting up an alternate OS on our phones. It's amazing... the phone's are amazing ( have the Epic now obviously ) the devs are even more amazing though! Keep it up guys, I'm definitely donating when I get paid... again, just sitting here in a state of mindf*ck of what these phones and talented dev teams are capable of.

Beyond impressed and can't wait to try it out. Thank you.
[Epic 4G Android Development] BThomas22x:
Thanks man, appreciate the encouragement. :) ...And you're most welcome.
[Epic 4G Android Development] Djinn23:
Disabling

Set cpu helped a lot. (duh)

Also I agree with the really happy guy saying how cool this is.
[Epic 4G Android Development] sammiam:
This really blows me away... EXCELLENT work !!!
[Epic 4G Android Development] BThomas22x:
Thank you
[Epic 4G Android Development] epicroot:
Yeah set cpu is a pain in the ass glad it helped some tho
[Epic 4G Android Development] epicroot:
Would be nice if someone could get a bootloader working possibly like a fake recovery {ie. Clockwork} as where you can just hold down preset keys and it would pop up and allow us to either boot into android os or and alternative os. I'm sure this is very possible...

Way way over my head tho
[Epic 4G Android Development] BThomas22x:
That's actually a really good idea... I'll look into it.
[Epic 4G Android Development] KellyLewis3985:
You might be in luck Amon Ra dropped there source code resently. I will see what I can do about getting. Just to fill everyone in. I am in the middle of transitioning out of the military and I do not have internet right now. It will be about 3 to 6 weeks until im back up and running again, so all updates that I make will be givin to BThomas for him to upload. I will have him post a link to his dropbox you guys help him make it bigger so has enough gb to upload stuff.
[Epic 4G Android Development] epicroot:
Haha if only I could do anything with my ideas. Between my 12 hr workdays and my kids I barely find time for anything. Hah....
[Epic 4G Android Development] epicroot:
Hell you still have your phone mate not like you won't be here at all
[Epic 4G Android Development] BThomas22x:
Correction... I can't look into a bootloader cuz that would only work if it was running off the phone rather than virtual, but ill look into developing a button that runs the code automatically and loads it... we gotta get the shutdown issue fixed first though.
[HD2 General] mmafighter077:
I'm really thinking about the HD7 but I'm also a big Android fan. I personally am teetering on the big hd7 upgrade or waiting for the big thing for Android.

Not asking for a Windows 7 vs Android debate... I'm just trying to see what your thoughts are on getting the HD7... Are you upgrading? Why or why not?

edit: Sorry for the incorrect grammar in the poll. I wish I could edit it.

It's supposed to read:

"I'm not sure, I'll wait to see..."
[HD2 General] Airborne Aircrew:
Don't you think it would be better to ask the question

after

the HD7 is widely available?

It just seems that the question is a little silly when no-one has really had time with the machine...:rolleyes:
[HD2 General] Smailtronic:
It's the same phone with video out and a more restricted OS. Why would I switch?
[HD2 General] apallohadas:
I agree with Smail. Not much of an upgrade really.
[HD2 General] OrionCarl:
it looks like a bull dog licking piss off a stinging nettle, no thanks!
[HD2 General] InfX:
No thanks, primarily because of the WM7. I would probably think of getting a WM7 device IF it was backward compatible with WM6 apps, but now i am not even looking in that direction.
[HD2 General] runningdap:
i wouldnt really say that its an "upgrade". Its more or less the same phone. Tbh i prefer HD2 because of its current "development state"(android and maybe windows phone) and customizations. Hd7 seems more "restricting" to me for some reason :S
[HD2 General] altec1000:
I can think a few positive points:

1. It is less buggy

2. Smoother

3. apps apps apps

4. Over the air updates (very important) and not waiting months anymore

5. It is all integrated. Select a word in a document/web and you can find it instantly on bing. Select an adres directly into your navigation etc etc

6. MS will eventually stop support for WM6.5

7. No developers for WM6.5 anymore (like angry birds)

95% of the people don't care about customising their phone. It just has to work.

iPhone has proven that.
[HD2 General] Airborne Aircrew:
No, iPhone has proven that the lazy, unimaginative people who fall for glitzy advertizing buy iPhones. The number of members here and active members as shown below indicates there is a healthy worldwide market for the smart, inquisitive, adventurous sorts... :D

* Currently Active Users: 9457
(4299 members and 5158 guests)
* Threads: 518,732
* Posts: 7,978,165
[B]* Members: 2,896,068
* Active Members: 424,642[/B]
* Welcome to our newest member, vincent_mulder
* Most users ever online was 15,511, 13th October 2010 at 03:53 PM.