yashsingh1/xdaforums huggingface dataset:
[Shield Android TV General] hallydamaster:
Sorry, I just saw your post now. ?

I don't think there is a bin file atm for your disk size.

I'm not at home right now, so I can't cook it up right now.

But if you have some kind of Linux setup, you can download the bin generator from 3rd post in this thread, and make it yourself. Otherwise, I'll make one for you as soon, as I can. ?
[Shield Android TV General] ivanovjohn2018:
thank you friend, I was not able to run this program in Linux (Ubuntu). If possible you can write me a private message. Thank you in advance.;)
[Shield Android TV General] hallydamaster:
I have compiled a new bin file from your provided disk size:

160GB bin

Then you write it to your disk with:

dd if=lastpart_160gb.bin of=/dev/sda[B]X[/B] bs=512 seek=[B]312581798[/B]

Please let me know how it went! :)
[Shield Android TV General] ivanovjohn2018:
thank you friend, it is possible to specify this file I transfer using Linux on my 160 GB drive? correctly? Then I enter the command in the Linux terminal dd if=lastpart_160gb.bin of=/dev/sda bs=512 seek=312581798 (my disk is called sda). What should I do after that?
[Shield Android TV General] hallydamaster:
Have you transferred the first part of the drive yet?

You have to take out the SSHD from the Shield, then you copy the firstpart.bin like in my guide. That part you also have to transfer to the SSD like I specified in the guide.

Then you put it back in the Shield and try to boot out up.
[Shield Android TV General] ivanovjohn2018:
I am not able to move when I'm at the computer, then do it. My question is 2 files that you also have to transfer end_976574630.bin and start.bin ,they must then transfer after I take lastpart_160gb.bin or are these all 3 files simultaneously transferred to a 160 gb drive and plugged into the shield and run it?
[Shield Android TV General] hallydamaster:
No, only start.bin and lastpart_160gb.bin are needed.

The end_976574630.bin is only used for 500 gb drives.

Also, it would be better if you used your bins from your own drive, and not from Tilators.
[Shield Android TV General] ivanovjohn2018:
Thank you for your help , I copied 2 start files.bin and lastpart_160gb.bin. The copy command 2nd file I have looked

sudo dd if=/home/j/lastpart_160gb.bin of=/dev/sda bs=512 seek=312581798

The screen showed NVIDIA, then seemed rings, I waited 15 minutes, then turned off and turned on again, but the menu device has not gone unfortunately. I decided to go into the recovery (before I couldn't go). In recovery did format data .I wanted to clarify a few more questions, and I'll text you a private message.:laugh::laugh::laugh::highfive:
[Shield Android TV General] madmacc:
Simple DD to clone whole drive

Just my 2 Cents:

I cloned my spinny 500Gb, to a 500Gb SSD using simple dd commands

Put both drives in my Ubutu box

dd if-/dev/sda bs=1024 | dd of=/dev/sdb bs=1024 status=progress

Note:

| = Linux pipe (interprocess communication channel in Linux or FIFO)

Put SSD back in Sheild, booted up fast , and no problems at all.

We WILL Prevail
[Shield Android TV General] ivanovjohn2018:
sda is that the drive you're transferring data from? sdb is the drive where the data transfer?
[Shield Android TV General] wanglei_0310:
Can you make a backup of the latest system with "root".

It's very useful for someone to rescue their system.
[Shield Android TV General] markymarkis:
hi, I upgraded to a 2TB SSHD drive, using the first part from my original drive and the 2tb last part from the first page, it sorta works, it takes a full 2 minutes on the Nvidia screen on boot up and a further 30 seconds on the animated circles android screen.. is that normal? or have I missed something? thanks.
[Shield Android TV General] hallydamaster:
My device had been a paperweight for some time now, so honestly I can't remember. But it sounds a little too long.

I think my SSD converted SATV, could do the whole thing in like 30 to 40 seconds.

But then again, this is with an SSD, it might be that it actually takes that long on a mechanical drive.

You could try and do a factory reset, but that might be a waste of time.
[Shield Android TV General] EdisonETO:
Type of sshd?
[Shield Android TV General] markymarkis:
Seagate FireCuda 2TB, ST2000LX001

I have done full reset, I have done fastboot oem unlock (took over 5 hours) made no difference, did the 4k aligned patch, did fastboot oem lock...

after each reset attempt... it still takes nearly 3 minutes to boot completely from power on.
[Shield Android TV General] ahmed68:
this the full backup for stok shdd

https://mega.nz/#!VtxznaLR!QtEbzfqAo...Kurd8WiDJqb7hs
[Shield Android TV General] EdisonETO:
This drive has only 64 mb of cache?Original shield has 8 gb I

think
[Shield Android TV General] markymarkis:
It has 8gb nand for the sshd component and 64meg cache

They all have that spec

I'm wondering if in doing the dd commands to flash the first and last part is it ignoring the 8gb nand

https://www.tweaktown.com/reviews/5748/seagate-desktop-2tb-sshd-st2000dx001-review/index.html
[Shield Android TV General] ciuvak:
Can someone please tell me if any of what I did is wrong:

- Factory reset Shield TV

- Used "HDD Raw Copy Tool" on a Windows 10 laptop to clone the Shield original HDD in a USB enclosure to a new 500GB SSD also in an enclosure. Took about 4 hours.

- installed the SSD into the Shield. Everything booted normally. Tested Netflix and Kodi playback and everything works well. Used A1 SD Bench to test speeds and get Read 263 MB/s - Write 202 MB/s.

Internal storage is reported as 455 GB. Is that normal?
[Shield Android TV General] ivanovjohn2018:
ahmed68

this the full backup for stok shdd

https://mega.nz/#!VtxznaLR!QtEbzfqAo...Kurd8WiDJqb7hs

https://cloud.mail.ru/public/7UPF/sLXcNLU8F ?:)
[Shield Android TV General] markymarkis:
I have my original 500gb hard drive.

Which is what I used to make the firstpart and lastpart
[Shield Android TV General] dk1keith:
I'm interested in replacing the sshd on my Shield TV Pro 2017, but there seem to be a big variety of ways to do it in this thread. Which is the easiest less dangerous way to clone a new ssd drive for the Shield? I'm just not sure which of the methods in this thread is the preferred and least likely to brick the device.

thanks
[Shield Android TV General] ahmed68:
this for full backup by dd

https://mega.nz/#!VtxznaLR!QtEbzfqAomuksyiZIUOx3KlSnzUxqKurd8WiDJqb7hs

this firtpart

https://mega.nz/#!lsBHESQJ!YgdiENLIIA5k6fd-6FMedxR4vgEPuw7ZX0KHifY2AnU

the lastpart u must calculate by this prog

1. for hdd

https://mega.nz/#!48AyWJYS!hB421lHQCglLXr9Egi1zTr7hiYh482o1xHeCp08JDO4

2. for ssd

https://mega.nz/#!cswQ2QTA!G3SdH3KtPrS5heLhu9awu41PMkNZpIGeyywQ4huWLc4
[Shield Android TV General] ivanovjohn2018:
error unpacking :eek:
[Shield Android TV General] mjdbyers:
Just a quick question. Is absolutely necessary to be bootloader unlocked before cloning the drive to a new ssd? Because I'm not unlocked right now I would prefer not to go through the hassle of reinstalling all of my Apps.
[Shield Android TV General] hallydamaster:
Sorry for the late answer.

It's not at all required to be boot loader unlocked, you can clone your drive to a SSD, but it in the Shield, and everything will be as it was before.
[Shield Android TV General] mrdude2478:
I just fitted a Samsung EVO 860 (500GB) - I used 2 usb 3.0 sata drive enclosures, and Winhex to do the cloning. It took about 80 minutes to clone the 500GB and works perfectly (also fits great inside the Shield TV). Is is necessary to do the 4K alignment - will I see any benefit or does it not matter?
[Shield Android TV General] hallydamaster:
It certainly won't matter, as the SATV board won't be able to handle more than ~300 M/B per second.

Performance wise, it'll not have any benefits, but haven't read up on any other benefits it might give you.
[Shield Android TV General] mrdude2478:
Thanks, I just converted to 4k alignment anyway, just to be on the safe side. I didn't notice much difference to be honest.
[Shield Android TV General] the_agima:
Hi everyone!

I'm planning to get a 2017 shield relatively soon (before the end of the year for sure). I've been reading much lately about the difference between the regular TV and the Pro version. I've stumble on this thread about the SSD swap and it got me thinking:

For someone who would have already bought a pro version, I do understand the appeal of the SSD swap since you already got the device.

But for someone like me who do not own a TV or pro version yet, is there any advantage to get the pro version (with the SSD swap afterward), instead of just getting the TV version with an external usb ssd or key? Sure, the pro version do have some advantage that might be useful (micro usb, micro sd and infrared receiver). TV version have some too (better remote, newest controller, etc).

But aside from those things that are not THAT important to my eyes, performance wise, is a PRO version with an SSD would be a better deal than a regular TV version with a good usb stick or external SSD? Is a Pro version with a SSD swap could be problematic with updates in the long run, espcially since the PRO version is discontinued?

I'm just trying to make up my mind about this! Maybe I'm just overthinking it afterall!
[Shield Android TV General] mrdude2478:
[MENTION=5058410]the_agima[/MENTION]

If you get the pro - it's pretty much unbrickable - as it boots from SSHD/SSD/HHD. Even if your drive totally fails, or you flash the wrong bootloader etc, it can still be recovered - with the non pro version (chip only), you can't do that. I've got the 2017 model and the 2015 Pro model - TBH I prefer and use the pro model more than the 2017 version.
[Shield Android TV General] the_agima:
Thanks! It's nice to know. I saw that you actually put an EVO in yours.

One thing I forgot to say, is while I could get a regular version and attach to it a usb memory stick as adoptable memory, I think (I might be in error here) that an actual, internal SSD is far more reliable than a USB key at medium and long term. It might not be the case with an SSD connected at the USB shield's external USB port tho.

If I'm choosing pro version, I was actually thinking upgrading my PC with a shining new Samsung Pro 512gb SSD and move the "old" Samsung 840 Pro 256gb (that is in my PC) and put it in the Shield.

But I have three more questions:

- I saw in this thread about people having some issues with not enough power to run the SSD in the shield. Is is something I ahould be worried with the 840 Pro?

- Reading on how you have to prepare the drive, is a used (windows formatted) SSD would be a problem to start with? Or the actual procedure of creating/writing the firstpart and secondpart bins will do the trick?

- Also, would a 840 Pro would be that slower in read/write speeds compared to 850/860, pro or evo in a nvidia shield?
[Shield Android TV General] mrdude2478:
[MENTION=5163281]THE_[/MENTION]amiga

If you're going to put another drive in - don't use someone else's drive dump - you need to use widevine keys from your own dump or you'll lose access to Netflix & Amazon prime video. I never followed this guide, instead I used a program called winhex to dump & flash my drive. In the drive I used this info for dumping flashing.

Shield Pro SSHD Drive Size: 500107862016 bytes (0x7470C06000)

Shield Operating System (7.1):

Start Offset: 0x0

To Offset: 0xD2913BFF (Total Size: 3532733440 bytes)

Widevine Keys Location:

(Search for Hex: 902100004E56454B5350)

Start Offset: 0x2200000

End Offset: 0x22021FF (Total Size: 8704 bytes)

Partition Table - (Stored at the end of the drive):

From Offset:0x7470C04C00 (sector 976773158)

To Offset: 0x7470C05FFF (Total Size: 5120 bytes)

If you're going to use a smaller drive, you'll just need to edit the the last 5120 bytes of the drive, this contains the location of partitions - there's a calculator posted in this thread for doing it.

The samsung evo that I used, is the exact same byte count as the original 500GB drive that the shield pro has, so I didn't need to mess about with that - however I did realign it for 4K so used the v3 version of the calc for that.

As for power concerns - I never had any using the Evo 860 SSD, I can't say for other drives though as I never tested them.
[Shield Android TV General] exist2resist:
Getting error when I try and dd the lastpart.bin from the drive.

Doing this in Windoze

dd if=\\?\Device\Harddisk0\Partition0 bs=512 skip=976773158 of=lastprt.bin
rawwrite dd for windows version 0.5.
Written by John Newbigin <jn@it.swin.edu.au>
This program is covered by the GPL. See copying.txt for details
Error reading file: 27 The drive cannot find the sector requested
10+0 records in
10+0 records out
[Shield Android TV General] mrdude2478:
You need to edit this part (skip=976773158), to reflect the size of the drive you're using. As it's obviously not a 500GB drive. It should tell you that on the calculator that's posted.

If you want to work it out manually, look at the amount of bytes your drive has - subtract 5120 from that number and divide the new number by 512 - that should give you the number - skip=xxxxxxxxxxx.

If you're drive is different from 500GB, you'll need to make a new lastpart.bin (notice your typo is lastprt.bin), as the drive partition table is stored in this file - if you don't the Shield TV won't boot up.
[Shield Android TV General] exist2resist:
This was a 500GB drive, this is the factory drive and I was trying to capture the lastpart.bin.

Also that is not a typo, I can name the bin file whatever I'd like, the output file name is of my own choosing.

Either way I opted to DD the entire drive, and just cloned it bit for bit.

Had a 500GB SSD with the exact same block/byte count as the original.

dd if=\dev\sda of=\dev\sdb bs=1M

Copied the entire contents, even the user information.

No ****ing around with hex editing and such, just a straight swap of the disk and it booted like a charm.
[Shield Android TV General] the_agima:
[MENTION=2918756]mrdude2478[/MENTION]

Thanks for the infos. I'll probably get a Pro at Black Friday sales. Funny thing is I was also thinking about buying and installing a 860 Evo 500gb in it too! I might just do that!

I'll come back to this thread and reread everything prior starting doing something!
[Shield Android TV General] prakhargr8:
4K alignment post cloning?

Hey man, how did you go about doing the 4K alignment after the drive was already cloned?
[Shield Android TV General] mrdude2478:
[MENTION=5163281]THE_[/MENTION]amiga

You don't need to buy one that fast, the Shield Sata interface is only sata 2, so anything faster than 3Gbps is a waste - the evo 860 goes to about twice that speed, but the shield sata interface doesn't take advantage of it. Really you could get a much cheaper ssd and would notice no difference at all.

I just bought the evo 860 as I can use it for other stuff - I'm thinking about just putting an old 1TB SSHD drive I have into the shield now (which is currently in my laptop) - as that should be nearly just as fast but offers twice the storage.
[Shield Android TV General] the_agima:
You're right. I simply could follow my first idea actually, as I need anyway to upgrade my PC's Samsung 840 Pro 256gb to something bigger (probably a 860 Evo 1tb). I could then try to put the 840 in the Shield Pro. 256gb would be enough for my Shield needs.
[Shield Android TV General] Neffy27:
Could one just clone the hdd to an ssd, plug, and play as it? I'm aware it would be a waste of storage/partition space but if I only cared for the SSD performance and could go without the hex editing.
[Shield Android TV General] jionny:
I just did this 3 days ago took out the sshd and cloned using a unitek cloner and samsung 860 evo 500gb.. took about an hour to clone and when installed started up perfectly and fast. wish I had done this sooner
[Shield Android TV General] Neffy27:
Forgot to mention, I have the 16gb version. Another option, if I was to buy one of these...
[Shield Android TV General] hallydamaster:
Unfortunately the 16gb version doesn't have the interface for a harddisk.

I'm almost certain you would gain no performance either way, as the 16gb version apparently is much snappier than the version with an hdd.
[Shield Android TV General] boscoNco:
out of curiosity if you clone the drive are you cloning the serial#'s and such or just HD operating itself
[Shield Android TV General] jionny:
It is an exact copy of everything on the hdd
[Shield Android TV General] boscoNco:
I understand that its exact copy of the hdd. Maybe I said wrong. but does your serial # copy as well or is that located on the board. Lets say I cloned my current drive and install the cloned drive into and box that had a dead hdd will both boxes function normally without issue?
[Shield Android TV General] jionny:
Its on the hdd and you access it through settings menu
[Shield Android TV General] hallydamaster:
Everything on the Shield is contained within the HDD, so any unique information will get migrated.
[Shield Android TV General] JCkase:
Root or not

Hi,

I know it’s written in the first post, but does the shield should really be bootloader unlocked to be able to change the hdd ?

(Sorry for my english....)

Thanks
[Shield Android TV General] hallydamaster:
It doesn't make any difference
[Shield Android TV General] faDol:
been trying for a full day to finish the swap with a 2017 model

ssd is a 1tb samsung 850 evo

i did the following steps

factory reset then

dd if=\\?\Device\Harddisk4\Partition0 of=firstpart.bin count=6899870

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

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

cd /mnt/c/gog ./shield_pro_new_disk_gpt_calculator-0.3 lastpart.bin 1000204886016 lastpart6k.bin

dd if=firstpart.bin of=\\?\Device\Harddisk4\Partition0

dd if=firstpart.bin of=\\?\Device\Harddisk4\Partition0 bs=512 count=69888

dd if=firstpart.bin of=\\?\Device\Harddisk4\Partition0 bs=512 skip=69790 seek=69888 count=6830080

dd if=lastpart6k.bin of=\\?\Device\Harddisk4\Partition0 bs=512 seek=1953525158

i tried to flash it more than 5 times, always stuck at boot with the 4 dots

I was trying to do factory rest after to check but i can't access fastboot menu and i tried by both controler and a keyboard to hold a and b after connecting to a pc and powering the shield but no luck, also tried to hold the shield right after plugging the power but still no lock

not sure what i'm doing wrong to boot from the ssd

/edit I figured it out had to hold the shield logo on the device for 6 seconds right after the nvidia logo appears on the tv to access the recovery, then navigate using the logo on the device , i did a factory reset and worked perfectly. also i found out that WD blue ssd will not work apparently it require higher power which the shield can't provide
[Shield Android TV General] hallydamaster:
I've looked it over a hundred times now, but can't see anything that looks wrong.

I think you will have to get fastboot working to do a bootloader unlock.

I'm not sure a factory reset will do anything, but worth a try of course.

If that doesn't work, then try it without 4K alignment, as far as I know, you won't gain anything from it.
[Shield Android TV General] Starky09:
Thanks for the guide, did it yesterday and works fine with my 120 GB Samung SSD. Had some issues with the solution for Windows, so I used Ubuntu which worked fine. I'm very happy with the speed boost.
[Shield Android TV General] jambongo:
After some trial and error, got this working successfully. Originally had cloned the drive using HDD Raw Copy Tool, though definitely recommend using DD as its a much more precise tool (i.e 1:1). I ran the windows version of DD in administrator mode. If you use the progress flag it will show you how much it has copied. Also recommend before starting using a hex-editor like HxD to back up separately the Widevine keys block from your drive as mentioned in Post# 143 (Between Start Offset: 0x2200000

End Offset: 0x22021FF) in case anything goes wrong with the full backup. In my case I think I had made a mistake in the cloning process, so I used hallydamaster's files to recover both first and last parts as I was copying it onto a 500GB SSD to it had the same number of sectors. Then once it was plugged in. Used HxD to restore my widevine keys pretty much copy paste from backup to the same start and end offsets. As soon as it plugged everything back up I formatted the data partition in FastBoot and let it upgrade to the latest Shield Experience.

One question though is there a benefit to 4k alignment with my setup?
[Shield Android TV General] hallydamaster:
Good to hear success stories.

As far as I know, you won't gain any benefits from 4k alignment. At least not on the Shield.
[Shield Android TV General] frye1994:
Too much time

Hey guys, how much time it takes to execute this command

dd if=firstpart.bin of=\\?\Device\Harddisk3\Partition0 bs=512 skip=69790 seek=69888 count=6830080

to copy the firstpart.bin into the SSD?

Also, my firstpart.bin is around 3.5GB, is that correct?

It's been like this for the past 1-2 hours:

[IMG="Capture"]https://i.imgur.com/nCiWaqP.png[/IMG]

And Task Manager shows it is at 99% activity but transferring data really slow:

[IMG="capture2"]https://i.imgur.com/MmWAiOq.png[/IMG]

How much time it normally takes?

Thanks in advance!
[Shield Android TV General] hallydamaster:
It usually only takes a few minutes, so something seems not right.

Try it without 4k alignment, and if possible do it in Linux, it works much better.

3,5 Gb seems right.
[Shield Android TV General] frye1994:
I realized my SSD (Samsung 850 EVO) has the exact same size as the SSHD from the Shield, so I canceled what I was doing and cloned the disk using WinHex.

Put the SSD in the Shield and voila! Booted in seconds.

I want to thank you for everything you've shared and everyone who has contributed in this thread.

Thanks!!!!
[Shield Android TV General] sabwafare2001:
Hello I'm having issues getting the new SSD to boot. Meaning the green light comes on after plugging it in, but the Nvidia Shield screen not being displayed.

I have the following items:

- Nvidia Shield Pro 2015

- WD 500GB Blue 3D NAND SATA III M.2 2280 in an SATA enclosure.

- Sabrent M.2 SSD to 2.5-Inch SATA III Aluminum Enclosure Adapter (EC-M2SA). I used this with M.2 drives as an internal drive with several laptop builds.

- Wavlink Dual Bay Cloner

- Windows Laptop

Is there anything special that needs to be done prior to and after cloning? Or is any of the items I'm using causing issues?

After cloning offline(w/o PC) using the cloner and after the new drive didn't work, I then used HDD Copy Raw. With HDD Copy Raw I used an external enclosure where I copied the image of the source to the laptop HDD and then copied the image to the target. That didn't work either. The image that was saved in my laptop's HDD was about 12GB. That doesn't seem right.

Put the old drive back in and it boots right away.
[Shield Android TV General] hallydamaster:
Sorry for the late answer.

It could be that the SATV can't deliver enough current to run the m2 SSD with the enclosure.

You could have a bad connection, did you try afterwards with the old sshd again?

Another thing to do, is to make sure the WD SSD has the exact same block count as the old drive. Even though it's supposed to be 500 Gb it could still have an odd block number.
[Shield Android TV General] sabwafare2001:
Can I check the block count in Linux? What if the count is different?

Recently I attempted again by performing a direct clone (source to target) using Linux. It didn't work.

Concerning if the SATV isn't delivering enough current, would using a true SSD instead of a M2 be the solution?
[Shield Android TV General] Neffy27:
Someone already mentioned the WD Blues will not work just a couple posts back.
[Shield Android TV General] sabwafare2001:
Thanks. I didn't see it. From attempting last night again, that's the conclusion I've come up with. It has a different number of sectors despite being 500gb.

Guess I will try the Cosair brand.