yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Q&A, Help & Troubleshooting] Jasiekor:
the fre3vo file is in the same folder as the adb.exe and the path is set to platform-tools ( where the both files are) and it still doesn't work. WHY ? im so furious right now... please help...
[G2 and Desire Z Q&A, Help & Troubleshooting] OriginalGabriel:
Are you running the command from the platform-tools directory? You need to cd to where ever a file is that you're wanting to manipulate, setting the path only matters with commands (ie. what you manipulate with)
[G2 and Desire Z Q&A, Help & Troubleshooting] joeleenus:
Help!

I am having the same issue.

ADB recognizes my device but I cannot push and get the 'cannot stat 'fre3vo': No such file or directory'.

I thought that this is something to do with the path? Here is how I set it:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\%SystemRoot%;C:\android-sdk-windows\platform-tools;C:\android-sdk-windows\tools

Any suggestions would be greatly appreciated!
[G2 and Desire Z Q&A, Help & Troubleshooting] steviewevie:
It's nothing to do with your Path. The Path sets whether Windows can find a command or not, in this case the adb command.

The error message about not being able to find fr3vo is because whatever folder you are running the command from, does not contain the fr3vo file. Where is "fr3vo" located on your PC ? Cd to wherever that is (i.e. so if you type "dir" it shows up), and then run adb from there.

Sent from my Desire Z running CM7.
[G2 and Desire Z Q&A, Help & Troubleshooting] joeleenus:
I have placed the files in: C:\android-sdk-windows\platform-tools

This is where ADB is and I am using command prompt...

Apologies for my ignorance!
[G2 and Desire Z Q&A, Help & Troubleshooting] steviewevie:
Ok, before you run adb, do "cd \android-sdk-windows\platform-tools". That will change your current folder to the one where you've put the files, so then adb will be able to find them.

Sent from my Desire Z running CM7.
[G2 and Desire Z Q&A, Help & Troubleshooting] joeleenus:
Thank you! Apologies for noobiness...
[G2 and Desire Z Q&A, Help & Troubleshooting] b0yhustla:
fre3vo no such file or directory

photobucket(dot)com/albums/t366/b0yhustla/775f98d7(dot)png

photobucket(d0t)com/albums/t366/b0yhustla/f9cb92ef(dot)png

This is what i get and this is how my files are set up what am i doing wrong ?

I have a T Mobile HTC G2

Android version

2.3.4
[G2 and Desire Z Q&A, Help & Troubleshooting] eboy_gb:
I'm no expert, but are you running the command from the same folder that fre3vo is in?

i.e.: in your case, ****-right click in your platform-tools folder and select "open command window here".

EDIT - the forum is blocking the word S H I F T, that should be s h i f t right click
[G2 and Desire Z Q&A, Help & Troubleshooting] helpmeplz55:
Downgrade HTC does not provide "invalid length"

I am trying to downgrade my HTC Glacier (MyTouch 4g) following Setherio's downgrade guide and am running into this problem.

Step should be

> adb shell cat /dev/msm_rotator
/dev/msm_rotator: invalid length

But I get

/system/bin/sh: cat: /dev/msm_rotator: No such file or directory

I ran the command prompt from my platform-tools folder which has the fre3vo and misc_version files in it. I am new to adb and searched the web and XDA for an answer but could only find "permission denied" information related to this step. Thanks in advance!
[G2 and Desire Z Q&A, Help & Troubleshooting] helpmeplz55:
Needed drivers

Turns out I just needed the HTC drivers on my computer. From there things have been smooth so far. Hope this helps anyone running into the same issue. Thanks for looking.
[G2 and Desire Z Q&A, Help & Troubleshooting] anime1987:
no such file of directory

I'm experiencing the same problems as other ppl before me.

I've type in "c:\android-sdk-windows\platform--tools>adb push fre3vo /data/local/tmp cannot stat 'fre3vo' : no such file of directory"

I've moved the fre3vo file to that location also unzipt the file.

but i still get a reply that the file is not there??

what am i doing wrong??

sorry. i was out of this for quite some time.
[G2 and Desire Z Q&A, Help & Troubleshooting] demkantor:
Screenshots can help as well as copy and pasting all input/output from cmd here
[G2 and Desire Z Q&A, Help & Troubleshooting] anime1987:
apparently my anti virus scanner was acting up that why it did not work.

the for replying
[G2 and Desire Z Q&A, Help & Troubleshooting] cwburns32:
Crazy I am trying to downgrade an old G2 and am having exact same issue...

I open cmd from C:\platform-tools with shift+right click method and after trying to push fre3vo it says "cannot stat fre3vo no such file or directory exists." My fre3vo file is in the platform-tools folder on my C drive. The file is there adb just does not see it for whatever reason.
[Eee Pad Transformer Q&A, Help & Troubleshooting] iGBH:
I tried connecting my Transformer to my PC this morning to make copying files to internal memory a bit quicker than using wifi. Assuming it would be like pretty much every other Android device, i just plugged the Transformer in using the supplied USB cable and assumed Windows would recognise the Transformer and download the appropriate device driver.

Unfortunately, it did not recognise the device and came up with that message. So i uninstalled the generic drivers for the unknown device and then installed the Asus PC suite thinking that this would work. Rebooted computer, plugged in Transformer and again same message, device not recognised.

Why isn't this simple? I'm yet to try on another PC. Can anyone suggest any tricks to get this working?
[Eee Pad Transformer Q&A, Help & Troubleshooting] mb02:
Just download the actual USB drivers from ASUS, plug in the TF, right click My Computer then click Manage, select Device Manager from the pane on the left and find the transformer in one of the dropdowns on the main pane. Right click the transformer in the dropdown and update driver, choose to find driver yourself, navigate to the ASUS usb driver folder you downloaded and continue. Drivers should then be installed.

Sent from my creaky Thunderbolt
[Eee Pad Transformer Q&A, Help & Troubleshooting] iGBH:
Thanks for the suggestion. I've tried to manually install the drivers this way and pointing to the inf files to install but windows says they are not a valid driver installation file. I noticed someone else was having this problem in another thread and it was unresolved.
[Eee Pad Transformer Q&A, Help & Troubleshooting] mb02:
Weird. I have win 7 x64 on my desktop and laptop and never had problems installing drivers or recognition problems. Should try connecting to another machine with x64, might be a hardware problem with your machine.

Sent from my creaky Thunderbolt
[Eee Pad Transformer Q&A, Help & Troubleshooting] ondoy1943:
If you run the asus sync or pcsuite application, either one will install automatically the usb drivers.
[Eee Pad Transformer Q&A, Help & Troubleshooting] thebadfrog:
Remove all the drivers you have installed and then reinstall from ASUS. They may be conflicting
[Galaxy Ace S5830 Android Development] skynet28:
It is seen that ext4 with journaling off is faster than any file system but is slightly less reliable. I have successfully removed journaling from my file system and have found no problems. I see a noticeable difference in performance as well. Also Quadrant score jumped up by 100 - 200 points.

Journaling is an ext4 filesystem log service and it involves using memory and data.So disabling journaling means that memory and data used for maintaining this service are no longer used and are available for other processes. Journaling is required in computer hard drives as a precaution for data loss in situations like unclean shutdown in power outage. And I don't think mobile phones which use flash drives ever require journaling.

Credits to hardcore for the tutorial here and to chris41g for the following idea.

Here are the scripts with cwm flashable zips I made to automatically convert a journaling ext4 to non-journaling ext4 and vice versa(to make things easier).They will work on custom kernels with ext4 support.

How to flash

Flash Journaling disabler via cwm manager or cwm recovery to disable journaling.

Flash Journaling enabler via cwm manager or cwm recovery to enable back journaling.

To disable ext4-journaling- Download journaling disabler here

To enable ext4-journaling- Download journaling enabler here

To check whether journaling is enabled or disabled type in adb or terminal after flashing-

# /data/tune2fs -l /dev/block/stl12 | grep features

If "has_journal" is present then journaling is present,i.e,output is

Filesystem features: has_journal resize_inode filetype extent sparse_super large_file

If "has_journal" is absent then journaling is absent,i.e.,output is something like this

Filesystem features: resize_inode filetype extent sparse_super large_file
[Galaxy Ace S5830 Android Development] skynet28:
WARNING: This procedure is risky and may result in loss of data

MANUAL TUTORIAL TO DISABLE JOURNALING credits hardcore

1. Make a backup of your data using cwm.

2. Download the tune2fs zip attached to this post, extract it and copy the extracted tune2fs to /data using root explorer or adb.

3. Go to adb shell and type

$su
#mount | grep ext4

This will give something like this

/dev/stl14 on /cache type ext4 (rw,nosuid,nodev,noatime,nodiratime,barrier=0,nobh,data=ordered,noauto_da_alloc)

/dev/stl13 on /data type ext4 (rw,nosuid,nodev,noatime,nodiratime,barrier=0,nobh,data=ordered,noauto_da_alloc)

/dev/stl12 on /system type ext4 (ro,relatime,barrier=0,nobh,data=ordered,noauto_da_alloc)

/dev/block/mmcblk0p2 on /system/sd type ext4 (rw,noatime,nodiratime,barrier=1,data=ordered,noauto_da_alloc)

4. We have to remove journal from the above partitions,i.e., /cache , /system and /data

So,starting with /cache the following procedure will be repeated for each partition.

a) Checking the partition

# /data/tune2fs -l /dev/block/stl14 | grep features

The output will be

Filesystem features: has_journal resize_inode filetype extent sparse_super large_file

Note the has_journal flag. We have to remove this flag.

b) fsck the partition

e2fsck -f /dev/block/stl14

Output will be-

WARNING!!! Running e2fsck on a mounted filesystem may cause

SEVERE filesystem damage.

Do you really want to continue (y/n)?

Answer yes.If after that it asks to alter the file system you may press ctrl+c

c) Remove the journal

# /data/tune2fs -O ^has_journal /dev/block/stl14

(this is a capital "O"!)

d)Check whether journaling was removed

# /data/tune2fs -l /dev/block/stl14 | grep features

Output should be like

Filesystem features: resize_inode filetype extent sparse_super large_file

So the has_journal flag is now removed.

5) Repeat the procedure for /data and /system partitions

by replacing in the above codes /dev/block/stl13 and /dev/block/stl12 respectively

6) After you have removed journaling from all partitions- reboot.
[Galaxy Ace S5830 Android Development] consegregate:
Better if rom cooks have ext4 with journaling disabled natively, but I guess it's based on opinion..
[Galaxy Ace S5830 Android Development] skynet28:
It would be good...by the way, I have now made cwm flashable zips to automatically disable and enable journaling,hope it works.
[Galaxy Ace S5830 Android Development] CallMeVentus:
Nice guide skynet . ;)
[Galaxy Ace S5830 Android Development] consegregate:
Much easier now. Disabled journal for the time being, seeing if there's a difference in normal usage.
[Galaxy Ace S5830 Android Development] geocine:
What are the requirements to make this work? I tried it on my KPN with internal ext4 partition. Installed it via CWM but installation was aborted.
[Galaxy Ace S5830 Android Development] devilsking:
I tried and it worked well. I will use this for my rom and give u credit. Tks u so much
[Galaxy Ace S5830 Android Development] geocine:
Stupid me I installed the other zip file . Now it works .
[Galaxy Ace S5830 Android Development] CallMeVentus:
I don't actually see any performance boost , but I did get a boost in quadrant scores .

Journaling enabled:

Journaling disabled:
[Galaxy Ace S5830 Android Development] skynet28:
I am not a quadrant fan but thanks for the scores. I went for no journal method because Journaling is filesystem log service and it involves using memory and data.

So disabling journaling means that memory and data used for maintaining this service are no longer used and are available for other processes. And I don't think mobile phones ever require journaling.
[Galaxy Ace S5830 Android Development] royskeyz:
Thanks, flashable zip working.:)
[Galaxy Ace S5830 Android Development] mfirdaus_azizi:
Thanks. The zip is working and my battery usage 'looks nice' so far.
[Galaxy Ace S5830 Android Development] CallMeVentus:
No , thank you for making this :p
[Galaxy Ace S5830 Android Development] consegregate:
Which is why you don't need ext4 for sdcards, journaling on it is a waste of power.
[Galaxy Ace S5830 Android Development] skynet28:
Yes I agree..sdcard ext4 partition is overkill.Ext2 is enough.

But Ext4 in internal partitions is useful because of its unique features like Improved timestamps,Multiblock allocation,faster file system checking which are important for regular and critical system applications and services. But we make sdcard partition for apps which are not system critical and thus not really affect performance .

So I think ext4 without journaling in internal partitions and ext2 in sdcard is the way to go:D
[Galaxy Ace S5830 Android Development] burakgon:
Will this work on sgs?
[Galaxy Ace S5830 Android Development] skynet28:
You can disable journaling in any ext4 file system but here the method is specific for galaxy ace since partitions are different on different phones.So in the tutorial you have to replace the partition location with SGS ones. Better look in your own forums.Hardcore had written the original tutorial.

The cwm flashable files made by me are for galaxy ace only.
[Galaxy Ace S5830 Android Development] mfirdaus_azizi:
Skynet28,

I tried to disable journaling using your zip file but it was only successful for two of my partition.

You can refer to the output from terminal:

$ export PATH=/data/local/bin:$PATH

$su

#/data/tune2fs -l /dev/block/stl14 | grep features

Filesystem features: resize_inode filetype extent sparse_super large_file

# /data/tune2fs -l /dev/block/stl13 | grep features

Filesystem features: has_journal resize_inode filetype needs_recovery extent sparse_super large_file

# /data/tune2fs -l /dev/block/stl12 | grep features

Filesystem features: resize_inode filetype extent sparse_super large_file

#

I tried doing it manually, but my Ace crash and I had to reformat my Acr.
[Galaxy Ace S5830 Android Development] intrax:
Hi,

This worked great on my ace running stock XWKPN 2.3.3 using cf-root kernel b-80 and ext4 partitions.. hopefully see some speed boost...

Thanks for zips !
[Galaxy Ace S5830 Android Development] satti8893:
Is this works on ext3 partition?
[Galaxy Ace S5830 Android Development] gengi:
Ext3 dont use journaling. :-)
[Galaxy Ace S5830 Android Development] Cobra78:
That is wrong, because ext3 is, in simple words, ext2+ Journaling, anyway this method won't work because the way to enable/disable journaling in ext3 is different from the way in ext4.
[Galaxy Ace S5830 Android Development] manan001:
guys i used journal disabling flashcwm. it worked flash successfully .. after flashing do i need to do anything else i use ext4 format.. but after flashin few appliactions which were on sd card dissappared .. please tell me how to solve the problem

thanks in advance

/
[Galaxy Ace S5830 Android Development] invention:
Wow, I flashed the zip and I got a bootloop, don't know why...

Edit. False alarm, works ok.
[Galaxy Ace S5830 Android Development] DaBigFreak:
OK, looks great, but too much code for me :P

I have terminal emulator installed, I can run "su" -> "mount" and see my partitions. One some decent values I can see if ext4 has journaling or not? If yes, this would be a super speed mode to check if the developer of a ROM has disabled journaling or not.

And for the one guy here, even on checking the journal status made him reformat his phone? :eek:
[Galaxy Ace S5830 Android Development] iandol:
skynet28: I think there is an error on line 28 of journalingdisabler script, missing space before -Dfy options:

fsck.ext4-Dfy /dev/block/stl13
[Galaxy Ace S5830 Android Development] ssDen_lol:
I'm using it always
[Galaxy Ace S5830 Android Development] iandol:
Just in case anyone wondered, skynet28 very quickly fixed the typo I saw, thank you skynet28 for an excellent set of instructions and a useful flashable zip!!!
[Galaxy Ace S5830 Android Development] ino-xda:
Not true.

1. Some app writes to flash.

2. The kernel hands modified data to lower layers.

3. Directory/extents are sorted and scheduled to be written by block driver.

4. Parts of data are written to physical hardware.

5. Power failure -> boom goes the data structure, inconsistent state of filesystem!

This can happen with or without journaling. It also depends on the existence of a wear leveling driver below the ext4 filesystem (fs).

A journal helps when booting an unclean fs: file changes will appear to be on disk complete or not at all, but nothing in between. It also makes booting faster, because recovering the journal may be faster than fsck'ing the entire partition.

But a journal is kept in a reserved part of the disk partition, usually at the end, and there a lot of disk writes are concentrated. A kernel level daemon integrates its content into the various parts of files and directories every now and then.

So this type of fs-activity is normally not wanted on flash storage in a low memory embedded system.

---------- Post added at 03:22 AM ---------- Previous post was at 03:10 AM ----------

I bet you won't be the only victim! Messing with a live, mounted filesystem is asking for trouble! Imagine the kernel issueing writes to the flash journal while at the same time switching it off.

The only clean way to do this is unmounting the affected partition, modifying it offline and then remounting it. This is a task for a recovery image.

---------- Post added at 03:38 AM ---------- Previous post was at 03:22 AM ----------

I think such tweaks should be unnecessary in the first place: [bold]Don't trust any ROM that makes ext4 filesystems with journaling enabled on flash storage with no good reason![/bold]

It is easy to switch off the journal at fs creation time, it's just one additional option to the mkfs command. Omitting this isn't just an oversight, it's an indication that the ROM maker didn't think/double check/test his produce.
[Galaxy Ace S5830 Android Development] mor_1228:
so conclusion ?

should we use this or not ? my sdext is on ext3 don't know about the internal as i am using jusada carbon rom beta1.
[Galaxy Ace S5830 Android Development] mor_1228:
To check whether journaling is enabled or disabled type in adb or terminal after flashing-

Code:

# /data/tune2fs -l /dev/block/stl12 | grep features

nothing working for me. no reply from terminal ?
[Galaxy Ace S5830 Android Development] Hatshipuh:
Type su first.
[Galaxy Ace S5830 Android Development] ketut.kumajaya:
My DXKT7/XWKT7 firmware have a different format command. Cek my updater-script in blackhawk-kitchen.zip, but my SD card ext4 partition always have a journaling enabled. Without a journal or formatted in ext2, I always got corrupted filesystem :( Low quality SD?
[Galaxy Ace S5830 Android Development] sergeantgeneral:
I have had no problems with journaling disabled till now.

The phone just feels better with journaling disabled at least for me and so I am sticking with it.

I just googled about journaling in android and

From there what I got is that we get increased speed and battery life but with the risk of data corruption. But that occurs only when we screw up the data partitions or take out the battery without making the phone off. And we can easily restore nandroid to get back the data,if not install a new ROM which are coming out in hordes ...lol.
[Galaxy Ace S5830 Android Development] iandol:
Reboot into recovery mode then using adb shell try to run a disk check on your unmounted non-journalled partition:

tune2fs -l /dev/block/mmcblk0p2 | grep "state"
e2fsck -cf /dev/block/mmcblk0p2

What I've found is *lots* of errors with non-journalled partitions, much less with journalling and they get fixed. I have never removed my battery on a live filesystem, and always "sync" before rebooting...

This is likely to cause random FC and greater instability, without necessarily bricking your OS. And you may not see any problems and have a marginally faster experience (though are there any conclusive benchmarks out there?)
[Galaxy Ace S5830 Android Development] mor_1228:
Nothing working for me plz help
[Galaxy Ace S5830 Android Development] mor_1228:
Working now. What we have to do is first type SU >> enter >> paste that command without #
[Galaxy Ace S5830 Android Development] ashishv:
Can i know that whether this fix is only for galaxy ace or should it work on all other phones?(i have lg optimus one).
[Galaxy Ace S5830 Android Development] nihilista:
I did this commands (on a phone with jouranaling enabled!) in adb shell and got tons of errors (multiply-claimed blocks), but phone runs fine, reformatted and restored with nandroid backup, run e2fsck again (with -n,so no change and clicking horror...) and got tons of errors...

How can this be? Problem with s2e or somewhat? as i said, system runs fine and tune2fs said filesysstem is clean. Anyone who could explain this?

regards
[Galaxy Ace S5830 Android Development] nihilista:
No answers to my question? I'm getting hundreds of errors (multiply-claimed-blocks) and e2fsck stops with error, but only with -f flag. If i scan with -p, it says all is clean....

And reformatting, using another card...all the same, till i dont copy data to it, forced scan without errors, with data on it, mass errors? Maybe a problem with this version of e2fsck (1.41)? I am a bit confused of this, because phone runs fine....
[Galaxy Ace S5830 Android Development] masantula:
This method can work on any ROM and Device right? I have a Nexus one..
[Galaxy Ace S5830 Android Development] panpjp:
I/O increased?
[Galaxy Ace S5830 Android Development] brochador:
are the zip files works on twrp? and will it work also on any android devices?
[Galaxy Ace S5830 Android Development] rocketero:
I have an android tablet, with Android ICS 4.0.4. The tune2fs does not accept the -l or the -O parameters

how do I check if my ext4 partiton on my SDcard has journal ?

Note:

tune2fs --help
Usage: tune2fs [-c MOUNT_CNT] [-i DAYS] [-L LABEL] BLOCKDEV
[Galaxy Ace S5830 Android Development] tlc08071:
Quick Question
[Galaxy Ace S5830 Android Development] Venomous Viper 119:
This must be a sticky ! :D
[Galaxy Ace S5830 Android Development] ChoiceMC:
Soo...

Hi.

So let me get this straight. I'm using JB 4.2.2 - CM10.2 RC5 along with FlyOn-mod v3-RC0 on my GalaxyAce S5830. I have an ext4 partition, but I don't think CM10.1 really uses it, It's just left there from previous ROMs (nitrogen, TheUltimatum...)

So this tweak is for those ROMs, that require a smaller ext4 partition and use it? Or only if your whole sd-card is in ext4 format?

Sorry if it's a noob question :)

Tnx.
[Galaxy Ace S5830 Android Development] erikeleria:
Can the manual method be used on Galaxy Y S5360? I've checked the flashable zip but the directories is different from what I have in my Galaxy Y. Ex: /sbin is not in root dir but inside /system