[ZIP][CM7] Nook Color SDcard and emmc swap! - Nook Color Android Development

Ok after many hours tonight I have managed to put together a couple .zip files that will install a modified vold.fstab on your Nook Color. (I am a total n00b at this)
The EMMC of the Nook Color has a partition for the ROM and a 5 GB partition that's mostly if not completely unused. Presently, there aren't any 3rd-party managers to move apps to that unused partition, so I modified the vold.fstab and am now able to use that partition for apps, files, etc.
NC.SWAP.VOLD.ZIP swaps the way the SD and EMMC directories are mounted. By swapping the mount points, and renaming EMMC to SDCARD, your apps, etc., will install to the internal storage, vs. installing to your SDCARD. Your physical SDcard is automatically mounted as "EMMC."
This also means that the music player still finds files, you can move files to "EMMC," and you can still eject the SDcard ("EMMC"), put it back in and it still shows up automatically. Now your NC won't freak out if you pull the card out without unmounting it - all of the apps are on the actual EMMC. You'd just find the SDcard under /mnt/emmc instead of /mnt/sdcard.
Because this ZIP file maps the change at an OS level, when you boot to recovery, your NC sees SD as the SDcard, so no issues occur. When you boot into your ROM, the mount points are swapped and you'll have access to the renamed "SDCARD" (5 GB) on your NC.
Use CWR 3.0.1.0 to install the .zip and check out the results with File Manager.
Thanks go out to Clark008, luciferii and Cali^Gal from #nookcolor, Loonacy and Raymondull from #Cyanogenmod, and EpicFail1236 from XDA.
Sorry if this is a bit crude, it's my first script ever. I would be happy to get any advice on how to make this better!
EDIT: I have been looking into renaming the emmc mount to say SD-External or better yet making it mount as /mnt/sdcard/sd-ext. it might be possible, ill be looking into it as soon as I can got laid up for a bit.

"Because this ZIP file maps the change at an OS level, when you boot to recovery, your NC sees SD as the SDcard, so no issues occur. When you boot into your ROM, the mount points are swapped and you'll have access to the renamed "SDCARD" (5 GB) on your NC."
/\/\ That clarifies a lot compared to the brief orig post. Will likely be flashing it this weekend.
BTW, if this expands and you need this 2nd post just have a mod give it to you. Thanks again!

BRILLIANT. Will be definitely testing this later today. Can't wait to run SD Tools on this
Sent from my NookColor using Tapatalk

it works! interesting how it'll work out as to unmounting, flashing roms. but with emmc being useless this is fantastic.

Thank you for the effort and time place in this mod

Yeah. The whole point of this was to utilize the 5GB internal emmc and not waste it. The next step is to mod the CWM to mount emmc as /sdcard so you can flash your zips from where you download them to (usually /mnt/sdcard/download), which in this case, goes to your emmc. But CWM will mount your external sdcard instead. For the time being, we can just put the zips we need to flash to the external sdcard, ie. /mnt/emmc.
I don't know if anyone noticed it yet, but if you usb mount after the swap, the transfer speed is kind of slow (~1.5mbps). I don't know if this is due to the emmc or that the read ahead cache needs to be tweaked.
We're open to make this even better. Feel free to comment and provide feedback.

This sounds like a step in the right direction, however, what I would like to see would be merging the emmc with the internal storage. What I mean is this; right now, when I go into "Storage", I see an "SD card" (8gb), "Internal Storage" (0.92gb), and "/mnt/emmc" (5gb). Why can't we combine the .93 Internal and the 5gb emmc together to make a 5.92gb Internal storage and eliminate the emmc from teh storage area? I'm sure there is a reason that I'm not aware of, but it seems that this would be the same as just about every other device. I am pretty sure the ROM is running from the emmc partition, so that has to have something to do with it, but I don't see a purpose for 3 storage places. I keep getting errors when I try to download apps and I don't even have very many installed. I have had to move most of them to the SD card to make room and some apps don't like to be installed on the SD card.
Another option would be to swap the emmc with the Internal storage. Then we'd be using the 5gb and the .92 gb would be sitting there doing nothing instead. Again, I'm sure there are reasons for this, I'm just asking to learn.

I agree.. ideally having the emmc mount be part of the system would be ideal.

Calla969 said:
This sounds like a step in the right direction, however, what I would like to see would be merging the emmc with the internal storage. What I mean is this; right now, when I go into "Storage", I see an "SD card" (8gb), "Internal Storage" (0.92gb), and "/mnt/emmc" (5gb). Why can't we combine the .93 Internal and the 5gb emmc together to make a 5.92gb Internal storage and eliminate the emmc from teh storage area? I'm sure there is a reason that I'm not aware of, but it seems that this would be the same as just about every other device. I am pretty sure the ROM is running from the emmc partition, so that has to have something to do with it, but I don't see a purpose for 3 storage places. I keep getting errors when I try to download apps and I don't even have very many installed. I have had to move most of them to the SD card to make room and some apps don't like to be installed on the SD card.
Another option would be to swap the emmc with the Internal storage. Then we'd be using the 5gb and the .92 gb would be sitting there doing nothing instead. Again, I'm sure there are reasons for this, I'm just asking to learn.
Click to expand...
Click to collapse
i have no idea TBH but thats far beyond my ability. really it would be nice to symlink emmc to the SD card or the other way around. the issue is that you cant symlink with fat partitions :-/

This is neet. I don't know enough to comment, but it looks valuble for some people.
I just use my stock emmc for music storage and let apps sit on SD w/ videos.

WobbleTheHutt said:
i have no idea TBH but thats far beyond my ability. really it would be nice to symlink emmc to the SD card or the other way around. the issue is that you cant symlink with fat partitions :-/
Click to expand...
Click to collapse
No, but you can symlink to them. Why not set vold.fstab to mount the partitions onto other names and make symlinks named /sdcard -> /othername? That way, the symlinks can do their jobs or rearranging the namespace to suit our needs.
The ramfs isn't FAT32, is it?
I'm an old cmdline type, tricks like this are used all the time to fool software with stubborn opinions about filenames.
Dennis

Jiggity Janx said:
If this works as effectively as it sounds like it will it's gonna rock! With the multiple wifi/bluetooth file transfer options I can say bye bye to the need for an sd card!
EDIT: I think this thread is eerily quiet because of the popular advice written up HERE. Specifically #5...
IMO, with a great write up on the best ways to work with this, all of the things it will affect (positive and negative), and the proper words of warning then the individuals that take it upon themselves to modify their devices are the only ones that can be held responsible if it doesn't work out as they had hoped. They also have to understand that when they work outside the boundaries of an accepted "standard" that they are somewhat desolate and will need to come back into the fold before they can/will be helped...
Just my .02...
Click to expand...
Click to collapse
This may be slightly off topic, but I cannot for the life of me figure out what that post is complaining/ talking about, I have had no trouble bouncing between HC, CM7 and stock.
All you have to do is flash to stock and then worst case you force the boot failure and the nook resets its self automatically
The last few posts on that message are myself and another person who have had not trouble with that now the OP hasn't responded so i'm not sure what to make up that post.
Is it real and an actual issue?
Or did the poster overreact to something?
Can some one please explain it to me if I am wrong about something in using a EMMC version of HC?

chisleu said:
This is neet. I don't know enough to comment, but it looks valuble for some people.
I just use my stock emmc for music storage and let apps sit on SD w/ videos.
Click to expand...
Click to collapse
Seems neet to me also. Always interested in using both emmc and sd space.
@ chisleau - I like the concept of putting all my music on emmc. Do you use an option in CM7 to install or move all your apps to your SD card?

thinking out loud (and not actually doing it) -- but we know that /data is /dev/block/mmcblk0p6 and and the "media" or "emmc" is located at /dev/block/mmcblk0p8 -- can't we just repartition and merge the two?

minotauri said:
thinking out loud (and not actually doing it) -- but we know that /data is /dev/block/mmcblk0p6 and and the "media" or "emmc" is located at /dev/block/mmcblk0p8 -- can't we just repartition and merge the two?
Click to expand...
Click to collapse
We can repartition but don't do it for this Reason -#5 http://forum.xda-developers.com/showpost.php?p=12494638&postcount=1

http://forum.xda-developers.com/showpost.php?p=12494666&postcount=2
ROMs that follow proper packaging - This emmc swap mod is one of them. So we're fine for those who are still hesitating.

Clark008 said:
ROMs that follow proper packaging - This emmc swap mod is one of them. So we're fine for those who are still hesitating.
Click to expand...
Click to collapse
Yep, I was hesitating, but between your post above and the "Thanks" from fattire to the OP, that is all the encouragement I need to take the plunge.
A few questions, tho, if someone can help me to understand this better....
I guess until I saw the OP, I did not realize that all apps in CM7 are installed to the SD card, as when I look at my installed apps in App Mgr, they don't show as being on the SD card. Is this some sort of CM7 voodoo or are my apps really on the internal memory?
Right now, with CM7, I am using the EMMC partition to store my music, under "My Files/Music". Power Amp can see this folder and it will play all my music just fine from within that directory on the internal partition, so if I install this update, what will that do to the 5Gb of internal storage I have now and the music on it?
Also, if I do install this update, what will happen to the apps and their associated data that I already have installed? Is this best done on a fresh build or will everything (apps/data and music) be A-OK after the Swap update is applied?
Just want to know what I am getting into by applying this update, as I have things pretty stable right now. If I could roll with apps on internal and music on SD, I would be more than fine with that, as long as I don't lose any of my apps/data/music in the process. If this is just mere partition re-naming/re-pointing, then I suspect my assets will remain intact?
Thanks to all who collaborated on this project!

why can't the entire internal partitions be imaged?
i use dd all the time to backup my sd card installs in case a test kernel or nightly goes poorly- or to burn a fresh install for multiple people. I just pop in the sd card into my laptop and burn the image back to the sd card.
if this was possible i'd have no issues with running off internal entirely if i could just burn the img. and get everything back as stock, including important device identifiers incase those were erased.

Need undo
This did what it's supposed to do but it seems to be causing a problem with the way I'm booting from sd. Is there a way to undo this?

Bump since I found this useful. +1 for CWM sdcard/emmc swap to enable SDcard-less flashing goodness from ROM Manager.

Related

Full OS boot from SD (working)

This is one of those things that I've always assumed would work, but I don't think I've seen anyone actually confirm it or talk about it yet. Before doing any of this I did a clean wipe of everything, just to avoid confusion on my part.
Step 1) I DD'ed the entire filesystem to an 8GB microSD that I have.
Step 2) Mounted p1 from SD (which is a copy of P1 from internal)
Step 3a) Pulled ramdisk
Step 3b) Extracted ramdisk
Step 3c) Changed all mmcblk0 refs to mmcblk1 in init.rc
Step 3d) Recompiled ramdisk
Step 3e) Pushed ramdisk back to p1 on SD
Step 4) Shut down Nook, reboot, confirm via mount command that all mounted volumes are mmcblk1
As I said, this is nothing revolutionary, but I figured it could be good for testing, especially if anyone wants to take a shot at a potentially dangerous mod like recovery or installing a fresh /system. Also, if I ever seriously messed up my internal memory, I would hope to be able to somehow recover by booting via the SD and being able to DD to the internal memory that way.
Very interesting. Thanks for the effort. Might be worth saving the image in case someone actually DOES brick their nook.
I'm curious as to the specifics. Aren't there several filesystems on the device? What did you do to pull/extract/recompile the ramdisk?
APKs
Are you able to install apk files to the emulated rom/nand on SD card...
also are you able to mount an extra partion on the card....
Thanks
"I would hope to be able to somehow recover by booting via the SD and being able to DD to the internal memory that way"
That will be great if we can push those files back to NAND
FYI, Holding just power + Nook buttons for about 15-20 sec will bring up the factury reset screen.
nook'r said:
Are you able to install apk files to the emulated rom/nand on SD card...
Click to expand...
Click to collapse
I haven't yet, but I don't see why not. Nothing especially different about it as opposed to the internal filesystem.
nook'r said:
also are you able to mount an extra partion on the card....
Click to expand...
Click to collapse
Right now I left vold alone, so it rather stupidly mounts p1, which contains all the critical stuff. I don't see any reason why vold couldn't be made to point to another seperate partition. (which is what I did with some other trials when using the internal ramdisk to boot to /system on the SD - left p1 as a "sdcard" partition)
nook'r said:
"I would hope to be able to somehow recover by booting via the SD and being able to DD to the internal memory that way"
That will be great if we can push those files back to NAND
Click to expand...
Click to collapse
I've backed up my own partitions individually. I suppose if I zero'd empty space and gzipped I could probably find some way to write the entire partition table to somewhere.
Would this be useful to someone who would want to dual boot with Ubuntu or MeeGo?
Could this be used to "dual boot" the fully stock Nook in store and then from card when you want to be free?
Homer
Homer_S_xda said:
Could this be used to "dual boot" the fully stock Nook in store and then from card when you want to be free?
Homer
Click to expand...
Click to collapse
This can be used for whatever you want to use it for. I've been running this way for quite a while, and everything works just as it would if you're running from the internal. It's just like dual booting on your PC.
The first (that I saw) and best documentation for setting this up can be found at:
http://blog.fsck.com/
axe2 said:
This can be used for whatever you want to use it for. I've been running this way for quite a while, and everything works just as it would if you're running from the internal. It's just like dual booting on your PC.
The first (that I saw) and best documentation for setting this up can be found at:
http://blog.fsck.com/
Click to expand...
Click to collapse
This is intriguing.
I would love to run everything off a micro sd and then pop it out to put it back to stock.
Would a 1GB micro sd work ok for this?
Someone needs to come up with an automated way to do this. That would be awesome.
moovius said:
This is intriguing.
I would love to run everything off a micro sd and then pop it out to put it back to stock.
Would a 1GB micro sd work ok for this?
Someone needs to come up with an automated way to do this. That would be awesome.
Click to expand...
Click to collapse
1GB is going to be too small to hold the whole system, but 4GB should work.
It should be something that would be scriptable assuming that the required tools exist on the standard rom, but I don't know if the tools are on there.
You could probably get to 1 GB if you dumped all the recovery junk and made media and data tiny. I'm trying to think if there's anything earing up tons of space besides /system.
Of course, just because you can doesn't mean you should.
how about multiple partitions on a 16gb
clockworx said:
This is one of those things that I've always assumed would work, but I don't think I've seen anyone actually confirm it or talk about it yet. Before doing any of this I did a clean wipe of everything, just to avoid confusion on my part.
Step 1) I DD'ed the entire filesystem to an 8GB microSD that I have.
Step 2) Mounted p1 from SD (which is a copy of P1 from internal)
Step 3a) Pulled ramdisk
Step 3b) Extracted ramdisk
Step 3c) Changed all mmcblk0 refs to mmcblk1 in init.rc
Step 3d) Recompiled ramdisk
Step 3e) Pushed ramdisk back to p1 on SD
Step 4) Shut down Nook, reboot, confirm via mount command that all mounted volumes are mmcblk1
As I said, this is nothing revolutionary, but I figured it could be good for testing, especially if anyone wants to take a shot at a potentially dangerous mod like recovery or installing a fresh /system. Also, if I ever seriously messed up my internal memory, I would hope to be able to somehow recover by booting via the SD and being able to DD to the internal memory that way.
Click to expand...
Click to collapse
Think someone could put together a noob guide for this? I'd like to try running a rooted version of Nook Color from SDCARD (partitioned?) on my stock Nook Color.
If possible? Please & Thanks...

Just got DX2 and got questions.

Just got X2.
It was decent deal and I think I like it so far.
That said, I have couple of questions/issues.
#1. When I put my DX2 into my old holster, it THINKS that I am putting it into car dock and that annoying car app comes on and I have to manually turn off the phone. Is there a setting to disable this?
#2. I noticed that DX2 has 2GB root partition and 6GB partition which it mounts to /mnt/sdcard (HIGHLY annoying IMHO) and mounts external sd card as /mnt/sdcard-ext/
Is there way to re-partition and make it 8GB root partition and mount the external SD card as /mnt/sdcard?
I saw the thread regarding swapping /mnt/sdcard and /mnt/sdcard-ext/ but it does not appear too elegant. I wonder whether some kind of partition editor can be used to re-partition the whole thing around.
Thanks.
hpark21 said:
Just got X2.
It was decent deal and I think I like it so far.
That said, I have couple of questions/issues.
#1. When I put my DX2 into my old holster, it THINKS that I am putting it into car dock and that annoying car app comes on and I have to manually turn off the phone. Is there a setting to disable this?
#2. I noticed that DX2 has 2GB root partition and 6GB partition which it mounts to /mnt/sdcard (HIGHLY annoying IMHO) and mounts external sd card as /mnt/sdcard-ext/
Is there way to re-partition and make it 8GB root partition and mount the external SD card as /mnt/sdcard?
I saw the thread regarding swapping /mnt/sdcard and /mnt/sdcard-ext/ but it does not appear too elegant. I wonder whether some kind of partition editor can be used to re-partition the whole thing around.
Thanks.
Click to expand...
Click to collapse
If u are rooted and flash eclipse u will have the sdcard swap included in the rom. Nothing else needed to do but flash eclipse.
And also...eclipse is just amazing anyway
Sorry not much else to suggest.
(Make sure u are on 2.3.4 b4 flashing eclipse 1.0or later)
Welcome to the x2...good to ha e u here...hopefully u don't become frustrated like some here have become with this phone. It can be a little finicky but it IS a very fine phone imho(except for the music stutter issues )
ashclepdia said:
If u are rooted and flash eclipse u will have the sdcard swap included in the rom. Nothing else needed to do but flash eclipse.
And also...eclipse is just amazing anyway
Sorry not much else to suggest.
(Make sure u are on 2.3.4 b4 flashing eclipse 1.0or later)
Click to expand...
Click to collapse
I understand that some ROMs will include the sdcard SWAP function.
However, I was asking whether we can make one gigantic 8GB partition for the system and mount the SD card under /mnt/sdcard just like DX.
Just wondering.
Thanks.
hpark21 said:
I understand that some ROMs will include the sdcard SWAP function.
However, I was asking whether we can make one gigantic 8GB partition for the system and mount the SD card under /mnt/sdcard just like DX.
Just wondering.
Thanks.
Click to expand...
Click to collapse
Nope, can't do that. The only thing you can do is flash the SDCard filp-flop mod. This puts the SDCard as /mnt/sdcard and the 6GB (or what ever) internal storage as /mnt/sdcard-ext.
Hopes this helps.
Oh, referencing the holster thing. Two ways to fix that... First is kinda destructive. Find the little magnet in the holster and pry it out. (I don't have a holster so I don't know how easy that is to do.)
Second is easier. Again, I don't know if this works, but... Nothize, a developer in the Android Market created NoDock (NEED ROOT). It's $3.08, but he does have a trial to see if it will work with the DX2.
Ciao!
Moon Shadow - NM said:
Nope, can't do that. The only thing you can do is flash the SDCard filp-flop mod. This puts the SDCard as /mnt/sdcard and the 6GB (or what ever) internal storage as /mnt/sdcard-ext.
Hopes this helps.
Oh, referencing the holster thing. Two ways to fix that... First is kinda destructive. Find the little magnet in the holster and pry it out. (I don't have a holster so I don't know how easy that is to do.)
Second is easier. Again, I don't know if this works, but... Nothize, a developer in the Android Market created NoDock (NEED ROOT). It's $3.08, but he does have a trial to see if it will work with the DX2.
Ciao!
Click to expand...
Click to collapse
I used this app free from the market to disable car home untill i just went and delete the car home in the system apps. https://market.android.com/details?...SwyLDEsIm1pZ3VlbGl0dG8uZGlzYWJsZWNhcmhvbWUiXQ..

[MOD] Swap your usb storage with external SD!

Tired of that small 5gb usb storage? Here is my hack to swap your external SD card with the USB storage!
This is usefull especially if you use GPS apps that download maps or games that download big data files! I got the idea and studied several hacks for the galaxy 1900 so partial credit goes to whoever made those hacks.
DISCLAIMER : I have only tested this on the 4.0 U.S version running 2.3.5 and am not responsible for a brick (although it seems impossible to brick your phone while messing with this file).
So basically start by going to /system/etc using root explorer or similar (yes, you need root). Once there backup the vold.fstab file to somewhere ON ROOT (I put it in /data/app/)! This is important so you can access it if you need to restore it (also make sure root explorer is installed on device memory, not SD card). Now take my modified vold.fstab and replace the original in /system/etc, then change the permissions to rw-r--r-- (long click the file, then select permissions) . If all goes right after you reboot your device, USB storage should now be your SD card and vise versa! Be aware any apps on your USB storage will now have to be transfered using a PC, move the .android_secure folder to your SD card. Hope it works!
EDIT: here is a modified version for the yp-g70, all credit goes to rjsmith2007 for making and testing this!
Won't Maps pull data from the Ext SD anyway? All my music is on ext SD and players have no problem finding it; I would think maps would be the same. It's really like a 5gb and 16 gb (in my case) partition (isn't it?).
I'm looking for a reason to root, SD card/space is not one of them. My battery only charging to 90% is though, need to recalibrate (since it's never hit 100%)
tcat007 said:
Won't Maps pull data from the Ext SD anyway? All my music is on ext SD and players have no problem finding it; I would think maps would be the same. It's really like a 5gb and 16 gb (in my case) partition (isn't it?).
I'm looking for a reason to root, SD card/space is not one of them. My battery only charging to 90% is though, need to recalibrate (since it's never hit 100%)
Click to expand...
Click to collapse
I am referring to when you download maps with an app like sygic;
it saves it to the /sdcard/ directory instead of the /sdcard/external_ed/. Also gameloft games do the same and can use up your room pretty fast. I find this pretty useful myself, since I have a 32gb sd card, but just wanted to post it so if anyone does ever need it, it's here for them.
iJimaniac said:
DISCLAIMER : I have only tested this on the 4.0 U.S version running 2.3.5 and am not responsible for a brick (although it seems impossible to brick your phone while messing with this file).
Click to expand...
Click to collapse
I just tried it with my Galaxy S Wifi 5.0. The mapping of the internal sd to the external_sd folder fails, but it works for mapping my external sd to the sdcard folder.
Edit: I took a look at the original and made a modification to yours to work with the YP-G70 model (the 5 inch one). Just copy the file from within the zip folder to your /system/etc folder.
rjsmith2007 said:
I just tried it with my Galaxy S Wifi 5.0. The mapping of the internal sd to the external_sd folder fails, but it works for mapping my external sd to the sdcard folder.
Edit: I took a look at the original and made a modification to yours to work with the YP-G70 model (the 5 inch one). Just copy the file from within the zip folder to your /system/etc folder.
Click to expand...
Click to collapse
Thank you! I appreciate it! I post it on the original post and give you the credit.
Thanks man. I appreciate it. I was trying to do this myself before, but ended up having to format my SDcard and gave up. Thanks for the help!
rjsmith2007 said:
Thanks man. I appreciate it. I was trying to do this myself before, but ended up having to format my SDcard and gave up. Thanks for the help!
Click to expand...
Click to collapse
glad I could help!
Can't I just copy all of the data from my internal sd card onto my computer, remove the internal sd card, copy those files onto a larger sd card and put the larger sd card back into the galaxy player? Im sorry if this Queston has been asked before, or if it sounds stupid, but I can't find the answer to this Queston anywhere! Thanks in advance!
(P.S) This post was made with a Samsung Galaxy Player 5.0! No joke!
freshpintreez said:
Can't I just copy all of the data from my internal sd card onto my computer, remove the internal sd card, copy those files onto a larger sd card and put the larger sd card back into the galaxy player? Im sorry if this Queston has been asked before, or if it sounds stupid, but I can't find the answer to this Queston anywhere! Thanks in advance!
(P.S) This post was made with a Samsung Galaxy Player 5.0! No joke!
Click to expand...
Click to collapse
Hi,
There's still a bit of confusion with respect to terminology, I think (including myself).
I *think* that when the SGP5 displays "internal sd card", it's only part of the "internal 8GB memory". That "internal 8GB memory" is probably, I guess, something like an SDCARD or flash memory module that's soldered to the mainboard, and with Android, I think that it's split into a couple of areas.
Here's my "guess" of how things are arranged, using the terminology from Settings==>SD card and device storage:
"System storage": Part of the 8gb internal memory, e.g., includes /system, etc.
[1.65GB, in my SGP5]
"USB Storage" = "internal sd card" = /sdcard: The rest of the 8gb internal memory.
[5.01GB, in my SGP5]
"SD Card": The external microSD card, if you have one plugged in. Appears at /sdcard/external_sd.
[29.81GB, in my SGP5, where I have a 32GB microSD card plugged in.]
That System storage + USB Storage totals 1.65+5.01 GB, or 6.66GB. I guess the remainder of the 8GB is for bootloader, etc.?
Jim
Looks about right. Task Manger has them labeled like you list them, except there is a "Personal data" partition. It's 133mb on my 5.0. Maybe email and contacts?
I'm guess apps get installed on "System Storage", plenty of room there without having to move stuff to USB or Ext. I pretty much just use my ext card for media and pictures.
For some reason this caused issues with my Market connecting to the internet, any idea why? Anyone else experience issues with this modification?
Hmm, no no one has mentioned that problem, and I have been using this for months - no problem. Sorry if it did that, have you tried restoring the original? Also, an update to the instructions is to change the permissions to rw-r-r. I didn't notice anything wrong without changing the permissions, but you never know.
jimcpl said:
Hi,
There's still a bit of confusion with respect to terminology, I think (including myself).
I *think* that when the SGP5 displays "internal sd card", it's only part of the "internal 8GB memory". That "internal 8GB memory" is probably, I guess, something like an SDCARD or flash memory module that's soldered to the mainboard, and with Android, I think that it's split into a couple of areas.
Here's my "guess" of how things are arranged, using the terminology from Settings==>SD card and device storage:
"System storage": Part of the 8gb internal memory, e.g., includes /system, etc.
[1.65GB, in my SGP5]
"USB Storage" = "internal sd card" = /sdcard: The rest of the 8gb internal memory.
[5.01GB, in my SGP5]
"SD Card": The external microSD card, if you have one plugged in. Appears at /sdcard/external_sd.
[29.81GB, in my SGP5, where I have a 32GB microSD card plugged in.]
That System storage + USB Storage totals 1.65+5.01 GB, or 6.66GB. I guess the remainder of the 8GB is for bootloader, etc.?
Jim
Click to expand...
Click to collapse
Pretty close.
https://github.com/Entropy512/initramfs_yp-g70/blob/master/misc/recovery.fstab is the Player 5.0 partition table.
As you can see, nearly everything is on partitions of mmcblk0 - on the Player 5.0, this is eMMC (embedded MMC) storage. The total size of mmcblk0 is 8GB
The partitions here include (but are not limited to):
p10 - EFS - this contains device-specific config data, on phones that includes IMEI, on our device it's probably Bluetooth and WiFi MAC addresses
p11 - Kernel
p12 - Recovery (on some devices, recovery is a separate kernel partition - Samsungs have this partition set aside even though most of their devices don't actually use it. You can put anything you want on p12 and it won't do anything usually. For us, recovery is part of the kernel initramfs on p11)
p13 - /system - This is where the system firmware, often called the "ROM" sits. A number of people are trying to fight the "ROM" terminology, since it's not really true - flash isn't read-only, thus it isn't the "ROM" any more
p14 - In the linked file it's /datadata, but the device actually mounts it as /dbdata - various SQL databases for apps live here
p15 - /cache - a cache partition separate from data. Files stored here are intended to be safely wipable/deletable
p16 - /data - Various user data. Your apps live here unless you've moved them to SD. Most system settings are here too. ICS merges this partition with the internal SD so they are one and the same
p17 - /emmc in recovery and, if someone ever has the time to port it, CM7, /sdcard in Samsung factory firmwares. This is the "internal SD card".
There are a few other partitions that are not touched by recovery that exist, such as the LFS partition and the bootloader partitions. These are all small.
mmcblk1 is the external SD. Usually only one partition, which is /sdcard in recovery/CM7 and /sdcard/external_sd in Samsung factory firmwares
On the 4.0, I believe it uses Samsung's older NAND flash technology and not eMMC, so the partitions on internal storage appear as stlN/bmlN
i think i did something disaster...
i am using Samsung Galaxy W. I did follow your above instruction. The problem is after restarting my phone, I go to setting>storage and it shows total space and available space for SD card and USB storage is UNAVAILABLE. What is available is only Device Memorry which is 1.03GB.
Thinking that your vold.fstab is not compatible with my Samsung Galaxy W, I replace it with the original vold.fstab that I backed up earlier. However this does not solve the problem.
Then what I did is I tried to reset the phone to its original factory setting (Setting>Privacy>Factory Data Reset..),. Unfortunately the same problem still persist. And i think this is silly and catastrophic step since i loss my original vold.fstab which is stored in the internal memory.
Any of you can help me?
Many thanks to all of you
Well, did you change the permissions on your backup back to rw-r--r--? And yes, this mod should only be used for the device intended for. Are you sure that you replaced the modified vold.fstab with the original one? Did it give you an warning about overriding (it should have)? Are you sure you used your backup and not accidentally mine? What program did you use to copy?
Hmm stupid question, but how do you replace the existing file? I am using root explorer an it says it is read-only when I try to paste it in there.
Edit... Never mind... I didn't have it mounted correctly.
I have tried this multiple times, but every time I reboot it says "USB storage damaged, may need reformatting." So I press reformat, and it's done in like 1 sec and the problem still persists.
Any ideas?
Hmm, odd. I know you have the same version player as me, are you running 2.3.5 or 2.3.6, maybe that could affect it? Did you try before you did a lot of modifications to your device? What type of SD card you got, I use a 32gb class sandisk. I don't think that would matter, but you never know. I recall getting that error when I was working on the mod, but I got it fixed before I released it. Weird.
Oh yeah, what do you have your sd card formatted as? I use FAT32, not sure if that could affect it. May want to try reformatting the card on a PC, then try.
I have a 8gb kingston micro sd card, and I'm running 2.3.5. I had this problem a long time ago too when I was still on stock. Maybe it's my sd card. I will reformat it and try again, and if it doesn't work I will try a different sd card.

[Q] emmc/external_sd help for Resurrection Remix 2.1

Seen as I can't ask in the actual Resurrection Remix thread cause of having to have a certain amount of posts, I ask here...
This is for RR 2.1
Has anyone figured out how to get /mnt/emmc to be mounted as /mnt/sdcard/external_sd.
Have been trying, from different threads, to edit vold.fstab and build.prop to no avail. (only get bootloops)
(used root explorer as other file managers cause bootloops sometimes even for small edits)
So if anyone has gotten it to work with this rom could you show what and how to edit the files. It would be greatly appreciated.
Why do you want to mount your internal memory as your external memory?
I would like my actual 8GB sdcard to be mounted as /mnt/sdcard/external_sd
and the internal memory as /mnt/sdcard
Cause right now the 8GB is /mnt/emmc
and the internal memory is /mnt/sdcard
So I'm guessing from your post that its not supposed to be that way to begin with?
but either way it was like that in GB roms and it was so much more convenient to go to straight to the external_sd folder instead of going the extra step of going to mnt/emmc.
And some apps can not find files that are now in /mnt/emmc. So I have to put them on the internal memory.
It was faster to work with.
Da Iceman said:
I would like my actual 8GB sdcard to be mounted as /mnt/sdcard/external_sd
and the internal memory as /mnt/sdcard
Cause right now the 8GB is /mnt/emmc
and the internal memory is /mnt/sdcard
So I'm guessing from your post that its not supposed to be that way to begin with?
but either way it was like that in GB roms and it was so much more convenient to go to straight to the external_sd folder instead of going the extra step of going to mnt/emmc.
It was a lot faster to work with.
Click to expand...
Click to collapse
hey pal check this Multimount sdcard app from play store hope it might resolve ur issue
ps- the emmc / external sd issue is related to AOKP since in AOKP the EMMC folder is ware u find all ur external sdcard files and folders
But isnt that just for mounting sdcard on your PC while its still mounted (accessible) on your phone?
yea, but im wondering if there is a way to get it to actually mount in the "/mnt/sdcard/external_sd" path or anything. as long as its accessible via a folder in the sdcard.
It makes many things so much more convenient.
Da Iceman said:
But isnt that just for mounting sdcard on your PC while its still mounted (accessible) on your phone?
Click to expand...
Click to collapse
yes also check the links below hope they might also help u
http://forum.xda-developers.com/showpost.php?p=24983708&postcount=23071
http://forum.xda-developers.com/showthread.php?t=1410262
Thanks.
Just one more wondering thought. but is there a way to do it like the first link so it starts on reboot, without the need for extra programs (like editing a file or making a startup script)
If not, then its fine, I'll be happy with these.

Expanding internal memory?

I'm a kind of a guy who wants atleast 250 apps on his phone which he actually had when he was on Kitkat (Link2SD linking did all the magic). After switching on to lollipop, the LP version of Link2SD is totally buggy and hardly works. Linked apps don't work, they force crash or show some other error. Link2SD is out of question and I think it's not getting any fixes because the dev says "v4 is is fully functional with LP" and v4.0.6 is already released but is still super duper buggy and it's working for no one, I'm not alone. I don't understand why does the dev still say it's "fully functional" when linked apps don't even work and neither do the mount scripts.
Anyways, link2sd is out of question now.
My query is, is there no way to "expand" the internal memory? I googled and found out some solutions like swapping internal and external memories (means internal would act as external and vice-versa, so if we have a 32GB card, system will see 32GB as internal and 2.1GB internal memory as external memory).
This appeared to be the best solution to all th problems of low internal memory and this is achieved by editing the /system/etc/vold.fstab file. But that file is not there at all on KK or LP! What the hell?! Why is Google "removing" "features" from the newer versions?!
Is there no way to swap?
nilanko said:
I'm a kind of a guy who wants atleast 250 apps on his phone which he actually had when he was on Kitkat (Link2SD linking did all the magic). After switching on to lollipop, the LP version of Link2SD is totally buggy and hardly works. Linked apps don't work, they force crash or show some other error. Link2SD is out of question and I think it's not getting any fixes because the dev says "v4 is is fully functional with LP" and v4.0.6 is already released but is still super duper buggy and it's working for no one, I'm not alone. I don't understand why does the dev still say it's "fully functional" when linked apps don't even work and neither do the mount scripts.
Anyways, link2sd is out of question now.
My query is, is there no way to "expand" the internal memory? I googled and found out some solutions like swapping internal and external memories (means internal would act as external and vice-versa, so if we have a 32GB card, system will see 32GB as internal and 2.1GB internal memory as external memory).
This appeared to be the best solution to all th problems of low internal memory and this is achieved by editing the /system/etc/vold.fstab file. But that file is not there at all on KK or LP! What the hell?! Why is Google "removing" "features" from the newer versions?!
Is there no way to swap?
Click to expand...
Click to collapse
XinternalSD is the only solution for you dude. I can confirm that it is working. It works flawlessly on lollipop, no issues at all.
I already use that but but apks, dex, lib, cache all go to internal only during installation.
I realised that even if I swap the internal (/mnt/emulated/0) and external (/mnt/media_rw/sdcard1), there still a magical "data" partition formatted in ext4 where everything goes-- dex, apks, libs, caches. So, that internal 2.17GB on Moto E which is free is actually shared by both the /mnt/emulated/0 and /data/ which is something I don't understand.
Can anybody explain how does this work? If I check in ES File explorer, 972MB of internal is shown as used up. When I open it and select all folder and files and see the properties, it shows 3 MB used up. This is so confusing.
Isn't there no way other than LINK2SD which would currently work and allow me to successfully link or directly install stuff to the second ext4 partition or SD card or *any* similar workaround? :'(
Android is so stupid :'( Why such a devastating limitation? :'(
Link2sd really works on lollipop also. After creating mount script for the first time reboot the phone , there will be a link2sd mount warning in the notifications after sometime , double click on it and choose the quick reboot option instead of recreating mount script. After quick reboot from the link2sd all the linked Apps will appear. You have to do this every time your phone boots .
Hit thanks If this helped you !
rkmiks said:
Link2sd really works on lollipop also. After creating mount script for the first time reboot the phone , there will be a link2sd mount warning in the notifications after sometime , double click on it and choose the quick reboot option instead of recreating mount script. After quick reboot from the link2sd all the linked Apps will appear. You have to do this every time your phone boots .
Hit thanks If this helped you !
Click to expand...
Click to collapse
It doesn't always work. Those apps which have lib files don't work after linking. Even if we don't link the lib files, it still doesn't work because the lib files kinda "vanish" and show 0 bytes after linking. And the apps either FC or complain about missing lib files.
nilanko said:
I realised that even if I swap the internal (/mnt/emulated/0) and external (/mnt/media_rw/sdcard1), there still a magical "data" partition formatted in ext4 where everything goes-- dex, apks, libs, caches. So, that internal 2.17GB on Moto E which is free is actually shared by both the /mnt/emulated/0 and /data/ which is something I don't understand.
Android is so stupid :'( Why such a devastating limitation? :'(
Click to expand...
Click to collapse
The internal 4GB is partitioned into /system, /data and internal sd.
/system is fixed and stores your ROM and system apps.
Back in the days /data/ used to be just like system. However now /data and internal sd are say dynamic. They grow as you install / copy stuff. This is much better than having fixed size partitions. This isn't a limitations instead consider it a flexibility.
All user apps are installed to /data by default which you cannot swap.
They don't seem to expand at all, for instance, /system/ which has a fixed size and once space is over, I can't copy anything to it!
nilanko said:
They don't seem to expand at all, for instance, /system/ which has a fixed size and once space is over, I can't copy anything to it!
Click to expand...
Click to collapse
Okay. Once again. /system/ is fixed in size for security reasons. You are not supposed to copy anything to it.
Its /data/ and internal sd that are dynamic.

Categories

Resources