yashsingh1/xdaforums huggingface dataset:
[Shield Android TV General] svenks1:
Hi all

First of all, a heartfelt THANK YOU to all the good people who has been working on this and bringing up new ideas, tips and tricks.

Unfortunately, I've unable to get it to work...

My Shield 500GB from 2016 decided that it did not to do streaming anymore - except for Youtube! You could connect all right to Prime, HBO and other sites, but streamin: "An error occurred". Mind you, if I did a Fast Reset, I was able to get it working - most of the time. But after power off: No Joy.

After a longish dialogue with nVidia Support, they suggested it might be the hard disk. And so I thought "Nothing left to lose" and came across this thread. As I did have a free 256 SSD, I wanted to use that. NO joy, but then I read the latest part of the thread with the thing about USB/SATA issues. Went and installed Ubuntu in a Hyper-V VM and attached the SSHD directly to the VM (Offline in host, then attach physical disk). And sure enough, the numbers for the SSHD was slightly different. Well, finally! I thought, and did the dance again.

But still no joy. The Shield won't boot, nothing happens and I can't get it to talk to Fastboot or anything.

I do have one big question, though: Since the first post, a new step has been added:

" dd if=firstpart.bin of=/dev/sdc bs=512 skip=69790 seek=69888 count=6830080"

Why is this suddenly needed? I thought it had something to do with 4K alignment (as I won't do as optimum block size for my SSD is 512), but this only involves firstpart.bin?

I am 99.99% sure I have put the right numbers in everywhere, but still no joy.

Any ideas are most welcome!

BRGDS

Sven Sorensen

Copenhagen
[Shield Android TV General] svenks1:
Hi all

Just a little follow-up (in case someone is interested :))

By doing some disk shuffling, I maneged to free an EVO 860 500GB. And yes, it has the exact same geometry as the SSHD in the Shield. Did a DD copy in my Ubuntu VM, and by Golly! The shield booted afterwards! And streaming worked too....

But not for long :(

The original problem soon came back, and I'm back to square 1one, except for the boot times. So, it is probably not a HDD problem after all, but what it then may be, I have no clue.

Still, music streaming works (for now anyway), and I'll check up on Geforce Now! and see if can still game on the Shield, even if the games are actually running on my gamer rig.

But if I ever need a 500GB SDD, the Shield is history!

BRGDS

Sven
[Shield Android TV General] andyftp:
Hoping someone can help. I followed instructions and upgraded to a 1tb SSD. I end up having an issue where when I try to install anything, it tells me there isn't enough space. File explorer programs claim that i have .98tb free.

I tried fastboot and formating the /data partition. How long should that take? It's been running for like 12 hours.

Edit *. 4 to 12 hours
[Shield Android TV General] Valiante:
Are there any issues with updates using this method? Might be easiest to just get a matching SSD size.

EDIT: PC reporting "APX device", followed the guide to a T. Even used Linux for everything, didn't work. Someone mentioned zeroing the drive, did that, re-wrote the .bin, same thing. No fastboot, only "APX device". Using a 128gb drive here.

EDIT 2: Appears to be a power draw issue, I've double and tripled checked the steps. Finally dawned on me to check the power requirements, each drive was 1.0A and 1.6A respective. Stock drive is 0.7A. Not sure where to even get a drive with such low amperage.

EDIT 3: Amazon to the rescue, Bestbuy didn't even list power requirements on their website. Got one with 0.6A arriving tomorrow, lets see how this goes.

EDIT 4: 0.6A drive did not work. Trying the non-4k calculator.

EDIT 5: 0.6A SSD [128gb] + non-4k calculator + linux bootable USB + SATA cable = success. I also zeroed the drive completely between re-writes with:

dd if=/dev/zero of=/dev/sde bs=16M status=progress

I've attached the working 128gb non-4k lastpart.bin to this post.
[Shield Android TV General] slybunda:
managed to get hold of another shield tv 500gb!!! looking forwards to do ssd swap again. iv got another spare 60gb ssd that i used in the last shield tv so having the same model of drive should make things easy since i can just reuse the lastpart.bin file that was modded for the first unit.
[Shield Android TV General] slybunda:
@ Valiante thats odd i used a kingston 60gb ssd that was 5v 1.0amp rated and it worked fine.
[Shield Android TV General] mprudic0404:
does anyone know, if its possible to use a massive SSD ? 8TB ?/

i understand the SHIELD TV only works UP TO 2TB, and then can i part-magic the remains 6TB as another drive ? ( would the shield even see the 2nd partition ? )
[Shield Android TV General] JKOL49:
I don't know what's going wrong as I've done this once before two years ago and it went very smoothly when I did it without the hexeditor on a 500gb SSD.

Yet on this new 2tb ssd that I've purchased on a different Nvidia shield tv pro 2017, nothing seems to be working. I've tried writing to the disk about five times now and everytime I get no video on screen. The green light lights up and I'm able to turn off the shield by holding down the power button but no other responses.

It's also showing up in Windows as an apx device and no matter what I do I can't appear to be able to get it into fastboot with this drive. The original SSHD worked fine when I tried to put it back in, so it can't be a failure with the device itself. I'm completely out of ideas so any advice would be much appreciated.

(The new SSD is a Crucial MX500 in case it's relevant by the way.)
[Shield Android TV General] brainmaster:
I'm gonna share my experience with HDRaw tool. 2 years ago I replaced the 500GB HDD with 500GB SSD. Cloning completed without any issues and it booted fine.

Last week I tried to make a backup copy in case that SSD brakes. But the new cloned drive didn't wanted to boot. Just green lights and black screen.

It was the Windows demount problem. I just disconnected the clones drive, without safely removing it first, so that Windows would demount the drive properly.

Also, if you reconnect it again on Windows device, you'll possibly get two different pop-up messages. One that says "In order to use the drive, you need to initialize it first" - don't do that. That brakes the drive and it's not gonna boot on Shield. Second message is "This drive has errors, do you want to fix it?" Don't do that either, result is again same - not booting.

Proper process is - just connect the initial drive for cloning and the backup drive. Don't do any initialization or fixing error process. Fire up HDRaw tool and clone drive. Upon successfully completing the cloning process, click in the Windows Taskbar left to the clock and safely remove both drives.

Then put it into the Shield. It will boot successfully.

This was my experience and wanted to share it with you guys.
[Shield Android TV General] JKOL49:
Okay, I guess my situation is a bit different though as I'm trying to move from the original 500gb drive to a 2tb one.
[Shield Android TV General] brainmaster:
I wasn't referring to your post, although it's similar symptom as mine. Since you also probably doing the edits on Windows PC, be aware about safely removing the HDD before disconnecting it from the PC.
[Shield Android TV General] JKOL49:
I got it working in the end, turns out you have to leave it a good 1 to 2 hours after first turning it on after putting in the new ssd, before unplugging the power to the device and plugging it back in again.
[Shield Android TV General] manc01:
This guide is now 5 years old and a lot of the links, images and calculators etc have changed. There are also a lot of people who are not familiar with Linux or not as tech-minded as most people who posted in this thread.

I am wondering if this can now be done via windows or some other SIMPLE method? There must be a lot of people that want to put in a larger drive but cannot figure out how to do so.

I am wondering if anyone can help by possibly posting an updated guide (or better still a YouTube video)
[Shield Android TV General] wirpo032:
Very silly question: When I follow the guide, do I need to have created a copy of the current Shield HDD to the SDD before I create and write the lastbin file or afterwards?

I wanted to create a copy of the Shield HDD with HDDguru, then copy it to the SDD and then create the bin file. Is that the correct order?

Do i even need to copy the Shield HDD if I'm OK with a fresh install of android?
[Shield Android TV General] ahmed68:
SHIELD ANDROID TV how to restore the original firmware or replace original SSHD
[Shield Android TV General] AutoGrind:
How can I install this on Manjaro from zip?
[Shield Android TV General] AutoGrind:
I'm very new at this especially using Linux. Ive successfully dumped first and lastpart from sshd. I have written firstpart to new SSD. All I need now is to edit the lastpart then write it to the new. I know the bytes and sectors of the new drive just not how to use your tool properly. This is where being new is hitting me and could use a little help.
[Shield Android TV General] simon23templer:
Can someone help me with an original lastpart.bin file?
[Shield Android TV General] maddmacc:
So Dumb question, Hope peaple are still here

when doing ,

dd if=/dev/sdX bs=512 skip=976773158 of=lastpart.bin

I get error cannot skip, Invalid parameter, then why is the number 976773158 ?

Thanks Guys
[Shield Android TV General] Shamoth:
For last few days i was trying to swap original updated to 8.2.3 SSHD that is 500107859968 bytes / 976773164 sectors to 512GB SSD 512110188544 bytes / 1000215212 sectors, according to winDD and other HDD tools.

All steps according to first 2 posts, without images based on "reverse engineering" of attached lastpart files for different SSD sizes.

Bootloader unlocked, factory reset done, data wiped, made image of whole disk just in case, dumped first and last part from 976773158 sector that included 10 sectors according to winDD, cloned original SSHD to 512GB SSD and zeroed everything from 976773158 to 1000215212 sector, hex edited lastpart and wrote it to 1000215202 sector of SSD and still blank.

Some of you might just noticed what i haven't, while going step by step of guide.

Yes, additional 4 sectors dumped that exceeded last 976773164 sector of SSHD.

Even HxD and other tools see only 976773164 sectors of original SSHD or 1000215212 sectors of SSD and sectors with EFI PART in ASCII aren't visible because they are out or range.

All became clear when i gave up and in last resort i started to verify original lastpart in spreadsheet from post http://xdaforums.com/showpost.php?p=67996717&postcount=189.

Inserted 500107859968 and returned 976773164 sectors and 3A38600A Last LBA what corresponds to 976773130 sectors that supposed to be under offset 00000FA8 but in original lastpart there is 3A38600E what corresponds to 976773134 sectors.

And that made my mind blow...

Is there any other updated spreadsheet to manually hexedit lastpart, im not linux guy so wont be able to use script from 3rd post...

Probably hallydamaster or Luxferro arent active anymore in this matter to verify this.

I have attached original lastpart and edited original one based on spreadsheet and "reverse engineering" and also 2nd edited one based on old 2tb lastpart, because they differ.

Just in case if any good soul would like to take a look at it and correct me what am i doing wrong that SATV shows no reaction except green light even after few hours before next cold boot and after it.

Cheers.
[Shield Android TV General] Shamoth:
So i have tinkered in original spreadsheet and here it is...

Updated version that worked for 8.2.3 moved to 512GB SSD with 512110188544 bytes.

https://docs.google.com/spreadsheets/d/1-HQxUzo5ZholqKxqnAoeg9e6GKH_EBdK_JTFB3nqNzI/edit?usp=sharing

Actually after writing lastpart.bin to "Starting LBA of array of partition entries", in this case 1000215206 sector, SATV booted up in few seconds from first kick without waiting 15 to 120 minutes and cold booting again :devilish:

Just in case attached lastpart.bin for 512GB drives with 512110188544 bytes.

Thank You Luxferro and hallydamaster for making this possible :D

Now this baby needs root and some personal approach ;)
[Shield Android TV General] redcorn245:
Can someone please help. I have retrieved the firstpart.bin and lastpart.bin from original sshd. I put the firstpart.bin onto the 1tb ssd I want to use. But I cannot seem to get the gpt calculator to run..... can someone maybe guide me on how to use the calculator?
[Shield Android TV General] redcorn245:
I have followed the directions to a T. I've tried with a sandisk 1tb and a pioneer 1tb. I've tried with the first gen calculator and the second 4k calculator. I've tried with a usb to sata cable individually. And I also have tried hooking it up through sata. I can successfully extract the files from the original drive, run the calculator on lastbin. And successfully wrote them to the new ssd. When I put it in the system. The light turns on but nothing else happens. I dont understand. .. please help
[Shield Android TV General] Shamoth:
I think that at some point, some firmware version, there were changes in structure, those 4 sectors.

Try editing lastpart with calculations from moded spreadsheet #469

Eventually drop your lastpart here with bytes/sectors of destined SSD
[Shield Android TV General] qxotic:
Curious... in my testing, following the same procedure for each. It worked with a samsung 500Gb, and an SP and a Transcend 256G, it did not work on my Kingston120G or my PNY 1Tb. It appears that for some unknown reason, some drives don't play nice. I am able to dd and gzip a backup with my 256G ssd... using this command to save the SP 256G disk image - sudo dd if=/dev/sdh bs=16M | gzip > nstv256Gbak.img.gz gave me a gzip file only 4.3G in size, from which I am able to use this command gzip -dc nstv256Gbak.img.gz | sudo dd of=/dev/sdh to write the image to the Transcend 256 I have (h is the drive letter when connected to my system and the 256 G drives have the same exact number of bytes. ) It does break if I try to update past 8.0 I think it is. I used the program to create the new lastpartbin for each test. I was not able to get any of the pre-made ones to work. At least with my backup gzip file I am able to restore back to my useful point.
[Shield Android TV General] ivanovjohn2018:
if the partitions are not native, then after the update above 8.0 there will be a brick.
[Shield Android TV General] dpruzi:
Six years later,

Thanks for everyone who made/improved this guide, and especially thanks to anchung.chen for this GPT calculator. I could not figure out the correct information to use because I used a 120gb drive and the calculator sheet spit out 7 characters instead of 8. Lots of frustration later, your calculator finally let me finish this! Thank you!
[Shield Android TV General] manc01:
If the pictures were still available the guide would be easier to understand.
[Shield Android TV General] Admn31337:
so the easy way i did it was using a dock cloner. put in sshd in slot 1 and blank in slot 2. bam 2 hours and i have a perfect copy. now im using a 512 gb and the drive is 500 so i am leaving out the 12 gb at the end. meh. works fine and i can do all the testing i want. i can root install linage, new kernels an even a copy of nethunter... when i brick it i just reflash from sshd and bam back to stock... hope this helps someone...
[Shield Android TV General] usamartinez:
Hi Admn31337

Question:

I have a Nvidia shield pro 2015, the 500gb HD drive is broken, I am unable to copy it to another Samsung 500gb. Is there a single image that I can flash to the new Samsung drive?

Thank You

Mario
[Shield Android TV General] BostonDan:
Unfortunately, your unit's specific digital keys are on that hard drive and if you cannot recover them, you cannot update reliably. I was in this exact situation and eventually got a 2019 shield pro.

Sorry to be the bearer of bad news.

Cheers,

B.D.
[Shield Android TV General] usamartinez:
Thank you for your reply

I have spent so much time trying to find an answer.

Thanks

Mario
[Shield Android TV General] usamartinez:
Hi Boston Dan

Since you are an admin and have a shield.

Do you know or heard if Nvidia is close to releasing a new Shield?

I read that perhaps by end of 2022 or beginning of 2023.

It would be sad to purchase a unit with a new one on the horizon.

Thank You

Mario
[Shield Android TV General] BostonDan:
Unfortunately I am not an administrator. Just an technology enthusiast. I do not have any knowledge of NVidia's plans, but the 2019 shield is solid. I have 3 (one for each television in my house - bedroom, family room, and treadmill) and they are solid.

Cheers,

B.D.
[Shield Android TV General] gordec:
My 2015 500GB Pro no longer boots just hands in the Android screen. It won’t factor reset either, but I can get into fast boot. Anyway to know if the drive is intact so I can clone to another 500GB SSD?
[Shield Android TV General] chunk1970_new:
Hi All,

Just registered to say thanks to all as using this process helped me get my NVIDIA shield pro (2015) working properly again as I was having issues with lag. The system was still functioning and I decided to replace with a smaller 128GB SSD as the system is only used for retro gaming and streaming services and emby.

I did manage to perform the entire process using Ubuntu as the adb and fastboot programs are available.

I also created a script below that would prompt for the <drive> <start partition> <end partition>.

Prerequisites:

1, Backups created from original drive ( documented numerous times in this thread).

2, The script shield_pro_new_disk_gpt_calculator-0.3 kindly created by (Luxferro and hallydamaster at xda-developers)

3, New drive that has a gpt partition. ( I used gparted to do this)

4, Save the below script into the same directory as the shield_pro_new_disk_gpt_calculator-0.3 and both of your backups indicated in step 1.

Now:

sudo <filename.sh> /dev/sdx firstpart.bin lastpart.bin

This script will check that the drive exists and also that the filenames supplied for the firstpart and lastpart exist. It will prompt along the way asking you to confirm the overwrite of the drive. After the script completes it will list all of the next steps to be performed to finish the task.

This script could be easily adapted/enhanced to either backup your original or use stock image (if required).

** Note that the steps to overwrite the drive have been commented out at the moment **
[Shield Android TV General] moooztar:
Hi, Thanks to all for the wonderful thread.

I follow the instructions on a Macbook Pro M1 and use Ubuntu via Parallels (to have some form of sandbox when I do stuff). The script: shield_new_pro_disk_gpt calculator fails to execute: cannot execute binary file: cannot execute binary file: Exec format error

Is this somehow linked to my processor?

I try to get a Sandisk 1TB up and running and are currently stuck on making the last calc.
[Shield Android TV General] moooztar:
If anyone has a Sandisk 1TB and made it work; please advise. Followed the instructions and made sure the calc was done right with the 0.3 script..
[Shield Android TV General] unregister3d:
Where do I find the shield_new_pro_disk_gpt script?
[Shield Android TV General] dmfh:
I know this was from a long time ago but I found one

HERE

It's the one I am about to use. good luck
[Shield Android TV General] teeboz:
anyone try backup restore data partition this way?
[Shield Android TV General] diodorus:
I am trying to re-install the original 500gb HD (the 500gb SSD i put a couple of years ago just died), but I am getting an error:

dd if=firstpart.bin of=\\?\Device\HarddiskVolume16\Partition0
rawwrite dd for windows version 0.6beta3.
Written by John Newbigin <jn@it.swin.edu.au>
This program is covered by terms of the GPL Version 2.

Error native opening file: 0 The operation completed successfully

Any ideas?

Thanks
[Shield Android TV General] ivanovjohn2018:
https://xdaforums.com/t/guide-linux...-size-only-for-satv-pro.3440195/post-68300570
[Shield Android TV General] alex78ita:
hello,

the guide in the first page is still working?

thanks
[Shield Android TV General] RuBeN16v:
Hello,

I have read the guide thousand times and I´m not able to get my 2tb ssd with a total of 3907029167 blocks working (I have one block less than the tutorial)

I have formated the SSD with Gparted ina single GPT partition

Then I have an extrange problem, I backup the firstpart.bin and the lastpart.bin

I think the firstpart.bin is ok, 3.3GB (3.532.733.440 bytes), but the lastpart.bin is only 4.608bytes and I supose it should be 5.120 bytes

When I open it with HxD I found that all the EFI PART and beyond at the bottom is lost

I have tried:

"dd if=/dev/sdX bs=512 skip= 976773157 of=lastpart.bin" in spite of "dd if=/dev/sdX bs=512 skip= 976773158 of=lastpart.bin"

That way I have a 5.120 bytes Lastpart .bin, but when I try to edit it I have empty lines at top, but the EFI PART at bottom keps missing

Can I just grab the lastpart2TB.bin posted in the first post and edit it with the script?

Anyone can guide me? I have been all the day with this and I´m exhausted jajajajajaja

EDIT: I have tried it with DD for windows and when I launch the command

"dd if=\\?\Device\HarddiskX\Partition0 of=lastpart.bin skip=976773158 bs=512"

I have an error

"Error reading file: 27 The unit can't find the requested sector"
[Shield Android TV General] Ryhorse:
@hallydamaster I wanted to migrate to a 250GB Samsung 860 Evo. I did everything according to the guide but it doesn’t go past the NVIDIA splash screen. It’s Nvidia splash screen -> Reboot -> Nvidia splash screen -> Reboot. Even after 10 houre it still is on the Nvidia splash screen and rebooting after couple seconds.

I did wipe data, wipe cache, factory reset, did the firstpart.bin lastpart.bin procedure again but nothing seems to work.

To make matters worse, I accidently dd erased my SSHD after I took a firstpart/lastpart.bin backup, so I can’t take another backup again. But after that, I used my SSHD to write lastpart/firstpart.bin in there and it booted to the NVIDIA splash screen and rebooted again just like with my SSD.

Do you have any idea what else I can do at this point to get past the Nvidia splash screen?
[Shield Android TV General] RuBeN16v:
Still no luck for me I’m getting crazy

Don’t know how to get the correct lastpart.bin, asuming my firstpart.bin is ok…
[Shield Android TV General] I_did_it_just_tmrrow:
Can somebody help me? In the firstpart.bin or in the lastpart.bin are there boot paritions a part of or not?

Unfortunately, my shield pro (foster) was behaving very strangely during operation, so yesterday I decided to flash the official dev image from nvidia. Exactly when flashing the boot.img it came to an abort. I don't know why yet.

Well I have a 512GB SSD in it and also have the firstpart.bin and the lastpart.bin from the original hdd -> ssd upgrade a few years ago.

This was my log from the Shield-pro-500G gpt-calculator for new disk, ver. 0.1

[dump_lastpart]# ./shield_pro_new_disk_gpt_calculator lastpart.bin 1000207284224 new_lastpart.bin

Shield-pro-500G gpt-calculator for new disk, ver. 0.1
Thanks to Luxferro and hallydamaster at xda-developers nVidia-Shield-Android-TV Shield-Android-TV-General
See 'Guide: Migrate to SSD/HDD of any size, only for SATV Pro 500GB'

new_disk_byte_size = 1000207284224
new_disk_sector_size = 0x74707FFC
new_disk_current_LBA = 0x74707FFB
new_disk_last_usable_LBA = 0x74707FDB
new_disk_start_partition_array_LBA = 0x74707FF2
new_disk_data_last_LBA = 0x74707FDA
crc32_partition_array = ED3838FD
crc32_gpt_header = 2DB5CA9C
Done!!!

I think it just came to an error with me when flashing the boot partition and I would now need the appropriate dd command to simply flash the boot.img again to get back into the fastboot

I would be glad if someone could give me some information.

Greetings by Idijt