F2fs or ext4 on external sd card - Galaxy S 5 Q&A, Help & Troubleshooting

Hello all.
Phone, OS and Problem Description
I have some problems with my klte, always running a fairly recent Lineeage OS 14.x ersion. Sometimes when taking photos or having other write access to my external sd card, my phone reboots. It just crashes and the picture taken is not being saved properly. If I mount the sdcard using a microsd-to-sd adapter on my linux machine, I can see the corrupted file.
I them have to put the sd card into a Windows PC (i don't own one, but others in my household luckily do) to clean up the exFAT partition. This is a no go and often very annoying when travelling or being at work. Even TWRP won’t do.
Perhaps the sd card is broken, it's a Transcend Premium 64GiB Class 10 UHS-1 microsd card.
Anyway. I'd like to use ext4 (w/o journal), btrfs or f2fs or any other FS on my external sdcard as the only partition. I can mount and fsck that on my linux and in TWRP.
So, what did I do so far?
I tried f2fs.
Sadly, if i write a folder to such a partition in LOS14 using FX file explorer, it will belong to u1_a12 and the very same app won't even be able to list files in that directory. Yes, the execute bit is missing on that folder. So this won't work.
I tried ext4
Same as above
btrfs perhaps?
I didn’t try it so far.
Does this work with Resurrection Remix, Slim or crDroid? Are there any other options? I loved SlimBean on my Galaxy Nexus, but there isn’t a current official release for klte, sadly.
Any recommendations? I’m open to switching my rom, I had ResurrectionRemix Marshmallow for a year or so on my S5. Also, I’d be open for other ideas how to check my sdcard more thoroughly. Perhaps using badblocks or F3.
Thanks in advance for your opinion and input!

Any progress on this?

Related

[Q] Newbie CM7 n87 SD backup question

Hello,
As the title says, I'm a new CM7 user (running verygreen's SDcard installer, using the 1.3 generic image, with nightly 87, no OC). This is running beautifully, except for one thing... I didn't use a big enough SDcard to start with and now I'm faced with looking for the right way to migrate to a larger card (or alternatively to make use of the NC's built-in eMMC in some fashion to augment the current SDcard).
Can someone tell me if the following approach will work? And is it the right/best way?
1. Use Win32Imager to make a full disk image of the current card (4GB).
2. Write the image to a new 8GB or 16GB card. At this point I should have a perfect copy except that there'll be wasted space on the card past the final partition.
3. Boot into a Linux recovery type LiveCD and use gparted to expand the final partition to use up the rest of the space.
4. Am I done? (crosses fingers?)
The goal of this move is to give myself some room to drop movies, music, etc. onto the /mnt/sdcard partition (which I believe is called /media by NC Stock 1.2?) Will what I described work?
Thanks in advance,
fuul4nook
P.S. One extra question, will the fact that my NC is a blue dot cause any problems with the idea? And if not, is there any way I can use the eMMC partitions while running CM7 from SDcard?
fuul4nook said:
Hello,
As the title says, I'm a new CM7 user (running verygreen's SDcard installer, using the 1.3 generic image, with nightly 87, no OC). This is running beautifully, except for one thing... I didn't use a big enough SDcard to start with and now I'm faced with looking for the right way to migrate to a larger card (or alternatively to make use of the NC's built-in eMMC in some fashion to augment the current SDcard).
Can someone tell me if the following approach will work? And is it the right/best way?
1. Use Win32Imager to make a full disk image of the current card (4GB).
2. Write the image to a new 8GB or 16GB card. At this point I should have a perfect copy except that there'll be wasted space on the card past the final partition.
3. Boot into a Linux recovery type LiveCD and use gparted to expand the final partition to use up the rest of the space.
4. Am I done? (crosses fingers?)
The goal of this move is to give myself some room to drop movies, music, etc. onto the /mnt/sdcard partition (which I believe is called /media by NC Stock 1.2?) Will what I described work?
Thanks in advance,
fuul4nook
P.S. One extra question, will the fact that my NC is a blue dot cause any problems with the idea? And if not, is there any way I can use the eMMC partitions while running CM7 from SDcard?
Click to expand...
Click to collapse
You should be able to do what you want but use Easeus Partition Manager to extend the 4th partition on the SD to get full use of the card. I don't know what you mean by "blue dot", but you can access 5 gb on the emmc directly through apps if it's music or video. You can also use File Expert or Root Explorer to store what you want on the emmc partition, which will then also be available when you boot into the stock NC rom.

[Q solved] cannot mount sdcard in recovery

So this was solved by using a tool from sdcard.org to format my sdcard in a PC. Once formatted with that tool cwm started seeing correctly.
-------
I'm running 3.1 rooted
I've flashed Thor's 1.4.2 recovery.
I have two sd cards: a 2g and an 8g.
Both work when accessed on a PC and on the iconia.
Neither work in cwm so I can't flash any roms.
I have tried formatting the sdcards on two different PCs. for the 2g I tried both fat and fat32. The 8g is fat32. In every case cwm says it can't mount it.
Additionally, I can't seem to use a USB key, although that may be that i don't know how to use it.
Thanks for any help.
-Bert
When in CWM and you go to install zip from sdcard do you see any folders where you choose the zip. Just wondering if it isn't mounted already. Physical sdcard is in /mnt/external_sd
and not /mnt/sdcard.
PsychosisNC said:
When in CWM and you go to install zip from sdcard do you see any folders where you choose the zip. Just wondering if it isn't mounted already. Physical sdcard is in /mnt/external_sd
and not /mnt/sdcard.
Click to expand...
Click to collapse
Thanks for your reply. I'm prety sure It's not mounted already.
I'm attaching a screenshot to show the exact message I get when trying to browse for a zip. I get a similar message when I go to mounts and storage and try to mount the sdcard.
im bumping this because I'm really becoming concerned that the device is defective in some way.
I'm hoping that someone can give me some guidence on what I may be doing wrong.
So, brosell, did you figure out a solution? I have the exact same problem - cannot mount sdcard in recovery and I get the exact same message.
When the system is booted normally, the internal storage mounts ok as /sdcard
EDIT:
It seems CWM treats the external sdcard as /sdcard, not the internal storage. So, to flash an update, you need to place it on an external SD card
I always get that error, and I never had to mount anything using cwm, just booted it selected the zip to flash and flash. I still don't mount anything...?
And the zip goes on the external sd not the inturn
Can't format SC Card in Window. If won't mount.
Guys,
Unfortunately SD cards for Android must be formatted by Android. If the card is not properly formatted CWM can not mount it, nor can CWM format it. The best way to get it properly formatted is to put it into an Android Phone and use its format functions. There really is no way on the Icona Tab to reformat an improperly formatted card or a new formatted card. If you don't have an Android phone borrow a friends. You will know that it is properly formatted when you see a lost files folder created on the card by the Android phone formatting process. This is a common problem that many people encounter when performing their first ROM flash. If it was formatted under windows as FAT 32 you can access it and store on it in normal operation mode. But ClockWorkMod can not mount it in recovery mode. Hope this helps. Good luck.
Can mount SD card in Recovery
I should have also mentioned last night in my post here, that my experience has been that it is much easier to flash a new custom ROM from a USB thumb drive. Flashing a custom ROM from USB seems to be less problematic than from an SDCard that appears otherwise to be good and formatted with FAT32, but CWM can't mount it. You can fast format the thumb drive on Windows to clean it off. Then copy your custom .zip ROM to be flashed on to the thumb drive from within Windows then insert it into the USB port of your Icona Tab, boot into CWM recovery (I'm assuming you know how to do that so I won't go into it here.) I forget exactly where in the CWM menu it is, it might be under the CWM advanced sub-menu but it say's something to the effect of Install zip from USB. It always works for me with no problem. The advantage is that you do all your prep work on Windows and then flash from the thumb drive which I believe has an ISO standard across all platforms and usually comes already per-formatted. This is an alternative method if you can't get your SDCard properly formatted (see my previous post in this thread for how to get it properly formatted so that it will mount under CWM.) Again, good luck!
I want to cry!!
I tried re formatting! Nothing! Cmw is not on sd card! Nothing is working! Still stuck on acer start screen! Yes i am a noob! But i read alot into this stuff b4 i do it! I wish there was someone i can have come to my house and do this for me! I have tried everything!!!!!!!!!!! So frustrated!!! Someone pls help me!!!!
in CWM recovery, there are 2 options,sd and "internal sd" i think(for me atleast). i chose the internal sd and it mounts.
brosell said:
So this was solved by using a tool from sdcard.org to format my sdcard in a PC. Once formatted with that tool cwm started seeing correctly.
-------
-Bert
Click to expand...
Click to collapse
Thank You Sir! been looking for this fix for a long time
brosell said:
So this was solved by using a tool from sdcard.org to format my sdcard in a PC. Once formatted with that tool cwm started seeing correctly.
-------
/QUOTE]
thanks brosell, for the solution,
I have a 512MB SD card in the g5360, was FAT formatted. reformatting the sdcard with the tool from sdcard.org worked for me as well, afterwards it could be mounted by the stock recovery
and could install update.zip (prior to install CMW)
kr, Erik
Click to expand...
Click to collapse

[Q] Install apps on external storage, CM9

I am running Cyanogenmod 9.1 on the Samsung Galaxy Tab 2 7.0, WiFi IR version. Does anyone definitively know how to run your apps from the external SD card? I have tried numerous workarounds but all have failed to produce any results, I have no idea where the problem even resides. Thanks.
I've the same problem with directory bind, its an issue with the multi user on the ROMs. The emulated SD card messes everything up I think
Sent from my GT-P3110 using xda app-developers app
babyrammer said:
I am running Cyanogenmod 9.1 on the Samsung Galaxy Tab 2 7.0, WiFi IR version. Does anyone definitively know how to run your apps from the external SD card? I have tried numerous workarounds but all have failed to produce any results, I have no idea where the problem even resides. Thanks.
Click to expand...
Click to collapse
Have you tried Link2SD?
I think you might be right, that seems to be the error I get when I try to use App 2 SD.
I went and got Link 2 SD, followed all the instructions (partitioned my external SD into 2 primary FAT32 parts) and it told me I was able to move apps, but I get error messages whenever I try [INSTALL_FAILED_INSUFFICIENT_STORAGE] which I don't really understand, I have plenty of space.
babyrammer said:
I think you might be right, that seems to be the error I get when I try to use App 2 SD.
I went and got Link 2 SD, followed all the instructions (partitioned my external SD into 2 primary FAT32 parts) and it told me I was able to move apps, but I get error messages whenever I try [INSTALL_FAILED_INSUFFICIENT_STORAGE] which I don't really understand, I have plenty of space.
Click to expand...
Click to collapse
Your second partition really needs to be ext3 or ext4. Primary partition fat32
Root2SD says in its instructions FAT32 should work, which is why I tried that first. When I did EXT3 and EXT4 it told me it couldn't mount it as it isn't compatible with my device :/ I even tried to manually mount it in Clockworkmod but even after that I got the same error messages.
babyrammer said:
Root2SD says in its instructions FAT32 should work, which is why I tried that first. When I did EXT3 and EXT4 it told me it couldn't mount it as it isn't compatible with my device :/ I even tried to manually mount it in Clockworkmod but even after that I got the same error messages.
Click to expand...
Click to collapse
What are you using to partition your sdcard with? Hopefully not CWM. If you are, try TWRP instread. There is also a Windows tool "Mini Partition" I think that is also recommended for that task.
Actually I was just using Mini Partition, I saw it recommended somewhere else.

[Q] Formating SD Card with FAT32 witout a computer

Hello Everyone,
I've been trying to run either AOKP or CM10.1 but they seem to neet FAT32, and oh small wonder, my SD card is on exFAT atm.
Well since I do not have a card reader, and the phone cannot mount into UMS mode I was a bit stumped.
I then thought, why not Busybox this thing.
But fdisk fails me blatantly.
The result is
"fdisk: WARNING: rereading partition table failed, kernel still uses old table: Invalid argument"
Some googling got me to believe that I have to make an additional DOS partition, which did no good either.
Do any of you have an idea on how I could format to FAT32?
I am running stock, with root and TWRP as recovery
Cheers,
Linus
And I think I have found the answer. Somehow fdisk didn't want to play ball, but if I use mkfs it seems to work.
At leas after reboot it was mounted as vfat
I executed "mkfs.vfat /dev/block/vold/179:33" and am now copying my backup back onto the SD card
After that I'll install CM10 I think and will tell you all if it works or not
and yes
I am now running CM10.1 and it all works as it should
very nice
Thread closed for me

Moving apps to SD (external storage) on Shield

Hello, I was unable to find any threads on this so I am making my own. I am running a 2017 Shield TV 16 GB. My OS is the Developer only 7.2.1 image with unlocked bootloader, and Magisk root (I don't have TWRP yet as I am waiting on an updated version that'll work with 7.2.1). My issue is this. I've never had a problem linking/moving apps to an SD card on a rooted phone via mounting a second partition. I have an external 128GB SSD I've added to my Shield. First I partitioned the SSD with two nearly equal size partitions with exFAT file systems, both primary. Once the drive is plugged in I have two options. One is to make the drive adoptable storage which forces me to format to one exFAT partition. So from there I used the app App2SD Pro which has a partitioning tool built in. Every time I use it it would say it was successful and reboot. However, upon reboot I was always back to square one. I also tried the app Aparted but it would force close every time I tried to open it because its not made for android TV I suppose. So I started over with option 2. Keeping the drive as removable storage with the two exFAT partitions instead of making it adopted storage. I tried three different apps: App2SD Pro, AppMgr lll, and Link2SD. All of these couldn't see the second partition! I tried remounting and everything. I even SSH-ed into my shield with WinSCP on my laptop and tried to manually move the apps to no avail. I have a terminal emulator on my Shield but as I understand gparted can't run on an android terminal, so I can't manually partition the drive while plugged into the shield. I am straight up stumped at this point. Any help would be appreciated.
Thread closed as per OP's request.

Categories

Resources