yashsingh1/xdaforums huggingface dataset:
[HD2 Android Q&A, Help & Troubleshooting and Genera] Archer:
I'm currently using this build...

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

It's running very nicely now (was slow whilst setting up at first, but a few reboots sorted that).
[G Tablet General] BO7AMZA:
is there is another way to boot ubuntu on gtablet other than through vnc

iv tried it its slow sluggish none responsive

my question if im able to create a ubuntu image from source released by TNT

is there is a way to boot it instead of android not dual boot i mean boot full

ubuntu

excuse my English
[G Tablet General] rcgabriel:
I don't think anybody has done it yet, probably because we just got source for the kernel a few days back and are busy trying to work out kernel issues and get the source merged up with more recent patches, etc.

But I imagine this approach used on the Tegra 2 dev kit would work, with the patches from Viewsonic/TNT: http://developer.nvidia.com/tegra/forum/workaround-run-ubuntu-now

There's also this stuff: http://www.carrypad.com/2010/10/01/hacked-toshiba-ac100-ubuntu-10-10-is-running/

Again, you'd need to build your own kernel that would work with that.
[General Questions and Answers] bjornj:
Hi to all who can help me,

I bought my galaxy S 2 months ago in belgium.

My SGS is rooted and i wanted to change my home screen with SGS tools and then i got the brick that my phone stucks at the "galaxy s gt i-9000" screen.

1) I can't put it into dl mode, i tried everything:

-3 btn way ( all the possible ways, pwr+hme+ vol up, pwr+hme+vol down, get out the battery and then try it, plug into usb)

-adb.exe doesn't recognise my sgs

2) when i could get into dl mode what do i have to do to save my phone and all the docs and calendar on it? or isn't this possible

3) How do i unbrick my phone?

thanks!!
[General Questions and Answers] MДЯCЦSДИT:
Try posting on the i9000 forum :)

Sent from my Epic that craves frozen yogurt
[General Questions and Answers] MДЯCЦSДИT:
And also, you will lose your contacts, apps, etc. unless you synced them with google. When you reflash to stock, your phone will be the same as you got it. Thank this post if it helped :)

Sent from my Epic that craves frozen yogurt
[Android Software Development] macgyver2004:
Hello

I got a strange problem with account on the exchange server.

I've connected already one account without problems

but when I'm connecting second one it asks me to enter

PIN or a password to lock the phone.

These are 2 accounts on the same server with identical

security policy.

If I enaple pin or password the acoount is synchronising if

I wont enable it isn't working.
[Nexus S Android Development] DebauchedSloth:
These patches add ext4 support for your sdcard (in the Nexus S - the internal card.) There are a number of reasons you might want to do this - performance (ext4 is faster, plus mounting ext4 is basically instantaneous, which is very nice on reboots...no more checking sdcard), it's more efficient, you get a bunch of file system security features (if you care...)

You should not apply them if you don't really know what you are doing. The patches are resonably benign. Converting your sdcard partition to ext4 is NOT NOT NOT benign and you can really hose yourself doing it.

I'm not going into great depth with these instructions. If you don't understand them, play around with building cyanogen, installing it, etc until they are crystal clear.

To swap your sdcard to ext4:

* Apply the patches and rebuild cyanogen. Rebuild it. They will change your recovery image and vold.

* Install vold and flash (and/or boot) the recovery image.

* Boot into recovery, mount your sdcard and back it up to your computer (i.e., not nandroid, copy the files.) Nandroid would be a good idea too.

* Format your media partition to ext4 (the one that is vfat, by-name is media, mine is partition 3) mkfs.ext4 can be found by googling, or you can use make_ext4fs from /system/bin. I used mkfs.ext4.

* You should be able to manually mount that.

* Push your files back.

* sync and reboot.

Et Voila, you should have an ext4 sdcard partition.

THIS IS VERY DANGEROUS.

YOU CAN REALLY HOSE YOURSELF DOING IT.

Here are the patches:

http://review.cyanogenmod.com/#change,1705

This one adds ext4 support to vold, thus allowing gingerbread to mount ext4 partitions for the sdcard (which on the Nexus S, is the 'media' partition.)

and:

http://review.cyanogenmod.com/#change,1716

This is a change to recovery, making it seamlessly mount ext4 partitions for /sdcard.

# mount
/dev/block/platform/s3c-sdhci.0/by-name/system on /system type ext4 (ro,noatime,barrier=1,data=ordered,noauto_da_alloc)
/dev/block/platform/s3c-sdhci.0/by-name/userdata on /data type ext4 (rw,nosuid,nodev,noatime,barrier=0,data=ordered)
[b]/dev/block/vold/179:3 on /mnt/sdcard type ext4 (rw,nosuid,nodev,noexec,noatime,barrier=1,data=ordered,noauto_da_alloc)[/b]
/dev/block/vold/179:3 on /mnt/secure/asec type ext4 (rw,nosuid,nodev,noexec,noatime,barrier=1,data=ordered,noauto_da_alloc)
tmpfs on /mnt/sdcard/.android_secure type tmpfs (ro,relatime,size=0k,mode=000)
[Nexus S Android Development] DebauchedSloth:
....and if you turn on USB Storage, the sdcard shows up as an ext4 disk...

As expected, but this is going to be one for the Linux geeks.

Wow, it is VERY nice to have that sdcard mount instantly on boot. VERY nice.
[Nexus S Android Development] jroid:
oh the read/write speeds :D
[Nexus S Android Development] DebauchedSloth:
If anyone is interested in playing with this, I submitted the change to cyanogen:

http://review.cyanogenmod.com/#change,1705

The tricky bit is getting the filesystem created. You can use:

/system/bin/make_ext4fs.

That leaves me with a recovery which will not currently mount sdcard as ext4 unless I fiddle with fstab and mount it myself. On to look at that.
[Nexus S Android Development] DebauchedSloth:
...and, here's a patch to the recovery which will let it mount /sdcard as either ext4 or vfat, making this change reasonably seamless.

http://review.cyanogenmod.com/#change,1716
[Nexus S Android Development] andyandrwew:
i would love to see a Quadrant or a benchmark after this
[Nexus S Android Development] AllGamer:
this is and awesome hack to use with App 2 SD

it'll be lag less

the only annoyance, is that if you want to MOUNT USB on a Windows PC, then you'll need a software to read EXT4

for anyone interested this will be handy

http://www.ext2fsd.com/?page_id=16

i'll definitely be doing this MOD, as i'll be running anything i can from the Internal SD
[Nexus S Android Development] Anderdroid:
So this will only work on CM7?
[Nexus S Android Development] drziddo:
Please some of the genius here may post a step-by-step tutorial or howto for this one? It will be very apreciated.
[Nexus S Android Development] DebauchedSloth:
No, it will work with any build, but you need to rebuild vold in order to get it to mount. The easiest way to get them outside of the CM tree would be to build cm and then copy the vold out and use that. It should work with any ROM.

The latest versions - which are in CM's gerrit - include modifications to the sdcard utility to use fuse to mount the filesystem using FAT semantics (i.e. - bypass security). Frankly, this is a waste. It slows everything down, noticeably, and app problems are few and easily fixed if you know how to fire off a chmod.

I haven't provided step by step instructions since it can seriously hose your phone if you don't know what you are doing.
[Nexus S Android Development] Anderdroid:
Wait so it's a waste? It isn't worth using ?
[Nexus S Android Development] jlevy73:
If done right this would increase the read/write speeds. For example, your boot up time would be much faster and ext4 is more effecient. So it's not a waste but it has to be done correctly otherwise is could do more damage than good
[Nexus S Android Development] DebauchedSloth:
Using the version I posted to CM gerrit, which bounces the file system through fuse and mimics FAT security, is still better than FAT (IMO), but it's not nearly as fast as just mounting the filesystem as Ext4 - though it is more compatible.

I've been running mine mounted as straight ext4 for a couple of weeks. Probably the single best mod I've made to any of my phones. There are occasional app bits that I need to fix manually (such Dropbox resetting file ownership), but it's worth it for the quicker boot up and faster overall operation.
[Nexus S Android Development] diego.stamigni:
Here you find the ROM CyanogenMod 7 compiled for Nexus One with ext4 sdcard mount support:

- https://github.com/diegostamigni/nexus/tree/master/one
[Nexus S Android Development] td0s:
Is the only reason to pipe it through fuse to get it to mount on m$? If so I'm not going to bother - I only use linux almost exclusively these days
[Nexus S Android Development] liorry:
No version for Nexus S?
[Nexus S Android Development] jamiemac1977:
Looking forward to this develpoing, as the ext4 conversion (done via modaco rom beta2 in recoverymode) made a HUGE difference to the galaxy tab i have (halved the loading times of everything). ^^

Unfortunately im far to noob to help out though ...will be keeping a keen eye on it all and learning :D
[Nexus S Android Development] NicholasQ:
Forgive my ignorance, but why don't phones come like this?
[Nexus S Android Development] deyna:
window$ more then likely.

window$ can't even see Linux file systems without special drivers installed.

if i mess this up would it brick my phone? i'm really wanting to try this but i don't want to turn my Nexus S into a paperweight
[Nexus S Android Development] NicholasQ:
so if we did this, would the windows computer be able to read the mounted sd card? is there any other things that would be needed after this mod? or just format to ext4 and be done with it?
[Nexus S Android Development] deyna:
well with [a href="http://ext2read.blogspot.com/" target="_blank"]this[/a] program you'd be able to read from the mounted usb storage but there is currently no driver or program that allows writing to ext4 partitions under windows as far as i can tell
[Nexus S Android Development] NicholasQ:
Ah, I see. So this ext4 mod is basically for people who run linux then?
[Nexus S Android Development] deyna:
That's right ^_^
[Nexus S Android Development] Si_NZ:
I'm quite tempted to format my sdcard as ext4, the warning OP gave kind of scared me off. The thing is, I don't know what the consequences are if I do it wrongly? I originally thought it would be as simple as formatting the sdcard on my Linux laptop as ext4 and use a ROM that supports ext4 sdcard. Does CM7 RC1 support this already?

The reason I want to do this is because I have about 10GB of music on my sdcard, every time I reboot, it takes like 2~3 minutes to boot, really annoys me.
[Nexus S Android Development] DebauchedSloth:
As far as I know, CM has not accepted the patches. Can't really blame them, this is for advanced users.

I'd format the SD card from recovery.

And yeah, the major bonus is at reboot. Since it's ext4, the mount is immediate. I have a lot of stuff on there, and that's huge.
[Nexus S Android Development] j_r0dd:
has anybody else been using this? tempted to patch vold and try myself.
[Nexus S Android Development] Si_NZ:
To me it seems Cyanogen did accept the patches

Somewhat related, so what will happen if the sdcard partition got completely corrupted on boot? Would it be a simple matter of reformatting the sdcard partition as FAT32 again or EXT4 if ROM supports it?
[Nexus S Android Development] DebauchedSloth:
Huh. Cool!

If the sdcard is corrupted at boot, you can reformat it. As submitted, that patchset doesn't support ext4 formatting, so you need to do it elsewhere. The single best place is to do it in recovery. Right now (er...obviously...I don't know the current state of this patch in CM...:p) at least locally, there is no support for ext4 formatting in either place, so I do it using adb shell.

Actually, I have never done it, except for the first time.

Assuming that patchset is live, you boot into recovery, mount the sdcard, tar up and save off the files you want to save, umount the sdcard, format it, remount (manually - I do not believe that recovery has accepted the mount changes), untar the files and reboot. If my patches are active, that sdcard will mount cleanly as ext4.

One other thing to note is that I do not run the patch I submitted; I just mount the ext4 partition directly rather than using fuse. I didn't like the fuse overhead and I'm happy just running a chmod every now and again.
[Nexus S Android Development] drcz_92:
Evo support ??? Runnin miui rom..???
[Nexus S Android Development] deyna:
mounts R/O

i decided to give it a try so i formatted my sdcard, changed the fstab and recovery.fstab entries for the sdcard from "vfat" to "ext4". it boots fine and mounts the sdcard but i can't write to it with anything other unless i'm root.

i tried using the modified vold from a few posts back but then it wouldn't mount at all.

it seems i just need to work out the permissions but i'm not sure how to do that for file systems. i tried chmoding /mnt/sdcard to no avail.

any help would be helpful ^_^
[Nexus S Android Development] rejanmanis:
did u do this on windows or linux?

i wandering that i can work this out with win 7 ( dt i dont have linux )
[Nexus S Android Development] deyna:
Linux of course. Slackware's been my daily driver for a while now.
[Nexus S Android Development] rejanmanis:
Thx for ur info. I'll try to install linux and give a shot :D wish me luck.

Sent from my Nexus S I9020T
[Nexus S Android Development] deyna:
I haven't been able to get it to work fully yet. I think my problem is in fstab.

Good luck though

By the way. Running Linux from a live CD or some such would work. The only problem is that Windows wouldn't be able to even see the sdcard anymore much less write to it without a bit more work on your part.

I prefer Linux to Windows so it's not an issue for me but ymmv
[Nexus S Android Development] td0s:
Slackware FTW :D
[Nexus S Android Development] bubby323:
Could the OP answer a few questions for me?

When I was going this on the Samsung Epic 4G mounting everything in ext4 and trying to dual boot from the SD card, what I had done was make some edits in the kernel for both the system and the recovery working with the init.rc and the fstab to mount and format in Clockwork, couldn't you do the same thing with the Nexus S recovery and system kernel, and just release that instead of posting the directions for doing this so regular community members don't mess up the internal memory on their phone?

You could easily, how I see it, make an update.zip signed with the correct META-INF to flash the updated kernel [you could merge the edits in your own source for MIUI and CM] as well as the vold (in the rom) and flash recovery at the same time, or through fastboot.

Maybe I'll pick up a NS4G and look into this when I get out of school on Monday.
[Nexus S Android Development] art_sn00p:
Profit from ext4:

-overall speed improvements

-no delays when mounting

-ability to store huge files

-it is native for android and no proprietory **** from MS anymore )))

I've just formatted my "sdcard" to ext4 with latest CM7.1.0 and latest recovery CWM5.0.2.3. Almost all is pretty good working.

Permissions are subject for research but I've chmoded /mnt/sdcard to 777 for test purposes.

Problems:

1. Couldn't mount /sdcard within recovery. No problem but have to mount partition manually from adb. Recovery is working well with ext4 sdcard, but couldn't mount it from menu. Guess that it need to be patched to be able to mount ext4. Couldn't find other recoveries for Nexus S. No amonra and other mods.

2. Umask is the biggest problem whatever. For example, Camera application do photos with rw- --- --- (u+rw) only permissons. No chance to view this from gallery. It got permission denied. Don't understand umask logic in android. It always says 000 but typically it is 077 (umask but not bits).

Question is how to deal with umask. All other things is smooth and fast.

And another question is overall permissions within sdcard. 777 is not good but not terrible.

Any ideas? Anybody interested to make deeper research?)
[Nexus S Android Development] melvinchng:
Anyone willing to show me the screenshot of ext 4?

Here is mine without changing to ext4. Just curious how fast is ext 4.

Write 6.9mb/s, read 39.7mb/s using sd tools from market.

Accidentally sent from my Google Nexus S using XDA Premium
[Nexus S Android Development] art_sn00p:
I wonder how to achieve such read speed )) I've got 11Mb-write and 26mb-read on ext4. As for vfat 6mb-write and 20mb-read. Benchmarked by Antutu benchmark from market. Overall index here is 3705 with 1300 overclock and sdcard as ext4.

Don't even see 40mb ))) It greatly depends on writing file size.

Sadly had to repartition my sdcard to vfat again, do not have much time to fix permissions with fool programs. Will take a research about umask lately or security-bypass mounting.
[Nexus S Android Development] melvinchng:
Yeah, everyone shocked by my read.. including galaxy s 2 users @ 20mb.. I use SD speed boost.. dunno will it effects or not.

Accidentally sent from my Google Nexus S using XDA Premium
[Nexus S Android Development] art_sn00p:
It is dangerous to tweak flash based memory here)) In case of breaking sdcard somehow you will not be able to operate your phone 'cause you couldn't just replaceit for 10$. Service will take a long long time. Guess not worth +20mb))
[Nexus S Android Development] Si_NZ:
Maybe try change the owner/group of the sdcard partition instead of messing with permissions?
[Nexus S Android Development] art_sn00p:
I'll do more complex research when my old Desire come back to me a week later. It is more convinient to play with changeable sdcards on second phone than with solid Nexus which is calling, smsing and gtalking every minute ))
[Nexus S Android Development] zequav:
So, right now CM7 and CWR support ext4, but the umask ****s permissions? ****. I use linux exclusively, so using the reliable ext4 instead of the craptastic vfat seems the obvious choice. I wish android was more like linux. Fixing this would be trivial. As it is, I don't know where to start =/
[Nexus S Android Development] ryansito:
Any chance we can get more "Detailed" instructions on how too accomplish this ?
[Nexus S Android Development] art_sn00p:
It is pretty easy. You need a linux box and nexuss. Make a full sdcard backup before proceeding.

1. Plug the phone into linux box, push "use as disk" button and discover plugged partition by doing

linux:#dmesg

in terminal. Let it be /dev/sdb

2. Repartition sdcard if you need by

linux:#cfdisk /dev/sdb

or

linux:#fdisk /dev/sdb

3. Make it ext4 by

linux:#mkfs.ext4 /dev/sdb

That's all! Reboot your nexuss in recovery mode. The first problem is that recovery couldn't mount sdcard but you could do it manually. Just start adb shell in linux box and type

adb:#mount /dev/block/mmcblk0p3 /mnt/sdcard

4. Ok it is mounted and recovery could read it. In adb shell

adb:#chmod -R 777 /mnt/sdcard

. This command make everything world-wide readable-writeable except /mnt/sdcard/.android_secure.

5. Boot your phone up and you are almost lucky.

6. Recover sdcard from backup.

But some applications refuse to properly work and it is matter of permissions. For example camera and gallery got permission denied. Some apps got FC. You have to monitor logcat messages in case of FC or incorrect application behavoir and change permissions accordingly. And do not forget clear app cache after changing permission.

We have done native mounting here with full linux permission scheme. Don't know about "dirty" mounting with fuse to bypass ext4 security. Also don't forget that Windows-based boxes couldn't operate with your sdcard without third-party drivers and software anymore.
[Nexus S Android Development] mamarley:
I tried doing this on my Droid Incredible and the sdcard mounts properly, but none of the applications will load from the sdcard. When I try to move an app to the sdcard, I get a "ASEC FAT mount failed (Invalid argument)" error in adb logcat.
[Nexus S Android Development] Realtyem:
Thanks for the excellent step-by-step. Now we just need the instructions for FUSE and we'll be all set. I know its frowned on but that is what my Asus transformer uses by stock and its very clean solution. I'm not sure of the specifics but when mounted at windows its recognized as a "multimedia device" and doesn't even need to be "ejected". Would someone who knows how please help for those that want the dirty solution.
[Nexus S Android Development] Xziped:
Is there probably a way to monitor the changes on the /sdcard, and if something is new or changed on the sdcard, a chmod will start and set the right permissions?

I googled a bit and found FileObserver, but im not an Developer, so i cant do it myself :(

Is there someone who is willing to try this out?
[Nexus S Android Development] Xziped:
I found an samplecode for FileObserver at http://www.roman10.net/?p=457 :)

Pls can someone modify the code, so that instead of showing the changes, an chmod would be executed?
[Nexus S Android Development] Smasher816:
Just applied this mod the my captivate, and it seems to work fine.

Ill try to make an app based on the above link...

Edit: App Made (see attachment)

Just add the directories you want to monitor, and click start. When it notices that a file has been added then it "chmod 777" it.

By default the app loads up all the sdcard direcories, any changes you make will be saved. (Clear data to get it to relist the sdcard dirs).

Note: Slide to the right to delete an item. Auto startup comming soon
[Nexus S Android Development] Xziped:
Really nice :) .i try it out.

Thx you so much!
[Nexus S Android Development] :
Sounds very interesting... will give it a try on the htc vision - to see how it fits with bootmanager ;)

thx to the posters above :)
[Nexus S Android Development] art_sn00p:
Apparently APP2SD is not working in our case. It seems that patch is needed to make APP2SD work with ext4. But ICS is on the way. It would be wise to wait for 4.0 release (CM9?).
[Nexus S Android Development] Xziped:
For static things like Camera -> Gallery, Downloads it works perfect :)

I only have problems with streaming-content (subsonic).

i think the streaming-app dont let access your sdcard-permission-script the music while its downloading and afterward it dont set the permission.

catlog have only hundreds of errors like this :

su sudb Opening Database

su sudb Database opened

su sudb Database closed

Is there probably a way to fix that?
[Nexus S Android Development] mamarley:
Has anyone managed to get CM7-style apps on SD to work? I have tried reformatting my SD card with ext4, copying all the files back on, and chmoding everything to 777. None of the apps are detected from my SD card, and if I look in adb logcat it says something about ASEC FAT mount failure.
[Nexus S Android Development] Xziped:
You have to compile the ext4-support into vold (see OP).

EDIT : Just compiled and ziped it.

try to put the vold from inside the zip into the cm-zip under system/bin
[Nexus S Android Development] Smasher816:
Yah dynamic streams don't seem to work (sdcard speed test for one).

I don't really care if its dirty. If FUSE fixes the permission problems it would be nice. Any more detail on that?
[Nexus S Android Development] mamarley:
Thanks! I installed your vold (I just "adb push"ed it from recovery instead of putting it into a CM7 zip). The apps will now load from the SD card, but only after I manually unmount and remount the card. They won't load automatically after booting.

This isn't too big of a problem, since I don't reboot my phone incredibly often, but it is still a bit annoying. Do you know what causes this?

Also, which patch(es) did you apply to the CM7 source? I would like to integrate that patch into my CM7 tree, but there were several patches available and I am not sure which one is the latest.
[Nexus S Android Development] Xziped:
I only added the ext4-patch to vold from the OP :)

(Modified android.mk and volume.cpp into system/vold

Added ext4.cpp and ext4.h into system/vold)