Kann nicht auf die Festplatte zugreifen, Partitionstabelle defekt

14398
user1217169

Ich war so dumm, um die Stromversorgung meines Readynas Ultra 4 auszuschalten, als die Festplatte installiert wurde (3 TB WD Green), ich hatte keine Zeit darauf zu warten, da ich ihn zurückgeben würde (es war verdammt laut) Die Installation der Festplatte lag bei 0% und blieb für 2 Minuten so, also entschied ich mich, sie auszuschalten, ohne wirklich über die Konsequenzen nachzudenken. Wie auch immer, jetzt ist es fertig und ich muss es in meinen neuen NAS (Synology 413j) einbauen, aber das läuft nicht sehr gut. Die Diskette wird im BIOS erkannt und ich bekomme sie als / dev / sdc, wenn ich gparted live auf USB laufe. Es wird jedoch nicht im Windows-Geräte-Manager oder in Ubuntu angezeigt. Wenn ich sudo gparted auf einem Live-Ubuntu-USB-Gerät ausführen, erhalte ich beim Lesen von / dev / sdc einen Eingabe- / Ausgabefehler.

Ich habe mehr in gparted live ausprobiert, aber um es zusammenzufassen, ist es sehr ähnlich dem, was hier passiert: http://ubuntuforums.org/archive/index.php/t-1492414.html Bis zu dem Teil, in dem er läuft badsectors und viele Fehler, ich habe badsectors -vs (ich schätze, es wird gerade gelesen und zeigt die Ausgabe. Ich habe es für ungefähr 3000 Sektoren ausgeführt, und für jeden Block zählte die Ausgabe: (und so weiter)

1 2 3 4 5 6 7 8 9 10 11 12 13 140.00% done, 0:01 elapsed. (14/0/0 errors) 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 310.00% done, 0:02 elapsed. (31/0/0 errors) 

In gparted (live) zeigt die / dev / sdc-Diskette alle, aber nicht alle, und es zeigt einen Eingabe- / Ausgabefehler an, wenn alle Disketten durchsucht werden. Wenn ich versuche, eine neue Partition zu erstellen, erhalte ich einen Fehler ohne Partitionstabelle. Ich gehe zur Device - Partitionstabelle und wähle gpt aus, ich bekomme ungefähr 5-6 Fehler mit Input / Output Read und schreibe auch auf / dev / sdc.

Wenn ich gdisk bei gparted (live) eingebe, bekomme ich:

Warning! Read error 5; strange behavior now likely! Warning! Read error 5; strange behavior now likely! Partition table scan: MBR: not present BSD: not present APM: not present GPT: not present  Creating new GPT entries. 

Wenn ich smartctl starte:

ubuntu@ubuntu:~$ sudo smartctl --all /dev/sdc smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-29-generic] (local build) Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net  === START OF INFORMATION SECTION === Device Model: WDC WD30EZRX-00MMMB0 Serial Number: WD-WCAWZ2205xxxxx LU WWN Device Id: 5 0014ee 25c5f8480 Firmware Version: 80.00A80 User Capacity: 3,000,592,982,016 bytes [3.00 TB] Sector Sizes: 512 bytes logical, 4096 bytes physical Device is: Not in smartctl database [for details use: -P showall] ATA Version is: 8 ATA Standard is: Exact ATA specification draft version not indicated Local Time is: Sat Sep 29 15:53:44 2012 UTC SMART support is: Available - device has SMART capability. SMART support is: Enabled  === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED  General SMART Values: Offline data collection status: (0x84) Offline data collection activity was suspended by an interrupting command from host. Auto Offline Data Collection: Enabled. Self-test execution status: ( 0) The previous self-test routine completed without error or no self-test has ever been run. Total time to complete Offline data collection: (50700) seconds. Offline data collection capabilities: (0x7b) SMART execute Offline immediate. Auto Offline data collection on/off support. Suspend Offline collection upon new command. Offline surface scan supported. Self-test supported. 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: ( 255) minutes. Conveyance self-test routine recommended polling time: ( 5) minutes. SCT capabilities: (0x3035) SCT Status 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 FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0 3 Spin_Up_Time 0x0027 199 140 021 Pre-fail Always - 7050 4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 483 5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0 7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0 9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 572 10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0 11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0 12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 142 192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 31 193 Load_Cycle_Count 0x0032 198 198 000 Old_age Always - 8522 194 Temperature_Celsius 0x0022 114 095 000 Old_age Always - 38 196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0 197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 1 198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0 200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 0  SMART Error Log Version: 1 No Errors Logged  SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Short offline Completed: read failure 90% 569 42084912 # 2 Short offline Completed without error 00% 388 -  SMART Selective self-test log data structure revision number 1 SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS 1 0 0 Not_testing 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. 

Meine gdisk-Session hier unter: Aber am nützlichsten bin ich am Ende: Warnung! Die Hauptpartitionstabelle überlappt die erste Partition um 34 Blöcke! Sie müssen diese Partition löschen oder ihre Größe in einem anderen Dienstprogramm ändern.

user@debian:~$ sudo gdisk GPT fdisk (gdisk) version 0.8.5  Type device filename, or press <Enter> to exit: /dev/sdc Warning! Read error 5; strange behavior now likely! Warning! Read error 5; strange behavior now likely! Partition table scan: MBR: not present BSD: not present APM: not present GPT: not present  Creating new GPT entries.  Command (? for help): ? b back up GPT data to a file c change a partition's name d delete a partition i show detailed information on a partition l list known partition types n add a new partition o create a new empty GUID partition table (GPT) p print the partition table q quit without saving changes r recovery and transformation options (experts only) s sort partitions t change a partition's type code v verify disk w write table to disk and exit x extra functionality (experts only) ? print this menu  Command (? for help): n Partition number (1-128, default 1): 1 First sector (34-5860533134, default = 2048) or {+-}size: 2048 Last sector (2048-5860533134, default = 5860533134) or {+-}size: 5860533134 Current type is 'Linux filesystem' Hex code or GUID (L to show codes, Enter = 8300): l  0700 Microsoft basic data 0c01 Microsoft reserved 2700 Windows RE  4200 Windows LDM data 4201 Windows LDM metadata 7501 IBM GPFS  7f00 ChromeOS kernel 7f01 ChromeOS root 7f02 ChromeOS reserved  8200 Linux swap 8300 Linux filesystem 8301 Linux reserved  8e00 Linux LVM a500 FreeBSD disklabel a501 FreeBSD boot  a502 FreeBSD swap a503 FreeBSD UFS a504 FreeBSD ZFS  a505 FreeBSD Vinum/RAID a580 Midnight BSD data a581 Midnight BSD boot  a582 Midnight BSD swap a583 Midnight BSD UFS a584 Midnight BSD ZFS  a585 Midnight BSD Vinum a800 Apple UFS a901 NetBSD swap  a902 NetBSD FFS a903 NetBSD LFS a904 NetBSD concatenated  a905 NetBSD encrypted a906 NetBSD RAID ab00 Apple boot  af00 Apple HFS/HFS+ af01 Apple RAID af02 Apple RAID offline  af03 Apple label af04 AppleTV recovery af05 Apple Core Storage  be00 Solaris boot bf00 Solaris root bf01 Solaris /usr & Mac Z bf02 Solaris swap bf03 Solaris backup bf04 Solaris /var  bf05 Solaris /home bf06 Solaris alternate se bf07 Solaris Reserved 1  bf08 Solaris Reserved 2 bf09 Solaris Reserved 3 bf0a Solaris Reserved 4  bf0b Solaris Reserved 5 c001 HP-UX data c002 HP-UX service  ef00 EFI System ef01 MBR partition scheme ef02 BIOS boot partition  fd00 Linux RAID  Hex code or GUID (L to show codes, Enter = 8300): ef01 Changed type of partition to 'MBR partition scheme'  Command (? for help): ? b back up GPT data to a file c change a partition's name d delete a partition i show detailed information on a partition l list known partition types n add a new partition o create a new empty GUID partition table (GPT) p print the partition table q quit without saving changes r recovery and transformation options (experts only) s sort partitions t change a partition's type code v verify disk w write table to disk and exit x extra functionality (experts only) ? print this menu  Command (? for help): w  Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!!  Do you want to proceed? (Y/N): Y OK; writing new GUID partition table (GPT) to /dev/sdc. Unable to save backup partition table! Perhaps the 'e' option on the experts' menu will resolve this problem. Warning! An error was reported when writing the partition table! This error MIGHT be harmless, or the disk might be damaged! Checking it is advisable.  Command (? for help): o  This option deletes all partitions and creates a new protective MBR. Proceed? (Y/N): Y  Command (? for help): p Disk /dev/sdc: 5860533168 sectors, 2.7 TiB Logical sector size: 512 bytes Disk identifier (GUID): 3995C753-D73D-4386-8818-3A9AF06E3B2C Partition table holds up to 128 entries First usable sector is 34, last usable sector is 5860533134 Partitions will be aligned on 2048-sector boundaries Total free space is 5860533101 sectors (2.7 TiB)  Number Start (sector) End (sector) Size Code Name  Command (? for help): o This option deletes all partitions and creates a new protective MBR. Proceed? (Y/N): Y  Command (? for help): w  Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!!  Do you want to proceed? (Y/N): Y OK; writing new GUID partition table (GPT) to /dev/sdc. Unable to save backup partition table! Perhaps the 'e' option on the experts' menu will resolve this problem. Warning! An error was reported when writing the partition table! This error MIGHT be harmless, or the disk might be damaged! Checking it is advisable.  Command (? for help): p Disk /dev/sdc: 5860533168 sectors, 2.7 TiB Logical sector size: 512 bytes Disk identifier (GUID): F1AE4B7D-9CCE-4211-BE3D-88DFFCCD3696 Partition table holds up to 128 entries First usable sector is 34, last usable sector is 5860533134 Partitions will be aligned on 2048-sector boundaries Total free space is 5860533101 sectors (2.7 TiB)  Number Start (sector) End (sector) Size Code Name  Command (? for help): o This option deletes all partitions and creates a new protective MBR. Proceed? (Y/N): n  Command (? for help): ? b back up GPT data to a file c change a partition's name d delete a partition i show detailed information on a partition l list known partition types n add a new partition o create a new empty GUID partition table (GPT) p print the partition table q quit without saving changes r recovery and transformation options (experts only) s sort partitions t change a partition's type code v verify disk w write table to disk and exit x extra functionality (experts only) ? print this menu  Command (? for help): d No partitions  Command (? for help): i No partitions  Command (? for help): r  Recovery/transformation command (? for help): ? b use backup GPT header (rebuilding main) c load backup partition table from disk (rebuilding main) d use main GPT header (rebuilding backup) e load main partition table from disk (rebuilding backup) f load MBR and build fresh GPT from it g convert GPT into MBR and exit h make hybrid MBR i show detailed information on a partition l load partition data from a backup file m return to main menu o print protective MBR data p print the partition table q quit without saving changes t transform BSD disklabel partition v verify disk w write table to disk and exit x extra functionality (experts only) ? print this menu  Recovery/transformation command (? for help): f Warning! This will destroy the currently defined partitions! Proceed? (Y/N): Y Problem loading MBR! GPT is untouched; regenerating protective MBR!  Recovery/transformation command (? for help): ? b use backup GPT header (rebuilding main) c load backup partition table from disk (rebuilding main) d use main GPT header (rebuilding backup) e load main partition table from disk (rebuilding backup) f load MBR and build fresh GPT from it g convert GPT into MBR and exit h make hybrid MBR i show detailed information on a partition l load partition data from a backup file m return to main menu o print protective MBR data p print the partition table q quit without saving changes t transform BSD disklabel partition v verify disk w write table to disk and exit x extra functionality (experts only) ? print this menu  Recovery/transformation command (? for help): v  No problems found. 5860533101 free sectors (2.7 TiB) available in 1 segments, the largest of which is 5860533101 (2.7 TiB) in size.  Recovery/transformation command (? for help): b  Recovery/transformation command (? for help): c Warning! This will probably do weird things if you've converted an MBR to GPT form and haven't yet saved the GPT! Proceed? (Y/N): Y Warning! Read error 5! Misbehavior now likely! Caution! After loading partitions, the CRC doesn't check out!  Recovery/transformation command (? for help): w Warning! Main partition table overlaps the first partition by 34 blocks! You will need to delete this partition or resize it in another utility. Aborting write of new partition table. 

Egal was ich versuche zu tun, ich bekomme den Input / Output-Fehler, ich habe versucht, Ubuntu darauf zu installieren, und es scheint die Partitionstabelle zu erstellen, aber wenn ich den Install..Input / Output-Fehler starte.

Hat jemand eine Idee, wie ich das beheben kann? Ich freue mich, mehr Logfiles oder was auch immer zu posten, aber ich habe keine Erfahrung mit Linux, ich verwende es einfach für diese Art von Sachen. Die Platte ist sehr neu, nur ein paar Motten, also bezweifle ich, dass es schlechte Sektoren gibt.

Vielen Dank für alle Beiträge!

2

2 Antworten auf die Frage

2
Mikhail Kupchik

Am Anfang der Festplatte befinden sich fehlerhafte Sektoren, in denen sich die Partitionstabelle befinden sollte. Und es scheint, dass Ihr Versuch, sie neu zuzuordnen, nicht erfolgreich war.

Normalerweise ordne ich schlechte Sektoren mit MHDD neu zu . Es ist ein Freeware-Dienstprogramm, das unter DOS ausgeführt wird, sodass es den Cache des Betriebssystems umgehen und direkt mit dem Festplattencontroller arbeiten kann. Überprüfen Sie die SMART-Überwachungsdaten, um sicherzustellen, dass keine nicht zugeordneten fehlerhaften Sektoren vorhanden sind. Wenn es welche gibt, führen Sie MHDD erneut aus, bis es keine gibt.

Nachdem alle fehlerhaften Sektoren neu zugeordnet wurden, versuchen Sie, Ihre Festplatte in Linux neu zu partitionieren. Das erste Megabyte mit Nullen zu erstellen, kann hilfreich sein, wenn die alte Partitionstabelle Ihre fdisk verwirrt.

Eine andere mögliche Ursache für Ihre Probleme könnte ein fehlerhaftes Datenkabel oder eine zu schwache Stromversorgung sein. aber beseitigt zuerst schlechte Sektoren.

Es gibt auch Softbads: schlechte Sektoren, die als Folge eines unterbrochenen Schreibens (aufgrund eines Stromausfalls bei einem Unfall oder unzureichender Leistung der Stromversorgung) auftreten; Sie werden in der Regel von Festplattenhardware ohne Neuzuordnung fixiert, wenn der betreffende Sektor mehrmals neu geschrieben wird (wie bei MHDD).

Vielen Dank für diese Tipps! Ich werde sehen, was ich tun kann. Frage: "dd-ing erstes Megabyte mit Nullen" - wie machen Sie das? Außerdem gibt es viele schlechte Sektoren. Könnte es 10000+ sein? Wird die Kapazität auf der Festplatte nicht reduziert? user1217169 vor 11 Jahren 0
Ich habe nicht bekommen, dass MHDD von "Hirens Boot-CD" auf einem USB-Laufwerk funktioniert. Und ich habe kein CD-ROM-Laufwerk. Wissen Sie, wie ich MHDD ausführen kann? Werden badsectors -w dasselbe tun? :) Und wie lange dauert ein Scan wie dieser? Ein Tag oder mehr? user1217169 vor 11 Jahren 0
Sie können MHDD-ISO in USB-Stick mit FlashBoot konvertieren. Demo-Version reicht aus. http://www.prime-expert.com/flashboot/ Mikhail Kupchik vor 11 Jahren 0
"dd-ing erstes Megabyte mit Nullen" führt den Befehl wie "dd if = / dev / zero" = / dev / sdc bs = 512 count = 2048 "unter Linux aus. Es füllt das erste Megabyte Ihrer Festplatte mit Nullen. MBR-Partitionstabelle und GPT-Metadaten werden also gelöscht. BITTE BEACHTEN SIE BEI ​​der Angabe des Gerätenamens: Wenn Sie einen Fehler machen, verlieren Sie alles auf Ihrer anderen Festplatte! Mikhail Kupchik vor 11 Jahren 0
Die MHDD-Laufzeit hängt von der Größe und Geschwindigkeit Ihrer Festplatte ab. Ich erwarte etwa 3-6 Stunden für die moderne 3-TB-Festplatte. Mikhail Kupchik vor 11 Jahren 0
Sooo, ich habe MHDD laufen lassen, aber kein Glück, bei der Auswahl der Umschalttaste UMSCHALT + F3 habe ich 3 Auswahlmöglichkeiten, ich denke, eine für jeden SATA-Controller, was für mein Motherboard richtig ist. Egal für welchen Typ ich mich entschieden habe, die Status-Items oben zeigen rot auf ERROR und grün auf BUSY. Wenn ich versuche, f.eks SCAN auszuführen, bekomme ich "Laufwerk ist nicht bereit". Keine Befehle von dieser Site: http://www.real-world-systems.com/docs/MHDD_en_manual.html#getT13. gearbeitet .... Ich habe es mit 2 verschiedenen SATA-Ports und Kabeln ohne Glück versucht. Irgendwelche Ideen, was das Problem sein könnte? user1217169 vor 11 Jahren 0
Versuchen Sie, AHCI im BIOS vorübergehend zu deaktivieren (setzen Sie den SATA-Controller in den IDE-Emulationsmodus). Nachdem MHDD nicht mehr benötigt wird und vor der Installation des Betriebssystems, muss AHCI erneut aktiviert werden. Mikhail Kupchik vor 11 Jahren 0
Ich habe ACHI und XCHI im Bios deaktiviert, immer noch kein Glück: (Weitere Ideen?: S user1217169 vor 11 Jahren 0
Versuchen Sie, Badblocks auf einem anderen Computer zu beheben (älterer Computer). Dies ist eine Art Inkompatibilität zwischen MHDD und Southbridge. Mikhail Kupchik vor 11 Jahren 0
Ja, ich denke, Badblocks ist das, was ich als Nächstes mit der Option -w zum Schreiben tun würde ... aber was meinen Sie mit "auf einem anderen Computer". Der Computer, den ich verwende, ist ein Gigabyte GA-Z68MX-UD2H-B3 mit i5 2500k. Wenn ich MHDD verwende, stecke ich nur mein 3TB-Laufwerk ein, das die Probleme + den USB-Stick hat. Ich habe keine anderen Motherboards, um dies zu testen mit: / user1217169 vor 11 Jahren 0
1
user88311

Mikhail hat die Antwort auf Ihr Problem mehr oder weniger in der Tasche, aber es fehlt ein entscheidender Punkt.

Wenn möglich, wenn Sie die Stromversorgung unterbrechen, könnte dies den MBR durcheinander bringen, der sich wie die Partitionstabelle am Anfang des Datenträgers befindet. Wenn dies jedoch beschädigt ist, müssen Sie alle 512 Byte des MBR manuell neu schreiben oder versuchen, dies zu tun Verwenden Sie die MBR-Reparatur, um das Problem zu beheben. Die letzten 72 Byte des MBR befinden sich in denen sich die Partitionstabelle befindet.

Ich spreche aus Erfahrung, wie ich zugeben werde, ich habe dasselbe getan wie Sie und es hat eine verdammt lange Zeit gebraucht, um herauszufinden, was ich genau gemacht habe und wie ich es beheben kann. Die meisten Probleme dieser Art sind im Allgemeinen einfach nur so Hardwarefehler, weil die meisten die Arbeit nicht nur zum Speichern einer Festplatte übernehmen möchten.

Vielen Dank für Ihre Klarstellung! Wie schreibt man MBR manuell um? :) user1217169 vor 11 Jahren 0
Ich fürchte, ich kann mir nicht helfen, ich musste meine Fahrt zu einem Freund bringen, der ein Code-Affe ist, und ihn reparieren lassen. Ich bin sicher, wenn Sie hier rumhängen oder Ubuntu fragen, kann jemand helfen Sie. user88311 vor 11 Jahren 0
Wenn Sie eine gpt-Partitionstabelle erstellen, gibt es jetzt mbr, weil die mbr für eine dos-Partitionstabelle spezifisch ist. FSMaxB vor 11 Jahren 0