How to Reformat Sector Size 520b or 528b to 512b in Windows - 1139
Вставка
- Опубліковано 9 лип 2024
- If you get an "The request could not be preformed because of an I/O device error." when trying to use a hard Drive or SSD that might have come from an enterprise storages system. This might just be how to fix that. (and using Windows this time!!)
When You have - 𝐋𝐢𝐤𝐞𝐝 - this video, you have my permission to go and download the sg3_utils,, here : sg.danny.cz/sg/sg3_utils.html (files are prety far down the page)
And you will also need the "cygwin1.dll" file,, I got that form here : www.dll-files.com/cygwin1.dll...
There is an 32bit and a 64bit,, I used the 64bit for the Microsoft Server 2022.
The commands I used..
𝙨𝙜_𝙨𝙘𝙖𝙣 -- for listing your drives and see what "PDx" you need to put in
𝒔𝒈_𝒇𝒐𝒓𝒎𝒂𝒕 --𝒇𝒐𝒓𝒎𝒂𝒕 --𝒔𝒊𝒛𝒆 512 𝑷𝑫𝒙 -- x is the number that your drive got,,like PD2 or PD1
My PlayHouse on 𝐏𝐀𝐓𝐑𝐄𝐎𝐍 - / myplayhouse
For 3$ a month, you get an extra weekly "What's UP" update video. Just for my Patrons. The Support I resave on patreon is all used on stuff to make interesting videos on UA-cam.
Check out my little shop : www.myplayhouse.dk/shop/
" Be aware that the shipping prices is worst case, until it know where to ship to!! "
Twitter : / mortenhjorth
Facebook : / mortensplayhouse
[Affiliate Links]
Link UK - HP 650933-B21 H220 Host Bus Adapter : amzn.to/3FKSDFe
Link US - HP 650933-B21 H220 Host Bus Adapter : amzn.to/3mKSpXk
Link CH - HP 650933-B21 H220 Host Bus Adapter : s.click.aliexpress.com/e/_A5be0s
Many more Server´s and Parts visit 𝐁𝐚𝐫𝐠𝐚𝐢𝐧 𝐇𝐚𝐫𝐝𝐰𝐚𝐫𝐞 : www.bargainhardware.co.uk
Using the Coupon Code : 𝐦𝐲𝐩𝐥𝐚𝐲𝐡𝐨𝐮𝐬𝐞 at checkout, will right now give you 5% discount.
__________________________________________________________________________________________
My PlayHouse is a channel where i will show, what i am working on. I have this house, it is 168 Square Meters / 1808.3ft² and it is full, of half-finished projects.
I love working with heating, insulation, Servers, computers, Datacenter, green power, alternative energy, solar, wind and more. It all costs, but I'm trying to get the most out of my money, and my time. - Наука та технологія
They don't format these to 520/528 to "mess with you". This is part of the SCSI T10 standard for data protection information. Basically the extra bytes are used for checksums of the 512 bytes, etc. in enterprise storage solutions.
Nahh it´s all just a big conspiracy,, they just all wants to mess with me,, I know it :-)
In fact it is quite attractive to have storage systems supporting T10-PI, it solves a lot of problems not easily solved otherwise.
I wish for linux to get proper support in the near future for the same reason.
For now i enjoy using 3PAR storage which uses 520b sectors - it is far superior to 512b.
Thank you so much for this tutorial. I bought some used drives off of eBay and was shocked to find out they had an unusual sector size rendering them unusable. I thought I was completely out of luck but yhanks to you I have them all working, really appreciate it!
Thank You for letting me know :) I naturally made the video to help other,, so nice to hear that it did :-)
Hello Morten, happy New Year and thanks for sharing.
Happy New Year Frederique kruger
Really hope that 2022 will be a year, that will bring back more happiness,,
- Morten
Thanks man! This procedure worked correctly!
Glad it helped!
Done on my HP DL380 G9 Smart array P440ar controller in HBA mod and on ESXI. Best way it worked for me: run win server vm,mount,wait for appear in Device Mamager, than Format drive to 512, With cmd diskpart clean and convert mbr, unmount, reboot ESXI(else its glitchy and broken) and done. it worked great even with truenas zfs. Tip: you can format more drives in multiple CMDs at the same time. I spend 2 days on it, so you dont have to :-)
Be patient, unformated disks may be pretty slow to initialize on the system.👍
Hi Free entity
Thank You very much! glad you liked the video :-)
Thank you for watching! :-)
Vote up, keep it up, thanks for sharing the video :)
Much appreciated!
Thank you so much, saved me so much money, it works really appreciated.
I am happy to hear that I have helped.. makes it all worth it :-)
Thanks A lot for your help!
You're welcome!
Thanks Morton for your tutorial. I was 90 percent there but was having issue until you shared your "Ninja Hack". By splitting the backplane between the raid card and the HBA was what I was missing. As you would say...AWESOME! - This Northern Nomadic Nomad is in your debit.
You are most welcome!!
Thanks for the video, the proposed system works for me.
Using an LSI 9211-8i card (Dell brand) it took 2.5 hours to reformat a 1.2TB mechanical drive on Windows 10.
Depending on the number of connectors on the controller it is possible to reformat multiple disks at the same time (in my case 8) simply by using multiple command prompt windows; the time required to complete the operation has not changed from 1 to 8 drives.
Hi Jan Cacciatoro
Thank You very much! glad you liked the video :-)
Thank you for watching! :-)
Thanks very much!
You're welcome!
First video of 2022 what a great start to the year, happy new year!
Happy new year!
But here it is the last video of 2021 :-)
@@MyPlayHouse not for me in Melbourne, already in 2022, your living in the past 👍
@@Jsak666 No, you guys just get ahead of yourselves :-)
We still have 8½ hours of the old year :-)
Can confirm this SG3 tool works to reformat 520 byte sector formatted Seagate Dell EMC SAS 2.5 drives. I had a pile of 10 ready to be sold because they didn't work for me until I found this video and used this tool!! Now I have several more TB of SAS drives for my servers 😁
Awesome,, happy to help you get your drives working :-)
Thanks Friend you are a grate person
Hi Christian Vergara
Thank You very much! glad you liked the video :-)
Thank you for watching! :-)
Zoll is quite a funny word in german as it has two meaning. One meaning is customs, but it is also a measuring unit and you are right it's inches. And `mit Rahmen`just means with tray.
Thank You :-) Editing Morten did guess what Rahmen was :-)
I am English and wanted to translate for him ;-) Hello from NRW :-)
Rahmen is not a japanese cooking speciality ??? ^^
@@MyPlayHouse really? Oh must hab looked on another screen or so on that moment. :)
Happy New Year Sir!!
Happy New Year alpine7840
Really hope that 2022 will be a year, that will bring back more happiness,,
- Morten
Thanks ! Procedure Still Working. tried with SSD 920Gb
Hi EpisodeSoftware
Thank You very much! glad you liked the video :-)
Thank you for watching! :-)
Happy new year Morten
Happy New Year Stoqn Kraeshki
15:07 And it´s happy
Server: Brrrrrrrrrrrrrr
Great Video helped me a lot
Hi @timnerenberg
Thank You very much! glad you liked the video :-)
Thank you for watching! :-)
Happy New Year!!! Health !!! Business prosperity !!! 🙃
Happy New Year Михаил Дмитриев
Really hope that 2022 will be a year, that will bring back more happiness,,
- Morten
Happy New Year! / Gott Nytt År!
Happy New Year Micke A
Really hope that 2022 will be a year, that will bring back more happiness,,
- Morten
This is how I used to convert Netapp drives for repurposing, however the linux version :D
-The reason in the most part for the extra bytes here and there is for them to store additional data relating to needs of recovery in whatever form they require. Kinda get the same within standards like SATA verses SAS, like kinda..
Hi Martin Washington
Thank You very much! glad you liked the video :-)
Thank you for watching! :-)
"mit Rahmen" means that it comes with a tray ;)
Greetings from Germany ;)
Thanks for the info!
You can usually change the software limited overprovision size (set LBA to max the drive will a have an smart tool for it usually)
Okay,, and this will give me a little bit more spaces on the SSD ?
@@MyPlayHouse if this ssd is a 400gb model then they may have set 25% op to make them into a write intensive ssd for more endurance so only 300gb ish available, I done it with enterprise Samsung ssds in the past usually you can reset it by passing max command but this is specific to enterprise Intel and Samsung ssds, this will erase the drive when you use the command (yes to more space if it has been set to a smaller LBA size before)
with Samsung and Intel usually the enterprise management DC tool
I actually believe the Samsung DC tool can use the LBA limit command with any ssd that supports LBA resize (sure I was using it on a micron and Intel and Samsung enterprise ssds)
@@leexgx I got enterprise SSD Toshiba kpm51mug800g from Hitachi server which should provide 800 GB of storage, but this SSD appeared to be limited to just 200 GB. I want to try to resize it into 800 Gb SSD. But I am not sure that it even possible with these model. The Samsung DC tool does not see this SSD despite the fact that I can use it as 200 Gb ssd in Windows. I suppose that problem can be with my old SAS controller, LSI SAS 3081E-R
Happy new year!!
Happy new year!!
It IS a 400GB drive, but has been adjusted to 300GB to increase endurance.
For example, 2TB SSDs are commonly sold as 2TB to consumers (low endurance), they are adjusted to 1.92TB for medium endurance, and typically 1.6TB for high endurance drives.
This is common practice.
But a lot of the high-end enterprise storage systems lower the capacity even further to increase endurance.
This is common for EMC, 3PAR, NetApp, IBM etc.
For example, 3PAR 920GB SSDs, are actually 1TB SSDs
3PAR 1.92TB SSDs are actually 2TB SSDs.
Okay,, do you know if they can be change ?
And, on the top end (3DWPD-10DWPD+ class), Micron 480GB SSD are actually have 1TB NAND inside! Some Micron enterprise SSD can be user adjusted using their public ssd tools (it uses common ata language "set max lba" or something) Some Samsung SSD does not have OP by default--they expose all NAND to the system. To set the OP size, just trim all sectors, and make a blank, unformatted partition at the end of LBA range. It will automatically use them as the OP, pSLC, and other housekeeping things there.
🌟🌟super🌟🌟
Hi Kacper
Thank You very much! glad you liked the video :-)
Thank you for watching! :-)
The p420 does have a pass thru mode as well so it can emulate a HBA.
I did not find that option.
@@MyPlayHouse hpssacli controller slot=0 modify hbamode=on forced ua-cam.com/video/JuaezJd4C3I/v-deo.html You do need a minimum firmware version on the card though and any existing raid arrays will be deleted.
Your german is so cool ;)
Thank you for this video!
I will also buy IBM SAS drives (SSD's) for my Dell Server and has to format the drives I think ...
Can I also do it with my Dell R540 and an HBA330 (non)Raid Controller?
Hi Rednax07
Thank You very much! I do not speak much german,, glad you liked the video :-)
Thank you for watching! :-)
Hello! Thanks a lot for the video. But I have a question: can i reformat such a drive using that utilities without discrete RAID-controller, with an ordinary PC?
If it is a SATA drive you can,,, but usually these are SAS drives,, and it becomes harder.
wondering if you used the Intelligent Provisioning program to look at those drives. I have a dl360p gen8 with this program, and the raid utility is in there.
I did not use that.
@@MyPlayHouse K.. Happy New Year. Enjoy all you do, even if some is over my head :)
Thanks a lot for the instruction in a video. I use it to reformat several old SAS HDD and had problem only once. Windows decided to update and reboot during the reformatting, and now I can not get access to that HDD. It is dead now, or can it be saved?
I do not know,,, have not run in to that problem :-/
@@MyPlayHouse I tried another controller, and it saw this HDD.
Its Says "Illegal Request Invalid Field On Cdb Bad Field In MODE SENSE (10) [mode_page 1 not supported?]
Sorry,, something in your system is not as in my system,, see if you need to make changes to fit your setup..
Can you tell me what the program like smart array administration ssa in dell to can show hdd in windows to can use steps thank you
Sorry I do not know what that would be for dell :-/
Hello, good morning. i am using DL380 Gen9 , windows 2022 but i still doesn't have HBA card. i just add cygwin1.dll and run a sg_scan but the reult is an error message. can you help me for some advice ? i have some picture if you want it. Best Regards
Well you can see what I did,, and that I am no expert on neither HPE or the sg3_utii
Hi, I'm trying to reformat the Hitachi HGST HUC101212CSS600, after preforming the sg_format --format --size=512 /dev/sgX
the drive changes the "Logical block size:512" but at the same time the "User Capacity:512 bytes [512 B]" changes.
If I revert to Logical block size:520" the disk capacity changes to normal disk capacity "User Capacity:1,200,243, 694,848 bytes [1.20 TB]"
Any ideas what is wrong with the HDD?
Sorry I do not have a clue :-/
Hi, thanks for your response.
After some research, I managed to convert the block size to 512 however the HDD is vendor-lock which blocks firmware upgrade for future HDD use.
Do you have any experience how to remove the vendor-lock?
hi same disk have protection how can i remove protection or reset protection key
Sorry I do not know :-/
It will work but it will just take days. Server 2019 took 3 days to format 6TB drives.
Hope it was a cheap disk then :-)
Hello! Nice tutorial but when I try to follow the procedure I get this error: Mode Sense (block descriptor) data, prior to changes:
No block descriptors present
Need to perform MODE SELECT (to change number or blocks or block length)
but (single) block descriptor not found in earlier MODE SENSE
Any suggestion to fix this? 😞
I do not know,, sorry :-/
I bought a few of these emc 2tb Seagate drives. Do I have to have IT mode capability for my raid card? I have an IBM ServeRAID M5014 crossflashed to LSi9260-8i firmware 2.90.03-0933
Yes you need a HBA,, to do this, and not a RAID Controller.
@@MyPlayHouse Thanks for the help. Because of your video I now have absurdly cheap backup storage and redundancy :)
I have server dell r740 can you help me to can format hard disk I cant show ssd in windows
You need an HBA to procent the drives directly to the operative system.
Merci Danke Morten
I am Danish,, so it would be "Mange Tak" :-)
Saved me from having to return some ebay discs!
Hi hsensei
Thank You very much! glad you liked the video :-)
Thank you for watching! :-)
I have some netapp drives 4tb ill have to try this under windows machine. i did a few in unRaid and worked but had to take my server down to do it. now i can just use a windows box.
As you saw, it worked for me,, best of luck!
@@MyPlayHouse I downloaded the files and the dll can't wait to try.
@@MyPlayHouse UPDATE it works LOL im converting a drive as i speak,
@@MyPlayHouse i actually was able to format 2 of the 5 have here BUT the 2 that passed and formatted now in windows say ! and cylindrical error not sure there
When trying to do this myself on a regular windows pc, with asus prime z390a no HBA or raid controller, it counts down successfully and then throws an error saying “need to perform mode select”. How do I fix this?
My drives are Micron RealSSD P400m-200-MTFDDAK200MAN 200GB sata 6gb/s SSD. EMC part# 118032957
Check if your bios sees the disk..
@@MyPlayHouse bios sees the drives fine, as does device manager and disk management, but it will not let me format as it throws this specific error “Mode Sense (block descriptor) data, prior to changes:
No block descriptors present
Need to perform MODE SELECT (to change number or blocks or block length)
but (single) block descriptor not found in earlier MODE SENSE”
would this work with windows 10 or do you need server edition?
It should work on any windows,, I was just surprised of how well it worked on Server 2022,, as I have had other issues.
SIR, can we use normal computer like core2duo or corei3,
Yes,, most likely that will work just fine.
Hi this is solutions working great with scoter size 520 to 512 but I have another hard disk 528 to 512 not working can you help me for that
No,, not if this does not work.
your just boot a linux usb stick and get the sg_format package , and format all the drives to 512byte size 10 times more easy . not HBA required
The raid controller did not pass through the drive to the OS,, It does not discriminate on what OS
-v is for verbose. it gives you more information about what it's doing.
Hi lnxpro
Thank You very much! glad you liked the video :-)
Thank you for watching! :-)
Would Diskpart work?
You can not do this with diskpart,, but when it is reformated,, i should also work in diskpart.
Its Says "Illegal Request"
Please Answers
Its Says "Illegal Request Invalid Field On Cdb Bad Field In MODE SENSE (10) [mode_page 1 not supported?]
Sorry,, something in your system is not as in my system,, see if you need to make changes to fit your setup..
Hei. Jeg fikk feilmelding i Sg3 utils selv om jeg kopierte inn fila her. Prøver det i linux og ser. Takk
It was not easy to get up and running 😬
Did you run CMD as administrator?