View Single Post
Old 07-11-2024, 11:25 AM   #2
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 3,985
Karma: 18026955
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
I hate to even wade into this subject again...

B&N likes that UMS, where you plug in your Nook and it says connected.
What it presents has to be (MS DOS/Windows) FAT-ish because that's the standard.
They give you 5 GB for this area.
You can make this area 20 GB or 1 byte.
B&Ns decision for size was just based on guessing the needs of the customers.
It was not intended to be evil.

There's two ways to proceed from here depending on how you feel.

Keep using the UMS and FAT. Expand the 5,368,709,120 bytes to 20 GB or whatever. You will probably need to be rooted. There is a script for resizing but you'll have to edit this some to get it to do what you want. /system/bin/ums_open_resize.sh

It might be something like this. Backup everything first.
Code:
truncate -s 20G /sdcard/.mass/backingFile.img
fatresize -q -s 20G /sdcard/.mass/backingFile.img
fsck_msdos -y /sdcard/.mass/backingFile.img
The other way is to just keep everything in /sdcard (which is not a physical SD card). The question is if your application can see files there. Then there is how to get files there. You will have to use ADB. The good thing is, you don't even have to be rooted.

FIRST MAKE SURE YOU HAVE NOTHING IMPORTANT SAVED IN THE "NOOK IS CONNECTED" AREA. DOWNLOAD IT TO YOUR DESKTOP. THIS WILL ERASE EVERYTHING THERE.

Code:
C:\>adb shell
$ setprop persist.sys.usb.config adb
$ cd /sdcard/.mass
$ ls -l
-rw-rw---- 1 root sdcard_rw 5368709120 2012-11-02 14:25 backingFile.img
$ echo Hello > backingFile.img
$ ls -l
-rw-rw---- 1 root sdcard_rw 6 2012-11-02 14:46 backingFile.img
So, you just got rid of 5G of wasted space. Keeping a file of some kind prevents it from being recreated without having to disable the scripts.
Code:
$ cd /sdcard
$ mkdir Marvel
^D
C:\>adb push Superman1.epub sdcard/Marvel
Mmm, is Superman DC Comics?

Last edited by Renate; 07-11-2024 at 12:08 PM.
Renate is online now   Reply With Quote