Resize Partition of Adoptable Storage - Shield Android TV Q&A, Help & Troubleshooting

My search-fu seems to be lacking but I can't locate information on resizing the partition of an external disk.
I have a shield 2019 pro. I had been using a 128gb San Disk Extreme Pro USB drive and decided to upgrade to a Samsung PSSD T7 1TB drive. I successfully DD'd an image file and copied it to the new drive without issue. The Shield works just fine with the new SDD, but now I can't figure out how to resize the partition.
I saw the post here about someone successfully doing the same, but they didn't give any real details. I'm a Linux user and figured they used standard tools to resize, but Neither GParted or Gnome-Disks seem to know how to handle the Android partition.
Are there any guides around for this, or is it even possible?
Thanks!

Related

Lost 1GB space on my SD card after messing around with partitions

Right I never make threads I usually get all my info from other peoples threads but this one has me stumped.
I have been playing around with the different roms for android and decided to try one of the DATA2EXT ones and started making partitions on my 16gb card, I made a 1gb Ext3 partition and installed RAFDroid and somehow it managed to corrupt so I ended up reformatting it and now I am 1gb down on the sd card it has just dissapeared it does not even come up in the partition manager.
If anyone has any solutions I would be very grateful thanks.
Download the Gparted Live application. Burn it onto a CD. Boot your computer using the CD you created (Google for help if you need it). Delete the partition you made. Resize the existing FAT32 partition to occupy the full space available once you have deleted the ext partition.
Right okay, yeah I thought I might have to do that was just downloading it now thanks for the help
Yeah that sorted it, thanks again
I've done the same thing and Maximillion has sorted the issue
I have a netbook with no CD drive, is there another way round this?
this might help:
http://gparted.sourceforge.net/liveusb.php
try "mini tool partition wizard home edition" worked very well with me
MiniTool
You can also use EASEUS Partition Master Home Edition..
That should do it

[Q] how do i put 2 partitions on my sd card

I have scoured and tried to no avail, so I called my mom and told her I was special (as per your awesome noob video), or possibly illiterate. I rooted my nc last week via the instructions I found here (TY!!) it works so great that my memory is full, so I downloaded apps2sd and link2sd and neither will let me transfer to my 16gb PNY sdhc, link2sd says it needs 2 primary partitions, I downloaded easeus, paragon partition manager, and sdk manager, none will let me create a new partition, I can delete, and create 1 partition only, I have tried through windows disk manager as well. I am running Vista 32bit, also have a laptop with XP SP2. Sorry if this question is stupid, any help is greatly appreciated!!
You have to shrink the partition already on there and then make another from the unused space.
---
- Sent from my LG Optimus V using Tapatalk
ok I went back to windows disk management and shrink is greyed out, so I tried paragon and got this message when I tried to resize:
Basic MBR Hard Disk 1 (Lexar RW047SDHC Reader USB Device) - Removable
Wizard could not find any adjacent partitions to work with on this hard drive. Note, hard drive must contain at least a pair of partitions that are located next to each other (two primary and/or two logical) to perform resize between.
Thank You Again!
Try using Easeus.
---
- Sent from my LG Optimus V using Tapatalk
I just checked EaseUs and it seems to work. You can re-size the existing to a smaller one and then create a new one with what is left over.
Most definitely helpful. Thanks!
Sent from my HTC Incredible S using XDA Premium App
Sorry it took so long to get back,
Thank you for your replies, are you using the free version of easeus? on mine I have the re-size option for my hard drive but when i select the sd card it disappears
I think you have to right click the partition to see all the options. Is that what you are doing?
---
- Sent from my LG Optimus V using Tapatalk
I just tried right clicking and still no resize for my sd, I can (copy partition, change label, change drive letter, check-hide-format-explore partition, and view properties). I'm wondering if I perhaps messed up the sd card, it seems to be functional I can add/retrieve data from it and speed up my system. maybe the wrong file system? it is fat32 and says it has a 14.91 GB capacity. I'm generally pretty good with technology, rooting my nook was a breeze, but this is starting to make me feel pretty dumb!
Hmm, backup your sd card onto your pc abd then format the card in the nook and try again. Also make sure you are running easeus as admin.
---
- Sent from my LG Optimus V using Tapatalk
well looks like I'm about 50% there! using mini-tool partition wizard I managed to shrink the original partition down to 6.99 GB, but it wouldn't allow me to add another, it said I had to delete the first partition if I wanted to create multiple partitions, so I did but then when I tried to create the new partitions there was no option to create multiples so I ended up right where I started, so once again I shrank the partition and opened easeus and it keeps telling me I've successfully created the 2nd partitions but is still showing up as unallocated space and my nook wants to format it, won't let me do anything else with it, so I let it and tried again, but still nothing. Is it possible this cannot be done with a 16 GB card? I didn't think size really mattered with this kind of thing it should still be the same operation as a smaller card right?
Do you know of a program like link2sd or app2sd, that doesn't require a 2nd partition? I'm starting to think this is an unfixable user error!

[Gparted] Nook Simple Touch resize partitions non-destructive

!! Important: Make a backup of your Nook device first !!
Resize partitions
1. Download Gparted LiveCD
2. Extract onto FAT / FAT32 USB memory stick or burn to CD-ROM
3. If on a USB memory stick, run \utils\win32\makeboot.bat from the memory stick.
Do NOT run makeboot from a hard disk!
4. Boot computer from USB device into Gparted
5. Connect your Nook running Noogie of a Micro USB card (this will make the partitions visible to Gparted).
6. Resize the last partition (nr 8) labelled "data" (= Barnes & Nobles content)
Make sure to move the partition to the far right.
7. Move the next-to-last partition (nr 7) labelled "cache" without resizing it.
8. Extend the next-to-next-to-last partition (nr 6) labelled "nook" (Side loaded content) to fill the gap.
9. Remove USB cord, Micro USB card and boot your Nook.
10. In Settings you can inspect the amount of storage space.
I received errors when the partitions were about to be moved on the disk.
I changed the partitioning resize to field where it says "Align to:" from "MiB" to "Cylinder". After a 2nd attempt and doing each partition individually all worked out well.
For those only with Windows, download Gparted LiveCD iso image and use virtualbox to boot from it. It still worked well.
Edit: I successfully repartitioned two of my Nook Simple Touch using the method above + virtualbox + Gparted LiveCD iso.
Surprisingly, the size of partitions in my two NST were slightly different, suggesting that the physical size and location of partitions don't matter as long as their order and type in the partition table are as expected and the size is big enough to hold files there. I resized and moved the last three partitions as I wanted several times and made sure they work well.
Factory reset, upgrade to 1.2.1 (this seems to require the cache partition to be big enough to hold the firmware update file: something like 128MB worked for me), rooting all worked well with resized partitions. I ended up shrinking the cache partition down to 32MB and the data partition to 128MB, reserving 1.11GB for the side-loaded contents. I'm sure the system partition can also be shrunken, but I didn't go that far.
Why a live cd? Does installing gparted to whatever linux flavor you're using not work?
I don't use linux on my PC... only on hacked router & nas.
Goggles2114 said:
Why a live cd? Does installing gparted to whatever linux flavor you're using not work?
Click to expand...
Click to collapse
So dump Noogie on a microsd card run noogie and while noogie's running plug nook into pc? Do you just plutg it in and it does everything auto, or does something in noogie need to be run? Does this work on a nook touch glow?
Sorry to sound so dense but rooted using NookManager.
Edit more to the point it's throwing up an error when trying to move sdb8 around. It shrank fine just won't move. Not sure why. Not getting any useful error messages. Just 'can't have overlapping partitions.'
Odd. I was able to move it twice and get it to behave. Yet do the same n one move and Nothing. Apologies for the rinning Log just. Meh. The rest of the partitions resized in one step. sdb8 was the one that needed two steps.
Aaaand Success. Showing up as having 913MB free as opposed to like 212 or whatever.
Edit: now I'm getting a constant 'low space' warning from nook (understandable.) And installing apps is hit/miss on if they'll actually install. Keeps claiming space issues.
Query. Do apps install to the BnN partition or where?
Good to hear another success story. In my case I squeezed all the way to 1.45GB for the side-loaded contents. boot/rom/system/cache/data partitions are shrunken, and factory partition is busted. I had to use fdisk instead of GPartED to completely recreate the partition table, though.
I think, apps are installed to the data partition (the 8th one) under /data/app. Before being installed it's downloaded to cache partition (the 7th one). In my case I gave 16M for cache and 128M for data. If you are low on the data partition and have some space left on the system partition, you can move apps from /data/app to /system/app.
Goggles2114 said:
So dump Noogie on a microsd card run noogie and while noogie's running plug nook into pc? Do you just plutg it in and it does everything auto, or does something in noogie need to be run? Does this work on a nook touch glow?
Sorry to sound so dense but rooted using NookManager.
Edit more to the point it's throwing up an error when trying to move sdb8 around. It shrank fine just won't move. Not sure why. Not getting any useful error messages. Just 'can't have overlapping partitions.'
Odd. I was able to move it twice and get it to behave. Yet do the same n one move and Nothing. Apologies for the rinning Log just. Meh. The rest of the partitions resized in one step. sdb8 was the one that needed two steps.
Aaaand Success. Showing up as having 913MB free as opposed to like 212 or whatever.
Edit: now I'm getting a constant 'low space' warning from nook (understandable.) And installing apps is hit/miss on if they'll actually install. Keeps claiming space issues.
Query. Do apps install to the BnN partition or where?
Click to expand...
Click to collapse
What's the point of doing all this?
You gave a list of instructions, but not the goal they achieve.
L_R_N said:
What's the point of doing all this?
You gave a list of instructions, but not the goal they achieve.
Click to expand...
Click to collapse
Which post are you referring to?
Troute said:
Which post are you referring to?
Click to expand...
Click to collapse
.c0.'s original post.
His instructions describe how to use gparted to resize the partitions on the NST to make full use of the memory available after you have rooted it. I've used gparted before so maybe they were clearer to me than to others but the thread title was the main clue.
Troute said:
His instructions describe how to use gparted to resize the partitions on the NST to make full use of the memory available after you have rooted it. I've used gparted before so maybe they were clearer to me than to others but the thread title was the main clue.
Click to expand...
Click to collapse
I kind of thought that Nook's internal 2GB flash is already sanely formatted (i.e. most space is dedicated to the partition that is mounted at /media). If that is not the case, then that should be noted in the first post. It would also be cool if it said exactly how much space each partition has (I think i saw these partitions back when i've used Noogie to make initial backup of my device, but i don't remember the details), and how much space you would gain, and on which partition (and where it is mounted).
L_R_N said:
I kind of thought that Nook's internal 2GB flash is already sanely formatted (i.e. most space is dedicated to the partition that is mounted at /media). If that is not the case, then that should be noted in the first post. It would also be cool if it said exactly how much space each partition has (I think i saw these partitions back when i've used Noogie to make initial backup of my device, but i don't remember the details), and how much space you would gain, and on which partition (and where it is mounted).
Click to expand...
Click to collapse
Thanks! i did the work 880MB for side loaded content now!!!
on one of my NST i had an issue resizing the FAT32 partition and i had to format it to make it work.
Other than that all went ok!
Thanks
How to maximize RAM available for apps
I found this easy to read table here.
I doubt that I will ever download books from B&N. I want to minimize the space for that. I infer that I should minimize partition 8 that gets mounted to \data. Is there a practical / actual minimum for this?
I see that anything I copy in from my PC over USB is going into media. 100MB should be more than I need. I could put in an SD card for this sort of thing if it grows.
My question is, which partition do I want to increase to make the maximum available to apps downloaded from the google marketplace?
If an application requires a minimum of 512 MB of RAM, which partition(s) do I need to set >= 512?
New additional question: Upon some further research, I see that you can use sd cards for swapfiles to increase system RAM up to a maximum of 4GB. Does anyone know if it is possible to use this built-in storage for the same purpose?
.c0. said:
!! Important: Make a backup of your Nook device first !!
Resize partitions
1. Download Gparted LiveCD
2. Extract onto FAT / FAT32 USB memory stick or burn to CD-ROM
3. If on a USB memory stick, run \utils\win32\makeboot.bat from the memory stick.
Do NOT run makeboot from a hard disk!
4. Boot computer from USB device into Gparted
5. Connect your Nook running Noogie of a Micro USB card (this will make the partitions visible to Gparted).
6. Resize the last partition (nr 8) labelled "data" (= Barnes & Nobles content)
Make sure to move the partition to the far right.
7. Move the next-to-last partition (nr 7) labelled "cache" without resizing it.
8. Extend the next-to-next-to-last partition (nr 6) labelled "nook" (Side loaded content) to fill the gap.
9. Remove USB cord, Micro USB card and boot your Nook.
10. In Settings you can inspect the amount of storage space.
I received errors when the partitions were about to be moved on the disk.
I changed the partitioning resize to field where it says "Align to:" from "MiB" to "Cylinder". After a 2nd attempt and doing each partition individually all worked out well.
Click to expand...
Click to collapse
I have a little (maybe big?) problem. Can't partition with Gparted Live, as gparted scans my /dev/sdb (nook) infinitely. If I plug out my nook, other partitions (in my case: /dev/sda) become visible and ready. Looks like my nook hangs gparted. Tried on 2 different PCs and no effect. Tried different version of Gparted Live (i486 & amd64) - still nothing.
Of course noogie is inside the nook unit, ready and steady. Already made a backup of (non-rooted) device, plus partitions are visible in Minitool Partition Wizard on Windows 7.
What to do in this situation? Is Linux the only safe way to repartition device? Or maybe Minitool would be as effective and safe?
If Linux is the only way to go, how to make nook visible to Gparted?
Please, experts.
DJ Athlon said:
I have a little (maybe big?) problem. Can't partition with Gparted Live, as gparted scans my /dev/sdb (nook) infinitely. If I plug out my nook, other partitions (in my case: /dev/sda) become visible and ready. Looks like my nook hangs gparted. Tried on 2 different PCs and no effect. Tried different version of Gparted Live (i486 & amd64) - still nothing.
Of course noogie is inside the nook unit, ready and steady. Already made a backup of (non-rooted) device, plus partitions are visible in Minitool Partition Wizard on Windows 7.
What to do in this situation? Is Linux the only safe way to repartition device? Or maybe Minitool would be as effective and safe?
If Linux is the only way to go, how to make nook visible to Gparted?
Please, experts.
Click to expand...
Click to collapse
If Gparted doesn't work for you, I'd highly recommend Minitool Partiton Wizard - it's what I used to partiton my Nook. Nice, easy UI, too.
Yeah, I often work with Minitool, but is it as safe as Gparted when it comes to nook?
DJ Athlon said:
Yeah, I often work with Minitool, but is it as safe as Gparted when it comes to nook?
Click to expand...
Click to collapse
Yeah, it is. Just make sure to make a Noogie backup before repartitoning.
Sorry for bugging you, but can't shrink userdata(ext3). What to do? Delete that partition and re-create it or...?
DJ Athlon said:
Sorry for bugging you, but can't shrink userdata(ext3). What to do? Delete that partition and re-create it or...?
Click to expand...
Click to collapse
Yes, delete and recreate is the way to go.
Please, people, help me
Write step to step guide for work with Minitool Partiton Wizard
I want to free the reserved space for B&N books of my NST ver. 1.2.1
The device is already rooted.
I installed Minitool Partiton Wizard on my PC, but after connecting it thru USB cable with my Nook, it only see "official" 240MBs.
Cannot find other around 750 MB reserved storage for B&N books ?
What to do
Explain to me, please

[Q] cloning or recovery to new SSD

I know there is good software out there to clone/image my hard drive and restore it to a new SSD drive.
I'm just wondering though, since my laptop is brand new, I made a full recovery to a USB drive and included the OEM recovery partition.
Couldn't I just swap out the old HDD with the new SSD and boot with the recovery stick and do a full recovery back to the new SSD?
Also, however I do this, recover or image backup/restore, do I need to do some type of SSD alignment? I can't find a clear answer on that.
You can directly image the HDD partitions onto the SSD using a tool such as "dd" on Linux (if you can book off of a bootable Linux image/liveCD, that's probably easiest; just be sure to set a large-ish block size that is a multiple of the SSD block size or the copy will take forever). However, I would tend to recommend doing a clean install of the OS and then restoring your files into it. Using the recovery image would probably work fine, although I prefer clean install media where possible.

Moving apps to SD (external storage) on Shield

Hello, I was unable to find any threads on this so I am making my own. I am running a 2017 Shield TV 16 GB. My OS is the Developer only 7.2.1 image with unlocked bootloader, and Magisk root (I don't have TWRP yet as I am waiting on an updated version that'll work with 7.2.1). My issue is this. I've never had a problem linking/moving apps to an SD card on a rooted phone via mounting a second partition. I have an external 128GB SSD I've added to my Shield. First I partitioned the SSD with two nearly equal size partitions with exFAT file systems, both primary. Once the drive is plugged in I have two options. One is to make the drive adoptable storage which forces me to format to one exFAT partition. So from there I used the app App2SD Pro which has a partitioning tool built in. Every time I use it it would say it was successful and reboot. However, upon reboot I was always back to square one. I also tried the app Aparted but it would force close every time I tried to open it because its not made for android TV I suppose. So I started over with option 2. Keeping the drive as removable storage with the two exFAT partitions instead of making it adopted storage. I tried three different apps: App2SD Pro, AppMgr lll, and Link2SD. All of these couldn't see the second partition! I tried remounting and everything. I even SSH-ed into my shield with WinSCP on my laptop and tried to manually move the apps to no avail. I have a terminal emulator on my Shield but as I understand gparted can't run on an android terminal, so I can't manually partition the drive while plugged into the shield. I am straight up stumped at this point. Any help would be appreciated.
Thread closed as per OP's request.

Categories

Resources