How do you format an SD card to "use as internal storage"?

219 views
Skip to first unread message

ouija

unread,
Aug 10, 2019, 1:20:56 AM8/10/19
to Android-x86
I''ve searched for a clear answer to this question, and either every answer I find is super outdated or doesn't work, and I have to ask:

How do you format an SD Card so that it can be used as internal storage in Android-x86 8.1-r2?

The card is detected (80860F14:01) and there is an entry in the /fstab.android_x86_64 file but if I try to format for internal storage it crashes, and if I use it as portable storage, it seems to be in read-only mode.

There is a real lack of clarity on here and Google about how to do this, or if it is even possible. 

Any help is appreciated.

ouija

unread,
Aug 10, 2019, 1:51:00 AM8/10/19
to Android-x86
Interesting... the read-only issue occurs in Ubuntu on this device as well, all SD cards mount as read-only (they are not in write protect mode, and mount rw in other machines)

ouija

unread,
Aug 10, 2019, 3:35:24 AM8/10/19
to Android-x86
Came across this regarding the sdcard being read-only when it shouldn't be:

https://www.mail-archive.com/search?l=linux-mmc@vger.kernel.org&q=subject:%22mmc+driver+read%5C%2Fwrite+detect+problem+with+Baytrail+tablet%22&o=newest&f=1
You can try booting the kernel with sdhci.debug_quirks=0x1. This tells the driver that the WP signal is inverted

But this doesn't seem to help. Strange thing is now Android is bugging me every boot to setup the SD Card, and before it was mounting it without issue (but readonly). Bah.

ouija

unread,
Aug 10, 2019, 4:10:32 AM8/10/19
to Android-x86
Sometimes you get misinformation... as per: https://www.spinics.net/lists/linux-mmc/msg32465.html
using sdhci.debug_quirks=0x10000 works and the sdcard is now read/write. I'm trying to format it as we speak but it seems to be taking forever.... fingers crossed...

DDS Central

unread,
Aug 10, 2019, 6:32:25 AM8/10/19
to Android-x86
If you intend to use the SD card as primary storage, you should've just put the /data partition on the card instead of using Android's adoptable storage.

On Sat, Aug 10, 2019, 11:10 ouija <djo...@gmail.com> wrote:
Sometimes you get misinformation... as per: https://www.spinics.net/lists/linux-mmc/msg32465.html
using sdhci.debug_quirks=0x10000 works and the sdcard is now read/write. I'm trying to format it as we speak but it seems to be taking forever.... fingers crossed...

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/4141ad4c-5959-4a88-877a-f4967e09fb92%40googlegroups.com.

ouija

unread,
Aug 10, 2019, 1:48:52 PM8/10/19
to Android-x86
Can you use both?  Or only one?  Not a huge deal if not.   I'm actually going to see if I can get this unit to boot from the EFI but use system and data from the SD if possible, and then maybe dual boot alongside Windows..

DDS Central

unread,
Aug 10, 2019, 2:20:48 PM8/10/19
to Android-x86
You can put /system partituon on internal storage and /data on SD card.
Add DATA parameter with your SD card's partition path to kernel command line (for example DATA=/dev/block/mmcblk0p1).

On Sat, Aug 10, 2019, 20:49 ouija <djo...@gmail.com> wrote:
Can you use both?  Or only one?  Not a huge deal if not.   I'm actually going to see if I can get this unit to boot from the EFI but use system and data from the SD if possible, and then maybe dual boot alongside Windows..

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.

ouija

unread,
Aug 10, 2019, 5:04:59 PM8/10/19
to Android-x86
Damn.. I guess you cannot use the SYSTEM or DATA flag is the sdcard isn't seen as a bootable device by the bios?  I've tried a few things here to get the data and system moved to the sdcard, but I get stuck on the "Detecting Android-x86..." line forever...

ouija

unread,
Aug 10, 2019, 6:39:41 PM8/10/19
to Android-x86
So a couple more questions -- if using DATA= to point to the sdcard, does that mean then it's referencing the root folder of the sdcard for the /data directory, or does it need to match the same as the original install (and have data inside an 'android-8.1-r2' folder?)
And what format should the SD card itself be formatted to? exfat? ext4? 


ouija

unread,
Aug 10, 2019, 7:12:01 PM8/10/19
to Android-x86
Yeah I've tried a few times to get just the DATA=/dev/block/mmcblk2p1 to work, (or /dev/mmcblk2p1) but it doesn't seem to use the actual SD card (which I tried formatted as both exfat and ext4), but it's not actually using the sdcard when booted...

Chih-Wei Huang

unread,
Aug 13, 2019, 12:11:11 AM8/13/19
to Android-x86
ouija <djo...@gmail.com> 於 2019年8月11日 週日 上午7:12寫道:
>
> Yeah I've tried a few times to get just the DATA=/dev/block/mmcblk2p1 to work, (or /dev/mmcblk2p1) but it doesn't seem to use the actual SD card (which I tried formatted as both exfat and ext4), but it's not actually using the sdcard when booted...

Boot the debug mode,
type 'exit' once, then type 'mount'.
What did you see?

BTW, the data partition has to be ext4.

--
Chih-Wei
Android-x86 project
http://www.android-x86.org
Reply all
Reply to author
Forward
0 new messages