yashsingh1/xdaforums huggingface dataset:
[Nexus 7 (2013) Original Android Development] black7:
Need some help [MENTION=5424240]Clamor[/MENTION]

I flashed the partition zip, went to terminal and typed 'modify' and it did it's Dark Magic. No errors that I can remember.

Was able to flash twrp-3.3.1-1_UA-flo.img and am able to get into bootloader and recovery.

When I to go TWRP and try to format partitions I am getting errors:

Failed to mount '/vendor' (Invalid Argument)

Failed to mount '/cache' (Invalid Argument)

Tried to flash the partition script again but it comes up with the same errors.

Partition log:

Model: MMC MMC32G (sd/mmc)

Disk /dev/block/mmcblk0: 30937186304B

Sector size (logical/physical): 512B/512B

Partition Table: gpt

Number Start End Size File system Name Flags

1 67108864B 156745727B 89636864B fat16 radio

2 201326592B 204472319B 3145728B modemst1

3 204472320B 207618047B 3145728B modemst2

4 268435456B 283795455B 15360000B ext4 persist

5 335544320B 336343039B 798720B m9kefs1

6 336343040B 337141759B 798720B m9kefs2

7 402653184B 403451903B 798720B m9kefs3

8 403451904B 406597631B 3145728B fsg

9 469762048B 471298047B 1536000B sbl1

10 471298048B 472834047B 1536000B sbl2

11 472834048B 474931199B 2097152B sbl3

12 474931200B 480174079B 5242880B aboot

13 480174080B 480698367B 524288B rpm

14 536870912B 553648127B 16777216B boot

15 603979776B 604504063B 524288B tz

16 604504064B 604505087B 1024B pad

17 604505088B 606041087B 1536000B sbl2b

18 606041088B 608138239B 2097152B sbl3b

19 608138240B 613381119B 5242880B abootb

20 613381120B 613905407B 524288B rpmb

21 613905408B 614429695B 524288B tzb

22 614429696B 2187293695B 1572864000B ext4 system

23 2187293696B 2263875583B 76581888B cache

24 2263875584B 2264924159B 1048576B misc

25 2264924160B 2281701375B 16777216B recovery

26 2281701376B 2281709567B 8192B DDR

27 2281709568B 2281717759B 8192B ssd

28 2281717760B 2281718783B 1024B m9kefsc

29 2348810240B 2348843007B 32768B metadata

30 2348843008B 2610987007B 262144000B vendor

31 2610987008B 30937169407B 28326182400B ext4 userdata
[Nexus 7 (2013) Original Android Development] Clamor:
[MENTION=1314351]black7[/MENTION] format partitions despite errors. They won't affect
[Nexus 7 (2013) Original Android Development] Telek:
[MENTION=5424240]Clamor[/MENTION] thanks for all your work on this!

Despite being many years late to the party, it looks like I have an unsupported device. Nexus 7 2013 LTE.

I read through all the posts, tried everything that I could find, and even manually checked the size.prop file which returns unknown.

Here is my partition log. The main partition sizes are original, and the top of it has:

Model: MMC 032G96 (sd/mmc)

Disk /dev/block/mmcblk0: 31268536320B

...

30 2415919104B 31268519423B 28852600320B ext4 userdata

(I assume that last line is what your script looks for).

When I try running the repartition script, it only says that "This is not Nexus 7 (2013)" and error 1.

I assume that I can just use your same repartition script, and simply replace the end of the userdata partition with the end of my userdata partition. I verified that all of the other partitions line up as expected. [EDIT: Yes, this works, see next post]
[Nexus 7 (2013) Original Android Development] Telek:
Because I'm impatient, I fixed it myself - worked as I suspected :)

I used the same end byte as my previous partition table. Wound up with a boot loop (returning to recovery after a few minutes at the lineage animation), turns out it was installing TWRP as a system app and this is a known problem for a while. Frustrating they haven't fixed or removed that, and that it's the default option. Reinstalled without that option, and booted no problem.

I took the liberty of updating two of your scripts. I haven't done the revert to factory one yet.

Thank you for this!
[Nexus 7 (2013) Original Android Development] Ty07allstar:
Nevermind. I figured it out.
[Nexus 7 (2013) Original Android Development] mind_pt:
Hello,

After i install Flash repartition pack zip, i do the command in terminal, they reboot, and it take so long to enter again in TWRP (3.3.1) and then, when they finally enter, i cant access at my data to flash a custom twrp (3.x.x-1 UA)

After that i do all wipes and now i dont have any errors to mount partitions, but i can send files to sdcard folder to install new rom!

Anyone can help me please?
[Nexus 7 (2013) Original Android Development] Robexuk:
Did you format data partition.....
[Nexus 7 (2013) Original Android Development] mind_pt:
Yes the instructions says to do it

Enviado do meu MI 5s através do Tapatalk
[Nexus 7 (2013) Original Android Development] mind_pt:
Forget all, i try again and i it works.

Like:

1. Factory reset in TWRP (old version);

2. Install new TWRP (3.x.x-1 UA)

3. Reboot;

4. Install Flash repartition pack zip (sysrepart_1280_120.zip)

5. Install ROM;

6. Reboot.

And work without any errors.
[Nexus 7 (2013) Original Android Development] tomhumus:
Hello, everyone,

I also tried to follow the instructions, but unfortunately fail at the point where i have to install the new TWRP (after repartition, which worked out fine). Despite multiple wipes I cannot mount the device (ASUS Nexus 7 2013 WiFi/flo) to load the necessary TWRP-.img to the device. I am now a bit stuck, because on the one hand there is no system on it and on the other hand no connection to the PC is possible anymore to download any files. Do you have an idea how to get out?

Many greetings and thanks so much for the software!
[Nexus 7 (2013) Original Android Development] Robexuk:
I have used OTG USB flash drive.
[Nexus 7 (2013) Original Android Development] mind_pt:
Follow this steps, they worked for me:

1. Factory reset in TWRP (old version);

2. Install new TWRP (3.x.x-1 UA)

3. Reboot;

4. Install Flash repartition pack zip (sysrepart_1280_120.zip)

5. Install ROM;

6. Reboot.

And work without any errors.

Enviado do meu Nexus 7 através do Tapatalk
[Nexus 7 (2013) Original Android Development] tomhumus:
Thank you! That worked out for me and I tried another USB cable, dunno if that was also an helpful move, but in the end..you know..it doesn't matter.
[Nexus 7 (2013) Original Android Development] mind_pt:
I try different type of tutorials and I think they have to much information and turns confuse at same time.

Enviado do meu MI 5s através do Tapatalk
[Nexus 7 (2013) Original Android Development] Sevilho:
How it works?

Hi all and especially the developers!

Please explain how this REPARTITION works. So, you need to increase the partition /System. This can be done apparently only due to /Date. Their mmcblk numbers are 22 and 30 respectively. Apparently you need to reduce /Date, "move" all intermediate partitions 23-29 and increase /Date. So?

If so, why is it recommended to perform a backup of modem partitions 2 and 3, because they do not participate in the REPARTITION? And why not radio partition 1?

Sorry for the beginner's questions :)
[Nexus 7 (2013) Original Android Development] a8ksh4:
Hi All, I tried using this in prep for updating my deb to lineage 17.1 and ran into issues. I did get the modem/persist partition backups. And I curredntly have an adb shell up via twrp. I'm working to read through this thread as I have time to see what others have run into. If anyone has recommendations, please share. :)

Here are a couple screen caps with error messages: https://imgur.com/a/b3S7u17

Looks like my device detects as "original-H":

/tmp # cat size.prop
data.size=32G
data.type=original-H

And current parted output:

/tmp # ./parted /dev/block/mmcblk0 unit b p quit -

Model: MMC HBG4e (sd/mmc)

Disk /dev/block/mmcblk0: 31272730624B

Sector size (logical/physical): 512B/512B

Partition Table: gpt

Number Start End Size File system Name Flags

1 67108864B 156745727B 89636864B fat16 radio

2 201326592B 204472319B 3145728B modemst1

3 204472320B 207618047B 3145728B modemst2

4 268435456B 283795455B 15360000B ext4 persist

5 335544320B 336343039B 798720B m9kefs1

6 336343040B 337141759B 798720B m9kefs2

7 402653184B 403451903B 798720B m9kefs3

8 403451904B 406597631B 3145728B fsg

9 469762048B 471298047B 1536000B sbl1

10 471298048B 472834047B 1536000B sbl2

11 472834048B 474931199B 2097152B sbl3

12 474931200B 480174079B 5242880B aboot

13 480174080B 480698367B 524288B rpm

14 536870912B 553648127B 16777216B boot

15 603979776B 604504063B 524288B tz

16 604504064B 604505087B 1024B pad

17 604505088B 606041087B 1536000B sbl2b

18 606041088B 608138239B 2097152B sbl3b

19 608138240B 613381119B 5242880B abootb

20 613381120B 613905407B 524288B rpmb

21 613905408B 614429695B 524288B tzb

22 614429696B 2187293695B 1572864000B ext4 system

23 2187293696B 2263875583B 76581888B ext4 cache

24 2263875584B 2264924159B 1048576B misc

25 2264924160B 2281701375B 16777216B recovery

26 2281701376B 2281709567B 8192B DDR

27 2281709568B 2281717759B 8192B ssd

28 2281717760B 2281718783B 1024B m9kefsc

29 2348810240B 2348843007B 32768B metadata

30 2415919104B 31272713727B 28856794624B ext4 vendor

/tmp #

---------- Post added at 09:22 AM ---------- Previous post was at 08:53 AM ----------

It looks like vendor maybe wasn't removed and/or recreated at the expected location, and the 31 userdata partition wasn't able to be recreated. So I suspect that I can do the following:

parted /dev/block/mmcblk0

rm 30

mkpart primary 2348843008B 2610987007B

name 30 vendor

mkpart primary 2610987008B 31272713727B

name 31 userdata

quit

make_ext4fs /dev/block/mmcblk0p30

make_ext4fs /dev/block/mmcblk0p31

ln -sf /dev/block/mmcblk0p30 vendor

ln -sf /dev/block/mmcblk0p31 userdata

reboot recovery

Then go ahead and flash the modded twrp and hopefully will be good after that...

---------- Post added at 09:29 AM ---------- Previous post was at 09:22 AM ----------

The parted stuff looks like it worked, but I'm not sure what path the vendor and userdata symlinks are supposed to be created at...

---------- Post added at 10:25 AM ---------- Previous post was at 09:29 AM ----------

UPDATE: It's fixed!
[Nexus 7 (2013) Original Android Development] jpchano:
Tips

If you have brick with the repartition, use "fastboot boot twrp.zip", next on terminal/putty adb push or pull to move twrp.zip to some available path like /dev not /tmp and install again. The last TWRP 3.4 works fine.
[Nexus 7 (2013) Original Android Development] JuergenC:
Lineage 17.1 works but not with open-gapps

Hi,

I applied flo-deb_clamor_repartition.zip without errors. system ist 1,5 GB large.

I installed twrp-3.3.1-1_UA-deb.img without errors.

I installed lineage-17.1-20200711-UNOFFICIAL-deb.zip without errors.

I can boot Lineage 17.1 .

But when I install open_gapps-arm-10.0-nano-20200711.zip it is not possible to boot.

The system ist allways going back to TWRP.

Can anyone help me ?

Thanks!

Jürgen

Problem solved:

It works if I install with adb sideload.

Can anyone explain me why ???????????
[Nexus 7 (2013) Original Android Development] Enkb:
Thanks for the script

Thanks for this script, I really didn't want to repartition my Nexus 7 manually. The only Rom working for me without errors was the liquid_remix-10.0.8-20190516-UNOFFICIAL-flo package but after that I ran out of space to add a GAPP. Nexus Root Toolkit helped me out after I got stuck during the process.

Thanks again for the script!
[Nexus 7 (2013) Original Android Development] ausduckz:
Does this script need to be updated to allow for my room on the System partition?

From what I can gather, after re-partitioning and installing that latest LineageOS 17.1, you're left with 574MB on the System partition.

I've followed the instructions in the OP to the letter. Followed step 4 in FAQ, and ran unified_partition_resize.zip after LineageOS/before Gapps, and still getting Error 70 while trying to install Stock 10 Gapps.

Is it possible to get the script to resize the System partition to 2GB instead of the 1.5GB?
[Nexus 7 (2013) Original Android Development] LBVF2007:
Give advice. Error during repartition flo device

Hello,

I also tried to follow the instructions (I have device nexus7_2013_flo) but unfortunately failed.

The process went wrong with the moment - "/ sbin / modify: line 19: parted: not found. Need size of filesystem. No such file or directory"

No automatic reboot occurred.

As a result, I have a working old TWRP Team Win Recovery Project 2.8.6.0 which shows the following in the log:

E: Unable to mount '/ Cache',

E: Unable to mount '/ system'.

It also writes that the OS is not detected.

Advise my further actions.
[Nexus 7 (2013) Original Android Development] mind_pt:
Try this way!

Enviado do meu Nexus 7 através do Tapatalk
[Nexus 7 (2013) Original Android Development] jhford:
[MENTION=7174607]mind_pt[/MENTION]. Do you think it's OK to flash standard TWRP-3.4.4-0 after step 6 or at any point thereafter?

---------- Post added at 08:38 AM ---------- Previous post was at 08:38 AM ----------

[MENTION=7174607]mind_pt[/MENTION]. Do you think it's OK to flash standard TWRP-3.4.4-0 after step 6 or at any point thereafter?

---------- Post added at 08:39 AM ---------- Previous post was at 08:38 AM ----------

[MENTION=7174607]mind_pt[/MENTION]. Do you think it's OK to flash standard TWRP-3.4.4-0 after step 6 or at any point thereafter?
[Nexus 7 (2013) Original Android Development] anhvudigital:
Restock

Firstly thank for your work

My device is nexus 7 16gb flo, so can it work with this file ?

And if I want to flash stock file again, how to reverse to stock partition system ?

Thanks a lot
[Nexus 7 (2013) Original Android Development] Offsprin:
I'm running into an issue wherein TWRP will not load for me. I've run the repartition script, and tried to reboot to boot into either the modified version or the stock version and neither is letting me actually boot into TWRP to allow me to format the partitions using a 16G flo model. Should I just go back to stock and then follow mind_pt's steps?
[Nexus 7 (2013) Original Android Development] LeoNg628:
OMG, I've stuck in step 4 but I realize the actual meaning of "input write word modify" is ask me to type "modify" in the terminal.....

Sorry I'm stupid but I suggest you put this in FAQ, lol
[Nexus 7 (2013) Original Android Development] User-Naym:
I'm having the same problem, for now I've worked around it by installing the pico variant. Not sure what the difference is exactly aside from "bare minimum gapps".
[Nexus 7 (2013) Original Android Development] jellybean59:
I some how managed to delete my partitions except for recovery. I still have recovery and ADB using PC. Is there any way to restore my partitions?
[Nexus 7 (2013) Original Android Development] k23m:
Sure, it is possible but not necessary as 1.5GB is more than enough. Install pico or nano and later add other Google apps from the Play Store as non-system in the userdata partition space - plenty of room there. There are exceptions, read below...

If you can not use Play Store to add some special Google apps, here is a solution if your chosen GApps package produces Error 70:

have a look at the Package-Comparison

for example if you want GooglePay from the "Stock" variant but it will not install...

get the "aroma" GApps and select only the above component for installation

everything else should be installed later from the Play Store

Please find attached my log of GApps installation of GooglePay from the Stock variant on even smaller 1.3GB system partition created with sysrepart-max where still 238MB free system space remains after the installation!

Yes, run RESTOCK and select [y] to the "Restore original partitions?" question.

:good:
[Nexus 7 (2013) Original Android Development] jellybean59:
RESTOCK worked great, thanks!
[Nexus 7 (2013) Original Android Development] krazi3azn:
I just did this now all my storage is gone... what do i do next
[Nexus 7 (2013) Original Android Development] fattox:
After went to Terminal and typed "modify" all my data is gone and the OS too.

What can I do now?
[Nexus 7 (2013) Original Android Development] k23m:
No problem, just run RESTOCK and answer [y] to the "Restore original partitions?" question.

Next run CROSS to install new ROM and answer [y] to the "Repartition?" question.

:fingers-crossed:
[Nexus 7 (2013) Original Android Development] fattox:
Sorry from where should I type those? At the moment I don't have any file in my Nexus since the repartition deleted everything. Actually I don't even know the procedure worked...

And if I try to connect it to my laptop it can't recognize the device
[Nexus 7 (2013) Original Android Development] androidfr33k:
​

You can run Restock and Cross from the original Post "flo-deb_clamor_repartition". and if all partitions are wiped and you want to reload with restock can you do this with ADB from PC or Mac Terminal, or connect USB and place the repartition onto USB? I am thinking this needs to be done from TWRP correct? SO if all partitions get screwed up and recovery (TWRP) is gone how do you perform restock or Cross?

Also do you install v3.3.1 UA TWRP back to nexus or older original version of TWRP its all confusing as far as what steps top take and where to run the commands from since you re-partition before you install TWRP.

EDITED:

Forget all above, I figured it out if TWRP gets wiped just need to run fastboot flash recovery recovery.img renamed twrp to recovery.img grabbed android SDK installer to get the platform-tools give you both ADB and Fastboot.

Not sure if this is a problem or not, the Cache is a little different in size:

Should be:

23 2187293696B 2270167039B 82873344B cache

After running repartition:

23 2187293696B 2264924159B 1048576B cache

See pic below:
[Nexus 7 (2013) Original Android Development] fattox:
I thank you for your help but unfortunately I need a more basic guide, step to step. Do you think an otg cable would be the easiest thing? There I would put a the files and flash the new TWRP and rom.
[Nexus 7 (2013) Original Android Development] k23m:
While you have repaired it already, please read on...

Believe it or not, no matter what damage, RESTOCK and/or its info will resurrect your Nexus, but you need to actually READ and follow it, which could not be any simpler...

"just run RESTOCK and answer [y] to the "Restore original partitions?" question"​

So you click RESTOCK and read...

USAGE

download the attached zip file

unzip it

double-click on "restock.bat"

follow the prompts

When it is running, it will ask you to "boot the Nexus in fastboot mode: when OFF press POWER + VOLUME DOWN"

Now, if your Nexus does not boot in fastboot mode anymore, go back to the RESTOCK post and read...

"If fastboot mode is not available, try the unbricking guide first"​

And that's it. Note, without fastboot mode, N7 appears completely dead, however it still turns on and registers a new USB device on your PC. There is no more "basic guide, step to step" as everything you need to know is already posted in the provided links, which brings me to CROSS - here too, just read and follow the info.

The "UA TWRP" method works fine, yet somehow you have managed to damage your system, so CROSS is for you, it will do everything for you automatically, all you need to know is answer [y] or [n] questions properly within the app.
[Nexus 7 (2013) Original Android Development] androidfr33k:
My fault it's a link to that file and thread sorry about that! I actually restored OEM images so partitions where placed back to original sizes and started the process again but the cache is the same as the picture I attached previous post its slightly different is that ok?

---------- Post added at 05:25 PM ---------- Previous post was at 05:20 PM ----------

@k23m

Also forgot to ask I am on Mac only no way to run this script on mac terminal using fastboot? Looks like all DLL and EXE files inside DATA folder :(
[Nexus 7 (2013) Original Android Development] k23m:
I'd not worry about cache size, it is not critical. RESTOCK/CROSS/unbricking work on Mac from WinPE. Search for "winpe", download and save it on a flash drive, then boot your Mac from the USB drive. If you can not find "winpe", PM me.

:highfive:
[Nexus 7 (2013) Original Android Development] fattox:
Hi [MENTION=7182780]k23m[/MENTION], I'm really really sorry to ask you help again for the same reason but I really tried everything.

Tried RESTOCK but the problem remains: the device is not recognized by my computer despite the installed drivers

Also in the meantime I received an OTG adapter but it's not even supported /tried FAT32 and exFAT)

How to make it recognized by the pc (before I throw it away)? Hope the screenshot helps, THANKS
[Nexus 7 (2013) Original Android Development] xNotta:
The repartition succeeded but it won't enter recovery, it's stuck on the Teamwin logo page.

I can access bootloader and launch TWRP, it just won't get past the Teamwin logo.

I am not exactly sure where to go from here. What should I do?

Fixed it with Restock2.zip
[Nexus 7 (2013) Original Android Development] mzahs:
Download links are not working!
[Nexus 7 (2013) Original Android Development] Dodgy_Bob:
@mzahs and others who are trying...

I had the same issue this morning and so went off google'ing and stumbled on this link:

Giving A Second Life To My Nexus 7 2013 Tablet

In this post I'll document the different ways and tools I'm trying to bring recent and up to date Android versions in a Nexus 7 (2013) LTE.

youness.net

which then lead me to this link:

https://xdaforums.com/t/iiiii-cross-custom-rom-scripted-setup.4092215/

I'm not wanting to take away from any of the great work any of the respective devs have done, i just want to give credit where credit is due and say that using CROSS (lineage-install-2.bat) has solved my repartition and Error 7 issues when trying to get LineageOS 17.1 installed to my N7-flo.

I'm back up and running now and it's great!

Thanks everyone :D
[Nexus 7 (2013) Original Android Development] retiredtab:
That's because all the devdb were purposely not migrated over to xenforo on Dec 1, 2020. The OP will have to reupload and host them somewhere else.
[Nexus 7 (2013) Original Android Development] retiredtab:
For the TWRP's, there are copies at

Search Results for "twrp-3.3.1-1_UA-deb.img" | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com

Search Results for "twrp-3.3.1-1_UA-flo.img" | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com

For repartition

Search Results for "flo-deb_clamor_repartition.zip" | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com
[Nexus 7 (2013) Original Android Development] GekkePrutser:
Edit: Oops I thought I had looked properly for the files (which were broken due to the forum upgrade) but now only saw the post above. Got them now, thanks!

But just wanted to point out that this project is live now on lineageos.com (official) but the install guide is not, so I think users will get lost with the repartitioning as I am too. https://wiki.lineageos.org/devices/flox/install

I got through the partitioning but the LineageOS image won't install, it says this package is for device: flox; this device is flo. Maybe the repartitioning didn't change the device name properly?
[Nexus 7 (2013) Original Android Development] retiredtab:
URL above gives 404.

If you want to install flox on flo, you can always edit the zip file to remove the assert that looks for flox or add flo to it.

I have seen references to flox in gerrit

https://review.lineageos.org/q/flox

https://review.lineageos.org/q/flox+wiki

The changes probably need to get propagated by the bots over at Lineageos.