I can't seem to find a definitive answer on what I think is a pretty straightforward question - does the removable disk that appears in Windows Explorer contain the same exact file structure and data as the ls command run on /dev/block in adb shell?
I truly want to understand my SD card but I feel like I have been chasing my tail with the whole re-partitioning process to get an app like Link2SD to offload apps from internal storage. I have consulted various guides, learning a fair bit about ADB shell and partitioning in general, but what is tripping me up is the fact that I am not sure why my sd card reads the way it does in ADB. If I go into the shell and go to the /dev/block directory, then type LS I see the following:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I have been under the impression this entire time that, to use a program like Link2SD, the external SD card needed a 2nd partition, but if I follow every partitioning guide out there, I will be re-partitioning mmcblk0 which is the space my 2GB internal storage resides. So are these "move to SD" apps only asking for a 2nd FAT32/ext2/ext3/ext4 partition on the internal storage space (mmcblk0)?
Running parted on mmcblk0 gives:
Parted on mmcblk1 is:
Never mind that the 2 extra partitions on mmcblk0 are FAT16, but I'd like to know what mmcblk0/blk1 really are, if they are not actual partitions on the card (the partitions are shown as p1,p2,etc), and if by backing up the SD card to Windows, I truly have everything backed up so that if I format and re-partition mmcblk0, I can re-copy my files back to the SD card. It SEEMS like what I see in Windows and what ADB tells me should be one in the same, but I have a feeling that the removable disk I see in Win Explorer is actually mmcblk1 and therefore re-formatting mmcblk0 would result in lost data unless there is some way to backup and restore it.
Sorry if this sounds so noob-ish but trust me, 48 hours ago it would have sounded a lot worse...
Thanks.
what is mmcblk0 ?
Brianakin said:
Never mind that the 2 extra partitions on mmcblk0 are FAT16, but I'd like to know what mmcblk0/blk1 really are, if they are not actual partitions on the card (the partitions are shown as p1,p2,etc), and if by backing up the SD card to Windows, I truly have everything backed up so that if I format and re-partition mmcblk0, I can re-copy my files back to the SD card. It SEEMS like what I see in Windows and what ADB tells me should be one in the same, but I have a feeling that the removable disk I see in Win Explorer is actually mmcblk1 and therefore re-formatting mmcblk0 would result in lost data unless there is some way to backup and restore it.
Sorry if this sounds so noob-ish but trust me, 48 hours ago it would have sounded a lot worse...
Thanks.
Click to expand...
Click to collapse
I have pretty much the same question.
I have been able to confirm that my SD card is indeed mmcblk1. I can mount the partitions on that device and see all the junk I have saved to the card. On my system, mmcblk0 does not seem to exist. Since the /etc/fstab has the /cache and /data on partitions for that device, I can't boot the phone at all right now.
- Is this truly a hardware failure?
- Is mmcblk0 the internal storage?
- Can I re-partition my SDCard and edit FSTAB to point to the new partitions?
On the GT-I9100 mmcblk0 is the internal NAND (which contains 12 partitions, one of which is the internal sd card). mmcblk1 is the external sd card device. LINK2SD is hardcoded to look for mmcblk1p2.
Related
I am working on custom ROM with sdcard lagfix and disregard this thread. Please wait for some time. Will give you good news soon...
Imagine having 1GB space for apps and superfast phone.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Note: You should have 2 partitions in sdcard to apply this lagfix. First partition should be FAT and second partition size should be over 1GB. Attached format sdcard document have instructions for this.
Currently /data in our phones is on rfs file system which is making phone slower and you can not install apps size more that 150MB. This Lagfix will make ext2 partition in sdcard and use it for /data. ext2 file system is faster than rfs which will make phone faster and give more space for apps as ext2 is in sdcard.
. Attached 2 Lagfix versions. Filename with 1GB will have 1GB space for apps and sdcard need to be partitioned with 1GB ext2 partition. Filename with 500MB will have 500MB space for apps and sdcard need to be partitioned with 500 MB ext2 partition.
. Partition sdcard using Minitool Partition Wizard.
. This Lagfix will format sdcard second partition as ext2 and copy /data to ext2 and mount.
. This Lagfix will not factory reset. You will have same data and apps.
. You can remove this Lagfix and you will have same data as on when you applied lagfix.
. I have tested it on JPF and it should work in any FROYO or ECLAIR ROM.
How to Install:
1) Root your phone
2) Partition sdcard using minitool partition wizard (sdcard 2nd partition must be ext2 and size should be over 1GB)
2) Install busybox 1.17.
3) Put your phone in USB Debugging mode
4) Download appropriate Lagfix version and extract. 1GB or 512MB
4) Launch install_lagfix.bat
5) Your phone will reboot twice, then you can enjoy
How to Remove:
1) Launch remove_lagfix.bat
hmm...interesting,i think it's worth to try
edit:
i formated as you say and now my phone don't see my sdcard, pc see phone no.
Over 1Gb? My sd card is only 1Gb
evaldasdz said:
Over 1Gb? My sd card is only 1Gb
Click to expand...
Click to collapse
Do not apply this lagfix. PM me if you still want to apply. I will modify it for you.
pokosik said:
hmm...interesting,i think it's worth to try
edit:
i formated as you say and now my phone don't see my sdcard, pc see phone no.
Click to expand...
Click to collapse
Did you formatted it? I think you only partitioned sdcard. First partition sdcard and then format sdcard. I will add a screen shot to my post.
i formated it with windows manager, i will try.
apollo5801 said:
Do not apply this lagfix. PM me if you still want to apply. I will modify it for you.
Click to expand...
Click to collapse
It's ok. I'm going to buy sd card with more space after that, i will try it
Can you make it more simple please
Sent from my GT-I5800 using Tapatalk
created partitions, formated and no luck
Why do we need 1GB ext2? Does it use ext2 partition as application storage and fat as mass storage to share with pc? Can I use ap2sd with Eclair. I think 512MB are more than enough for applications, and there will be more room for music etc. If you can make a second version it would be great!
apollo5801 said:
Did you formatted it? I think you only partitioned sdcard. First partition sdcard and then format sdcard. I will add a screen shot to my post.
Click to expand...
Click to collapse
WHen formatting the SD Card, which partition should we format:
Ext2 or Fat
i tried format fat without ext2 and tried both, but same result phone don't see my card
same is the case with me... My phone doesnt see SD Card but detects when i remove it...
.
ok, ill try it now and then i will report back. also does this work on custom roms like motafocas JPF?
i tried permutation and combination and mine worked
What my final status is:
Fat 32: set to active and primary
ext 2: set to none and primary
Formatted fat32 and it worked.
Guys pls try this and urs will also work
Trying lagfix
my sd card even pc don't see, but phone see, only i can't format it in phone
jaskiratsingh said:
Fat 32: set to active and primary
Click to expand...
Click to collapse
how to set active?
Attached instructions for formatting sdcard and attached another lagfix version. Lagfix with file name 1GB will give you 1GB space for apps and need 1GB ext2 partition on sdcard and Filename with 500MB will give 500MB for apps and need 500 MB sdcard ext2 partition.
Interesting. Will try this with the custom ROM.
I have a 8GB SDCard, what should I do? Create a partition of 1GB which will give me 1gb for apps, and what about that 1gb ext2 partition? Should I make it bigger if I have a bigger sdcard?
As I understand the ext2 partinion is an extention to the internal storage memory. The phone thinks that there is 500MB or 1GB internal memory.
The fat partition is for mass storage use.
Thank you Apollo5801 for the second version! It's nice to see that there are people who can listen our needs!
I will try it as soon as my pc recognize my phone...
My samsung galxsy slc, with MIUI rom, cant see 8gb fat32 sd external card, with gingerbread i can see 8gb sd card and in miui no.... My phone memory is in sdcard memory...
My memory screenshot
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Help me pls
Help me pls...
Reply
Hi man,
Using Windows's Sh1t tools or using *nix system format your SD using:
( under linux )
Code:
#!/bin/sh
dd if=/dev/zero of=/dev/sd** # where ** are your sd's proc
fdisk /dev/sd* # * are your main device, like sdb or sdc
mkdosfs -F 32 /dev/s*** # where *** are sdb1 or sdc1
Insert again your sd into sd slot
Have u applied some init.d tweaks? like thunderbolt or same?
Isnt this my problem
I have no format problem but mount problem.... my telefon muont internel memory in phone my internal sd in sd card an my sd ist mount...i cant install app... my telephone in memory sd have internal sd memory but if i go in external sd in root explorer i find my 8gb sd... but i cant use it for app and ohter ....
This is a post from S2 forum for a similiar issue. Not sure whether it will work. But trying won't harm.
Originally Posted by ashzoomerintrack
@teo and @ arjun
Dial the following
number: *#7284# Once the last #
is hit, the PhoneUtil application is
launched.
Choose USB -> Modem
Hit back. Again enter above code.
and then USB -> PDA mode.
This should solve your problem guys
Sent from my GT-I9100G using Tapatalk
Click to expand...
Click to collapse
connection problem\
if i call this number the phone connection problem or unvalide code
pls help me
Help me pls i cant do anithing
Why
Why nobody write????
i will be crazy
i had try swap the sd but no change
pls help me
i will be crazy pls i cant do nothyng
Which miui u used ?
Try sd swap by ganesh.
It swap ur 8gb sd with ur int sd.
search b4 post. This a common issue fr 9003 miui rom, u r wasting xda server cap.
Sent from my GT-I9003 using Tapatalk 2 Beta-4
Miui used
i use 2.2.3.7 miui ...i used one of swaps sd but no change... is possible that i download a wrong swap sd,,, whem i reboot my phone at a start sd mount problem
I read MP
Nygel7 : the problem imho is your sdcard is formated with 1 partitions fat32 size 2 gb, i image you use windows, sorry i dont know how format under windows, never'used it
My sd
My sd have 1 partition 8gb in fat 32.... but i can try....but not change
Nygel7 said:
My sd have 1 partition 8gb in fat 32.... but i can try....but not change
Click to expand...
Click to collapse
LoL.
Just remove the SD Card while the phone is on and re-insert it.
THen, reboot the phone and do the same thing!
It will work
Loool
no work omg i do this at first lol ... im not idiot..
Nygel7 said:
no work omg i do this at first lol ... im not idiot..
Click to expand...
Click to collapse
You tried it when the phone is switched on?
Because, I had the same problem.
A 32-GB SD card was nt being recognized and I did this a couple of times.
The phone lagged,but, the card was recognized at last
backup your file in recovery mode.. then wipe cache and factory reset.. if your sdcard works just restore back ur data in recovery mode..
So a while back I flashed Cyanogen on my Motorola G 2015 just to test and see what's up. Today I went back to stock rom, rooted and modified the heck out of it. I followed the popular XDA fastboot flashing method POST and got the "official" stock rom from this thread (It said modified in the bootloader after I flashed it 100% correctly, BEFORE I started to root and mod it myself, weird huh?) So back to the problem. My partitions are completely messed up now. It's not what it was before (I think). The Internal Storage is mounted on two separate points and my SD card gets mounted as something wierd. Here are all the screenshots you need. Please tell me how to make it normal again.
Somehow here it looks like everything is fine.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
YET if I format it as adoptable storage, ie. as internal sd card I can't even find it, nor can any app detect it. (But I can actually use it to put apps in it via the storage options)
First lets see the vold.fstab file
I've never seen something liket this.
my /mnt/ folder
I found my SD card partition in /mnt/media_rw with a weird number FC36-1DFE.
Here is my SDCARD1
500mb, nice partition. Much wow
up until now this is all in INTERNAL STORAGE the only EXTERNAL ( MY 32gb sandisk microsd) with the weird number FC36-1DFE is the next screenshot
When I moved these screenshots to my SD card from my internal, my pc doesn't even see them. and if I try to move from internal to sd via PC, it just doesn't work (SOME TIMES).
???????????????
Finally the illusive internal storage !
but this is where the fun part actually begins
Here is the same damn internal storage in a different directory
Storage folder
I might be over exaggerating, cause I'm new at this. But I have major problems with my sd card and internal one, some things don't work right, and all this that I saw and screenshot looks dodgy as hell and not quite right. Or maybe everything is fine and I'm a retard? You guys be the judge, please help or explain what the hell is going on. :crying:
If this is normal please say so in a reply, if not, guys please help. Bump.
It sounds normal, maybe it's just how the root browser is picking it up. Back when I had formatted my SD Card as internal storage, it also had the weird name of yours, like FC36-1DFE, but only different. I'm sure it works just fine, but a way you could test is to install an app and then unmount the SD Card, and check if the app is inaccessible anymore.
sticktornado said:
It sounds normal, maybe it's just how the root browser is picking it up. Back when I had formatted my SD Card as internal storage, it also had the weird name of yours, like FC36-1DFE, but only different. I'm sure it works just fine, but a way you could test is to install an app and then unmount the SD Card, and check if the app is inaccessible anymore.
Click to expand...
Click to collapse
Same here. But apps(even root apps like Titanium Backup) are unable to write to the SD card. When I use TB to try to back up to the SD Card, it says directory is not writable.
knpk13 said:
Same here. But apps(even root apps like Titanium Backup) are unable to write to the SD card. When I use TB to try to back up to the SD Card, it says directory is not writable.
Click to expand...
Click to collapse
There is an easy fix for that, make Titanium Backup folder on your SD card, go to the app then menu, then preferences then backup folder location, select storage provider, document provider storage, now if you have the stock explorer as default select the 3 dots on the upper right and select show SD card then select the 3 lines on top left, select your SD card then press select on your bottom right side, now select the Titanium Backup folder u made and restart the app.
theSperks said:
There is an easy fix for that, make Titanium Backup folder on your SD card, go to the app then menu, then preferences then backup folder location, select storage provider, document provider storage, now if you have the stock explorer as default select the 3 dots on the upper right and select show SD card then select the 3 lines on top left, select your SD card then press select on your bottom right side, now select the Titanium Backup folder u made and restart the app.
Click to expand...
Click to collapse
That's what I did. It says the directory is not writable. Backups fail.
knpk13 said:
That's what I did. It says the directory is not writable. Backups fail.
Click to expand...
Click to collapse
Try to go to root explorer, find your SD card mine is storage/bunch of numbers... long press your SD card folder in /storage and press 3 dots on upper right then press permissions, press octal and then insert 771 then press OK and try again with what I wrote I last post.
sticktornado said:
It sounds normal, maybe it's just how the root browser is picking it up. Back when I had formatted my SD Card as internal storage, it also had the weird name of yours, like FC36-1DFE, but only different. I'm sure it works just fine, but a way you could test is to install an app and then unmount the SD Card, and check if the app is inaccessible anymore.
Click to expand...
Click to collapse
My SD card is not formatted as internal and it shows with those numbers.. The problem is that when I do format it as internal storage it disappears for apps instead of being the only one showed like before, since in MM when you format your SD card as internal the internal storage disappears and not the other way around :/
i have a CUBOT Magic. I try to fix my SD card the last 12 days. I encrypted the phone but i don't remember if that was before or after i put the SD card I have set SD card as the default write disk
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
There is not a 'decrypt sd card' feature at the phone too My Android is 7.0
I tried almost everything from software, minitool, easeus, diskinternals, diskgenius.... Even i see the partition of the SD card i can't restore it (Android 6.0 ARMMeta Partition and Android 6.0 ARM EXT Partition)
The problem started when the phone literally rebooted on its own when i played a Clash Royale using (NOX-app++ many accounts tool _guide) It rebooted with a message to reinsert the SD card and here is where the problem started I search for malware with 4 different programs and i don't think it's ransomware or something related with a virus
You people are my only solution because i have some photos in there i don't want to lose....
Thanks, every one for his time
I attach related photos of the problem (from the storage, sd card contents, security.)
Does this look to you as partition problem ?
The fact that is main storage means it is encrypted so if i move the main storage back to internal memory will it unlock ?
Any ideaas ?
I fired Ubuntu with fsck to see if there is a something that can be fixed but looks like as you said before the internal format of the SD (i double checked it and saw at the phone that give you the option to format it as portable so the internal format is already used) had a custom format type outside of the ordinary
SO i assume the SD is format as internal with a custom format due to encoding and that put us to the encoding section
If the keys were damaged or lost the internal storage of the native phone shouldn't boot too, right ?
However, the internal storage works fine and only the SD is not recognizable reporting 0 files (but keeping the total of GB that are used even if it doesn't report files)
How do you think i can decrypt the SD when i don't have the option in security ?
Hi there,
A SD card (64 GB) displayed different capacities
- in computer;
- in recovery.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
When I tried to back up data partition in recovery, it showed the message "Not enough free space on storage", but SD card functioned in full capacity on computer.
I tried
1. in recovery
- repair;
- resize;
- change to ex2 and back to ext4.
2. flashing a new recovery (twrp & orangefox)
3. formatting it on computer.
The issue prevailed.
How to fix it?
Thanks in advance.
Regards,
Wy
-- Solution --
Format the SD card as internal storage (keyword: portable storage).
If you choose to format the SD card as internal storage ( keyword: portable storage ) it should fix the problem.
formatting as internal/adoptable storage (opposite of portable storage) will encrypt MicroSD card and provide ext4 file system to this phone only. you can no longer remove it and read it in other devices, like card reader on PC. you should at least backup /data/misc/vold in case you want to decrypt on PC.
you are using FAT32 (vfat) with maximum file size limit 4 GiB per file for userdata partition image that is larger than the file system type allows.
aIecxs said:
consider this does not work on FAT32 make sure MicroSD card is formatted exFAT and 43.img file size on MicroSD card is actually larger than 4 GiB.
Click to expand...
Click to collapse
you can circumvent this by compressing + splitting file into junks
RaTr said:
Finally, I choose to use that option with some modifications because vfat doesn't support files larger than 4GB.
Code:
dd if=/dev/block/bootdevice/by-name/userdata conv=noerror,sync bs=100M | gzip -c | split -b1000000000 - mybackup.img.gz
Click to expand...
Click to collapse
Most phones support exFAT file system in alternative to FAT32. Formatting as external/portable storage may work depending on default file system type. If you want to have control about file system type, format manually (one can't choose in menu).