How to mount ext4 formated sd in Overcome ROM - Galaxy Tab General

This article is a google translate from my article in Greek from here: http://fwlia.k0uk0s.gr/2011/07/mount-ext4-formated-sd-android.html
Sorry for any language mistakes
Well, quick and dirty way to mount ext4 file system on the external sd.
1) We need external sd and kernel with ext4 support (Overcome has)
2) Format from a Linux machine the sd to ext4. The best way is to format the sd from a card reader. If you want fat32 partition, put it first and then the ext4
3) Put the card into the device and do boot. The android will grumble that there is a problem with sd, ignore it. If you have the first partition fat32, it will not say anything
4) In the internal sd (the fat32 which has the device from factory) you make a folder called external_sd. Most of you must have the directory
5) You install on android the http://market.android.com/details?id=os.tools.scriptmanager
6) you make a folder in the internal sd named scripts and there you make a text file named mount.ext4 and this content:
#! / System / bin / sh
mount-t ext4 / dev/block/mmcblk1p1 / sdcard / external_sd
7) If you put the first fat32 partition, then change mmcblk1p1 mmcblk1p2
8) Finally, in the Script Manager we installed before, pick the mount.ext4 and tick run as root and run at boot
Reboot and complete.
I have yet to find a way to become the ext4 unmount when the device connect to usb.
Now you can put that hd movies in sd whithout the 4gb per file fat32 limitation. You just need a linux machine to copy them in sd.
Have a nice day

Thanks Alot!
Dude, you are my hero! Hate FAT32 like the plague. Now I can rid myself of it once and for all!

yeah! it's done, good job. but i have some bug to report can not use Mass storage to connect to PC , can be connect by Samsung Kies only.

pisit99 said:
yeah! it's done, good job. but i have some bug to report can not use Mass storage to connect to PC , can be connect by Samsung Kies only.
Click to expand...
Click to collapse
A normal Win PC doesn't know about ext4... As the OP states you'll need a Linux-machine to work with.

Related

problem with sdcard

I have some problem with my external sdcard. 16 gb. I have last froyo xxkp
I have 2 gb of music, backup, wallpapers etc, if i mount sdcard via usb those files exist, if use a card reader those file exist; I can copy , cut and paste folder and files in this sdcard by windows, ubuntu, but astro or root explore can't read this files,i try to formated sdcard with ubuntu (gparted) on windows and my SGS but if copy file by using device all works but if use windows in mass memory device dont' read modifies
that's very interesting
which format are you using?
make sure you use default FAT32 size for the 16GB external SD
yes FAT 32, i try to format without check Fast format in windows xp.
it's stupid... froyo is different
eclair 2.1 = /sdcard/sd
now with froyo is
/sdcard/external_sd
now i seen all files...

[Q] Make Copy Of Sd Card with Ext4 partition

Hello to everybody,
i have an 8 gb micro sd card in my htc hd2 with an ext4 partition that works with a nand rom. Now i would like to have a 16 gb sd card and i would like to copy all the exact content of my 8 gb card on the new one including the ext4 partition with all the files i have in it so i don't have to reset my hd2 and reinstall everything. I hope somebody can help me. I'm running on win vista.
Thanks
me too
I want to know how to copy that partition
thanks..
Geez. Nobody? We have some really bright people on this forum and I'm looking for the same thing.
Before people jump all over me for commenting on a thread that hasn't received a post in over one month....had there been an answer posted, I wouldn't have replied
download a linux boot disk image, ubuntu or something. boot your pc to it in live disk mode, and it can see both your sd card partitions, and copy to/from them. you can use it to partition up the new card with ext4 and fat32 too.
So create your new disk, with empty partitions, and just copy the stuff across. the phone wont know any different.
if memory serves, when you plug in the phone in hard disk mode, the partitions appear after a short while on your desktop as two seperate drives, , if you right click one, choose format(DON'T CLICK OK!) or maybe properties, it will bring up a box, choose disk tools button ((i think, its turned off at the mo, cant check)) and it will give you all the tools you want to create, edit, move resize partitions in fat32 and ext2/3/4.
Even easier...
-Backup your ROM using CWM,
-Create a folder on your computer and copy all the files from the SDcard to the folder (from here on "back-up" will be used to refer to this folder).
-Partition your sdcard with ext4 partition however you want
-Copy contents of "back-up" back to the sdcard
-Use CWM restore function to restore including ext4 partition
Simple and easy.

[Q] Failed to setup APP2SD

Hey guys,
I decided to setup my sd card today cause my phone internal memory was constantly running out. I followed the stickies on how to partition the SD using EASEUS. After I partitioned the app2sd partition, i booted up my phone. The phone says there is no sd card. So i rebooted the phone and mount my SD card through recoverymod. I can still see my sd card and files inside of it, but it only has 7GB left instead of 8GB. EASEUS too only detects only one partition of 7GB. Other then mounting the storage through recoverymod's Mounting USB Storage, the sd card cant be mounted anywhere else. Recoverymod shows Error: failed to mount /sdcard for all functions that require the sd card.
Has anyone came across this problem and fixed it ?
ackz said:
Hey guys,
I decided to setup my sd card today cause my phone internal memory was constantly running out. I followed the stickies on how to partition the SD using EASEUS. After I partitioned the app2sd partition, i booted up my phone. The phone says there is no sd card. So i rebooted the phone and mount my SD card through recoverymod. I can still see my sd card and files inside of it, but it only has 7GB left instead of 8GB. EASEUS too only detects only one partition of 7GB. Other then mounting the storage through recoverymod's Mounting USB Storage, the sd card cant be mounted anywhere else. Recoverymod shows Error: failed to mount /sdcard for all functions that require the sd card.
Has anyone came across this problem and fixed it ?
Click to expand...
Click to collapse
It seems that your sdcard is corrupted.
Try to backup all data and reformat all partitions in linux
Windows can't recognize second partition on sdcard & it can sometimes mess up the partition.
Try GParted (google it).
d4rkkn16ht said:
It seems that your sdcard is corrupted.
Try to backup all data and reformat all partitions in linux
Windows can't recognize second partition on sdcard & it can sometimes mess up the partition.
Try GParted (google it).
Click to expand...
Click to collapse
I tried browsing my SD card through GParted ( linux version and boot cd version), and all of them shows only 1 partition of 7gbs. One G is still missing and sd card still fails to work .
ackz said:
I tried browsing my SD card through GParted ( linux version and boot cd version), and all of them shows only 1 partition of 7gbs. One G is still missing and sd card still fails to work .
Click to expand...
Click to collapse
Did you make a backup of your sd before creating the sd ext partition
? Should be written in each tutorial concerning sd ext creation.
Otherwise your data is no more.
As already written, windows is not able to read a sd ext partition. its fully right, that your fat32 partition shows only 7gb, the other 1gb is used from the sd ext and not viewable by windows.
...to create a sd-ext very easy go into cwm-advanced-format sd card and chose 1gb ext 0 swap.
Sent from my HTC HD2 using XDA Premium App
ackz said:
I tried browsing my SD card through GParted ( linux version and boot cd version), and all of them shows only 1 partition of 7gbs. One G is still missing and sd card still fails to work .
Click to expand...
Click to collapse
Try this :
Backup all data in your micro SD.
Open & boot your computer using Gparted Linux / Parted Magic Linux / any other linux that has GParted / Parted inside its LiveCD
Run Gparted.
Delete all partitions.
Options:
Create sd-ext partition using GParted :
Create 1 fat32 Partition (as Primary) & adjust the size to your liking
Create 1 ext3/ext4 (as Primary...check if your android kernel support ext4) & adjust the size to your liking (usually 1 - 2 GB is enough)
Create sd-ext partition using CW Recovery:
Create fat32 Partition (as Primary...use all space)
Boot HD2 into AD Recovery
Go to Advanced menu
Format & choose sd-ext partition options
Flash your fav. ROM
Notes:
I personally like Parted better than GParted as it's a lot quicker & more advanced options (GParted is only a front-end for Parted).
Parted is for advanced user & TUI.
If you want to try Parted,make sure you read the manual & understand everything related to your actions (open console / terminal & type : man parted)
Use Parted using Root access (open console / terminal & type : sudo parted).
Use it with caution as it can wipe all of your hard drive data !
For more info about Parted try this link :
GNU Parted

failed to mount /sdcard

Hi guys, i know this has come up on here before and i've searched through all the threads but found only a lot of information which is of no use at all.
Ok heres the info on my phone:
HSPL 2.08
Task 29ned
2.15.50.14 Radio
CustomRUU
Magdlr
CWM and also tried TWRP
I've used windows format from recovery (usb mass storage) and also minitool partition starting with fat32 and 32kb sectors then ext3 partition but on mounting it only returns the following:
E: failed to mount /sdcard (Invalid Argument)
Error mounting /sdcard
so far tried fat32, ntfs, ext2, ext3 out of sheer desperation
Any help would be muchly appreciated but i'm assuming it might be the sdcard at fault i really don't know.
Thanks in advance.
Dan
Hi Dan
In minitool, did you set the primary/logical box to primary?
Why ext3?
Also what rom did you install, and what install method?
Robbie P said:
Hi Dan
In minitool, did you set the primary/logical box to primary?
Why ext3?
Also what rom did you install, and what install method?
Click to expand...
Click to collapse
Thanks for your reply, yes both were set to primary, ext3 as that what lots of threads on here advised. Formatted to fat32 first. I can see it on my pc but can't mount it on the phone? Any ideas?
No rom on the phone yet as i can't get the zip files to be recognised as the sdcard can't mount so you can see my problem now.
Am now getting a new error message saying:
E: Unable to write to ums lunfile (No such file or directory)
Thanks
Dan
Hi Dan, best to start afresh with your card. Use this https://www.sdcard.org/downloads/formatter_4/ to format it to fat32, and see if it shows up then.
I don't know of any latest roms using ext3, most use an ext4 partition on the sd card
Anyway, report back
Robbie P said:
Hi Dan, best to start afresh with your card. Use this https://www.sdcard.org/downloads/formatter_4/ to format it to fat32, and see if it shows up then.
I don't know of any latest roms using ext3, most use an ext4 partition on the sd card
Anyway, report back
Click to expand...
Click to collapse
Ok i'm slowly getting somewhere, twrp didn't work, minitool didn't work, cwm didn't work so then i tried the new version of twrp and formatted it on the sdcard which can now mount sdcard on twrp.
The issue i'm having now is that adb doesn't list it under devices. I'm having to use adb sideload as because its been formatted on the phone it can't be seen on the pc? Not sure if thats as i don't have the hd2 drivers on the pc but its got hd2 toolkit installed. Either way i now don't have any way of installing from the rom zips I have.
Thanks
Dan
Hi Dan, I don't think Android Debug Bridge will work if you do not yet have android on your phone (unless it works from twrp). It seems you have magldr installed, can you use usb mass storage to transfer your rom to phone?
Also I do highly recommend using the sd formatter i linked to earlier, but i assume you do not have a card reader, hence doing all from phone.
Best of luck
I had this problem to fix
i installed everything then formatted card to fat32 using mini partition wizard and then did EXt4 and swap partition from Cwm Recovery and it worked just fine
Fix for unable to mount sdcard error
Neurom707 said:
I had this problem to fix
i installed everything then formatted card to fat32 using mini partition wizard and then did EXt4 and swap partition from Cwm Recovery and it worked just fine
Click to expand...
Click to collapse
Just incase anyone has the same problem i had with the never ending unable to mount sdcard problem.
What this turned out to be was cwm would format the card but only a certain area, then if you format with windows it will again only format a certain area that it see with its own file system. Then minitools would have a strange arrangement of differing file systems and changing this by usb connection through magdlr kept creating these problems.
I was trying to use adb to connect the phone to the pc through usb drivers but in the end it simply wasn't worth the effort.
First I went over cwm with the latest version of twrp.
Then I went out to buy a new sdcard simply to get a sdcard to microsd card tool.
Reformat the sdcard (with minitool partition) once in the pc (using the microsd to sdcard tool) to fat32 or fat32 with an ext4 partition if yr doing nand and dataext. Both partitions need to be primary and make sure there are no other partitions on the card this may take a few goes as sometimes you get a random partition or I did anyway.
Then put your rom files on the sdcard using the pc.
Remove sdcard from pc and install in phone.
Boot phone into magldr and choose recovery and this will take you into twrp and simply choose install and find the rom file you want to install.
Don't worry if you have any problems in the rom install you can always go back into twrp and wipe the system which is the rom.
Hope that helps anyone who was experiencing the same issues.
Alternate workaround
I had the same problem others have above. I wound up using a different workaround, and was able to do it with just the phone, a USB cable, and a Windows 7 PC. No SD adapter was needed and there was no need to remove the microSD card from the phone.
I took a stock WinMo 6.5 TMOUS HD2, installed Black LK and TWRP and cleared everything (cache, etc.). Then I used Black LK (very similar to cLK) to re-partition the internal storage to accept my new Android ROM. All I needed at this point was to install the ROM. I tried to copy my Android ROM to a microSD card I had in another phone and then bring it over, but TWRP was unable to read the card. It also couldn't mount the card via USB.
I was able to use TWRP to format the microSD. Then TWRP was able to USB Mount the microSD, but when my PC dectected it, I received a popup indicating that I needed to format the SD before Windows could use it. I said "yes", and allowed Windows to format the card as one big FAT32 partition. It took a few minutes, during which I was a little nervous as there was no progress meter or anything else on either the phone or the PC to indicate it was working. But once it finished, Windows was finally able to access the microSD card and copy the .zip file for the ROM. Once that was complete, I told Windows to eject the microSD, then un-mounted it in TWRP. And, finally, TWRP was able to see the ROM file and install it to NAND from the microSD.
Anyway, thought I'd post it up in case anybody else runs into this and doesn't have a card reader or adapter.

SDCard support file system

Hi, anyone can suggest me for best file system sdcard 128GB that can write more than 4GB files? I think Mi A1 support exFAT file system, but not. I don't like using mysdcard as internal storage.
fachry said:
Hi, anyone can suggest me for best file system sdcard 128GB that can write more than 4GB files? I think Mi A1 support exFAT file system, but not. I don't like using mysdcard as internal storage.
Click to expand...
Click to collapse
Fat format system doesn't support more than 4gb per file transfert
Tour sdcard will be formated in the appropriate format when you'll put in it
Just don't choose the internal option
It will be in ext4 if things haven't changed
Dead-neM said:
Fat format system doesn't support more than 4gb per file transfert
Tour sdcard will be formated in the appropriate format when you'll put in it
Just don't choose the internal option
It will be in ext4 if things haven't changed
Click to expand...
Click to collapse
I have been formating as portable storage my sdcard, but when I check on PC, file system stay on FAT32.
fachry said:
I have been formating as portable storage my sdcard, but when I check on PC, file system stay on FAT32.
Click to expand...
Click to collapse
Well then try to format it on ext4 or NTFS through your PC and see if it is correctly mounted and recognised when you put it into your mia1
Dead-neM said:
Well then try to format it on ext4 or NTFS through your PC and see if it is correctly mounted and recognised when you put it into your mia1
Click to expand...
Click to collapse
I was try to format my sdcard to ext4 from mini partition tools software, but it remains undetected and is only considered a corrupted memory card in stock ROM.
fachry said:
I was try to format my sdcard to ext4 from mini partition tools software, but it remains undetected and is only considered a corrupted memory card in stock ROM.
Click to expand...
Click to collapse
Format your sdcard from your pc (default values)
Enter sdcard in phone
Format sdcard in phone.
Insert sdcard in pc or use an app to check filesystem of sdcard and report back.
alkesh95 said:
Format your sdcard from your pc (default values)
Enter sdcard in phone
Format sdcard in phone.
Insert sdcard in pc or use an app to check filesystem of sdcard and report back.
Click to expand...
Click to collapse
This my file system SDCard after follow your instruction. What the mean about "sdcardfs"?
fachry said:
This my file system SDCard after follow your instruction. What the mean about "sdcardfs"?
Click to expand...
Click to collapse
https://www.xda-developers.com/divi...les-fuse-replacement-will-reduce-io-overhead/
Stock does not support exfat or NTFS. It only support fat32 if you are using custom rom then you can use any format . Fat32 only support upto 4 gb file size.

Categories

Resources