yashsingh1/xdaforums huggingface dataset:
[G Pad 10.1 General] five96seven:
Sorry for the late reply below are the links of the format of partition, LineageOS can see both internal and external even if they are different in format which is ext4 and vfat but TWRP can only see external which is the vfat. I can flash new rom but can't wipe the result is unsuccessful unable to mount data....

h---ttps://pasteboard.co/iuqHMzCbU.png

h---ttps://pasteboard.co/iuwsiTO3M.png

h---ttps://pasteboard.co/iuyoHBRhp.png

i think my attachment is not working and xda won't let me post outside link yet so please just edit the links above thank you...
[G Pad 10.1 General] fatbas202:
I think you created your partition with the wrong type. Look at your differences between mmcblk0p31 and 33. The former says it's an SD/MMC card and the latter says it's a BLKEXT partition. I think you'll have to use parted again to either blow away and recreate or (possibly) just change the partition type. I'm guessing that TWRP is expecting one type of a partition and you actually have a different type (think about the difference between primary and logical partitions). Android has all kinds of more capabilities than Android Recovery - which is mostly stripped down to provide the bare essentials of functionality.

It's also possible that you can use a tool like Flashify or FlashFire to wipe the data partition on your tablet. But I'm guessing that neither will actually delete and recreate the partition.

EDIT: Upon further inspection, I think my assessment is absolutely correct. Look at partitions 31 and 33. Partition 31 says it's #31. 33 says it's #1 instead of #33.
[G Pad 10.1 General] five96seven:
What is the best way to rename that partition? Or should I start from step #1? TIA!
[G Pad 10.1 General] fatbas202:
I'd definitely delete and recreate that partition. You should be able to start from #18 or so.
[G Pad 10.1 General] five96seven:
I just changed file system using twrp and it work but the result in diskinfo is still the same... and got this another message while flashing "Patching system image unconditionally..."

Well for now I have to enjoy this tablet! Thank you fatbas202 for being awesome and generous! And of course to the rest who are mentioned in this thread thanks!
[G Pad 10.1 General] BeeWall:
Glad it is fixed now! Recreating the partition as [MENTION=1772416]fatbas202[/MENTION] suggested may still be a good idea, but maybe not needed.

The "patching system image unconditionally" message has to do with block-based OTAs.
[G Pad 10.1 General] five96seven:
Hi [MENTION=7559542]PorygonZRocks[/MENTION] can you explain more? I haven't experienced this message before while flashing using twrp wether stock or custom roms until I tried lineageOS
[G Pad 10.1 General] BeeWall:
Android 5.0 added another form of OTA, block-based, which patches the system image, as opposed to the old file-based, which patches individual files. More info can be found on the official page.

Most ROMs I've used just extract the files, but Lineage decided to use block-based zips. Not sure why, but they probably have their reasons.
[G Pad 10.1 General] C75:
Stock Rom Question?

If I have a stock rom backup from twrp with the storage fix and lines fix..... If anyone flashes that backup with twrp will it fix their storage and lines problem? Just trying to give back to the community:D After all the help that i have gotten
[G Pad 10.1 General] jason2678:
Nice offer, but no, that won't work. A twrp backup won't repartition the tablet or restore the proper aboot.
[G Pad 10.1 General] echow2001:
i think twrp 3 does have graphical tool for resize and format partitions though, under wipe menu but new aboot still has to be flash with DD.

PS, it takes awhile after flash the new aboot for lines to disappear completely, this is sort of 'burn in' to LCD and needs 4-5 hour to remove. i know this because i have two motherboards(waiting on screen arrive for one) and both showed on the screen for a period of time after flashing the debug kdz with weird display driver.
[G Pad 10.1 General] huffmybrd:
I've got an lg v410 on 5.0.1. And it's ready rooted (with king ) do I have to downgrade to install linageos (and is twrp needed? To do so?). Or can I just use flashify and flash linageos over the stock firmware?
[G Pad 10.1 General] jason2678:
You'll have to downgrade to kitkat if you want to run custom recovery or roms. The lollipop bootloader wasn't vulnerable to the bump exploit that all the development for the V410 uses for boot image signing.

There was a guy who claimed he got the V411 kdz from the an LG firmware site and used it on a V410, but he never responded to any further questions. If it works, there's a chance it wouldn't make such a mess of internal storage as the test kdz we have does.
[G Pad 10.1 General] garvisdol:
Hello. Is the information in this thread still viable? I just got a G Pad v410 somehow thinking it'd be simplicity to get TWRP/LOS going (I swear I had found something saying it was as simple as your average "fastboot oem unlock") only to find it isn't so. The tablet has Android 5.1.1 on it. So the downgrade method is still recommended?

Thank you.
[G Pad 10.1 General] garvisdol:
Hello. I'm hoping I may be able to get some help with this. I followed the guide in the first post. I got as far as the part where you flash Candy5. The flash of Candy5 and the subsequent wipe both failed because /data wasn't mounted. Was there supposed to be a point at which it was mounted? (I tried going back to Mount from the TWRP main menu to check the mount for /data, but it wouldn't check it when I pressed the checkbox button.)

After reboot, I'm still in Android 4.

Please advise? I can probably offer some screens (or probably photos) if it will help.

Thanks very much!

---------- Post added at 06:52 PM ---------- Previous post was at 06:34 PM ----------

Here's an image of the failure to flash Candy5:

Alright, it's not letting me post it because I am new. I'll try to transcribe.

Patching system image unconditionally...

detected filesystem ext4 for /dev/block/platform/msm_sdcc.1/by-name/system

Flashing SuperSU...

detected filesystem ext4 for /dev/block/platform/msm_sdcc.1/by-name/system

unmount of /system failed: no such volume

script succeeded: result was []

Updating partition details...

E:Unable to mount '/data' (this is in red)

...done

E:Unable to mount storage. (this is in red)

The first time I did a wipe anyway (which gave an error) and rebooted, and I was back at Android 4. The second time I tried to flash Candy5 and failed (just to take the photo), I didn't flash, and when I rebooted, I'm stuck in the white lines problem and I can't seem to do anything with the tablet. Help please?

---------- Post added at 07:17 PM ---------- Previous post was at 06:52 PM ----------

Sorry for all of the posts. I might actually be in okay shape now. I had to reformat userdata manuall (Candy5 didn't seem to do it).

Now that I'm in Candy5 with TWRP 2.8, how do I go to LOS 14.1 (and I presume TWRP 3.1)? Do I just flashify the new TWRP and then use it to install the new LOS?
[G Pad 10.1 General] garvisdol:
Alright, I'm all set with TWRP 3.1 and LOS 14.1! Thanks for all of the info in this thread.

I probably could have skipped the Candy5 part since it predates LOS.

Peace/regards.
[G Pad 10.1 General] huffmybrd:
edit: figured it out!!!!

now how can i install linageos? over time i try and then reboot it kicks me into fastboot mode
[G Pad 10.1 General] dracolla:
Hello, i need some help please.

when i was preparing to fix the internal storage, point 18 didn't work with me and show as this image

what shall i do ?

please, give some help

Thanks in advance
[G Pad 10.1 General] jason2678:
You need type this in the terminal first:

adb shell

That will give you access to the tablet's shell in the terminal instead of your local command prompt. After starting the adb shell the cp command will be available.
[G Pad 10.1 General] dracolla:
Thanks, it works and i fix my tab
[G Pad 10.1 General] stopitalready:
Trouble Flashing ROM

So I followed the steps up to 29 where you flash Candy but I'm having an issue:

"could not detect filesystem for /dev/block/platform/msm_sdcc.1/by-name/system"

used p to print the partition table and everything looked OK?

Nevermind. had to reboot recovery then it flashed
[G Pad 10.1 General] cejack:
Upgrade to 5.0.2 or 5.10

How about the reverse direction here?

Can't seem to find a good guide to go from stock 4.4.2 v41010d to 5.X.

Don't care about root on this device. Just got a hand me down and need to go to 5.X to run Kodi.

Any good guides or other recommendations out there? Can't seem to find much on LG GPad 7.0 on XDA.
[G Pad 10.1 General] BeeWall:
You need to check for the update on data, and it will switch to wifi to download.

If the device has been rooted, try downloading and flashing in twrp this zip (make sure to check unrooted, no twrp, etc), or this (the latter zip is in Korean only, I used google image translate), then check for updates (remember to factory reset). Neither worked for me, the update would download but fail to install. You may have better luck.

You could use CM/Lineage if you just need Android 5, but I'm guessing there's a reason you want stock instead.
[G Pad 10.1 General] cejack:
Just figured out I can root the device and install the proper TWRP 3.1.X and go to Lineage 14.X and get this done after rooting the device. Kind of difficult to figure out from my perspective as you have to dig around int he GPad 10.1 device category section here to figure out what to do for the Gpad 7.0 here on XDA. Kind of curious why there isn't a separate GPad 7.0 device category on XDA. I guess the device may be similar enough to not warrant a separate section.
[G Pad 10.1 General] BeeWall:
I believe it has something to do with not enough threads to warrant a full forum. However, they do have a mini forum here. No subforums, but otherwise it seems to be basically the same as a full forum.
[G Pad 10.1 General] sportynyc:
I can confirm the v411 image works on the v410. I just flashed with the LG flash tool and rooted. Didn't have to deal with the size or white lines issue.
[G Pad 10.1 General] jason2678:
That's great. Data partition is still the right size too, not shrunk to 4 gb?
[G Pad 10.1 General] sportynyc:
Yep, data partition was correct.
[G Pad 10.1 General] trodey843:
After I flashed Candy 5, my device is not recognizable to the computer so I can't do the last two adb commands.

I tried reinstalling the LG drivers but it didn't work. Does anyone know how to fix this?
[G Pad 10.1 General] cejack:
GPad 7.0 "Mini-Forum"

Wow - I swear I entered a ton of search criteria into XDA looking for it and never found that.

Thanks for the heads up on that one. My bad.

-cj
[G Pad 10.1 General] fatbas202:
I think that if you start from step 1, you should be able to recover. Unless you messed up the partitioning.... then you're boned.
[G Pad 10.1 General] sportynyc:
For anyone interested. I downloaded and flashed the V411 firmware from

https://lg-firmwares.com/lg-v411-firmwares/

Then rooted and installed twrp and candyrom6..or you can use any other rom that you prefer.
[G Pad 10.1 General] williambright80:
so is this the 8 gb version or the 16 gb
[G Pad 10.1 General] Hameed14j:
brilliant

Brilliant man

the v411 kdz file solved the whole issues with only one click no need to do all the fixes programming things

just power off your v410 and then press volume up and hold and connect the usb cable (to enter download mod) and flash kdz by lg flash tool 2014 CSE flash. Done. every thing stock new.
[G Pad 10.1 General] BeeWall:
16GB
[G Pad 10.1 General] williambright80:
and i can just use twrp to flash it right?
[G Pad 10.1 General] BeeWall:
Yes. Again, I haven't tested it, but it SHOULD work.
[G Pad 10.1 General] Mervingio:
Nice I will give a try later I already rooted with Kingo root but definitely is a super plus!!!
[G Pad 10.1 General] williambright80:
can u find a backup of my tablet on the test software thing please 16gb

att lte
[G Pad 10.1 General] BeeWall:
??? Sorry, I don't know what you're asking.
[G Pad 10.1 General] williambright80:
never mind i got it but can u possibly make a white lines fix zip thing?

---------- Post added at 06:07 PM ---------- Previous post was at 06:02 PM ----------

hey fatbas202 i think i may have figured out a way to fix the storage without commands or the zip so timmytim has a rooted stock rom that is flashable via twrp so you would do the test os then install twrp then download that then flash it and after that do the os you want then the white lines fix here is the link to the post of the stock rooted https://xdaforums.com/g-pad-10/development/rom-v410-onlykot49i-v4101d-4-4-2-rooted-t3040208
[G Pad 10.1 General] fatbas202:
I don't know that I follow, but timmytim is a damn good developer so I'm highly confident that his stuff will work well. The storage problem is a result of flashing the KDZ with the Test OS. Unless you can find a way around that then you are still going to have problems with the storage partition being too small. Flashing something via TWRP will not fix it unless it has been specifically designed to do so on this device.
[G Pad 10.1 General] BeeWall:
See attached zip. It should work.

Also, as fatbas202 said, flashing the ROM will not help with the storage.

EDIT: Zip won't work. Corrected one attached to this post.
[G Pad 10.1 General] BeeWall:
Also, here is a zip I found that restores all partitions to stock, and can also root, disable RCT, keep or remove TWRP, etc. No white lines or storage issues (though it will not fix the latter if you already flashed the KDZ).Just flash it in TWRP. (The site is Google Translated from Korean, but I believe the zip has an English option.)

EDIT: You only need the zip from step one, not the whole page.
[G Pad 10.1 General] williambright80:
i tried the zip it didnt work

i still have white lines
[G Pad 10.1 General] williambright80:
Oh here's a screenshots of all the space
[G Pad 10.1 General] fatbas202:
This zip will not work because it tries to flash a partition with an image that does not exist in that zip file.
[G Pad 10.1 General] fatbas202:
This zip file is janky as hell. It may work, but I advise potential users to read the script and really try to understand what it is doing. It requires a Windows system as well; it will not work on any other platform.

Edit: [MENTION=7559542]PorygonZRocks[/MENTION] just wanted to say thank you for linking some of these tools. I don't want it to seem like I'm ****ting on you. :)
[G Pad 10.1 General] BeeWall:
Oops... You're right. Attaching fixed one to this post.
[G Pad 10.1 General] BeeWall:
Sorry, I was only talking about the zip in step one, forgot to specify. The AndroidFileHost link. It will install recovery, aboot, and system back to stock KitKat, and has options to keep TWRP and root, and reset RCT. I thought I'd link to their site, since it has credits.
[G Pad 10.1 General] williambright80:
Ok how do I flash the white lines fix in twrp it still isn't working

edit: got it to work
[G Pad 10.1 General] BeeWall:
So it did work? Great! What did you have to do to get it to work? Since the first version of you're post says it didn't.

Edit: also, did you test my storage fix?
[G Pad 10.1 General] williambright80:
no it didnt all it did was just factory reset it didnt fix the storage i just used timmytims stock rooted
[G Pad 10.1 General] BeeWall:
timmytim's ROM doesn't actually fix storage, it just makes it say it has that much. The KDZ will always say max 8GB, whether it has more room or not, and the ROM will always say 16GB max. You have to run some commands to test if it worked or not. Also, the storage fix should have factory reset, because it deletes and remakes the data partition, just like in the tutorial in the OP. So that means it may have (not definitely) worked.

To test, if anybody else tries, or if you want to check, before flashing the storage-fix.zip (or it will be deleted in the wipe), you flash the attached parted-recovery.zip (a flashable version of the parted binary in the OP, installs parted to /sbin, so it disappears on reboot), and, after flashing but still in recovery, run 'parted /dev/block/mmcblk0 print' (no quotes), and see if it lists a "grow" partition as partition 34, or if it ends with "userdata" as partition 33. If it doesn't have grow, it worked.

(The attached storage-fix.zip is the same as the previous, but with credits.)
[G Pad 10.1 General] williambright80:
Would twrp show it correctly ? If all the storage is there in twerp would that show it ?
[G Pad 10.1 General] BeeWall:
[Ignore]
[G Pad 10.1 General] BeeWall:
You mean from parted? If so yes. If you mean from the Repair/Change Filesystem menu, yes as well (the latter should show 11745 MB as the size for /data, the former should show userdata from 3439MB to 15.8GB).

If the zip didn't work, and you're ok with wiping again, I've attached a slightly changed version (it uses 100% for the end instead of a specific size, just in case I got the size wrong in the original). If the zip failed, I don't think the new one will help, but it might.
[G Pad 10.1 General] fatbas202:
Great job!

Everyone, if we can get a few people to test this then I'll drop a link to this post in the OP. It looks like it should work just fine but someone else should confirm beforehand.
[G Pad 10.1 General] williambright80:
So I think lg came out with the code for stock lollipop but I don't know how to build it so I was wondering if someone could do it so if so done can like make it work then that would be great http://opensource.lge.com/osList/list?m=Mc001&s=Sc003 it's at the bottom
[G Pad 10.1 General] BeeWall:
That's just the kernel source, not the OS.
[G Pad 10.1 General] williambright80:
how can I go back to lollipop because when I bought the tablet it had lollipop
[G Pad 10.1 General] BeeWall:
Not sure, sorry. I guess get the device back as close to stock as you can (KitKat, unroofed, stock recovery, etc), and then try to get the OTA update.
[G Pad 10.1 General] williambright80:
I don't have it activated
[G Pad 10.1 General] BeeWall:
Then I don't think you can. You can try, but custom ROMs are probably the only way I know.
[G Pad 10.1 General] williambright80:
i may have found the link to lolipop kdz http://vietfirmware.com/index.php?t...ad-7-v20c-tot-file.2383/#.V9fgN0xnXrU.blogger
[G Pad 10.1 General] williambright80:
Hello ? I have the link for lollipop stock http://vietfirmware.com/index.php?t...ad-7-v20c-tot-file.2383/#.V9fgN0xnXrU.blogger
[G Pad 10.1 General] BeeWall:
You said that a week ago, as a quote to the same post of mine you just quoted.

However, the download link requires a payment, so I haven't been able to try it. Not sure about anyone else, but nobody has said anything, so I assume the same. You're welcome to pay, and let us know if it works.
[G Pad 10.1 General] williambright80:
Well I emailed the guy who runs the website but he hasn't responded yet
[G Pad 10.1 General] williambright80:
Hey do you know how to fix videos and PDFs and stuff and apps that keep reloading I think this might be a bug but I don't know where to start
[G Pad 10.1 General] BeeWall:
Nope sorry :(
[G Pad 10.1 General] kingzones:
Thank You for this wonderful tutorial, It has saved my Tablet ... Only problem I faced is that the windows was unable to get "adb shell" as under TWRP my windows was unable to detect the device. I updated TWRP to version 3.1 from here https://xdaforums.com/g-pad-10/orig-development/recovery-twrp-3-0-2-0-v400-aka-lg-g-pad-t3428187 and gave all commands from the terminal available in it. Many Many Thanks..... :)
[G Pad 10.1 General] stormes28:
white strips

thanks a lot for your help. I followed the steps till 16 as I couldn't understand what shall I do, so after 15

I installed CM 14.1 Nightly and my storage is 14.68 GB but 10.79GB been used already, is this normal?? the white strips still showing but very light, can you please help me up to remove it by explaining the steps in a sample way, please note that I am using Windows 10 and I couldnt install ADB
[G Pad 10.1 General] BeeWall:
If you don't have adb installed, you can run all the commands in `backticks` in the twrp terminal. For the parted commands, you have to run `parted [next few steps]`, because it doesn't properly enter the parted shell.

The thing with the storage I assume is from you not having run the storage fix commands.

Also, here is the link to a (untested) zip I made earlier in the thread that runs the storage fix commands, and here is my zip that runs the white lines fix commands. They are untested, but theoretically should work. If you use them, make sure to either install the white lines fix first, or install them from an external SD card, because the storage fix will wipe the data partition.
[G Pad 10.1 General] nicospanas:
Have you tried "Minimal adb and fastboot"? I am running it in windows 10.

https://xdaforums.com/showthread.php?t=2317790
[G Pad 10.1 General] Excavator2015:
I flashed your white lines fix zip, but I got nothing as a result...still thick lines on the lg logo.. Is there another way, or possibly another zip you can fabricate to try with again with? Those lines are pretty annoying..haha.

Thank you in advance. Hope I can sometime, flash those storage zips, kind of hesitant. Don't want to brick this thing again ..lol.. I just fixed it today, spent 4 hours on it!
[G Pad 10.1 General] BeeWall:
Dammit autocorrect... In the line in the script to flash the aboot image, autocorrect changed aboot.img to about.img. I've attached a fixed zip. Thanks for testing, hope this one works! If not, there's instructions in the op, my zip just automates it.

Yeah, the storage zip is not well-tested, because I don't want to wipe. It shouldn't brick, but you never know ¯\_(ツ)_/¯
[G Pad 10.1 General] Excavator2015:
Just tried flashing the new one you provided, and it came back with "Invalid Zip Format". Tried flashing twice, just to see if it was me or not. Ugh, can you check the zip again and re upload it? Thank you in advance.
[G Pad 10.1 General] BeeWall:
I accidentally deleted the META-INF folder, so it didn't have the update-binary and updater-script (－‸ლ)

Fixed zip attached.
[G Pad 10.1 General] Excavator2015:
Thanks buddy, I will download this when I get home this afternoon. Hopefully the lines will be gone after I flash it! The tablet doesn't feel right without a splash screen and boot logo lol!

Nevermind, I transfered VI's Bluetooth! Lol I'm flashing now! Wish me luck!

Still there, is there anything else you can try? First when I flashed it and rebooted, the lines where there, but the LG logo was split, then I rebooted again and the lines showed up again, going for white to dark after.

Not comfortable with commands, I don't want to screw anything up. :(
[G Pad 10.1 General] BeeWall:
So it didn't work? Hmm... Are you using the KDZ rom, or did you flash another? I believe that the aboot doesn't stop the lines on the rom from the KDZ. If you are on a custom one, I'm not sure. The zip just runs the command from the OP, so I have no clue why it wouldn't work.

---------- Post added at 03:34 PM ---------- Previous post was at 03:18 PM ----------

Can you run `md5sum /dev/block/platform/msm_sdcc.1/by-name/aboot` and post the output? I'd like to see if it's not properly flashing, or just being weird.
[G Pad 10.1 General] Excavator2015:
Kdz sock, it was the stock 4.4 KK ROM that was a demo, with the red letters at the bottom of the home screen, any suggestions for another room that I can try and see if it fixes it?
[G Pad 10.1 General] BeeWall:
Lineage, timmytim stock rooted (it's the stock non-test rom), Candy5, I think there's a CandySiX unofficial, a bunch of others. I personally use Lineage. Also, can you run `md5sum /dev/block/platform/msm_sdcc.1/by-name/aboot` in the twrp terminal? It may just be that it's not flashing the aboot, and nothing to do with the rom.
[G Pad 10.1 General] Excavator2015:
I'm running at this current moment, Lineage 14.1. So it must not be flashing right.

How do I do that exactly? Steps?
[G Pad 10.1 General] BeeWall:
Boot TWRP, select "Advanced", then "Terminal". Then type `md5sum /dev/block/platform/msm_sdcc.1/by-name/aboot` (without the backticks). Note you can't copy+paste to TWRP, so you'll need to type manually.