[Barnes & Noble Nook Tablet] .AndroiD.:
Hello!

The partitions on my nook got messy, and when i tried to use the repart.img i got a red X.

i found this guide by so****e whice didn't work for me, but defenetly helped me and everything that is written here is based on it.

Download the files from so****e thread and put them where it says. When you get to the part of the commands- come back here. (in the last link, one file (scrips) is down from the server. you can get this file here.)

This should work for the nook tablet 16GB, i don't know about the 8GB.

This method worked for me, i'm not sure it will work for you, but it should.

I am not responsible for any damage; anyhow this should fix the damage. DO NOT try this if you don't have any experience. Before you do enything, read everything and make sure you understand.

After you have all the files in the right place, and you are in CWM recovery, let's get started.

In CWM, get into mounts and storage, and then get into mount SDcard.

Open the CMD in your computer, connect your nook to your computer and let's start the work :)

After you write "adb devices", make sure you see the serial number and recovery:

$ adb start-server
$ adb devices

This will backup your rom partition, which holds important information, like serial no. and MAC address- When i tried to save it i got an error, maybe this will work for you, this is pretty important:

$ adb shell
~ # mount sdcard
~ # dd if=/dev/block/mmcblk0p5 of=/sdcard/blk/mmcblk0p5

Then:

~ # 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

Then:

/sdcard # cd /sdcard/sbin

/sdcard # ./genptable /tmp/genptable

Then:

/sdcard # mv /tmp/genptable /sdcard/blk

~ # dd if=/sdcard/blk/genptable of=/dev/block/mmcblk0

Then:

/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

Then:

/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

Then:

~ # parted /dev/block/mmcblk0

(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

Then:

(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/mmcblk0p11

~ # e2fsck -fDp /dev/block/mmcblk0p11

~ # tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p11

~ # e2fsck -fDp /dev/block/mmcblk0p11

Then:

~ # parted /dev/block/mmcblk0

(parted) name 1 xloader
(parted) name 2 bootloader
(parted) name 3 recovery
(parted) name 4 boot
(parted) name 5 rom
(parted) name 6 bootdata
(parted) name 7 factory
(parted) name 8 system
(parted) name 9 cache
(parted) name 10 media
(parted) name 11 userdata

To make sure that everything is OK, do this:

(parted) print

If you did everything right, you should get something like this:

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.3MB 33.6MB 17.3MB 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 system
9 1164MB 1611MB 447MB cache
10 1611MB 14.5GB 12.9GB fat32 media
11 14.5GB 15.9GB 1430MB ext4 userdata

###As you can see the "File system" in 8&9 are missing. After a rom installtion it will fix itself###

From here, just go to CWM, install your favorite rom and you are good to go.

[notice]If you have bootloader problem like me, just download "CyanoBoot" (Universal Bootloader).

Sorry if I had any spelling mistake,

and Goodluck!