[Barnes & Noble Nook Tablet] carkev:
let me first say that virtually none of what follows is my own work!

I have simply 'tweaked' and plagiarized the brilliant postings made by others, to hopefully make it all a bit more idiot proof for newbies, and lesser mortals such as myself. (respect to 'tselling' in particular) ...

Note that this only for 16GB Nooks that have been rooted, and with CM Recovery available

I'm sure it would work on the 8 gigs, but don't know the figures to use

background:

after rooting, installing CWmod, and a CM 10 rom on my 16 gig Nook Tablet by following the great guides on here, I then wanted to go the whole hog and repartition it.

initially, Veronicas post here: http://xdaforums.com/showthread.php?t=1531120

seemed the best, as I could get 12 Gig for myself. sadly it did not work for me as my copy of Cwmod does not support 'sqdisk' - but I learned a lot nonetheless.

I then found 'tselling's great post here:http://xdaforums.com/showpost.php?p=22157605&postcount=25

I eventually resized my partitions to approx 4GB & 9GB, but not without some issues.

the posting stated that all actual commands were in bold, eg: 2nd command was (parted) print but this failed.

“back in the day”, I was very good with MSDOS and batch files, so I knew in my heart that I had missed something obvious!, yep! - (parted) is the screen response, print is the command ... from then on it was all a bit of a doddle

so here is my two pennyworth:

preparation: read everything at least once! ... and ensure you have done a full CM backup !

1. from all the great guides on here, ensure that you know how to connect your Nook to a PC,install drivers, and 'ADB' etc, and how to get into an ADB Shell.

2. the method works via CW Recovery, which can be either from an sdcard, or installed internally, (as mine is). do not continue until you are comfortable with all that

3. reboot your Nook into Recovery, cable it to your PC, and get ADB running.

4. run command ADB devices, then ADB shell to ensure you have connectivity.

5. all the actual commands to enter into your PC are in red (some are just single letters)

6. screen responses from ADB are in black (but not bold)

7. my comments and observations are in blue (but not bold)

8. despite the length of this post, (and my blathering), the whole process takes less than 10 minuets, and only entails the copying and pasting of 24 commands from here, onto your PC

9.some of the screen responses

you

will get are not exactly as I have got shown below. (this is simply because I had already done it once for 4 & 9 gig, and this was my 2nd run for 12gig.)

10.even if you mess up, don't panic, as the backup you made earlier can easily be restored with your CM recovery, and you are good to go again.

11. so let's start:- below are the commands to copy into your PC (remember, red lines only)

~ # parted /dev/block/mmcblk0

parted /dev/block/mmcblk0

GNU Parted 1.8.8.1.179-aef3

Using /dev/block/mmcblk0

Welcome to GNU Parted! Type 'help' to view a list of commands.

(parted) print (here we are simply asking it what partitions we currently have, but we don't get them until we do the 2 required 'fixes' that follow)

print

print

Error: The backup GPT table is not at the end of the disk, as it should be.

This might mean that another operating system believes the disk is smaller.

Fix, by moving the backup to the end (and removing the old backup)?

Fix/Ignore/Cancel? f

f

f

Warning: Not all of the space available to /dev/block/mmcblk0 appears to be

used, you can fix the GPT to use all of the space (an extra 569312 blocks) or

continue with the current setting?

Fix/Ignore? f

f

f

Model: MMC SEM16G (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.6GB 12.9GB ext4 userdata

(parted) rm 11 (removing partition 11, it needs to be removed as most of that space will be needed for partition 10 to stretch in to)

rm 11

rm 11

(parted) resize

resize

resize

Partition number? 10 (partition 10 is the one we want to the be largest, so it is to be resized))

10

10

Start? [1611MB]? (1611MB is end of partition 9, so don’t' anything -just hit enter key only)

End? [2684MB]? 13.6GB (increased from tsellings 11.6GB) (I put an extra 2 gig here as the original instructions ended up with 9 gig and 4 gig)

(also, there will be a pause here whilst it completes)

13.6GB

13.6GB

(parted) p

p

p

Model: MMC SEM16G (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 13.6GB 12GB fat32 media lvm

(now making partition 11, which was removed earlier)

(parted) mkpartfs primary ext2

mkpartfs primary ext2

mkpartfs primary ext2

Start? 13.6GB (ie: - where partition 10 ended earlier)

11.6GB

11.6GB

End? 15.6GB

15.6GB

15.6GB

(another pause here whilst it does it)

(parted) p

p

p

Model: MMC SEM16G (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 13.6GB 12GB fat32 media lvm

11 11.6GB 15.9GB 2326MB ext2

(success! look at nos 10 & 11 -my partitions are now 12GB and 2.36Gb,rather than the 4 & 9 as in the original 'tsellings' posting)

(parted) name 11 userdata (just naming partition 11)

name 11 userdata

name 11 userdata

(parted) p

p

p

Model: MMC SEM16G (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 11.6GB 9989MB fat32 media msftres

11 11.6GB 15.9GB 4326MB ext2 userdata

(parted) quit (just quitting 'part' only, and staying in the ADB shell)

quit

quit

(Information: You may need to update /etc/fstab - I did.)

~ # tune2fs -j /dev/block/mmcblk0p11

tune2fs -j /dev/block/mmcblk0p11

tune2fs 1.41.6 (30-May-2009)

Creating journal inode: done

This filesystem will be automatically checked every 30 mounts or

0 days, whichever comes first. Use tune2fs -c or -i to override.

~ # e2fsck -fDp /dev/block/mmcblk0p11

e2fsck -fDp /dev/block/mmcblk0p11

/dev/block/mmcblk0p11: 11/529056 files (0.0% non-contiguous), 49429/1056092 blks

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

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

tune2fs 1.41.6 (30-May-2009)

(now running e2fsck on the files system)

~ # e2fsck -fDp /dev/block/mmcblk0p11

at this point, my system did not show all the 'fixed' responses as in 'tselling's original post but it did end with the same confirmation that all was ok,

ie:

/dev/block/mmcblk0p11: 11/529056 files (0.0% non-contiguous), 49429/1056092 bloc ks

so it is ok to continue

~ # parted /dev/block/mmcblk0

parted /dev/block/mmcblk0

GNU Parted 1.8.8.1.179-aef3

Using /dev/block/mmcblk0

Welcome to GNU Parted! Type 'help' to view a list of commands.

(parted) p

p

p

Model: MMC SEM16G (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 11.6GB 9989MB fat32 media msftres

11 11.6GB 15.9GB 4326MB ext4 userdata

(parted) quit (simply quitting 'part')

quit

quit

~ # reboot recovery (finally, the last command)

at this point the Windows CMD box on your PC will drop out of ADB, and your Nook will reboot back into Recovery,

where, from “backup and restore - advanced restore” you can restore your data partition only.

Reboot system yet again, and all should be fine

I have attached photo of mine.

...........................................................................................................

Also, once you've done all this you can, if you wish, go back into an ADB shell and enter the following commands one at a time

cd "/data/media/B&N Downloads"

rm -r *

cd ..

rmdir "B&N Downloads"

ln -s "/media/B&N Downloads" "B&N Downloads"

this points your B & N library to your /media folder for downloading, helpful if you want to manage all your books in Calibre.

...............................................................................................................

again,

many thanks, and my full respect and appreciation, to all those whose knowledge and postings here at XDA have made all this possible for the less experienced amongst us.

Kevin

ps: it's a pity though that I do not know ADB as well as I do MSDOS, else I would have compiled a 'batch file' or script to make it automated.