yashsingh1/xdaforums huggingface dataset:
[Barnes & Noble Nook Tablet] anlog:
You can store files on the EXT4 partition and access them through a file manager, but it won't appear as a drive on your computer when you connect it. You would have to copy files to an SD card, then from the SD card (plugged into the Nook) to the /data partition.

I'm working on a way to create a "virtual" FAT filesystem within /data that would be mounted to /media instead. This would allow you to use around 10GB for media (while leaving 1GB for /data). The best part is that it doesn't require any repartitioning or reformatting and can be easily undone.
[Barnes & Noble Nook Tablet] roustabout:
If you can't wait for that virtual mount to work (which sounds super cool, by the way; would a different approach be to look at the smb.conf in the Samba server for Android and share /data via Samba over the network? I've read the 'stock' samba server can't share linux filesystems, but I can't help but wonder if that can't be overridden in .conf) you can do some fugly hacking like I did on the NST:

On the NC and NST, /data is an android-only vanilla filesystem

/mnt/media is the filesystem that is swapped out of Android for copying in from Windows.

On a rooted device where /data is not full, you can use fdisk (or busybox fdisk in case you have not symlinked busybox to the commands it supports) to shrink /data. I would do this over a wireless connection, so that you don't get involved in both partition editing and unmount/remount at power on.

If the /data partition is the LAST partition listed by /mount, you can delete it and resize it hot very easily.

delete it.

hit n

create the 'new' partition as a smaller size.

w to write your changes.

You get an error about the kernel still using the old partitioning. You don't care. Reboot, and your /data partition has shrunk. Now might be a good time to run fsck on that new, smaller paritition. You'll get a warning about running fsck on a mounted disk. On a device with a resized partition and no actual filesystem damage, this has not been an issue for me. YMMV.

Then you would need to delete and recreate /mnt/media to the desired size, toggle the partition label to make it a fat filesystem, reboot, confirm that those boundaries worked also, and then run mkfs.vfat (if I'm remembering correctly) on your new partition.

The tricky bit is getting the partition order correct in a complicated filesystem like this one.

On the NST, you don't actually have to get everything just right.

I found that out by happy accident - I wanted to resize /data and /media there, and they are partition 6 and 8 respectively.

The first time I did it, I was confused about which set of notes described what. When the device failed to start 8 times, it looked at the world and realized a reimage was needed, and formatted the available ext fileystems as /data and /cache, and the fat filesystem as /media.

I did not realize this until quite recently, when I needed to reimage my NST to apply update 1.1, and lo and behold: the partition table after reimaging from stock was not in the order I'd ultimately imposed on it the first time.

I do not know how robust the recovery on the NT is.

Seems to me this is a great time to find out - but I would only muck around with the /data and /media and not touch anything below those, and I don't have one of the NTs so my money's not at risk.
[Barnes & Noble Nook Tablet] hwong96:
mmcblk0p10 is media vfat partition

Mmcblk0p11 is data ext4 partition
[Barnes & Noble Nook Tablet] hwong96:
Here is how you repartition /data and /media partitions using Gparted and e2fsprogs as done by a Kindle Fire owner. Methodology is same for Nook Tablet.

http://xdaforums.com/showthread.php?t=1388996
[Barnes & Noble Nook Tablet] jtbnet:
Partitioning seems different as that Extremely Well done set of instructions for a fire only seems to use GParted which I don't believe understands the partitions on th NT???

I could very easily be wrong and if you tried and were successful doing this on an NT then I apologize and want to buy you a case of beer for your efforts to help us all on the NT.... just I'm skeptical as NT doesn't use traditional FS layout or format as far as I believe...

If this worked for you PM me with some proof and your paypal and I'll pay up with thanxs added... else I just felt obliged to question and put my money where my mouth is to save others from at a min. soft bricking their NT...
[Barnes & Noble Nook Tablet] hwong96:
I still haven't picked up an NT yet so I did not try this yet.

For discussion only.

I would think the repartitioning process is simpler than the Kindle Fire since the /media(vfat) and /data(ext4) partitions are at the end of the SD. Gparted does not create ext4 partitions. Gparted can create ext2 partitions and e2fsprogs changes ext2 to ext4 if I follow the logic correctly. My first step would be to make a backup of the /data partition. Then I would delete /data partition. Then I would increase the /media partition using GParted. Then I would create the /data partition as ext2 using GParted. Then using commands in e2fsprogs to convert format to ext4. Then restore the /data backup from the first step.

Here is the NT partitions from NookDevs

http://www.nookdevs.com/Dump_NookTablet_Partitions
[Barnes & Noble Nook Tablet] zmobie:
Not yet! An update to it today actually has gparted displaying the partition correctly (it wasn't before? I thought it had ok support for ext4 partitions before, or since 2009ish), so pretty sure they're working on it. I'd be inclined to wait for official support over making ext2 partitions tbh :)
[Barnes & Noble Nook Tablet] rjmohit:
Has anyone tried it? I wish to try, but don't understand how to make those binaries work, coz KF used CWM, which we don't have yet! Can anyone direct me?
[Barnes & Noble Nook Tablet] DeanGibson:
Repartitioning the NT

Well, I did the repartitioning scripts on the Nook Color, and:

Those gave users up to an additional 4GB of visible space. On the Nook tablet it would be up to an additional 11GB of space.

None of the repartitioning scripts (including those that created two separate, bootable systems: /system, /cache, /data) ever broke the ability to do B&N updates or factory restores.

You are right about waiting for a bootable SDcard capability first.
[Barnes & Noble Nook Tablet] jairuncaloth:
I would think that if it breaks updates, then using parted to reset the partitions back to their factory state would fix that. That still doesn't help us with recovery though.
[Barnes & Noble Nook Tablet] tselling:
I just reparititioned mine. You need to backup userdata partition if you want to restore it. I more or less followed the instructions from the Kindle Fire post mentioned earlier but modified for the NT parition table. From CWM, I deleted partition 11 (userdata) since it is ext4 and parted cannot resize it. I resized partition 10 (media) bigger. Then recreated partition 11 as ext2 and named it userdata. Then converted to ext3, then ext4 using the instructions from the Kindle Fire post. It was pretty straight forward. I did find an error in the instructions where I needed to add a -O option to the second tune2fs command. Now my media partition is approx 11GB and my userdata is approx 3GB. I restored the snowball mod backup from CWM and then rebooted and used Titanium Backup to load my apps from my Nook Color. Seems to have worked nicely. I don't like the NT status/soft button bar, but other than that looks just like my CM7 Nook Color with VTL Launcher.
[Barnes & Noble Nook Tablet] lavero.burgos:
Well then can someone post step by step instructions but first would be better if is properly tested.

~ Veronica
[Barnes & Noble Nook Tablet] rjmohit:
It worked!

I used the above, and

to repartition my NT! Worked just fine!! :)
[Barnes & Noble Nook Tablet] roustabout:
Very nice, more elegant than mine. I booted from a card, deleted 10 and 11, recreated at the desired size, rebooted and forced 8 failures.

The Nook OS restore did the reformatting for me but left the sizes alone.

I would recommend this process more than mine, but it may be good for folks to know that an OS restore won't undo the hard work of resizing the partitions.

Also, once you've done this you can also shell in and

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 and N library to your /media folder for downloading, helpful if you want to manage all your books in Calibre.
[Barnes & Noble Nook Tablet] leegoon84:
Thanks for the tutorial,

however I keep getting "device not found error"

whenever I sty to adb shell.

all my other androidphones in cwm can adb except for NT.

I checked device manager and it shows up as adb composite device so I'm guessing computer recognizes it no problem

I have tried both SDcard booted CWM and internal CWM

do you need stock recovery installed for this repartition to work?

I pretty much tried everything: tried on different machines4 other computers and i can adb with my other phones except NT.

this is really frustrating.

EDIT:

I found out what caused it.

ADB on NOOK tablet is bit different as it requires not only the driver but also "adb_usb.ini"

installed additional package from SDK and modified adb_usb.ini then ADB works in CWM

I will try this new tool for Kindlefire.

FireParted Partition Manager

looks really easy to use

http://goo.gl/0wk87

Edit2:

Thank you "tselling" for the wonderful guide above.

I followed your guide and it worked wonderfully!
[Barnes & Noble Nook Tablet] leegoon84:
Now that we have CM7 alpha internally,

what is the best partition scheme for Nook tablet.

I don't see the point of having 4GB of userdata anymore as I will never go back to NT system

can I just delete partition 11 and make it as fat32 all together?

thanks

EDIT:

changed fat to 1.1GB to 13GB.

and ext4 for the rest (reduced to 2.5GB)

and it's running great on CM7. :)

so internal storage (ext4) = 2.68GB

additional storage : = (10.59
[Barnes & Noble Nook Tablet] tselling:
Just remember that userdata is where most apps install. If you install alot of games you don't want to reduce it too far. 2.5GB is probably ok for most people.
[Barnes & Noble Nook Tablet] ms2003:
it's a bit complex for new guys...

is their a simple way to re-partition?

I'd like to leave 4G for data partition
[Barnes & Noble Nook Tablet] leegoon84:
Tselling's method is very simple.

1/ install CWM

2. ADB connect (install proper driver using Adroid SDK and necessary kit) it's a mistake i made assuming installing the driver was enough.

3. run the exact same code as Tselling did on his thread.
[Barnes & Noble Nook Tablet] ms2003:
if i just use the adb that used to root 1.40 wiil be ok?
[Barnes & Noble Nook Tablet] Greatness83:
does this way also work on CM7 alpha 2?
[Barnes & Noble Nook Tablet] tselling:
Yes, it doesn't matter whether stock or CM7. You need to repartition while in CWM so that the media and data partitions are not being used.
[Barnes & Noble Nook Tablet] GabrialDestruir:
On and after March 12th 2012, B&N will repartition your device (which will have be stock most likely for them to touch it, and will restore device to stock and wiping the device). After this is done devices will have 5.5 BN content with 8GB User Content.
[Barnes & Noble Nook Tablet] thatdude90210:
Very nice, thanks tselling. All that text seem confusing at first to an adb noob like myself, til I realized that your commands are the bold parts. That should be a tip for other fellow noobs, and sometimes the command to enter is just a letter, like the p in (parted) p or the f in Fix/ignore? f. The rest are screen output.

Yeah, I know B&N is going to repartition our NT's in March. I didn't want to have to restore to B&N stock and then have to root all over again. And there was one hairy moment where I miss-spelled one command and received an error message. But overall it was pretty painless.
[Barnes & Noble Nook Tablet] ms2003:
I did it! it's perfect except when I do a factory reset in CMW, it will raise an error:

format_volume: make_extf4fs failed on /dev/block/mmcblk1p2

but till now I didn't find any impacts.
[Barnes & Noble Nook Tablet] tselling:
Sorry, yes I bolded the actual commands, and I guess I should have said been more explicit about that.
[Barnes & Noble Nook Tablet] ms2003:
Thank you very much, I used your script to repartition, it's perfect!

but when I do a factory reset in CMW, it will raise an error:

format_volume: make_extf4fs failed on /dev/block/mmcblk1p2

is this normal?
[Barnes & Noble Nook Tablet] Hamington:
Where would you get the ADB drivers?
[Barnes & Noble Nook Tablet] ms2003:
you can find them in root package for 1.40
[Barnes & Noble Nook Tablet] tgraves:
Yes, the error is normal.

Reboot out of CWM to Nook OS (Nook will act like new tablet, because data is gone). Then reboot back into CWM(power+N button if internal CWM), and perform an advanced restore of your data partition, after restoring data, reboot again and you should be good to go.

I had to mess with my keyboards to get them back and running OK.
[Barnes & Noble Nook Tablet] bruce guo:
After repartion, is it safe to restore stock rom?
[Barnes & Noble Nook Tablet] leegoon84:
there shouldn't be an issue

but CM7 is far better than the stock
[Barnes & Noble Nook Tablet] ms2003:
yes, CM7 is better except video issue

---------- Post added at 02:06 AM ---------- Previous post was at 01:50 AM ----------

I see when create partition 11, you typed ends at 15.6GB, but after that, it shows end at 15.9GB, is that a type mistake?
[Barnes & Noble Nook Tablet] tselling:
No, I typed 15.6 but it extended to 15.9 (the end of the drive) automatically.
[Barnes & Noble Nook Tablet] meghd00t:
NO, it is using all the space till the end of the disk, if you look further up when parted is fixing the layout it finds space at the end of the disk which is unused.
[Barnes & Noble Nook Tablet] ms2003:
ok, I known.

thank you!
[Barnes & Noble Nook Tablet] uouo521:
filename problem

everything works fine after I repartitioned media with @tselling ‘s script

Thanks him

but I have some problem with filename

If I named file with Chinese or Japanese. the filename all become "?" when I try to find them on the device.

p.s I can see the correct file name on the computer when I connected the USB

any helps?
[Barnes & Noble Nook Tablet] esmith1359:
Sorry to pester, I'm a total noob to this site and only somewhat familiar with rooting and android hacking. I just rooted my wife's NT last night using the liliputing article titled "How to install CyanogenMod 7 alpha on a NOOK Tablet"

Now I want to use the method shown in this thread to fix the partitions for the same reasons everybody else does this.

Can someone help me understand this?

I am assuming that:

1) I will need to install special drivers/software on my laptop and possibly on the NT before I begin

2) I will be entering these shell type commands on my PC and they will get injected via USB and into the NT using said software

3) This will need to be done while the NT is booted into the CWM main menu, but that's only to make sure that certain partitions aren't being used while we re-size them, NOT because we'll be using the CWM to actually do anything...

My questions:

What is ADB?

How do I check to see if this CMV7 I installed last night already has ADB and everything else I need to run the commands?

Also, what extra software should I have on my PC to get started and where should I get it?

Thanks again for your patience, hard work, and anything further you can tell me
[Barnes & Noble Nook Tablet] lavero.burgos:
1)you will need to install drivers and setup ADB only if you used the sdcard method to boot into cwm and flash CM7 directly and you did not use your PC to root stock.

2)yes

3)exactly

http://xdaforums.com/showthread.php?t=1474956

That link will explain to you how to use ADB so you get familiar and I also include the necessary drivers to make it work. As for how to install the drivers you need to watch a video made by AlbertWertz, you can find it in my FAQ here in general section 2ND post or google free how to root nook tablet part 1 by AlbertWertz.

~ Veronica

Sent from XDA premium using my Nook Tablet :P
[Barnes & Noble Nook Tablet] esmith1359:
Thanks :) I used the sd card method but I had some issues. When I used indirect's method I could create a bootable sd card to load CWM, but I couldn't add the zip for flashing CMV7 to the sd card because the free space had magically vanished or something. I tried using a bigger card but no luck. I assume this is related to the "specific geometry" he was describing in his instructions.

Anyway, I just connected my NT to my laptop before I started and copied the CMV7 zip file to the NT's internal (measly 1gb I might add) memory so that CWM could find it there. It worked out.
[Barnes & Noble Nook Tablet] ag94:
you can create a bootable card with 2GB partition (instead of 50 MB, as described in manual).
[Barnes & Noble Nook Tablet] esmith1359:
how would you reverse this operation?

Ok, so There's a decent chance I'll do this soon. I've been thinking about it for awhile now. How hard is it to repartition the drive back to the crummy 1gb stock configuration so I could reflash stock rom without errors and shamelessly seek any needed warranty service? What would be the script to reverse this?
[Barnes & Noble Nook Tablet] meghd00t:
First off you will be able to use the stock recovery to upgrade B&N firmware, the upgrade process does not reset the partition tables

or

use cwm recovery and adb to reverse the changes it is very easy.
[Barnes & Noble Nook Tablet] CRE:
Is everyone opting to fix these GPT complaints? Does everything work fine if they're left intact?

I'm just wondering if this is something B&N may use as a red flag should a device come in under warranty... I'm probably just being overly paranoid (as usual). I'd just like to be sure I could get it back as close to stock as possible, if desired.
[Barnes & Noble Nook Tablet] meghd00t:
yes, you will need to fix the gpt errors otherwise parted will not go ahead and create the new partitions. From what I can see, very soon (one we have fastboot working - thanks to fattire & cyanoboot) we can fastboot oem format to fix the partitions back
[Barnes & Noble Nook Tablet] css771:
For some reason I did not get the initial gpt errors. As a result the userdata partition ends at 15.6GB and does not extend to 15.9GB. But the repartitioning worked. I just have this ~300MB "missing"? Just curious why this is. Anyone have any ideas about this?
[Barnes & Noble Nook Tablet] meghd00t:
I just discovered that there is a 4EXT recovery which contains mkfs.ext4 mkdosfs If someone can pull that apart and stuff the mkfs.ext4 into cwm then the extra steps to make the filesystems can be simplified a whole lot.
[Barnes & Noble Nook Tablet] bigbug2428:
my Nook raise same error: format_volume: make_extf4fs failed on /dev/block/mmcblk1p2, when i reboot, my Nook still boot in CWM again and again (with or without sd card). Do i have a chance to fix it?
[Barnes & Noble Nook Tablet] Floating Point:
Nice, works pretty good. I just tried something different on backup and restore, but failed :p

I tried to backup userdata via adb by simply using tar, then later after repartitioning I tried to push and extract the backup on partition 11, but when I turned on the tablet I got that welcome screen from B&N showing that I lost everything lol. I don't know what went wrong, but it's Ok, I didn't have anything on userdata that couldn't be reinstalled.
[Barnes & Noble Nook Tablet] tselling:
Not sure why it is giving that error. mmcblk1 would be the sdcard and you shouldn't have been messing with that. You should have been changing mmcblk0 and only partitons 10 & 11. I would boot back into CWM and use ADB to recheck the partitions and be sure they look right. If partition 11 is not ext4 and labeled userdata then you didn't do something right and you might want to redo it.
[Barnes & Noble Nook Tablet] cyberma007:
Originally Posted by tselling

Not sure why it is giving that error. mmcblk1 would be the sdcard and you shouldn't have been messing with that. You should have been changing mmcblk0 and only partitons 10 & 11. I would boot back into CWM and use ADB to recheck the partitions and be sure they look right. If partition 11 is not ext4 and labeled userdata then you didn't do something right and you might want to redo it.

That is normal, dont worry about it, this happens after you partition, does not effect anything and it all works the way it should
[Barnes & Noble Nook Tablet] Elmar1801:
Works fine here. No Problems with backup. Thanks
[Barnes & Noble Nook Tablet] soshite:
Thanks buddy! Worked famously! Just one thing, I'm using CM9 Alpha 0.02, and the 'media' partition was renamed emmc. And now it won't automount on my box like it would before. I don't know if maybe I changed the filesystem or something, but if it's fat32 it should automount, to my box right? Or do I need to flag it with something?

Thanks!

EDIT: oh-em-gee. It's a bug in parted. msftres partition, why didn't I see that before. ._.

I'll update later when I fix!
[Barnes & Noble Nook Tablet] ccgcool:
How to get parted on windows 7 ?

How to get parted on Windows 7 ?

Please Help.
[Barnes & Noble Nook Tablet] old_fart:
Please google parted or gparted. The partition editor is a linus masterpiece !
[Barnes & Noble Nook Tablet] spikeygg:
So I just did this on my device yesterday. I noticed that some of the apps I downloaded weren't showing up after rebooting. I figured it was because of the /mnt/media partition being screwed up, so I used the "Erase Card" option in the setup menu of Cyanogenmod rom, I think I screwed myself because now when I look at the partition layout with parted it looks like this:

~ # ls /dev/block
ls /dev/block
loop0 loop5 mmcblk1 ram10 ram15 ram6
loop1 loop6 mmcblk1p1 ram11 ram2 ram7
loop2 loop7 platform ram12 ram3 ram8
loop3 mmcblk0 ram0 ram13 ram4 ram9
loop4 mmcblk0p1 ram1 ram14 ram5
~ # 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
Warning: /dev/block/mmcblk0 contains GPT signatures, indicating that it has a
GPT table. However, it does not have a valid fake msdos partition table, as it
should. Perhaps it was corrupted -- possibly by a program that doesn't
understand GPT partition tables. Or perhaps you deleted the GPT table, and are
now using an msdos partition table. Is this a GPT partition table?
Yes/No? y
y
y
Model: MMC MAG4FB (sd/mmc)
Disk /dev/block/mmcblk0: 15.6GB
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.6GB 4034MB ext4 userdata

(parted)

HELP! How do I fix this?? I can't see and /dev/block/mmcblk0 partition 2-11! :crying:

Update:

Okay, I fixed my boot problem with the video from Veronica "[HOW-TO] Recreate/Repartition media & userdata back to stock in the Nook Tablet.mp4" using the toggle flag to lvm.
[Barnes & Noble Nook Tablet] gauco:
I had just the same problem. Was trying to find a solution for a week or two, until today. Your solution worked, as the only one. Thanks a lot for sharing it.

One more question: did you carry out any other commands besides the toggle command?
[Barnes & Noble Nook Tablet] spikeygg:
Not sure if you still have this problem, I only did the toggle and wrote the disk. However, I would recommend that you wipe out the partitions you created with parted and redo them with sgdisk using the method shared from Veronica in "[HOW-TO] Repartition NT Hard Disk: Media & Data Storage | 8/16 GB Nook Tablet". The parted method is... incomplete.