Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
foobar66
Old
(Last edited by foobar66; 24th January 2012 at 04:05 PM.)
#1  
Senior Member - OP
Thanks Meter 24
Posts: 132
Join Date: Jan 2011
Default Using multi partition external SD card [solved]

I am sharing this in this forum. Hope this is the right place.

I have been trying to re-partition my external SD card using one vfat partition and a bigger ext4 partition. Then my intention was to mount ext4 through an init.d script.

Partitioning (with gparted under Linux) was of course not a problem.

However, the system does not recognize the multi partition external SD card.
I am using Leedroid's HC (but I don't think that matter so much).

After system has fully started it says "SD card is damaged", do you want to format it.

So yes ... I formatted it. Then mounted it again under Ubuntu.

Back into gparted ... and ... now there is no partition table any more !

The android formatting has just written a vfat file system over the whole device without using a partition table.

So ... no luck.

Then I looked at the volume manager. In the file /etc/vold.fstab we can see:

dev_mount sdcard /mnt/sdcard 33 /devices/platform/msm_sdcc.2/mmc_host/mmc0
dev_mount sdcard2 /mnt/sdcard/ext_sd auto /devices/platform/msm_sdcc.4/mmc_host/mmc2
dev_mount usb /mnt/sdcard/usb auto /devices/platform/msm_hsusb_host.0

So, I re-formatted the SD card with a vfat and ext4 partition and changed the vold.fstab to:

dev_mount sdcard /mnt/sdcard 33 /devices/platform/msm_sdcc.2/mmc_host/mmc0
dev_mount sdcard2 /mnt/sdcard/ext_sd 1 /devices/platform/msm_sdcc.4/mmc_host/mmc2
dev_mount usb /mnt/sdcard/usb auto /devices/platform/msm_hsusb_host.0

(so I changed "auto" into "1" in the second line)

Well after booting ... no good! System still thinks SD card is damaged and proposed to re-format it.

I am guessing there must be a way tricking the vold daemon into using the first partition (vfat) as file system instead of the whole device block ... but I have not found it yet.

Maybe I am missing something very simple here so any help would be appreciated.
HTC Desire, rooted, S-OFF, with Ubuntu fonts.
HTC Flyer WIFI, rooted, S-OFF, HC, Ubuntu fonts.
 
DigitalMD
Old
(Last edited by DigitalMD; 24th January 2012 at 03:36 AM.)
#2  
DigitalMD's Avatar
Senior Member
Thanks Meter 425
Posts: 2,313
Join Date: Mar 2010
Location: Washington DC
Normally questions go in the Q&A section.
Never really checked into this but I don't think the Android framework has capability to handle more than one partition per device even if you supply the mount points.
On the color nook it works as you described because the primary boot device was the SD card. You might try searching through the Nook forum
Days of free media are almost over as the biggies look for more revenue streaming from your wallet... ...Don't believe me? Take a look at all the flagship models now being sold WITHOUT microSD card slots.
 
foobar66
Old
#3  
Senior Member - OP
Thanks Meter 24
Posts: 132
Join Date: Jan 2011
Quote:
Originally Posted by DigitalMD View Post
Normally questions go in the Q&A section.
Never really checked into this but I don't think the Android framework has capability to handle more than one partition per device even if you supply the mount points.
On the color nook it works as you described because the primary boot device was the SD card. You might try searching through the Nook forum
Well, I have multiple partitions on external SD card on my HTC Desire phone. They appear under /dev/block/mmcblkXp1 and /dev/block/mmcblkXp2. However, on the flyer I only see /dev/block/mmcblkYp1 (which is the first partition of the internal memory mounted on /sdcard). There is a different mechanism for the mount of /sdcard2 (external SD card). No entries in /dev/block are created for it.

I will have a look at Nook forum tonight. Thanks for response.
HTC Desire, rooted, S-OFF, with Ubuntu fonts.
HTC Flyer WIFI, rooted, S-OFF, HC, Ubuntu fonts.
 
DooMLoRD
Old
#4  
DooMLoRD's Avatar
Recognized Developer
Thanks Meter 20720
Posts: 10,106
Join Date: Jul 2010
Location: Indian Institute of Management, Ahmedabad (IIMA)
Quote:
Originally Posted by foobar66 View Post
Well, I have multiple partitions on external SD card on my HTC Desire phone. They appear under /dev/block/mmcblkXp1 and /dev/block/mmcblkXp2. However, on the flyer I only see /dev/block/mmcblkYp1 (which is the first partition of the internal memory mounted on /sdcard). There is a different mechanism for the mount of /sdcard2 (external SD card). No entries in /dev/block are created for it.

I will have a look at Nook forum tonight. Thanks for response.
Android system needs first partition of sdcard to be vfat

Sent from my LT15i using XDA App
Like my work? Please consider donating via PayPal

Lead Developer of Team UtterChaos & Member of Team ICX

Creator of DooMKernel making those Snapdragons fly higher and faster

Android Devices I use : Sony Xperia Z, T, S, ARC, PLAY

Contributions : Generic Android / Xperia X10 / Xperia 2011 devices / Samsung Galaxy S2 / Huawei Ideos X6 / Samsung Galaxy SCL (i9003) / HTC Flyer / Kindle Fire / HTC JetStream / Xperia P, Sola, U / HTC One X / Xperia S / Xperia T, V, TX / Xperia Z, ZL, Tablet Z





** NEW *** Xperia SDCARD Mounter App! (supports Xperia Z, ZL, Tablet Z, T/TL, TX, V, S/SL/NX, Ion, Acro S/HD, P, U, Go, Sola, J, Miro, Tipo, Tipo Dual, E, E Dual!)
The Following User Says Thank You to DooMLoRD For This Useful Post: [ Click to Expand ]
 
foobar66
Old
#5  
Senior Member - OP
Thanks Meter 24
Posts: 132
Join Date: Jan 2011
Quote:
Originally Posted by DooMLoRD View Post
Android system needs first partition of sdcard to be vfat

Sent from my LT15i using XDA App
Well, OK ... but it does not work if there is a partition table !
So 2 partitions (1 VFAT and 1 ext4 does not work).
It only works when the whole block device just contains a VFAT file system (without partition table).
HTC Desire, rooted, S-OFF, with Ubuntu fonts.
HTC Flyer WIFI, rooted, S-OFF, HC, Ubuntu fonts.
 
foobar66
Old
#6  
Senior Member - OP
Thanks Meter 24
Posts: 132
Join Date: Jan 2011
OK, I figured it out (kinda).

Apparently, when I create 2 partitions (1 VFAT and 1 ext4) via gparted under Ubuntu then the Flyer won't properly recognize the partition table (that is my guess). Don't know why ...

I created 2 partitions via CWM ... and now it is working fine.

So I have:

/dev/block/mmcblk1p1 -> VFAT
/dev/block/mmcblk1p2 -> EXT4
HTC Desire, rooted, S-OFF, with Ubuntu fonts.
HTC Flyer WIFI, rooted, S-OFF, HC, Ubuntu fonts.
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Learn to Edit Graphics for your Development Work

The importance of good and appropriate graphics for your development work is undeniable. Be … more

Tasker Alternative: AutomateIt, Automates Your Device Tasks – XDA Developer TV

XDA Developer TV Producer Kevin wants to help make your … more

Preventing App Piracy: Join the Discussion

The topic of piracy is always a touchy subject, but I feel that the grass roots style of Android … more

Jolla Sailfish OS Flagship Device Makes First Appearance

Given the amount of coverage that Android receives around here, you could almost be … more