Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,740,095 Members 40,808 Now Online
XDA Developers Android and Mobile Development Forum

Using the same SD card partition for eMMC and SD booting

Tip us?
 
soonereng
Old
(Last edited by soonereng; 5th February 2011 at 05:31 AM.) Reason: clarification
#1  
Junior Member - OP
Thanks Meter 5
Posts: 20
Join Date: Jan 2011
Default Using the same SD card partition for eMMC and SD booting

I can't post on the development forum, but this was asked there. Basically for those running Froyo or HC off SD who want the stock (or rooted) eMMC system to recognize the same SD partition.

It was suggested that one should edit the vold.fstab file, however, this file doesn't exist in the stock (or my rooted) BN filesystem. However, vold.conf does exist in /system/etc

I just edited my vold.conf so that it reads as below (bold is added line):

Code:
Select Code
## vold configuration file for zoom2
# modified for encore

volume_sdcard {
    ## This is the direct uevent device path to the SD slot on the device
    media_path     /devices/platform/mmci-omap-hs.1/mmc_host/mmc0
    partition	   8
    media_type     mmc
    ##mount_point    /sdcard
    mount_point    /media
    ums_path       /devices/platform/usb_mass_storage/lun0
}

volume_sdcard2 {
    ## Currently points to internal eMMC, assumes eMMC is formatted as FAT32
    media_path     /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
    partition      4
    media_type     mmc
    ##mount_point    /media
    mount_point    /sdcard
    ums_path       /devices/platform/usb_mass_storage/lun1
}
I can now use the same SD card partition when booting from the SDcard or internal eMMC.

Disclaimer: If you copy this and it bricks your Nook. Don't blame it on me. I didn't make you do it.

Remove the .txt extension, make sure your SD card is out and boot off internal system, make /system writable, backup the original vold.conf either by adb pull or as below, then push the new vold.conf file.

Code:
Select Code
adb shell
mount -o remount,rw /dev/block/mmcblk0p5 /system
cd /system/etc
mv vold.conf vold.conf.bak
exit
adb push vold.conf /system/etc
Shut down nook and reboot off internal eMMC, replace SD card, and voila, the same SD working partition.
Attached Files
File Type: txt vold.conf.txt - [Click for QR Code] (695 Bytes, 117 views)
The Following User Says Thank You to soonereng For This Useful Post: [ Click to Expand ]
 
Canadoc
Old
#2  
Senior Member
Thanks Meter 100
Posts: 1,656
Join Date: Nov 2010
But doesn't it automatically boot to the sd card
If it inside?
From 1.1 Nook Color with 1.1 ghz overclock
 
soonereng
Old
#3  
Junior Member - OP
Thanks Meter 5
Posts: 20
Join Date: Jan 2011
Quote:
Originally Posted by Canadoc View Post
But doesn't it automatically boot to the sd card
If it inside?
From 1.1 Nook Color with 1.1 ghz overclock
Yes. If you want to boot off internal eMMC you would need to remove SD card before booting. Then install the SD after it's booted up. This allows you to use the entire SD card rather than the 100 mb that is on the boot partition of the froyo and HC SD images.

There is probably a more elegant solution, this was just mine.
 
Homer_S_xda
Old
#4  
Senior Member
Thanks Meter 60
Posts: 408
Join Date: Dec 2010
Thanks for the solution!

Homer
 
Canadoc
Old
#5  
Senior Member
Thanks Meter 100
Posts: 1,656
Join Date: Nov 2010
great will have to give this a try some time
 
soonereng
Old
#6  
Junior Member - OP
Thanks Meter 5
Posts: 20
Join Date: Jan 2011
Quote:
Originally Posted by Homer_S_xda View Post
Thanks for the solution!

Homer
You're welcome.
 
Damager78
Old
#7  
Junior Member
Thanks Meter 1
Posts: 23
Join Date: Mar 2011
Default Stupid Question...

Do you need to partition the SD card before doing this, or will it be done already when you burn the HC image into the SD card? I'm looking to burn the HC (4 gigs) into an 8 gig card and have about 3-4 gigs free in the SD card to use.
 
dweezilz
Old
#8  
Junior Member
Thanks Meter 0
Posts: 25
Join Date: Feb 2008
Does anyone know if this will work with the new froyo update?
 
w8wca
Old
(Last edited by w8wca; 19th August 2011 at 01:57 PM.)
#9  
Member
Thanks Meter 10
Posts: 67
Join Date: Mar 2008
Location: Columbus
OK post http://forum.xda-developers.com/show...1&postcount=15
Has it right - I just needed to change both auto's to 4's

vold.fstab
Was:
dev_mount sdcard /mnt/sdcard auto auto /devices/platform/usb_mass_storage/lun1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1

Now:
dev_mount sdcard /mnt/sdcard 4 4 /devices/platform/usb_mass_storage/lun1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1

Thanks !
TF101 16G w/KatKiss KitKat 4.4.2 #25

NookColor - ManualNooter 4.6.16

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Rotation Lets You Take Full Control of Your Device’s Orientation Settings

To be brutally honest, the native options for screen … more

Change the Alarm Icon in the Status Bar with Xposed

It’s hard to find a more hated object than your alarm clock. They wake us up nearly … more

Return to Outer Space Outer Space with Ship Up Game

Since the release of Flappy Birds, we’ve had the “fortune” to see … more

Device Review: OnePlus One

Seemingly every day, there are a bunch of new devices being released. Some are budget devices and some are … more