Hdparm Input Output Error Ubuntu
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business
Hdparm Secure Erase Input Output Error
Learn more about hiring developers or posting ads with us Super User Questions Tags Users hdparm unfreeze drive Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only
Security Unlock Input/output Error
takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top HDPARM Keeps giving Input/Output Error up vote 4 down vote hdparm unlock drive favorite 3 I've been trying to set the password on my Seagate drive: sudo hdparm --user-master m --security-set-pass pwd /dev/sda I get Issuing SECURITY_SET_Pass command, password="pwd", user=master, mode=high SECURITY_SET_PASS: Input/output error Why do I keep getting that error? linux security hdparm share|improve this question edited Mar 23 at 8:36 Hennes 51.1k776121 asked Aug 9 '13 at 17:53 Glad 2113 For some BIOS you need first convert "pwd" to a scancode sequence. See:thaeial.blogspot.de/2013/01/… –student Oct hdparm enhanced erase 26 '13 at 19:44 I get the same error on a Samsung SSD 840 Pro in a Dell Latitude 6400 ATG laptop (Bios Version: A34), german keyboard; even if I try to translate the ascii code to scan codes: sudo hdparm --user-master m --security-set-pass "$( printf 'testmasterpassword' | tr '1234567890qwertzuiopasdfghjklyxcvbnm' '\2-\11\20\21\26\27\30\31\40-\45\60-\70\104-\107\110\111\120')" /dev/sda security_password=" 1 P01 %011$2" /dev/sda: Issuing SECURITY_SET_PASS command, password=" 1 P01 %011$2", user=master, mode=high SECURITY_SET_PASS: Input/output error –student Oct 27 '13 at 10:25 why can't you do this from within the BIOS? –MariusMatutiae Oct 28 '13 at 9:30 I didn't find an option to do this in the BIOS, there you can only set the user hdd password and you can set the option that typing in the master password invokes a secure erase instead of unlocking the ssd. However I don't know the master password which DELL has set up so I cannot test if this works. Thus I just want to overwrite the master password. –student Oct 28 '13 at 11:31 1 @Glad: Did you check if the drive was frozen? I figured out from the ata specs that it should not be frozen. There are some tricks to get it to a unfrozen state such doing a suspend to RAM and waking it up. Then my I/O error dissappeared but the master password didn't wo
its cells will be marked as empty, restoring it to factory default write performance. DISCLAIMER: This will erase all your data, and will not be recoverable by even data recovery services. DISCLAIMER: If you hit
Master Password Revision Code = 65534
kernel or firmware bugs (which are plenty with not widely-tested features such as ATA Secure secure erase linux Erase) this procedure might render the drive unusable or crash the computer it's running on. DISCLAIMER: The security-erase command is a single command
Hdparm Missing Passwd
which typically takes minutes or hours to complete, whereas most ATA commands take milliseconds, or seconds to complete. Whilst drives directly attached to a straight-forward SATA controller should work reliably, some "intelligent" interfaces such as USB or http://superuser.com/questions/630053/hdparm-keeps-giving-input-output-error firewire to PATA/SATA bridges, SAS controllers or hardware RAID controllers may try to reset devices which they have decided are no longer responding. They may also decide that locked devices are faulty, and hence not provide any access to them in order to issue unlock commands. Such devices may still be unlocked by connecting them directly to a different SATA interface. Additionally, hdparm versions prior to 9.31 do not pass-through the long command time-outs required for https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase the erase commands to the SCSI-ATA Command Translation ("SAT") layer which such devices use. Do not use versions of hdparm prior to 9.31 with such interfaces. WARNING: Do not attempt to do this through a USB interface! This procedure worked fine when I tried it on my X-25M through the SATA interface. When I tried it again later on the same drive through a USB adapter, it let me password protect the drive, but would not accept the SECURITY-ERASE command. I shut down the system, reconnected the drive to the SATA controller, and found that the drive was bricked - BIOS couldn't recognize it. I will update this warning if I find a way to un-brick the drive. (I've had a similar experience - managed to lock myself out of three drives. Read this experience and learn from it - Chris) WARNING: If the SECURITY ERASE fails, use --disable-security to set your drive back to normal. Do not set the password to an empty string or NULL. The Lenovo BIOS at least will not allow you to change the password if it's blank. It also freezes the drive so that you can't change the password later, after booting into an OS. I'm now stuck with three drives that are passworded and I cannot unpassword. I finally found a board with a Phoenix TrustedCore BIOS which does
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official https://ubuntuforums.org/showthread.php?t=1982585 Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu http://unix.stackexchange.com/questions/252265/hdparm-security-set-pass-input-output-error Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] hdparm always shows drives frozen Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place output error to report it, thanks ! Results 1 to 6 of 6 Thread: hdparm always shows drives frozen Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode May 19th, 2012 #1 sdpagent View Profile View Forum Posts Private Message Just Give Me the Beans! Join Date Jul 2011 Beans 70 hdparm always shows drives frozen Dear all, I am trying input output error to perform a 'secure-erase' on a drive as shown in the tutorial here: http://tinyapps.org/docs/wipe_drives_hdparm.html unfortunately I cannot get any of the drives (even the one that the OS is running which must be a bug) to not appear as 'frozen'. example output: I have tried putting the computer to sleep and waking it up, but it wont wake up. I have also tried rebooting the machine, but the drives will still show up as frozen directly after booting up. I have also tried using the hdparm -y command to set into standby rather than sleep mode, which returns success but still shows frozen. Whilst frozen, I cannot set the security password or perform a secure-erase as this will return "... Input/output error" Any and all help appreciated. Regards Stu Last edited by sdpagent; May 19th, 2012 at 12:15 AM. Adv Reply May 19th, 2012 #2 papibe View Profile View Forum Posts Private Message Floating Round My Tin Can Join Date Feb 2009 Location Dallas, TX Beans 7,599 DistroUbuntu 14.04 Trusty Tahr Re: hdparm always shows drives frozen Hi sdpagent. I haven't found a way to unfrozen a SSD without sending the machine to sleep first. This is how I've done it: How to securely erase an
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top hdparm: SECURITY_SET_PASS: Input/output error up vote 1 down vote favorite I'm trying to use hdparm to secure erase an SSD as suggested here. Following the directions in that guide has worked okay so far, but I can't seem to resolve this error: ~ $ sudo hdparm --user-master m --security-set-pass NUL /dev/sda security_password="NUL" /dev/sda: Issuing SECURITY_SET_PASS command, password="NUL", user=master, mode=high SECURITY_SET_PASS: Input/output error I've searched around and tested things, as suggested here, but to no avail. How else can I deep-wipe an SSD, if this is not an option? Note: Yes, there is a BIOS password "on" the hard disk, in that it must be typed at boot, but it's not (as far as I know) attached to the disk itself. sudo hdparm -I /dev/sda: /dev/sda: ATA device, with non-removable media Model Number: SanDisk SDSSDA240G Serial Number: 153655402044 Firmware Revision: U21010RL Media Serial Num: Media Manufacturer: Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0 Standards: Used: unknown (minor revision code 0x0110) Supported: 9 8 7 6 5 Likely used: 9 Configuration: Logical max current cylinders 16383 16383 heads 16 16 sectors/track 63 63 -- CHS current addressable sectors: 16514064 LBA user addressable sectors: 268435455 LBA48 user addressable sectors: 468862128 Logical Sector size: 512 bytes Physical Sector size: 512 bytes Logical Sector-0 offset: 0 bytes device size with M = 1024*1024: 228936 MBytes device size with M = 1000*1000: 240057 MBytes (240 GB) cache/buffer size = unknown Form Factor: 2.5 inch Nominal Media Rotation Rate: Solid State Device Capabilities: LBA, IORDY(can be disabled) Queue depth: 32 Standby timer values: spec'd by Standard, no device specific minimum R/W multiple sector tra