meghd00t's 8GB and 16GB partition rescue sdcard: http://forum.xda-developers.com/show....php?t=1562130
For whatever reason the repartitioning card didn't work on my 16gb tablet, which is why I had to do it manually.
When to use this guide
1. If you used parted to remove your entire partitions and cannot recreate them in parted
2. If 1 is true, and you can't boot into Clockworkmod
3. If 2 is true and nothing will boot at all--the only exception being booting from the sd card--and it just won't turn on at all and get into any splash screen.
4. If everything else has failed
5. If all the above are true but you can boot Clockworkmod from an sd card. This is important.
If your nook will boot into cwm, then your partitions are fine. If you would like to, however, you can still use this to fix your nook, but I insist you try other methods around the development section before trying this one. This is a long process, and most other solutions for an otherwise dead nook can easily be solved, and a lot faster. This should only be used as a last resort. Otherwise if you just want to experiment around a bit, feel free!
Okay. So, visit Goncezilla's thread on making a bootable cwm-sd:
Download the files on the first method ("METHOD 1- SDCARD")
Instead of a 50mb partition, just make a 2gb partition, make sure it's formatted to fat32 and enable boot, and lba flags. I reccommend at least a 2gb microsd. Anyways, unzip the files that are provided, but put them in the root folder of the sd card, not "SDCARD". Make a folder called blk.
Go to lavero.burgos' topic on "restoring partitions with dd":
Download the provided files: mmcblk0p1, mmcblk0p2, mmcblk0p3, and mmcblk0p4. Place them in the "blk" folder.
Download the two files provided by meghd00t here:
unpack gdisk and sgdisk to the root folder of the sdcard. unpack "scripts" into the same root folder of the sdcard. Don't worry about the mess. Now make sure your nook is off by pressing and holding the power button for like 15 seconds. Then, insert the the microsd card into your nook. Connect the cable to the nook and either to the wall adapter or to your box. Let it boot into cwm. Once in, open up a terminal. First thing you want to do:
$ adb start-server $ adb devices
$ adb shell ~ # mount sdcard ~ # dd if=/dev/block/mmcblk0p5 of=/sdcard/blk/mmcblk0p5
**Note, if it brings up an error, make sure the sdcard is mounted, try again, and cd over to /sdcard/blk to make sure that the rom partition is there safely. If it brings up an error and everything is mounted, try changing the extension name to "mmcblk0p5.img" when you use disk dump.
Optionally, it might be smart to backup the rom partition to your computer:
~ # exit $ adb pull /sdcard/blk/mmcblk0p5 /path/to/backup
~ # cd sdcard /sdcard # ./sgdisk -Z /dev/block/mmcblk0
/sdcard # ./sgdisk /dev/block/mmcblk0 -a 256 -n 1:256:511 -n 0:0:1023 -n 0:0:31743 -n 0:0:65535 -n 0:0:163839 -n 0:0:262143 -n 0:0:1019903 -n 0:0:2273279 -n 0:0:3145727 -n 0:0:+12G -n 0:0:0
/sdcard # ./sgdisk -c 1:xloader -c 2:bootloader -c 3:recovery -c 4:boot -c 5:rom -c 6:bootdata -c 7:factory -c 8:system -c 9:cache -c 10:media -c 11:userdata /dev/block/mmcblk0
/sdcard # ./sgdisk -p /dev/block/mmcblk0
/sdcard # cd /sdcard/sbin /sdcard # ./genptable /tmp/genptable
/sdcard # mv /tmp/genptable /sdcard/blk ~ # dd if=/sdcard/blk/genptable of=/dev/block/mmcblk0
/sdcard # cd sbin /sdcard/sbin # ./mkdosfs -F 32 /dev/block/mmcblk0p5 /sdcard/sbin # ./mkdosfs -F 32 /dev/block/mmcblk0p6 /sdcard/sbin # ./mkdosfs -F 32 /dev/block/mmcblk0p10 /sdcard/sbin # cd ../../ ~ # dd if=/sdcard/blk/mmcblk0p1 of=/dev/block/mmcblk0p1 ~ # dd if=/sdcard/blk/mmcblk0p2 of=/dev/block/mmcblk0p2 ~ # dd if=/sdcard/blk/mmcblk0p3 of=/dev/block/mmcblk0p3 ~ # dd if=/sdcard/blk/mmcblk0p4 of=/dev/block/mmcblk0p4 ~ # dd if=/sdcard/blk/mmcblk0p5 of=/dev/block/mmcblk0p5
Now this next part is confusing, but for some reason make_ext4fs didn't want to work for me, so I had to do it the painful way:
~ # parted /dev/block/mmcblk0 (parted) rm 7 (parted) rm 8 (parted) rm 9 (parted) rm 11 (parted) mkpartfs primary ext2 134MB 522MB (parted) mkpartfs primary ext2 522MB 1164MB (parted) mkpartfs primary ext2 1164MB 1611MB
(parted) mkpartfs primary ext2 2684MB 15.9GB (parted) quit ~ # tune2fs -j /dev/block/mmcblk0p7 ~ # e2fsck -fDp /dev/block/mmcblk0p7 ~ # tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p7 ~ # e2fsck -fDp /dev/block/mmcblk0p7 ~ ~ # tune2fs -j /dev/block/mmcblk0p8 ~ # e2fsck -fDp /dev/block/mmcblk0p8 ~ # tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p8 ~ # e2fsck -fDp /dev/block/mmcblk0p8 ~ ~ # tune2fs -j /dev/block/mmcblk0p9 ~ # e2fsck -fDp /dev/block/mmcblk0p9 ~ # tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p9 ~ # e2fsck -fDp /dev/block/mmcblk0p9 ~ ~ # tune2fs -j /dev/block/mmcblk0p11 ~ # e2fsck -fDp /dev/block/mmcblk0p11 ~ # tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p11 ~ # e2fsck -fDp /dev/block/mmcblk0p11 ~ ~ # parted /dev/block/mmcblk0 (parted) name 7 factory (parted) name 8 system (parted) name 9 cache (parted) name 11 userdata (parted) print
Model: MMC 016G4A (sd/mmc) Disk /dev/block/mmcblk0: 15.9GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 131kB 262kB 131kB xloader 2 262kB 524kB 262kB bootloader 3 524kB 16.3MB 15.7MB recovery 4 16.8MB 33.6MB 16.8MB boot 5 33.6MB 83.9MB 50.3MB fat32 rom 6 83.9MB 134MB 50.3MB fat32 bootdata 7 134MB 522MB 388MB ext4 factory 8 522MB 1164MB 642MB ext4 system 9 1164MB 1611MB 447MB ext4 cache 10 1611MB 2684MB 1074MB fat32 media 11 2684MB 15.9GB 12.9GB ext4 userdata
(parted) quit ~ # umount sdcard ~ # exit
Status: xloader, bootloader, recovery, and boot partitions were all flashed and should be working perfectly. Which means you have probably noticed yourself booting into cwm, which is a good sign!!
Now, insert an sdcard that has your original cwm backup. And go ahead and restore your backup. Wipe /cache. Reboot the nook. You should see a splash screen. Dead nook... alive!11!
That's pretty much it. I'm just happy my nook is working. Hopefully this will help someone out who has a dead nook and has no clue how to fix it, like I did. If you have any questions, let me know so I can try to help. If you notice an error or inconsistency in my guide, please let me know so I can fix it before someone breaks their nook because of me. Sorry about reformatting the ext4 partitions guys. Since make_ext4fs wouldn't work for me, that was the only other way I knew how to do it. If someone can post what they did to reformat to ext4 using make_ext4fs, I'll edit the post to accomodate everyone else.
Thanks to: meghd00t, lavero.burgos, AdamOutler, tselling, and CelticWebSolutions.