Hio
I wanted to ask gently, if someone is in a position to build a kernel that allows the SD card to be formatted in ext(2,3,4)?
I've pushed a 32GiB card into the tablet, and it would be very nice to move more than 4GiB sized data on the sd card.
Other file systems would of course possible
I have the P6810.
I don't think you need a custom kernel. The internal flash memory is already formatted with ext4 and supports files larger than 4GB. The problem is with the Samsung automatic sd-card mounting which forces fat32 only.
Is it possible to manually unmount/remount the external sd card with ext4 file support via shell or custom app/script?
The kernel's got ext4 support.
To mount the SD card, run the following in a terminal (as root):
mkdir /mnt/sdcard/ext
mount -t ext4 /dev/block/mmcblk1p1 /mnt/sdcard/ext
Your SD card will then be mounted in the ext directory on your Internal drive.
Related
Hi, i use an 8gb sdcard with ext partition but I bought a 32gb sdcard and I´d like to copy the content from the fat and ext partitions to the new 32gb sdcard...
I have ubuntu in vmware because I´m a windows´ user.
Can I format the 32gb sdcard in the bootloader with fat and ext partition then copy the ext content of the 8gb directly to the 32gb ext partition so as the fat content?
thanks!
paolobacci said:
Hi, i use an 8gb sdcard with ext partition but I bought a 32gb sdcard and I´d like to copy the content from the fat and ext partitions to the new 32gb sdcard...
I have ubuntu in vmware because I´m a windows´ user.
Can I format the 32gb sdcard in the bootloader with fat and ext partition then copy the ext content of the 8gb directly to the 32gb ext partition so as the fat content?
thanks!
Click to expand...
Click to collapse
How this relates do you using things in a VM I'm not going to try to figure out, but you should be able to attach the device in whatever method necessary..
Partition the new card the way you want it, format the ext3, and I suggest formatting the FAT partition in your phone directly. If you need help here you can ask...
Then simply rsync the contents of one to the other.. I'd use your hard drive as the intermediate storage location... Let's say your card is sdc when mounted..
# Created the paths we need to use..
mkdir ~/oldcard ~/oldcard-ext /mnt/sdcard /mnt/sdcard-ext
# old fat files to intermediate storage location
mount /dev/sdc1 /mnt/sdcard
rsync -va /mnt/sdcard ~/oldcard/
umount /dev/sdc1
When it's done, poke through ~/oldcard, make sure it appears to all be there, particularly make sure there's no extra layer of subdirectories, ie: if you ls ~/oldcard you see just one directory which contains the rest of the stuff. If so, fix it.
Do the exact same for the ext partition, but make it a different directory of course..
# old ext files into intermediate storage location
mkdir ~/oldcard-ext
mount /dev/sdc2 /mnt/sdcard-ext
rsync -va /mnt/sdcard-ext ~/oldcard-ext
umount /dev/sdc2
To note, you SHOULD already be doing this on a regular basis. Memory cards DO die sometimes.
Then swap cards and reverse..
# move fat files into new card
mount /dev/sdc1 /mnt/sdcard
rsync -va ~/oldcard /mnt/sdcard/
umount /dev/sdc1
# move ext cards into new card
mount /dev/sdc2 /mnt/sdcard-ext
rsync -va ~/oldcard-ext /mnt/sdcard-ext
umount /dev/sdc2
I've broken things out into sections to make it more readable, some steps could be combined etc but didn't want to obfuscate anything.
Thanks, it´s the way I thought
I mentioned the linux in the vm because windows can´t read ext partitions
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.
After formatting the card on linux via gparted, android shows the sd card as damaged and asks me to format it? How does one mount an ext4 card?
I am just guessing, but since the SD has to be compatible as USB Mass Storage Device, it must be formatted in FAT32. Windows for example cannot handle linux/UNIX specific partitions like ext3 or ext4.
Resolved: by switching to the custom ROM Buttered AOKP 4.2.2 [+Aroma] and using its the default kernel. The OTG connected SDCards formatted as either ext4 or FAT32 was automatically mounted with RW accessable. Stickmount was not required. It seems odd that the neither the popular SentinelROM/KTManta nor Tasker650/Trinity Ten custom ROM/kernels would mount the same ext4 formatted SD cards.
I am running custom ROM/Kernel combination Tasker650 TX34 and Trinity Ten. Using gparted I can format an external SD card with FAT32 or NTFS and the SD card is automatically mounted by the N10. Settings->Storage can mount and unmount the OTG connected storage without issue.
If I reformat the SD card as ext4 it is not auto mounted but Settings->Storage does show a "Mount USB" button. Unfortunately clicking on it causes the SD card reader's light to flash but the file structure never show up in "/usbdisk". Note: I have the same problem with "SentinelROM and KTManta".
What is strange is that TWRP can see and mount the ext4 formatted SD card without issue from a "/usb-otg" mount point. File browsing the SD card also works but only in TWRP.
I tried from a terminal session to mount it manually:
> busybox mount -t ext4 -o nosuid,nodev /dev/block/mmcblk1p1 /storage/usbdisk
but it always return the error that "/dev/block/mmcblk1p1" does not exist which is true.
From everything I've read ext2,3,4 formatted SD cards should all be recognized. I am looking to load files greater than 4GB and have full RW access to the SD card. NTFS can accommodate the file size but is limited to Read-Only access.
Maybe the mount point is different for ext4 formatted SD cards but I can't find that mount point. If anyone can shed some light on this issue I would appreciate it.
Thanks
Doug
Hi friends, i installed carbon rom 4.4.2 on my galaxy grand gt-i9082....i have a ext4 formatted 32GB sd card and contains only one primary partition........Carbon ROM detects ext4 card successfully and mounts it at /storage/sdcard1 , but i am not able to copy and write files onto the sd card using an explorer like root explorer or ex file explorer......Now, Carbon rom also mounts it at /mnt/media_rw/sdcard1...but here i am able to copy an write files onto the sd card...But the downside is that When i use MTP to transfer files between my mobile and windows pc, i can see only the sdcard mounted at /storage/sdcard1 from which i cant copy or paste the files.....So how do i make MTP to show the real mounted partition /mnt/media_rw/sdcard1 so that i can transfer files between my computer and mobile.
NOTE: I just found out using mount command that it uses /dev/fuse to mount the sdcard at /storage/sdcard1 but uses the real device i.e. /dev/block/mmcblk1p1 to mount the sdcard at /storage/media_rw/sdcard1.......
Please Help........Any ideas or suggestions to make this work are welcome....