May 2, 20188 yr Apr 27 18:31:50 Tower kernel: sd 5:0:1:0: [sdc] Unsupported sector size 520.Apr 27 18:31:50 Tower kernel: sd 5:0:1:0: [sdc] 0 512-byte logical blocks: (0 B/0 B)Apr 27 18:31:50 Tower kernel: sd 5:0:1:0: [sdc] 520-byte physical blocksApr 27 18:31:50 Tower kernel: sd 5:0:1:0: [sdc] Write Protect is offApr 27 18:31:50 Tower kernel: sd 5:0:1:0: [sdc] Mode Sense: cf 00 10 08Apr 27 18:31:50 Tower kernel: sd 5:0:1:0: [sdc] Write cache: disabled, read cache: enabled, supports DPO and FUAApr 27 18:31:50 Tower kernel: sd 5:0:1:0: [sdc] Unsupported sector size 520.Apr 27 18:31:50 Tower kernel: sd 5:0:1:0: [sdc] Attached SCSI diskApr 27 18:33:25 Tower emhttpd: device /dev/sdc has size zero Hi , fitted a new drive and im getting the above issues , i cant format the drive at all or do anything with it. I have a Dell T410 with the Perc 5 controller. Any help would be appreciated Thanks
May 2, 20188 yr Community Expert Some SAS drives have several adjustable sector sizes, you need to change it to 512 bytes.
May 4, 20188 yr I notice the sg_format command isn't included in unRAID. Maybe it could be added to the NerdPack.
May 4, 20188 yr Author thanks , im assuming id have to boot from a usb distribution to use this tool?
May 4, 20188 yr Community Expert You can easily add it to unRAID, create a folder called extra on your flash drive, copy sg3_utils there, reboot and presto.
May 4, 20188 yr Author 19 minutes ago, johnnie.black said: You can easily add it to unRAID, create a folder called extra on your flash drive, copy sg3_utils there, reboot and presto. Cheers ill give it a go this weekend
May 4, 20188 yr Community Expert I never had SAS drives, and this issue only came up once or twice here in the forums, see below if you can find anything, if not you'll need to google it: https://forums.servethehome.com/index.php?threads/how-to-reformat-hdd-ssd-to-512b-sector-size.4968/
May 5, 20188 yr Author hi , been trying to google it , need some techie help from anyone who knows about drives etc.
May 10, 20188 yr Author Any help would be appreciated , i'm sure its a parameter missing or something i'm not doing correctly?
May 10, 20188 yr 10 hours ago, StuartF said: Any help would be appreciated , i'm sure its a parameter missing or something i'm not doing correctly? I recently did this with an ubuntu live cd using the setblocksize program. As I'm not sure about the rules of posting external links, google for unsupported-sector-size-520.html Edited May 10, 20188 yr by themaxxz
May 14, 20188 yr Author On 5/10/2018 at 11:02 PM, themaxxz said: I recently did this with an ubuntu live cd using the setblocksize program. As I'm not sure about the rules of posting external links, google for unsupported-sector-size-520.html Thanks , i dont seem to be able to find the compiled version or the app?
November 1, 20187 yr On 10/31/2018 at 6:03 PM, SundarNET said: Reformat a SAS HDD to different block sizes mainly 512 to use in UNRAID This took me a few hours to find and work out but was so much needed OK so I have just now done this for myself by installing sg3_utils onto my UNRAID OS using installpkg all using terminal 1. download the package into a tmp dir # wget http://slackware.cs.utah.edu/pub/slackware/slackware64-14.1/slackware64/l/sg3_utils-1.36-x86_64-1.txz 2. run this from that tmp dir after the download to install sg3_utils # upgradepkg --install-new sg3_utils-1.36-x86_64-1.txz 3. use this command to show SAS HDD's # sg_scan -i 4. this command to format 'obviously /dev/XXX should be the HDD u wish to format MAKE SURE ITS THE RIGHT ONE! # sg_format --format --size=512 -v /dev/XXX this has been allowing me to reformat the block size and use previously non usable drives saving buttonnes of money WARNING this format will destroy a HDD if interrupted during this process if you can a UPS is recommended have a great day I love UNRAID! Just to confirm the install process works I just did 1. and 2. on my main UNRAID machine and it installed perfectly and sg_scan -i showed the list of drives, I had no need to format so will be doing that a bit later Edited November 10, 20187 yr by SundarNET
November 7, 20187 yr Author Thankyou this has worked apart from the fact the drive i have is 4tb and its been formatted to 3tb?
November 8, 20187 yr 12 hours ago, StuartF said: Thankyou this has worked apart from the fact the drive i have is 4tb and its been formatted to 3tb? hmm not nice you will have to do some google searches to find out this issue Ill have a hunt when not busy, I assume it is something to do with a simple command that needs changing
November 8, 20187 yr quick Q is it showing that in windows? if so you may just have it formatted as MBR and not GUID, I could be sadly wrong there though Edited November 8, 20187 yr by SundarNET
November 8, 20187 yr 12 hours ago, StuartF said: Thankyou this has worked apart from the fact the drive i have is 4tb and its been formatted to 3tb? what model brand type of drive?
November 8, 20187 yr ok it seems 'I may be wrong, always add as much information as possible' that you may have formatted a normal drive from 4096b sectors to 512b format it back to 4096b block size this tool is for SAS drives mostly and non SAS drives NEED to be 4096byte block size to have their drive size correct once again without all the information I can only speculate that this is your issue
November 8, 20187 yr Author 7 hours ago, SundarNET said: ok it seems 'I may be wrong, always add as much information as possible' that you may have formatted a normal drive from 4096b sectors to 512b format it back to 4096b block size this tool is for SAS drives mostly and non SAS drives NEED to be 4096byte block size to have their drive size correct once again without all the information I can only speculate that this is your issue HGST HW 0F22941 Hgst Ultrastar Hus726040als210 SAS is the drive i have , i will check teh byte size later , i only have the machine running unraid so cant check in windows.
November 9, 20187 yr yeah I've been checking and I'm pretty sure I'm completely wrong and you should always google search your issue to get other options. regarding drives and formatting, i think most drives, SAS or not - need a logical byte sector of 512 then a physical of 4k, and over 2TB needs to be GPT partition map to see all the drive 'for windows' most other systems will format accordingly and I assume UNRAID is the same, let it do its own default format it should make it right and see the full size of the drive, another possibility... assuming your are fresh with UNRAID like me, is your parity drive bigger or the same size as this 4TB as that is the first possible issue that your parity drive is only 3TB? please give more info always to assist proper diagnosis
November 10, 20187 yr On 5/4/2018 at 8:33 PM, johnnie.black said: You can easily add it to unRAID, create a folder called extra on your flash drive, copy sg3_utils there, reboot and presto. I like just found this and yes i love it to elaborate in terminal cd /boot mkdir extra cd extra wget " paste the sg3_utils download link here they change it a lot " "google search sg3_utils slackware" reboot there's your presto
January 30, 20206 yr I'm having some problem trying to convert HP SAS drive from 520 to 512 block size using sg_format, Make:HP Model:HMRP4000S can anyone see where I'm going wrong? root@Tower:~# sg_format -v --fmtpinfo=0 --format --size=512 /dev/sg3 HGST HMRP4000S5xnN7.2 3P00 peripheral_type: disk [0x0] PROTECT=1 << supports protection information>> Unit serial number: PBHR336X LU name: 5000cca03b608d44 mode sense (10) cdb: 5a 00 01 00 00 00 00 00 fc 00 Mode Sense (block descriptor) data, prior to changes: Mode sense number of blocks maxed out, set longlba mode sense (10) cdb: 5a 10 01 00 00 00 00 00 fc 00 Mode Sense (block descriptor) data, prior to changes: <<< longlba flag set (64 bit lba) >>> Number of blocks=7814037168 [0x1d1c0beb0] Block size=520 [0x208] mode select (10) cdb: 55 11 00 00 00 00 00 00 22 00 mode select (10): transport: Host_status=0x03 [DID_TIME_OUT] Driver_status=0x00 [DRIVER_OK] MODE SELECT command: Sense category: -1 root@Tower:~# any help would be great.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.