Has anybody got this working?
I've done some searching and a few people have said it works on the Play.
However:
Sent from my R800i using XDA
It works for me. It took me some time to get it working, but now it works. I tried several "ubuntu.img"s and "ubuntu.sh"s and I think I edited the ubuntu.sh that I'm using now and created some folders myself to be able to boot.
If I remember correctly, I used this app to download the files needed. The image that the app downloads is good because you can choose between Gnome and LXDE at startup. I'll post my ubuntu.sh file here so if the one from the app doesn't work and it's different from mine, try mine (it's attached)
All this was on the stock GB rom + kernel
I used the same app.
I tried your file:
Sent from my R800i using XDA
The screenshot isn't very good because it won't let me upload the full sized image. Incorrect filetype or something.
Sent from my R800i using XDA
$ export PATH=/data/local/bin:$PATH
$ su
# cd sdcard
# cd ubuntu
# sh ubuntu.sh
cut: not found
[: not found
[: not found
mknod: /dev/block/loop255: File exists
losetup: not found
mount: Invalid argument
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: mounting /sdcard on /data/local/mnt/sdcard failed: No such file or directory
mount: mounting /sdcard/external_sd on /data/local/mnt/external_sd failed: No such file or directory
net.ipv4.ip_forward = 1
ubuntu.sh: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
ubuntu.sh: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
ubuntu.sh: cannot create /data/local/mnt/etc/hosts: directory nonexistent
Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:
eth0: No such device
chroot: can't execute '/root/init.sh': No such file or directory
Shutting down Ubuntu ARM
failed.
failed.
failed.
failed.
failed.
failed.
losetup: not found
# su
# sh ubuntu.sh
cut: not found
[: not found
mkdir failed for /data/local/mnt, File exists
[: not found
mknod: /dev/block/loop255: File exists
losetup: not found
mount: Invalid argument
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: mounting /sdcard on /data/local/mnt/sdcard failed: No such file or directory
mount: mounting /sdcard/external_sd on /data/local/mnt/external_sd failed: No such file or directory
net.ipv4.ip_forward = 1
ubuntu.sh: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
ubuntu.sh: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
ubuntu.sh: cannot create /data/local/mnt/etc/hosts: directory nonexistent
Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:
eth0: No such device
chroot: can't execute '/root/init.sh': No such file or directory
Shutting down Ubuntu ARM
failed.
failed.
failed.
failed.
failed.
failed.
losetup: not found
#
Sent from my R800i using XDA
Does this folder exist on your device?
/data/local/mnt
If not, try creating it yourself, reboot, and see if it works.
I was getting this error too. After that I created some folders that were missing and it worked, but I can't remember which...
EDIT: also check if /data/local/mnt/etc exists, and create that too
Mnt existed but etc didn't. I created etc and got the same errors.
Sent from my R800i using XDA
What kernel and rom do you use?
Sent from my R800i using XDA
Stock kernel and TrueAncestor 1.4.
Sent from my R800i using XDA
Can you post what you get when you run the script without root permissions (before typing su)? Also, try updating busybox, if you don't have the latest version... If you look at the first error, it cannot find the "cut" command...
Sent from my R800i using XDA
Same error without su.
Sent from my R800i using XDA
Do you have busybox installed? What happens if you run "busybox" (in the terminal)?
Sent from my R800i using XDA
leots said:
Do you have busybox installed? What happens if you run "busybox" (in the terminal)?
Sent from my R800i using XDA
Click to expand...
Click to collapse
This:
$ export PATH=/data/local/bin:$PATH
$ busybox
BusyBox v1.16.2androidfull (2010-08-01 14:57:25 EDT) multi-call binary.
Copyright (C) 1998-2009 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.
Usage: busybox [function] [arguments]...
or: function [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as.
Currently defined functions:
[, [[, arp, ash, awk, basename, bbconfig,
brctl, bunzip2, bzcat, bzip2, cal, cat,
catv, chgrp, chmod, chown, chroot, cksum,
clear, cmp, cp, cpio, cut, date, dc, dd,
depmod, devmem, df, diff, dirname, dmesg,
dnsd, dos2unix, du, echo, ed, egrep, env,
expr, false, fdisk, fgrep, find, fold, free,
freeramdisk, fuser, getopt, grep, gunzip,
gzip, head, hexdump, id, ifconfig, insmod,
install, ip, kill, killall, killall5,
length, less, ln, losetup, ls, lsmod, lspci,
lsusb, lzop, lzopcat, md5sum, mkdir, mke2fs,
mkfifo, mkfs.ext2, mknod, mkswap, mktemp,
modprobe, more, mount, mountpoint, mv, nc,
netstat, nice, nohup, nslookup, ntpd, od,
patch, pgrep, pidof, ping, pkill, printenv,
printf, ps, pwd, rdev, readlink, realpath,
renice, reset, rm, rmdir, rmmod, route,
run-parts, sed, seq, setsid, sh, sha1sum,
sha256sum, sha512sum, sleep, sort, split,
stat, strings, stty, swapoff, swapon, sync,
sysctl, tac, tail, tar, tee, telnet, test,
tftp, time, top, touch, tr, traceroute,
true, tty, tune2fs, umount, uname, uniq,
unix2dos, unlzop, unzip, uptime, usleep,
uudecode, uuencode, vi, watch, wc, wget,
which, whoami, xargs, yes, zcat
$
Sent from my R800i using XDA
Updated Busybox and got new errors.
$ export PATH=/data/local/bin:$PATH
$ cd sdcard/ubuntu
$ su
# sh ubuntu.sh
Checking loop device... FOUND
losetup: /dev/block/loop255: No such file or directory
Error: Unable to attach image to loop device! (Image = ./ubuntu.img)
#
Sent from my R800i using XDA
The image unzipped in a folder so I moved it. It's now verifying the checksum.
I wonder what the next error will be...
Sent from my R800i using XDA
. .
. .
What happened? How did it extract? Tell me moar! Getting a new error is good. It seems there was a problem with your busybox installation
Were you using my script when you got this last error? (I'm asking because my script works for me, and I have stock Rom with doomkernel)
Sent from my R800i using XDA
I got it working.
The new error was just the image file being in a folder in the ubuntu folder, so I had to move it.
It must have been a BusyBox problem, it worked after updating it. I think I'm using the file you uploaded.
I've been messing around on it and it works ok. Can you get sound when playing music & videos? I'm assuming it might be possible cos there's a music player.
Also, I couldn't access my SD card, is there a way to do that?
Sent from my R800i using XDA
I don't think VNC supports sound :/ There might be another way though...
As for the SD card, it mounts on /sdcard (in the Ubuntu filesystem. If you select Gnome, you will see it on the desktop! I'd post two screenshots but they are in PNG format and it won't let me post them from my phone
EDIT: here are links to the screenshots on my Dropbox
http://db.tt/TxzhASdX
http://db.tt/Yyu8iwwN
Sent from my R800i using XDA
Hi all.
I have a new issue. I'm close to restoring my htc 816 desire, but when I do a CWM backup it gets stuck:
Checking MD5 sums....
Erasing boot before restore....
Restoring boot image....
Restoring system....
Can't mount /system!
Does anyone know a way to get around not being able to mount /system.
ajcbrown said:
Hi all.
I have a new issue. I'm close to restoring my htc 816 desire, but when I do a CWM backup it gets stuck:
Checking MD5 sums....
Erasing boot before restore....
Restoring boot image....
Restoring system....
Can't mount /system!
Does anyone know a way to get around not being able to mount /system.
Click to expand...
Click to collapse
Flash stock recovery, wipe /system there. Then reflash cwm.
FoxyDrew said:
Flash stock recovery, wipe /system there. Then reflash cwm.
Click to expand...
Click to collapse
Hey foxy, thanks for the advice.
I'm not sure if I can find the stock recovery though. Are you sure it needs to be stock? Can I just have any cwm recovery and format the /system in it?
Edit: Alternately, would the stock recovery be the one inside the cwm backup?
Does anyone know whether I need the stock recovery to format /system? Even with CWM Recovery it should just wipe the OS no? And there's no OS on there currently so it shouldn't affect my ability to boot into cwm or fastboot?
ajcbrown said:
Does anyone know whether I need the stock recovery to format /system? Even with CWM Recovery it should just wipe the OS no? And there's no OS on there currently so it shouldn't affect my ability to boot into cwm or fastboot?
Click to expand...
Click to collapse
Well before performing a restore you should wipe all partitions. But I had assumed you already tried that. So if that doesnt work, you need to flash the stock recovery, which can be found here. Wipe /system there.
If you don't know how to flash a recovery, google it.
And no the stock recovery isn't inside the backup.
FoxyDrew said:
Well before performing a restore you should wipe all partitions. But I had assumed you already tried that. So if that doesnt work, you need to flash the stock recovery, which can be found here. Wipe /system there.
If you don't know how to flash a recovery, google it.
And no the stock recovery isn't inside the backup.
Click to expand...
Click to collapse
Pardon my ignorance, still learning it all. When you say wipe all partitions, are you saying wipe /data, /cache, /radio and so on? The previous time I tried to recover it was getting stuck at checking md5 sums which I solved by wiping the cache.
EDIT: NEVERMIND, googled my partition question. All good
Okay, how do i wipe any partitions in stock recovery? All I get is a phone symbol with a red triangle and excalamation mark on it.
http://i.imgur.com/1fXDo3w.jpg
^ Is this meant to be the stock recovery?
ajcbrown said:
http://i.imgur.com/1fXDo3w.jpg
^ Is this meant to be the stock recovery?
Click to expand...
Click to collapse
Yes
FoxyDrew said:
Yes
Click to expand...
Click to collapse
Thanks, I couldn't find that you needed to hold down the volume up button and tap power to get the blue menu thing. Only found it on HTC One forums :S.
ajcbrown said:
Thanks, I couldn't find that you needed to hold down the volume up button and tap power to get the blue menu thing. Only found it on HTC One forums :S.
Click to expand...
Click to collapse
It seems like whenever I can mount /system, my recovery will crash after a few actions are performed . And it doesn't crash when I can't mount /system. I've tried wiping the partitions, not sure what else I can do unless changing to TWRP would fix anything, don't know if it would though.
Anyone got an idea of how I can get around /system being a pain? I'm almost out of ideas. I don't get it, the internal sd card isn't broken because I can push files to it, but I can't mount /system even after formatting it
Also: Stock recovery only gave me the option of wiping data and cache, not system.
FoxyDrew said:
Yes
Click to expand...
Click to collapse
Hey bud, I might need your help a bit further
1: I don't think the cwm restore I was using is the correct one because /system won't mount at all when I try to install it.
2: I tried installing this instead: http://forum.xda-developers.com/showthread.php?t=2712315 . I flashed the boot.img that comes in the rom download, not the seperate boot.img listed because I can't download it from that chinese site, and then installed the rom and it installs fully but boots back into HTC logo and doesn't progress.
3: Could I fix my issues with an OTA update? I now know how to install them using stock recovery, but I don't have the OTA update on my phones internal memory. Is there a manual download?
ajcbrown said:
Hey bud, I might need your help a bit further
1: I don't think the cwm restore I was using is the correct one because /system won't mount at all when I try to install it.
2: I tried installing this instead: http://forum.xda-developers.com/showthread.php?t=2712315 . I flashed the boot.img that comes in the rom download, not the seperate boot.img listed because I can't download it from that chinese site, and then installed the rom and it installs fully but boots back into HTC logo and doesn't progress.
3: Could I fix my issues with an OTA update? I now know how to install them using stock recovery, but I don't have the OTA update on my phones internal memory. Is there a manual download?
Click to expand...
Click to collapse
What model do you have?
FoxyDrew said:
What model do you have?
Click to expand...
Click to collapse
816x dual sim international version. As far as I can tell, it's /system causing problems. If it mounts, my recovery crashes after I select a few things, when I can't mount it the recovery won't crash. If I flash twrp or Philz recovery it crashes after i select one thing :/. I'm confused as to whether it's a fixable software issue or a hardware issue, because right now I cannot boot into any rom.
I took a look at the log file when installing the following rom: http://forum.xda-developers.com/showthread.php?t=2712315, the concerning things I found are:
set_perm: chown of /system/vendor/media to 0 2000 failed: No such file or directory
set_perm: chmod of /system/vendor/media to 755 failed: No such file or directory
set_perm: chown of /system/vendor/pittpatt to 0 2000 failed: No such file or directory
set_perm: chmod of /system/vendor/pittpatt to 755 failed: No such file or directory
set_perm: chown of /system/vendor/pittpatt/models to 0 2000 failed: No such file or directory
set_perm: chmod of /system/vendor/pittpatt/models to 755 failed: No such file or directory
set_perm: chown of /system/vendor/pittpatt/models/detection to 0 2000 failed: No such file or directory
set_perm: chmod of /system/vendor/pittpatt/models/detection to 755 failed: No such file or directory
set_perm: chown of /system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7 to 0 2000 failed: No such file or directory
set_perm: chmod of /system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7 to 755 failed: No such file or directory
set_perm: chown of /system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6 to 0 2000 failed: No such file or directory
set_perm: chmod of /system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6 to 755 failed: No such file or directory
set_perm: chown of /system/vendor/pittpatt/models/recognition/face.face.y0-y0-22-b-N.bin to 0 0 failed: No such file or directory
set_perm: chmod of /system/vendor/pittpatt/models/recognition/face.face.y0-y0-22-b-N.bin to 644 failed: No such file or directory
set_perm: chown of /system/xbin/vold to 0 2000 failed: No such file or directory
set_perm: chmod of /system/xbin/vold to 755 failed: No such file or directory
set_perm: chown of /system/lib/modules/s2w_mod.ko to 0 0 failed: No such file or directory
set_perm: chmod of /system/lib/modules/s2w_mod.ko to 644 failed: No such file or directory
set_perm: chown of /system/etc/init.d/KingSenseGMD to 0 0 failed: No such file or directory
set_perm: chmod of /system/etc/init.d/KingSenseGMD to 755 failed: No such file or directory
set_perm: chown of /system/etc/init.d/99superuser to 0 0 failed: No such file or directory
set_perm: chmod of /system/etc/init.d/99superuser to 755 failed: No such file or directory
Is this normal since I have no OS currently, or should it be setting permissions in the system files it should have written?
Interestingly the end of the log ends: "Installer Sucessfull (Status 0)", so I thought that would mean it's all okay.
The only other thing that is probably holding me back from booting into the rom after it's "succesfully installed" is that I can't download the damn boot.img from this link: http://pan.baidu.com/s/1sj0LRRZ , but I'm still concerned about the /system playing up.