Ich habe ne 500er 2,5" externe Festplatte, die ich einfach nicht ansprechen konnte. Deswegen habe ich alles mit Nullen beschrieben:
dd if=/dev/zero of=/dev/sdd bs=1M
Nach vier Tagen war die Sache gegessen, aber als ich den mbr überschreiben wollte:
dd if=/dev/zero of=/dev/sdd bs=446 count=1
dd: error writing ‘/dev/sdd’: Input/output error
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.0101661 s, 0.0 kB/s
parted sagt:
(parted) print                                                            
Error: /dev/sdd: unrecognised disk label
(parted) mklabel                                                          
New disk label type? msdos                                                
Error: Input/output error during read on /dev/sdd
fdisk -l erkennt die Platte auch nicht. Was tun? Google hat mir bisher noch nicht weitergeholfen...
Anderes Gehäuse probieren oder gleich in den PC einbauen und nochmal testen. Vielleicht ist nur der USB-Hub im Gehäuse defekt.
Danke für die Antwort. Guter Gedanke, ich habe es versucht, aber das war es nicht 🙁
toad schrieb...ich habe es versucht...
Was hast du versucht? Ein anderes Gehäuse oder intern? Schau nach was SMART sagt oder versuch mal fdisk direkt mit dem Gerät auf zu rufen und zu partitionieren.
Anderes Gehäuse, von dem ich weiß, dass es funzt. fdisk erkennt sie überhaupt erst gar nicht. Smartctl sagt:
smartctl /dev/sdd -x
smartctl 5.43 2012-06-05 r3561 [x86_64-linux-3.10-2-amd64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family:     SAMSUNG SpinPoint M8 (AFT)
Device Model:     SAMSUNG HN-M500MBB
Serial Number:    S2RYJ9KB903511
LU WWN Device Id: 5 0024e9 2062dbfac
Firmware Version: 2AR10001
User Capacity:    500,107,862,016 bytes [500 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   8
ATA Standard is:  ATA-8-ACS revision 6
Local Time is:    Sat Dec 28 12:39:20 2013 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Disabled
APM feature is:   Disabled
Rd look-ahead is: Enabled
Write cache is:   Enabled
ATA Security is:  ENABLED, PW level MAX, **LOCKED** [SEC4]

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (  41) The self-test routine was interrupted
                                        by the host with a hard or soft reset.
Total time to complete Offline 
data collection:                ( 6600) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine 
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        ( 110) minutes.
SCT capabilities:              (0x003f) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     POSR-K   100   100   051    -    1
  2 Throughput_Performance  -OS--K   252   252   000    -    0
  3 Spin_Up_Time            PO---K   073   073   025    -    8428
  4 Start_Stop_Count        -O--CK   097   097   000    -    3938
  5 Reallocated_Sector_Ct   PO--CK   252   252   010    -    0
  7 Seek_Error_Rate         -OSR-K   252   252   051    -    0
  8 Seek_Time_Performance   --S--K   252   252   015    -    0
  9 Power_On_Hours          -O--CK   100   100   000    -    1959
 10 Spin_Retry_Count        -O--CK   252   252   051    -    0
 11 Calibration_Retry_Count -O--CK   100   100   000    -    79
 12 Power_Cycle_Count       -O--CK   100   100   000    -    869
181 Program_Fail_Cnt_Total  -O---K   100   100   000    -    1503259
191 G-Sense_Error_Rate      -O---K   100   100   000    -    37
192 Power-Off_Retract_Count -O---K   252   252   000    -    0
194 Temperature_Celsius     -O----   064   039   000    -    21 (Min/Max 12/61)
195 Hardware_ECC_Recovered  -O-RCK   100   100   000    -    0
196 Reallocated_Event_Count -O--CK   252   252   000    -    0
197 Current_Pending_Sector  -O--CK   252   252   000    -    0
198 Offline_Uncorrectable   ----CK   252   252   000    -    0
199 UDMA_CRC_Error_Count    -OS-CK   200   200   000    -    0
200 Multi_Zone_Error_Rate   -O-R-K   100   100   000    -    400
223 Load_Retry_Count        -O--CK   100   100   000    -    79
225 Load_Cycle_Count        -O--CK   099   099   000    -    11132
                            ||||||_ K auto-keep
                            |||||__ C event count
                            ||||___ R error rate
                            |||____ S speed/performance
                            ||_____ O updated online
                            |______ P prefailure warning

ATA_READ_LOG_EXT (addr=0x00:0x00, page=0, n=1) failed: 48-bit ATA commands not supported
Read GP Log Directory failed.

SMART Log Directory Version 1 [multi-sector log support]
SMART Log at address 0x00 has    1 sectors [Log Directory]
SMART Log at address 0x01 has    1 sectors [Summary SMART error log]
SMART Log at address 0x02 has    2 sectors [Comprehensive SMART error log]
SMART Log at address 0x06 has    1 sectors [SMART self-test log]
SMART Log at address 0x09 has    1 sectors [Selective self-test log]
SMART Log at address 0x80 has   16 sectors [Host vendor specific log]
SMART Log at address 0x81 has   16 sectors [Host vendor specific log]
SMART Log at address 0x82 has   16 sectors [Host vendor specific log]
SMART Log at address 0x83 has   16 sectors [Host vendor specific log]
SMART Log at address 0x84 has   16 sectors [Host vendor specific log]
SMART Log at address 0x85 has   16 sectors [Host vendor specific log]
SMART Log at address 0x86 has   16 sectors [Host vendor specific log]
SMART Log at address 0x87 has   16 sectors [Host vendor specific log]
SMART Log at address 0x88 has   16 sectors [Host vendor specific log]
SMART Log at address 0x89 has   16 sectors [Host vendor specific log]
SMART Log at address 0x8a has   16 sectors [Host vendor specific log]
SMART Log at address 0x8b has   16 sectors [Host vendor specific log]
SMART Log at address 0x8c has   16 sectors [Host vendor specific log]
SMART Log at address 0x8d has   16 sectors [Host vendor specific log]
SMART Log at address 0x8e has   16 sectors [Host vendor specific log]
SMART Log at address 0x8f has   16 sectors [Host vendor specific log]
SMART Log at address 0x90 has   16 sectors [Host vendor specific log]
SMART Log at address 0x91 has   16 sectors [Host vendor specific log]
SMART Log at address 0x92 has   16 sectors [Host vendor specific log]
SMART Log at address 0x93 has   16 sectors [Host vendor specific log]
SMART Log at address 0x94 has   16 sectors [Host vendor specific log]
SMART Log at address 0x95 has   16 sectors [Host vendor specific log]
SMART Log at address 0x96 has   16 sectors [Host vendor specific log]
SMART Log at address 0x97 has   16 sectors [Host vendor specific log]
SMART Log at address 0x98 has   16 sectors [Host vendor specific log]
SMART Log at address 0x99 has   16 sectors [Host vendor specific log]
SMART Log at address 0x9a has   16 sectors [Host vendor specific log]
SMART Log at address 0x9b has   16 sectors [Host vendor specific log]
SMART Log at address 0x9c has   16 sectors [Host vendor specific log]
SMART Log at address 0x9d has   16 sectors [Host vendor specific log]
SMART Log at address 0x9e has   16 sectors [Host vendor specific log]
SMART Log at address 0x9f has   16 sectors [Host vendor specific log]
SMART Log at address 0xc0 has   16 sectors [Device vendor specific log]
SMART Log at address 0xc1 has   16 sectors [Device vendor specific log]
SMART Log at address 0xc2 has   16 sectors [Device vendor specific log]
SMART Log at address 0xc3 has   16 sectors [Device vendor specific log]
SMART Log at address 0xc4 has   16 sectors [Device vendor specific log]
SMART Log at address 0xc5 has   16 sectors [Device vendor specific log]
SMART Log at address 0xc6 has   16 sectors [Device vendor specific log]
SMART Log at address 0xc7 has   16 sectors [Device vendor specific log]
SMART Log at address 0xc8 has   16 sectors [Device vendor specific log]
SMART Log at address 0xc9 has   16 sectors [Device vendor specific log]
SMART Log at address 0xca has   16 sectors [Device vendor specific log]
SMART Log at address 0xcb has   16 sectors [Device vendor specific log]
SMART Log at address 0xcc has   16 sectors [Device vendor specific log]
SMART Log at address 0xcd has   16 sectors [Device vendor specific log]
SMART Log at address 0xce has   16 sectors [Device vendor specific log]
SMART Log at address 0xcf has   16 sectors [Device vendor specific log]
SMART Log at address 0xd0 has   16 sectors [Device vendor specific log]
SMART Log at address 0xd1 has   16 sectors [Device vendor specific log]
SMART Log at address 0xd2 has   16 sectors [Device vendor specific log]
SMART Log at address 0xd3 has   16 sectors [Device vendor specific log]
SMART Log at address 0xd4 has   16 sectors [Device vendor specific log]
SMART Log at address 0xd5 has   16 sectors [Device vendor specific log]
SMART Log at address 0xd6 has   16 sectors [Device vendor specific log]
SMART Log at address 0xd7 has   16 sectors [Device vendor specific log]
SMART Log at address 0xd8 has   16 sectors [Device vendor specific log]
SMART Log at address 0xd9 has   16 sectors [Device vendor specific log]
SMART Log at address 0xda has   16 sectors [Device vendor specific log]
SMART Log at address 0xdb has   16 sectors [Device vendor specific log]
SMART Log at address 0xdc has   16 sectors [Device vendor specific log]
SMART Log at address 0xdd has   16 sectors [Device vendor specific log]
SMART Log at address 0xde has   16 sectors [Device vendor specific log]
SMART Log at address 0xdf has   16 sectors [Device vendor specific log]
SMART Log at address 0xe0 has    1 sectors [SCT Command/Status]
SMART Log at address 0xe1 has    1 sectors [SCT Data Transfer]

SMART Extended Comprehensive Error Log (GP Log 0x03) not supported
SMART Error Log Version: 1
No Errors Logged

SMART Extended Self-test Log (GP Log 0x07) not supported
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Interrupted (host reset)      90%      1943         -
# 2  Extended offline    Interrupted (host reset)      90%      1943         -
# 3  Extended offline    Interrupted (host reset)      90%      1943         -
# 4  Extended offline    Interrupted (host reset)      90%      1943         -
# 5  Extended offline    Interrupted (host reset)      90%      1943         -
# 6  Extended offline    Interrupted (host reset)      90%      1943         -
# 7  Extended offline    Interrupted (host reset)      90%      1833         -
# 8  Short offline       Interrupted (host reset)      80%      1833         -

Note: selective self-test log revision number (0) not 1 implies that no selective self-test has ever been run
SMART Selective self-test log data structure revision number 0
Note: revision number not 1 implies that no selective self-test has ever been run
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Interrupted [90% left] (0-65535)
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

Error Read SCT Status failed: scsi error medium or hardware error (serious)
Error Read SCT Status failed: scsi error medium or hardware error (serious)
Warning: device does not support SCT (Get) Error Recovery Control command

SATA Phy Event Counters (GP Log 0x11) not supported
Hm, das hier ist interessant, muss gleich mal googlen...
ATA Security is:  ENABLED, PW level MAX, **LOCKED** [SEC4]
hdparm kann ATA-Security setzen und disablen. Ob das an einem USB-Adapter klappt weis ich nicht, denke dafür wäre es besser die Platte direkt an einen SATA-Controller zu hängen.
Habe es über usb adapter umsonst versucht, werde sie heute noch einbauen...
K, sieht schlecht aus. Ich habe die Festplatte in meinen Rechner gesteckt, aber das hat keinen Unterschied gemacht. Hier noch das Vorspiel, das ich bisher nicht erwähnt habe:
sudo hdparm --I /dev/sdc|grep Security: -A7
Security: 
        Master password revision code = 16385
                supported
                enabled
                locked
        not     frozen
        not     expired: security count
                supported: enhanced erase
Da war nämlich eine LUKS-Verschlüsselung drauf. In meinem Unwissen habe ich aber einfach ein dd mit /dev/null gemacht, und jetzt scheint es so, als ob ich die hdparm Sicherheitsfeatures nicht mehr ausschalten kann - nie 🙁

Mehr gelesen, und die Platte war zuvor in einem Thinkpad. Es ist also möglich, dass es sich einfach nur um ein HD-Passwort handelt, das ich ausfindig machen könnte...
Okay, es war ein Passwort im Thinkpad-BIOS. Sobald ich das löschte, sah es dann so aus:
Security: 
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
                supported: enhanced erase
Dann konnte ich umpartitionieren. Hatte also nix dem LUKS container zu tun.
Glückwunsch 😉 Hätte ja auch anders ausgehen können.

Würdest du noch auf Gelöst setzen? Für die Nachwelt.

Edit: Bin blind 😉