I have some Hitachi HUA721010KLA330. I run sg_format to 520. Unfortunately my colleague stopped formatting by accident. Now the hard drive is useless and it is show only 4Gb capacity. Any suggestion how to rescue the hard drive?
I would simply try the command again and see what happens.I have some Hitachi HUA721010KLA330. I run sg_format to 520. Unfortunately my colleague stopped formatting by accident. Now the hard drive is useless and it is show only 4Gb capacity. Any suggestion how to rescue the hard drive?
You might want to try: pacman -S sg3_utilsHello friends!
I recently came into a set of 100GB SAS HP 3PAR ssd's. I wanna use 'em, but I ran into the same 520byte formatting thing.
Alas, with all my knowledge, I am not a linux guy. Not yet. I need help mates.
What in the world do I do? What are the commands? Can anyone help me? I am at a loss. I downloaded System Rescue CD, as it has sg3_utils in it, and I made a bootable usb flash drive.
This is as far as I got. See below. How do I run the application? Help a brother out will ya?
I'm booting this off a Dell R430:
I think the easiest way to do is to create a Live CentOS 7 usb drive, then follow the steps in the first post. You can download the either image in the link below and use your preferred software to create the bootable usb drive.Great! This worked! Thanks! It did give me an output to use "Sy" to download some related dependencies, so I added the "y" and it seems like it went through.
But now I get this:
What do I do? Walk me through this guys. Do I then use the commands from the first post?
Thanks again for all your help you linux gurus!
Oh wow, I didn't even notice! Thank you friend!Samir my brother! I celebrated your 1000th post with a Like!
sg_format --format --size = 512 /dev/sg4
sg_format - -format --size = 512 /dev/sde
root@ubuntu:/#sg_format --format --size=512 -v -v /dev/sg4
open /dev/sg4 with flags=0x802
inquiry cdb: 12 00 00 00 24 00
TOSHIBA AL13SXB60EA DL02 peripheral_type: disk [0x0]
PROTECT=1
<< supports protection information>>
mode sense (10) cdb: 5a 00 01 00 00 00 00 00 fc 00
Mode Sense (block descriptor) data, prior to changes:
Number of blocks=146515446 [0x8bba5f6]
Block size=4096 [0x1000]
mode select (10) cdb: 55 11 00 00 00 00 00 00 1c 00
mode select (10) parameter list
00 00 00 00 00 00 00 08 00 00 00 00 00 00 02 00
01 0a c0 3f ff 00 00 00 3f 00 1f 40
A FORMAT will commence in 10 seconds
ALL data on /dev/sg4 will be DESTROYED
Press control-C to abort
A FORMAT will commence in 5 seconds
ALL data on /dev/sg4 will be DESTROYED
Press control-C to abort
format cdb: 04 18 00 00 00 00
format parameter list:
00 02 00 00
Format has started
test unit ready cdb: 00 00 00 00 00 00
test unit ready: Fixed format, current; Sense key: Not Ready
Additional sense: Logical unit not ready, format in progress
Progress indication: 4.17%
Format in progress, 4.17% done
test unit ready cdb: 00 00 00 00 00 00
root@ubuntu:/#fdisk -l
Disco /dev/sde: 600.1 GB, 600127266816 bytes
255 cabezas, 63 sectores/pista, 9120 cilindros, 146515446 sectores en total
Unidades = sectores de 1 * 4096 = 4096 bytes
Tamaño de sector (lógico / físico): 4096 bytes / 4096 bytes
Tamaño E/S (mínimo/óptimo): 4096 bytes / 4096 bytes
Identificador del disco: 0x00000000
root@ubuntu:/#sg_scan -i
/dev/sg4: scsi0 channel=0 id=4 lun=0
TOSHIBA AL13SXB60EA DL02 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
I find myself in a similar position with a 3TB Seagate drive, I'm currently 15% through a format usingI purchased a Seagate EMC drive to attempt to format it back to 512 and am having some issues.
The model is ST3000NM0023.
I have it in a supermicro unit and can see the drive just fine. I can format it to 520 but whenever I try to format it to 512 I get
mode select command illegal request
sudo sg_format --format --size=512 --fmtpinfo=0 /dev/sdf
If I add --six -v I get a sense key illegal request error.
./SeaChest_Format_151_12130_64 -d /dev/sg0 --fastFormat 1 --formatUnit 512 --confirm this-will-erase-data
# sudo sg_format --format --size=512 -v /dev/sda
SEAGATE ST6000NM0104 NE03 peripheral_type: disk [0x0]
PROTECT=1
<< supports protection information>>
LU name: 5000c5008669fb3f
mode sense(10) cdb: 5a 00 01 00 00 00 00 00 fc 00
Mode Sense (block descriptor) data, prior to changes:
block count maxed out, set <<longlba>>
mode sense(10) cdb: 5a 10 01 00 00 00 00 00 fc 00
<<< longlba flag set (64 bit lba) >>>
Number of blocks=11721045168 [0x2baa0f4b0]
Block size=512 [0x200]
A FORMAT UNIT will commence in 15 seconds
ALL data on /dev/sda will be DESTROYED
Press control-C to abort
A FORMAT UNIT will commence in 10 seconds
ALL data on /dev/sda will be DESTROYED
Press control-C to abort
A FORMAT UNIT will commence in 5 seconds
ALL data on /dev/sda will be DESTROYED
Press control-C to abort
Format unit cdb: 04 18 00 00 00 00
Format unit:
Descriptor format, current; Sense key: Data Protect
Additional sense: Access denied - no access rights
Descriptor type: Information: 0x0000000000000000
Descriptor type: Field replaceable unit code: 0x0
Descriptor type: Vendor specific [0x80]
00 00 00 00 00 2b 00 00 00 00 00 00 00 00
Format unit command: Data protect, type: sense key; write protected media?
FORMAT UNIT failed