New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
clockworx
Old
#1  
Senior Member - OP
Thanks Meter 21
Posts: 182
Join Date: Jun 2009
Default 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.
The Following 3 Users Say Thank You to clockworx For This Useful Post: [ Click to Expand ]
 
edison
Old
#2  
Member
Thanks Meter 7
Posts: 53
Join Date: Jul 2007
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?
 
nook'r
Old
(Last edited by nook'r; 15th December 2010 at 12:30 AM.) Reason: fyi
#3  
Member
Thanks Meter 6
Posts: 62
Join Date: Dec 2010
Default 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.
 
clockworx
Old
#4  
Senior Member - OP
Thanks Meter 21
Posts: 182
Join Date: Jun 2009
Quote:
Originally Posted by nook'r View Post
Are you able to install apk files to the emulated rom/nand on SD card...
I haven't yet, but I don't see why not. Nothing especially different about it as opposed to the internal filesystem.

Quote:
Originally Posted by nook'r View Post
also are you able to mount an extra partion on the card....
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)

Quote:
Originally Posted by nook'r View Post
"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
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.
The Following User Says Thank You to clockworx For This Useful Post: [ Click to Expand ]
 
discourse
Old
#5  
discourse's Avatar
Member
Thanks Meter 4
Posts: 52
Join Date: Apr 2009
Location: Singapore and Finland
Would this be useful to someone who would want to dual boot with Ubuntu or MeeGo?
Phones: iPhone4S, Nokia N8, Nokia N9
Tablets: Nokia N800, iPad, Nook Color
 
Homer_S_xda
Old
#6  
Senior Member
Thanks Meter 56
Posts: 391
Join Date: Dec 2010
Could this be used to "dual boot" the fully stock Nook in store and then from card when you want to be free?

Homer
 
axe2
Old
#7  
Senior Member
Thanks Meter 6
Posts: 103
Join Date: Dec 2009
Location: Tucson, AZ
Quote:
Originally Posted by Homer_S_xda View Post
Could this be used to "dual boot" the fully stock Nook in store and then from card when you want to be free?

Homer
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/
 
moovius
Old
#8  
Member
Thanks Meter 0
Posts: 58
Join Date: Sep 2007
Quote:
Originally Posted by axe2 View Post
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/
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.
 
axe2
Old
#9  
Senior Member
Thanks Meter 6
Posts: 103
Join Date: Dec 2009
Location: Tucson, AZ
Quote:
Originally Posted by moovius View Post
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.
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.
 
clockworx
Old
#10  
Senior Member - OP
Thanks Meter 21
Posts: 182
Join Date: Jun 2009
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.


XDA PORTAL POSTS

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more

Guide to Take Better Control of Your Volume Levels

Would you like to know one of the things that really annoys me on a daily basis? Tough, … more

Get the Android 4.2.2 Status Bar on Your Gingerbread-Based Samsung

There are still quite a few of folks who run Gingerbread on their … more