One sd card works as adoptable and the second does not - Android Q&A, Help & Troubleshooting

Hi everyone!
I have successfully expanded the internal storage of the phone with an sd card using the "sm partition DISK mixed" command in adb:
Code:
mido:/ $ sm list-disks
disk:179,96
mido:/ $ sm partition disk:179,96 mixed 50
mido:/ $ sm list-volumes
private:179,99 mounted 0e05b528-c814-4078-b7ef-1a0f95260531
private mounted null
public:179,97 mounted F227-1806
emulated mounted null
emulated:179,99 unmounted null
My phone is Xiaomi Redmi Note 4x MIUI Global 11.0.2 (android 7.0). Sd card used: Kingston 8GB MicroSDHC class 4.
I successfully used this mode for a while (transferred many applications to sd) until I saw that class 4 memory cards are really very slow and bought a new class 10 memory card: Smartbuy microSDHC 64gb class 10.
And here, unfortunately, it was not possible to expand the internal memory. Here is the adb shell log:
Code:
mido:/ $ sm list-disks
disk:179,64
mido:/ $ sm partition disk:179,64 mixed 75
mido:/ $ sm list-volumes
private:179,67 unmountable null
private mounted null
public:179,65 mounted C1B0-1F00
emulated mounted null
We see that private volume is not set, unlike the code at the beginning. Moving applications to the sd card does not work (the "change storage" button disappeared in the interface)
I tried to
Code:
mido:/ $ sm format private:179,67
mido:/ $ sm mount private:179,67
Error: java.lang.IllegalStateException: command '328 volume mount private:179,67 0 -1' failed with '400 328 Command failed'
The set-force-adoptable setting also failed, but the error code changed:
Code:
1|mido:/ $ sm set-force-adoptable true
mido:/ $ sm mount private:179,67
Error: java.lang.IllegalStateException: command '336 volume mount private:179,67 0 -1' failed with '400 336 Command failed'
1|mido:/ $
Setting "set-force-adoptable" before "sm partition" didn't help also.
How can it be that this procedure worked with one memory card, but did not work with another? What criteria can I use to buy a new memory card to be sure everything will work out? Is there still a way to fix something with this memory card?
Thank you very much in advance for your help!

As long as you don't undo Adoptable Storage on 1st SD-card ( means reformat it as Portable Memory ) you can't use the 2nd SD-card as Adoptable Storage

jwoegerbauer said:
As long as you don't undo Adoptable Storage on 1st SD-card ( means reformat it as Portable Memory ) you can't use the 2nd SD-card as Adoptable Storage
Click to expand...
Click to collapse
I forgot to write about it, I did it after old SD through “Settings” -> “Storage” -> “xxx SD card” -> ”ERASE & FORMAT. Didn't help

As I can see you didn't get it.
BTW: What you've done was the absolutely wrong way.

jwoegerbauer said:
As I can see you didn't get it.
BTW: What you've done was the absolutely wrong way.
Click to expand...
Click to collapse
How can I undo Adoptable Storage on 1st SD-card?
I tried to "sm partition disk:xxxxx public" on 1st card.
Also I tried to use instruction from one forum thread :
To go back from adoptable to portable storage open Settings/Storage/Phone storage/hit 3 dots od the right top corner/migrate data, bit be sure you don't have more data on SD that's your internal storage of the phone. That's all, then you can format your sd as a portable storage.
Click to expand...
Click to collapse
My Xiaomi has no 3 dots on the right top corner so I thought " Erase & Format " does the same.

IDK how to reverse the adopted storage to portable storage by means of sm thus the linkage gets removed: never have tried it. May be sm unmount command does the job.
BTW: Erase & Format applied to adopted storage simply wipes all data there and freshly formats it.

jwoegerbauer said:
IDK how to reverse the adopted storage to portable storage by means of sm thus the linkage gets removed: never have tried it. May be sm unmount command does the job.
BTW: Erase & Format applied to adopted storage simply wipes all data there and freshly formats it.
Click to expand...
Click to collapse
I tried to "sm unmount", no changes. I tried to use a third memory card, but it's the same with it. The first memory card can still be set as adoptable. It seems that the phone remembre 1st card and does not want to work with others.

August9299 said:
The first memory card can still be set as adoptable. It seems that the phone remembre 1st card and does not want to work with others.
Click to expand...
Click to collapse
That's what I told you.

Related

[Q] BETA ICS 4.0.X - Team DRH - data partition size

Is there a way to either a) make the data partition larger than 2GB or b) do some kind of apps2sd even though ICS doesn't support it? I've been reinstalling everything since putting on the latest version of the rom and have plenty of internal (and external) SD space, but only a few megs left of my data partition for installations. Would the partition be possible through CWM up to 4GB or higher through nvflash?
You can increase or decrease the size allocated to /data as you wish. And you'll have to do it using CWM, not nvflash.
Do you want to keep your existing data while you increase the size of the /data partition?
I would prefer to save it. I had just planned to use Titanium and send it all up to Box.com (hooray for the free 50 gigs).
OK. Then, the easiest method is to use GParted.
0. Go to the Parted Magic website and download and burn the latest version of the Parted Magic CD or USB-stick image.
1. Boot into CWM, select the "mounts and storage" menu item, then unmount all mounted partitions. Do not back out of that screen--stay there until you're done.
2. Boot into PartedMagic, run Firefox and get the ADB binary from here. Save the adb.zip file into /tmp. Run these commands in a Terminal window:
Code:
[email protected]:~# [B]unzip -d /usr/local/bin /tmp/adb.zip[/B]
[email protected]:~# [B]chmod 500 /usr/local/bin/adb[/B]
3. Run these commands to make the internal SD card visible to GParted (use /dev/block/mmcblk2 for the external SD card):
Code:
[email protected]:~# [B]adb shell[/B]
~ # [B]echo /dev/block/mmcblk3 > /sys/devices/platform/usb_mass_storage/lun0/file[/B]
4.Now run the Partition Editor (GParted) program and select the SD card device from the drop down list.
5. Resize the data partition by dragging the partition boundary, then select "Apply".
6. After the operation completes, exit GParted and run this ADB command to dismount USB storage:
Code:
[email protected]:~# [B]adb shell[/B]
~ # [B]echo '' > /sys/devices/platform/usb_mass_storage/lun0/file[/B]
7. Now back out of the "Mounts and Storage Menu" in CWM and reboot the gTablet.
I have all partitions unmounted in CWM, but when I try to do "adb shell" it gives me the "error: device not found" message.
EDIT: It was a driver issue. I'm repartitioning now and everything seems to be going well. Thanks!

Access to external SD card - Stock ROM (Rooted)

I've encountered problems trying to access the external SD card on my rooted Samsung Galaxy S3.
There are entries in /mnt/ for both internal and external storage, namely the following mount points:
/mnt/sdcard/ - internal
/mnt/extSdCard/ - external
The former is mounted onto the filesystem as /sdcard/. Ideally I'd like to mount the external card instead. Based on information elsewhere on the site, I checked the /etc/void.fstab file with the intention of making changes. However I didn't find what I was expecting. Here's the relevant part of the file:
Code:
{
supported_exfat = yes
}
dev_mount sdcard /mnt/extSdCard auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1/
Based on this config I would have expected the external SD card to be mounted as /sdcard/. But clearly it isn't, and I don't understand why.
For the time being I am using Directory Bind to access external storage via /sdcard/external_sd/ but it would be easier to simply mount external storage as /sdcard/.
Anyone have any suggestions?

[Q] Internal/external sd not mounting [SOLVED]

Hi,
Since my last upgrade of cynaogenmod nighties yesterday on my galaxy s2, my internal AND external sdcard are not mouting anymore
I tried to understand why and I found that my /storage folder was empty. I think it should have been populated by /init.smdk4210.rc script :
Code:
...
on early-init
export EXTERNAL_STORAGE /storage/sdcard0
export SECONDARY_STORAGE /storage/sdcard1
mkdir /storage 0775 system system
mkdir /storage/sdcard0 0775 system system
mkdir /storage/sdcard1 0775 system system
mkdir /storage/usbdisk0 0775 system system
...
I tried to mount /storage/sdcard0, but without success (in fact I am not sure to have the right method).
Extract of /system/etc/vold.fstab
Code:
...
# internal sdcard
dev_mount sdcard0 /storage/sdcard0 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 nonremovable,encryptable
...
I thought that
Code:
mount /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 /storage/sdcard0
would have been sufficient, but unfortunately not (I tried with /sys/devices/platform/dw_mmc/mmc_host/mmc0/mmc0 to).
I would like to retrieve my internal sdcard content.
Thank you in advance,
Bill
Ok after some investigations it is a known bug from 20130121 cyanogen nighties.
To get back internal sdcard :
Code:
su
echo mkdir /storage/sdcard0 > /data/local/userinit.sh
chmod 700 /data/local/userinit.sh
reboot
You can find more information here : http://forum.cyanogenmod.org/topic/63994-cm101-internal-sd-card-dont-mount/
Problem should be solved in future cyanogen nighties release https://github.com/cyanogenmod/android_system_core/commit/7cc503720f1a8a6aa9481c5f9fd4552bc463a501
Thanks for help
Bill
deleted
HELP!
my phone shows up on my computer but only my external sd card shows up, not my internal! help me fix it! ive attached some screenshots. btw, what are you guys using to run that code? (im a noob)
i ran the commands in terminal emulator but after reboot, everything remained the same?
billdangerous said:
Ok after some investigations it is a known bug from 20130121 cyanogen nighties.
To get back internal sdcard :
Code:
su
echo mkdir /storage/sdcard0 > /data/local/userinit.sh
chmod 700 /data/local/userinit.sh
reboot
You can find more information here : http://forum.cyanogenmod.org/topic/63994-cm101-internal-sd-card-dont-mount/
Problem should be solved in future cyanogen nighties release https://github.com/cyanogenmod/android_system_core/commit/7cc503720f1a8a6aa9481c5f9fd4552bc463a501
Thanks for help
Bill
Click to expand...
Click to collapse
I have the same problem and would like to get my phone back up and running.
How did you solve it?
I mean, where do I have to write those commands?
I'm a noobie, so please be so kind to explain
Peter.
kreatiir said:
I have the same problem and would like to get my phone back up and running.
How did you solve it?
I mean, where do I have to write those commands?
I'm a noobie, so please be so kind to explain
Peter.
Click to expand...
Click to collapse
If you have adb on your computer (and an usb cable to connect your phone to the computer), type these commands on a terminal window :
Code:
adb root
adb shell
then (as stated in pervious post) :
Code:
su
echo mkdir /storage/sdcard0 > /data/local/userinit.sh
chmod 700 /data/local/userinit.sh
reboot
If you do not have adb on your computer, you may download a terminal emulatror application on your android, then type the 2nd block of commands given above.
May the Force be with you !
Erm, if you have the problem with CM10.2 20130821, this solution is sadly not working...
SD card not mounting
I have got a symphony w125 from Bangladesh. It was running afterwards. After 2/3 months I rooted it from androidkothon.com . But after some days I got a notification... "Preparing phone memory
Checking for errors"
I neglected it and thought it'll be fine soon. But it won't. When I opened ES file manager, it showed me SD card unmounted. (Both for internal & external) .I tried my 16 GB m SD card inserting again. but it again showed the same notification . Then I did once "factory reset' and once "clear eMMC". Then also the same thing happened. While running suddenly shows system ui not responding automatically turns off. Then it doesn't start until I open the battery and insert it again. How to get my storage back now...?
sir i have a spreadtrum phone its board is sp6820gb_7620 and cpu id is 8810 cpu frequency is 1ghz and ram is 512mb with mali 300 gpu,
android version is 2.3.6 and kernal version is 2.6.35.7 [email protected] #7, software version is mocordroid2.3.6.w12.20_p20.01_20130715.130506, hardware version is 1.1.0. my problem is that my phone has only 128 mb of internal memory and when i tried to edit vold.fstab to swap its memory with memory card it stopped detecting sd card when turned on but when in recovery mode sd is shown present, i think its very similar to karbonn a1+ in hardware and software part so can you please help me with my phone?
[
Help me bro's please.
I swapped internal memory to sd card using vold.fstab file replacing.And now my int storage n sd card arent mounting ????
using karbonn smart a26 mobile
Internal and external sdcard unmounted
yj121 said:
i ran the commands in terminal emulator but after reboot, everything remained the same?
Click to expand...
Click to collapse
Accidently i formated my internal sd card and external sd card , now i am unable to mount it...
Plz help :angel:
---------- Post added at 05:23 PM ---------- Previous post was at 05:16 PM ----------
shailoo said:
Accidently i formated my internal sd card and external sd card , now i am unable to mount it...
Plz help :angel:
Click to expand...
Click to collapse
I ran all codes and my device is tablet micromax funbook P560....
Plz help
Code:
su
echo mkdir /storage/sdcard0 > /data/local/userinit.sh
chmod 700 /data/local/userinit.sh
reboot
Hi, i have this same problem with S3 mini, i can use this same command for my device or i will brick it?
I need mount internal storage, i have 0.00 bytes :/
Thanks!!
Hi
i am new to this and trying to fix my note 1 gt n7000
it was working fine till yesterday and suddenlly the internal memory the sdcard0 stopped
it does not mount and also when i turn the mobile on a pop up comes saying cannot download as not storage available.
there are some important photos in that which i would like to recover.
please help i tried the code mentioned below in terminal emulater but when i type
it says
not found and also for the latter commands it says permission denied.
i have rooted my device.
please help.
Code:
su
echo mkdir /storage/sdcard0 > /data/local/userinit.sh
chmod 700 /data/local/userinit.sh
reboot
If you do not have adb on your computer, you may download a terminal emulatror application on your android, then type the 2nd block of commands given above.
May the Force be with you ![/QUOTE]
same problem
yj121 said:
my phone shows up on my computer but only my external sd card shows up, not my internal! help me fix it! ive attached some screenshots. btw, what are you guys using to run that code? (im a noob)
Click to expand...
Click to collapse
I have the same problem. Please help me solve it
its not working for me
billdangerous said:
Hi,
Since my last upgrade of cynaogenmod nighties yesterday on my galaxy s2, my internal AND external sdcard are not mouting anymore
I tried to understand why and I found that my /storage folder was empty. I think it should have been populated by /init.smdk4210.rc script :
Code:
...
on early-init
export EXTERNAL_STORAGE /storage/sdcard0
export SECONDARY_STORAGE /storage/sdcard1
mkdir /storage 0775 system system
mkdir /storage/sdcard0 0775 system system
mkdir /storage/sdcard1 0775 system system
mkdir /storage/usbdisk0 0775 system system
...
I tried to mount /storage/sdcard0, but without success (in fact I am not sure to have the right method).
Extract of /system/etc/vold.fstab
Code:
...
# internal sdcard
dev_mount sdcard0 /storage/sdcard0 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 nonremovable,encryptable
...
I thought that
Code:
mount /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 /storage/sdcard0
would have been sufficient, but unfortunately not (I tried with /sys/devices/platform/dw_mmc/mmc_host/mmc0/mmc0 to).
I would like to retrieve my internal sdcard content.
Thank you in advance,
Bill
Click to expand...
Click to collapse
i have tried to correct this bug on my ROM tried it hard .
its the only bug i have
so
billdangerous said:
Hi,
Since my last upgrade of cynaogenmod nighties yesterday on my galaxy s2, my internal AND external sdcard are not mouting anymore
I tried to understand why and I found that my /storage folder was empty. I think it should have been populated by /init.smdk4210.rc script :
Code:
...
on early-init
export EXTERNAL_STORAGE /storage/sdcard0
export SECONDARY_STORAGE /storage/sdcard1
mkdir /storage 0775 system system
mkdir /storage/sdcard0 0775 system system
mkdir /storage/sdcard1 0775 system system
mkdir /storage/usbdisk0 0775 system system
...
I tried to mount /storage/sdcard0, but without success (in fact I am not sure to have the right method).
Extract of /system/etc/vold.fstab
Code:
...
# internal sdcard
dev_mount sdcard0 /storage/sdcard0 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 nonremovable,encryptable
...
I thought that
Code:
mount /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 /storage/sdcard0
would have been sufficient, but unfortunately not (I tried with /sys/devices/platform/dw_mmc/mmc_host/mmc0/mmc0 to).
I would like to retrieve my internal sdcard content.
Thank you in advance,
Bill
Click to expand...
Click to collapse
i know the problem has been solved but...
i had the same issue. what i did was run the command:
su
echo mkdir /storage/sdcard0 > /data/local/userinit.sh
chmod 700 /data/local/userinit.sh
reboot
but it only takes effect after a reflash of the rom. after reboot for me, it never fixed and would never mount, but after a clean flash of the rom i was using, it seemed to mount fine. so you must reflash, as reboot does not do anything.
Cannot mount internal sd card
I just flashed my honor 4x with flyme Custom ROM
but now my phone doesn't mount my internal sd card
I tried running these commands on shell using ADB, but it doesn't fix the issue
Pleasr help me out here
Thanks
My phone is a BluLifeOne 2015. One day it stopped booting past the logo so I tried to reflash stock with QFIL to no avail. I no longer can access recovery or OS but I can boot into fastboot and boot into TWRP with the command fastboot boot recovery.img. When I try and format the system it says 0mb and can't mount data, cache or system (argument invalid). The internal storage, data, cache and system are all showing as 0mb and I've tried to change file system on all of them but it does not change the size or give me access to the internal storage. I also tried to flash a zip file but same invalid arguments everytime. Can someone help.

Transferring Files Between SD Cards

I wanted to have the fast SD Card, just to make the overall performance of my phone just a little better, and since my phone model (LG Optimus F7 everything has to be linked to SD card because the "external sd card" is a partition of the built in internal giving 1.27 gig of space - On a current gen phone! Jellybean!)
So I have a SanDisk Ultra 32 gig chip - active chip - partioned into 2 partitions - 1 Fat 32 and 1 ext4
The new card is a Micro Center Circle(10) HC 32 gig chip - partitioned into 2 partitions - 1 fat 32, and 1 ext 4
I have a multi-card reader for my laptop, when I try my main chip the fat32 partition can only have the files copied off, and the ext4 partition won't mount. So I can't just copy the files because any files on second mount are inaccessable. (I just thought while typing this I could makesure partition 1 is bigger than 2, use built in file manager copy all of partition 2 onto 1 on sd card, copy onto computer).
Anyway, I'll try that, but I was wondering if I transfered as much material, then made a back up of my rom, factory reset, re-installed backed up rom but with other sd card in, wouldn't the rom put the files on the sd card where they were? It won't know I switched?
Running Ubuntu Linux -
Errors I get from Terminal, etc below
Code:
####ERROR######
Error mounting /dev/sdb2 at /media/xieon/71937e1e-588a-4e44-a435-9c6485d066c3: Command-line `mount -t "ext4" -o "uhelper=udisks2,nodev,nosuid" "/dev/sdb2" "/media/xieon/71937e1e-588a-4e44-a435-9c6485d066c3"' exited with non-zero exit status 32: mount: block device /dev/sdb2 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
#####ERROR#####

Samsung Android 10 Adoptable Storage corrupt but not corrupt

Hi, I setup adoptable storage on my Galaxy A01 some months ago, and I've just noticed it stopped working. I believe I got it working just by making a private partition with
Code:
sm partition disk:179,64 private
. I believe I only moved media to it.
I just got an out of space warning, and upon investigating, the Storage Settings said the SD card was corrupt. Below is some information from my adb session. It appears all my files are intact, but I can't adopt the storage again. Is there any way for new media (camera photos and videos) to be stored in the SD card?
Code:
a01q:/ $ sm list-disks
disk:179,64
1|a01q:/ $ sm list-volumes
private:179,66 unmountable 60a39f7b-134a-45aa-9354-2571924e3ffd
private mounted null
emulated mounted null
127|a01q:/ $ sm has-adoptable
false
a01q:/ $ sm mount private:179,66
a01q:/ $ sm list-volumes
private:179,66 mounted 60a39f7b-134a-45aa-9354-2571924e3ffd
private mounted null
emulated mounted null
emulated:179,66 unmounted null
a01q:/ $ sm has-adoptable
false
a01q:/ $ sm unmount private:179,66
a01q:/ $ sm list-volumes
private:179,66 unmounted 60a39f7b-134a-45aa-9354-2571924e3ffd
private mounted null
emulated mounted null
a01q:/ $ sm has-adoptable
false
a01q:/ $ sm mount private:179,66
a01q:/ $ sm mount emulated:179,66
a01q:/ $ sm list-volumes all
private:179,66 mounted 60a39f7b-134a-45aa-9354-2571924e3ffd
private mounted null
emulated mounted null
emulated:179,66 mounted null
a01q:/ $ sm has-adoptable
false
a01q:/ $ sm set-force-adoptable on
a01q:/ $ sm has-adoptable
false
a01q:/ $ sm set-force-adoptable default
@jayenashar
If
Code:
sm has-adoptable
returns false then your device doesn't support the Adptable Storage feature.
@jwoegerbauer
Thanks. I didn't know that's what that means.
But I'm a bit confused as I did set it up and migrated the media to it in the first place. I even saw options to move apps over, but I chose not to as I was afraid something like this would happen.
Is there a way I can change it to public without losing my media?
jayenashar said:
@jwoegerbauer
Thanks. I didn't know that's what that means.
But I'm a bit confused as I did set it up and migrated the media to it in the first place. I even saw options to move apps over, but I chose not to as I was afraid something like this would happen.
Is there a way I can change it to public without losing my media?
Click to expand...
Click to collapse
Because your device doesn't support Adoptable Storage the external SD-card - at a whole or in part - never became an extension to device's internal memory, therefore never got reformatted and encrypted. Means it was left "public" as it was when you 1st time plugged it in.
Moving apps ( their data ) onto external SD-card - what is the opposite to convert SD-card to Adoptable Storage - only is possible if developer of apps in question allowed this. The good thing is that this process is reversible, so if you should decide you want the app back on device's internal storage, you can move it again at any time.
Last 2 cents:
Once you adopt an SD card as system storage, you can't remove it unless you want to factory reset the device - what causes complete data loss. That's because system files for apps and settings now live on the card and if you turn the phone on without it, things will go haywire and never be able to recover: the system expects and needs certain files to be in a specific place.
jwoegerbauer said:
Means it was left "public" as it was when you 1st time plugged it in.
Click to expand...
Click to collapse
But why does it appear as private when i do `sm list-volumes`?
At the moment, I'm not too concerned with public/private/adoptable or whatever. I thought it was adopted but I guess I'm just confused.
Somehow the card keeps getting marked as corrupt, or the "emulated:179,66" volume keeps getting unmounted. What's my best course of action? My ideal ending state would be that all the media is on the SD card (currently it seems the old media is there but new media is on the internal storage), and that any new media (camera images, videos, screenshots) are on the SD card. I can backup and restore with adb if I need to reformat the SD card.

Categories

Resources