Anzeige:
Ergebnis 1 bis 7 von 7

Thema: defektes Dateisystem ext4

Hybrid-Darstellung

Vorheriger Beitrag Vorheriger Beitrag   Nächster Beitrag Nächster Beitrag
  1. #1
    Registrierter Benutzer
    Registriert seit
    Nov 2007
    Beiträge
    27

    defektes Dateisystem ext4

    Folgendes Problem:
    Die Festplatte sdb hat sich im laufenden Betrieb plötzlicher verabschiedet.
    Der Rechner stürzte komplett ab und bootete neu ohne das er sdb einhängen konnte.
    Die Automatische Reparatur habe ich nach ein paar Minuten abgebrochen, und dann das hier ausgeführt.


    Code:
    reich-grosser ~ # fdisk -l
    
    Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
    255 Köpfe, 63 Sektoren/Spur, 121601 Zylinder, zusammen 1953525168 Sektoren
    Einheiten = Sektoren von 1 × 512 = 512 Bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Festplattenidentifikation: 0x0002d9ae
    
       Gerät  boot.     Anfang        Ende     Blöcke   Id  System
    /dev/sda1            2048    39063551    19530752   83  Linux
    /dev/sda2   *    39065598  1953523711   957229057    5  Erweiterte
    /dev/sda5        39065600    47853567     4393984   82  Linux Swap / Solaris
    /dev/sda6        47855616  1953523711   952834048   83  Linux
    
    Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
    255 Köpfe, 63 Sektoren/Spur, 243201 Zylinder, zusammen 3907029168 Sektoren
    Einheiten = Sektoren von 1 × 512 = 512 Bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Festplattenidentifikation: 0x000edc71
    
       Gerät  boot.     Anfang        Ende     Blöcke   Id  System
    /dev/sdb1   *        2016  3211586279  1605792132    f  W95 Erw. (LBA)
    /dev/sdb5            2048  3211586279  1605792116   83  Linux
    
    Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
    255 Köpfe, 63 Sektoren/Spur, 243201 Zylinder, zusammen 3907029168 Sektoren
    Einheiten = Sektoren von 1 × 512 = 512 Bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Festplattenidentifikation: 0x00000000
    
       Gerät  boot.     Anfang        Ende     Blöcke   Id  System
    /dev/sdc1   *          63  3907024064  1953512001   83  Linux

    Code:
    reich-grosser ~ # fsck -t ext4  /dev/sdb1
    fsck von util-linux 2.20.1
    e2fsck 1.42 (29-Nov-2011)
    fsck.ext4: Ein Block konnte nicht in einem Zug gelesen werden beim Versuch, /dev/sdb1 zu öffnen
    Könnte es eine Partition der Länge Null sein
    
    reich-grosser ~ # fsck -t ext4  /dev/sdb5
    fsck von util-linux 2.20.1
    e2fsck 1.42 (29-Nov-2011)
    Platte_3 enthält ein fehlerhaftes Dateisystem, Prüfung erzwungen.
    Durchgang 1: Prüfe Inodes, Blocks, und Größen
    Lesefehler - Block 94113792 (Ein Block konnte nicht in einem Zug gelesen werden). Ignoriere Fehler<j>? ja
    
    Rückschreiben erzwingen<j>? ja
    
    …
    
    fsck -t ext4 -y /dev/sdb5
    
    …
    Ergebnist ist das die Platte sdb immer noch als defekt erkannt wird.
    Im Verzeichnis /dev gibt es nur noch einen Eintrag mit sdb. sdb1 und sdb5 fehlt.

    Ich habe versucht einfach mal mit

    Code:
    reich@reich-grosser ~ $ sudo mount /dev/sdb5 /media/sdb -t ext4 -ro users
    mount: Gerätedatei /dev/sdb5 existiert nicht
    Gibts noch Hoffnung mit anderen Befehlen?

    Gruß dm

  2. #2
    .
    Registriert seit
    Oct 2001
    Ort
    Oberbayern
    Beiträge
    2.281
    erstmal rausfinden wie stark die platte sich verabschiedet hat?
    Code:
    smartctl -a /dev/sdb
    gibt hier vielleicht auskunft.
    ansonsten ein image der platte anfertigen und auf diesem arbeiten. hierzu sei noch das stichwort testdisk erwähnt.
    Core i3 | 2x3tb btrfs-raid1 | 2x2tb sw-raid1+lvm2

  3. #3
    Registrierter Benutzer
    Registriert seit
    Nov 2007
    Beiträge
    27
    Vielleicht liegt es daran das es schon etwas spät am Abend ist. Ich versteh nicht ganz


    Code:
    reich@reich-grosser ~ $ sudo smartctl -a /dev/sdb
    smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-23-generic] (local build)
    Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
    
    /dev/sdb: Unknown USB bridge [0x058f:0x6362 (0x100)]
    Smartctl: please specify device type with the -d option.
    
    Use smartctl -h to get a usage summary

    Code:
    reich@reich-grosser ~ $ sudo smartctl -d scsi -a /dev/sdb
    smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-23-generic] (local build)
    Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
    
    Vendor:               Generic 
    Product:              USB CF Reader   
    Revision:             1.01
    Serial number:        
    Device type:          disk
    Local Time is:        Thu Aug 30 00:05:28 2012 CEST
    NO MEDIUM present on device
    A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
    Ein Image der HD ist natürlich immer eine gute Idee. Und dann?
    testdisk wird mir nach meiner geringen Erfahrung ein hübsches Dateien Chaos „retten“.
    Danke dir quinte17
    Geändert von dietrichmartin (30.08.12 um 00:37 Uhr) Grund: ups! ich hab vergessen zu sagen. Ich habe /dev/sdb aus der /etc/fstab ausgetragen

  4. #4
    Registrierter Benutzer
    Registriert seit
    Nov 2007
    Beiträge
    27
    Nach wiederherstellung der ursprünglichen fstab kommt:

    Code:
    reich@reich-grosser ~ $ sudo smartctl -a /dev/sdb
    [sudo] password for reich: 
    smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-23-generic] (local build)
    Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
    
    === START OF INFORMATION SECTION ===
    Model Family:     SAMSUNG SpinPoint F4 EG (AFT)
    Device Model:     SAMSUNG HD204UI
    Serial Number:    S2H7J9BB505432
    LU WWN Device Id: 5 0024e9 205256adb
    Firmware Version: 1AQ10001
    User Capacity:    2.000.398.934.016 bytes [2,00 TB]
    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:    Thu Aug 30 00:52:34 2012 CEST
    
    ==> WARNING: Using smartmontools or hdparm with this
    drive may result in data loss due to a firmware bug.
    ****** THIS DRIVE MAY OR MAY NOT BE AFFECTED! ******
    Buggy and fixed firmware report same version number!
    See the following web pages for details:
    http://www.samsung.com/global/business/hdd/faqView.do?b2b_bbs_msg_id=386
    http://sourceforge.net/apps/trac/smartmontools/wiki/SamsungF4EGBadBlocks
    
    SMART support is: Available - device has SMART capability.
    SMART support is: Disabled
    
    SMART Disabled. Use option -s with argument 'on' to enable it.

  5. #5
    Linux-Suchti Avatar von roadracer
    Registriert seit
    Feb 2009
    Ort
    Wolfenbüttel
    Beiträge
    759
    dd_rescue, der Vollständigkeit halber.
    OpenSUSE 12.3 x86 XFCE 4.10

    Alle Rechtschreibfehler unterliegen der GFDL und dürfen so oder in veränderter Form genutzt und weiter gegeben werden.

  6. #6
    .
    Registriert seit
    Oct 2001
    Ort
    Oberbayern
    Beiträge
    2.281
    der smart-support wurde wohl nie aktiviert. mit
    Code:
    smartctl -s on /dev/sdb
    aktivierst du den.
    wichtig ist bei dieser platte noch, dass falls eine fehlerhafte firmware vorhanden ist, niemals bei vielen lese und schreibprozessen auf der platte noch ein smart-kommando abgesetzt wird, da es sonst zu datenverlust kommen kann.

    wenn dann der smartsupport an ist, dann nochmal mit
    Code:
    smartctl -a /dev/sdb
    nachschauen.
    da kommen dann so einige zeilen, bei denen nur ein paar relevant sind:
    Code:
    5 Reallocated_Sector_Ct   0x0033   253   253   010    Pre-fail  Always       -       0
    196 Reallocated_Event_Count 0x0032   253   253   000    Old_age   Always       -       0
    197 Current_Pending_Sector  0x0012   253   253   000    Old_age   Always       -       0
    wenn bei diesen zeilen ganz rechts keine 0 mehr steht, dann gibt die platte langsam aber sicher ihren geist auf und sollte dringend ersetzt werden.

    ich bin gerade etwas verwirrt. mit wiederherstellen der fstab meinst du vermutlich die partitionstabelle auf der festplatte. wenn das funktioniert hat, dann sollten die grenzen wieder die selben sein wie in deinem ersten post oder?
    Code:
    fdisk -l /dev/sdb #kleines L
    zum überprüfen.
    Core i3 | 2x3tb btrfs-raid1 | 2x2tb sw-raid1+lvm2

  7. #7
    Registrierter Benutzer
    Registriert seit
    Nov 2007
    Beiträge
    27
    Gestern war es ganz offenbar schon etwas zu spät für mich. Entschuldige.
    Ich meint das ich die Platte /dev/sdb aus der /etc/fstab auskommentiert habe.
    Smartctl lässt mich ein wenig hilflos zurück. Hier die komplette Info.
    Code:
    reich@reich-grosser ~ $ sudo smartctl -a /dev/sdb
    smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-23-generic] (local build)
    Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
    
    === START OF INFORMATION SECTION ===
    Model Family:     SAMSUNG SpinPoint F4 EG (AFT)
    Device Model:     SAMSUNG HD204UI
    Serial Number:    S2H7J9BB505432
    LU WWN Device Id: 5 0024e9 205256adb
    Firmware Version: 1AQ10001
    User Capacity:    2.000.398.934.016 bytes [2,00 TB]
    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:    Thu Aug 30 11:22:17 2012 CEST
    
    ==> WARNING: Using smartmontools or hdparm with this
    drive may result in data loss due to a firmware bug.
    ****** THIS DRIVE MAY OR MAY NOT BE AFFECTED! ******
    Buggy and fixed firmware report same version number!
    See the following web pages for details:
    http://www.samsung.com/global/business/hdd/faqView.do?b2b_bbs_msg_id=386
    http://sourceforge.net/apps/trac/smartmontools/wiki/SamsungF4EGBadBlocks
                                                                                                                                                                                                                        
    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                                                                                                                                                            
    See vendor-specific Attribute list for marginal Attributes.                                                                                                                                                         
                                                                                                                                                                                                                        
    General SMART Values:                                                                                                                                                                                               
    Offline data collection status:  (0x00) Offline data collection activity                                                                                                                                            
                                            was never started.                                                                                                                                                          
                                            Auto Offline Data Collection: Disabled.                                                                                                                                     
    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:                (20340) 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:        ( 255) 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          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
      1 Raw_Read_Error_Rate     0x002f   100   100   051    Pre-fail  Always       -       7061
      2 Throughput_Performance  0x0026   252   252   000    Old_age   Always       -       0
      3 Spin_Up_Time            0x0023   030   013   025    Pre-fail  Always   In_the_past 21260
      4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       742
      5 Reallocated_Sector_Ct   0x0033   252   252   010    Pre-fail  Always       -       0
      7 Seek_Error_Rate         0x002e   252   252   051    Old_age   Always       -       0
      8 Seek_Time_Performance   0x0024   252   252   015    Old_age   Offline      -       0
      9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       3838
     10 Spin_Retry_Count        0x0032   252   252   051    Old_age   Always       -       0
     11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       1
     12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       713
    181 Program_Fail_Cnt_Total  0x0022   252   252   000    Old_age   Always       -       0
    191 G-Sense_Error_Rate      0x0022   100   100   000    Old_age   Always       -       224
    192 Power-Off_Retract_Count 0x0022   252   252   000    Old_age   Always       -       0
    194 Temperature_Celsius     0x0002   064   061   000    Old_age   Always       -       25 (Min/Max 11/39)
    195 Hardware_ECC_Recovered  0x003a   100   100   000    Old_age   Always       -       0
    196 Reallocated_Event_Count 0x0032   252   252   000    Old_age   Always       -       0
    197 Current_Pending_Sector  0x0032   098   095   000    Old_age   Always       -       248
    198 Offline_Uncorrectable   0x0030   252   252   000    Old_age   Offline      -       0
    199 UDMA_CRC_Error_Count    0x0036   100   100   000    Old_age   Always       -       40
    200 Multi_Zone_Error_Rate   0x002a   100   100   000    Old_age   Always       -       0
    223 Load_Retry_Count        0x0032   100   100   000    Old_age   Always       -       1
    225 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       747
    
    SMART Error Log Version: 1
    ATA Error Count: 28 (device log contains only the most recent five errors)
            CR = Command Register [HEX]
            FR = Features Register [HEX]
            SC = Sector Count Register [HEX]
            SN = Sector Number Register [HEX]
            CL = Cylinder Low Register [HEX]
            CH = Cylinder High Register [HEX]
            DH = Device/Head Register [HEX]
            DC = Device Command Register [HEX]
            ER = Error register [HEX]
            ST = Status register [HEX]
    Powered_Up_Time is measured from power on, and printed as
    DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
    SS=sec, and sss=millisec. It "wraps" after 49.710 days.
    
    Error 28 occurred at disk power-on lifetime: 3833 hours (159 days + 17 hours)
      When the command that caused the error occurred, the device was active or idle.
    
      After command completion occurred, registers were:
      ER ST SC SN CL CH DH
      -- -- -- -- -- -- --
      84 51 00 00 00 00 a0
    
      Commands leading to the command that caused the error were:
      CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
      -- -- -- -- -- -- -- --  ----------------  --------------------
      ec 00 00 00 00 00 a0 08      00:00:00.113  IDENTIFY DEVICE
      00 00 01 01 00 00 00 08      00:00:00.113  NOP [Abort queued commands]
      00 00 01 01 00 00 00 08      00:00:00.113  NOP [Abort queued commands]
      00 00 01 01 00 00 00 00      00:00:00.113  NOP [Abort queued commands]
      00 00 01 01 00 00 00 00      00:00:00.113  NOP [Abort queued commands]
    
    Error 27 occurred at disk power-on lifetime: 3833 hours (159 days + 17 hours)
      When the command that caused the error occurred, the device was active or idle.
    
      After command completion occurred, registers were:
      ER ST SC SN CL CH DH
      -- -- -- -- -- -- --
      84 51 00 00 00 00 a0
    
      Commands leading to the command that caused the error were:
      CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
      -- -- -- -- -- -- -- --  ----------------  --------------------
      ec 00 00 00 00 00 a0 08      00:00:00.108  IDENTIFY DEVICE
      00 00 01 01 00 00 00 08      00:00:00.108  NOP [Abort queued commands]
      00 00 01 01 00 00 00 08      00:00:00.107  NOP [Abort queued commands]
      00 00 01 01 00 00 00 00      00:00:00.107  NOP [Abort queued commands]
      00 00 01 01 00 00 00 00      00:00:00.107  NOP [Abort queued commands]
    
    Error 26 occurred at disk power-on lifetime: 3833 hours (159 days + 17 hours)
      When the command that caused the error occurred, the device was active or idle.
    
      After command completion occurred, registers were:
      ER ST SC SN CL CH DH
      -- -- -- -- -- -- --
      84 51 00 00 00 00 a0
    
      Commands leading to the command that caused the error were:
      CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
      -- -- -- -- -- -- -- --  ----------------  --------------------
      ec 00 00 00 00 00 a0 08      00:00:00.102  IDENTIFY DEVICE
      00 00 00 00 00 00 00 00      00:00:00.102  NOP [Abort queued commands]
      00 00 00 00 00 00 00 00      00:00:00.102  NOP [Abort queued commands]
      00 00 00 00 00 00 00 00      00:00:00.101  NOP [Abort queued commands]
      00 00 00 00 00 00 00 00      00:00:00.101  NOP [Abort queued commands]
    
    Error 25 occurred at disk power-on lifetime: 3833 hours (159 days + 17 hours)
      When the command that caused the error occurred, the device was active or idle.
    
      After command completion occurred, registers were:
      ER ST SC SN CL CH DH
      -- -- -- -- -- -- --
      84 51 00 00 00 00 a0
    
      Commands leading to the command that caused the error were:
      CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
      -- -- -- -- -- -- -- --  ----------------  --------------------
      ec 00 00 00 00 00 a0 08      00:00:00.075  IDENTIFY DEVICE
      ec 00 00 00 00 00 a0 08      00:00:00.075  IDENTIFY DEVICE
      00 00 00 00 00 00 00 00      00:00:00.075  NOP [Abort queued commands]
      00 00 00 00 00 00 00 00      00:00:00.075  NOP [Abort queued commands]
      00 00 00 00 00 00 00 00      00:00:00.074  NOP [Abort queued commands]
    
    Error 24 occurred at disk power-on lifetime: 3833 hours (159 days + 17 hours)
      When the command that caused the error occurred, the device was active or idle.
    
      After command completion occurred, registers were:
      ER ST SC SN CL CH DH
      -- -- -- -- -- -- --
      84 51 00 00 00 00 a0
    
      Commands leading to the command that caused the error were:
      CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
      -- -- -- -- -- -- -- --  ----------------  --------------------
      ec 00 00 00 00 00 a0 08      00:00:00.048  IDENTIFY DEVICE
      00 00 01 01 00 00 00 08      00:00:00.048  NOP [Abort queued commands]
      00 00 01 01 00 00 00 08      00:00:00.048  NOP [Abort queued commands]
      00 00 01 01 00 00 00 00      00:00:00.047  NOP [Abort queued commands]
      00 00 01 01 00 00 00 00      00:00:00.047  NOP [Abort queued commands]
    
    SMART Self-test log structure revision number 1
    No self-tests have been logged.  [To run self-tests, use: smartctl -t]
    
    
    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  Completed [00% 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.
    Abbild auf neue Platte machen? Ich bin hald nicht so flüssig im Moment.
    Gruß dm

Ähnliche Themen

  1. Datenverlust mit truecrypt und ext4 nach "Stromausfall"
    Von linuxroot im Forum System installieren und konfigurieren
    Antworten: 1
    Letzter Beitrag: 27.07.10, 20:23
  2. ext4 Dateisystem mounten ?
    Von magnum im Forum System installieren und konfigurieren
    Antworten: 2
    Letzter Beitrag: 21.12.09, 15:35
  3. Dateisystem Ext4 sinnvoll ?
    Von MaZi im Forum System installieren und konfigurieren
    Antworten: 14
    Letzter Beitrag: 06.07.09, 20:40
  4. welches dateisystem für verschlüsselte ssd auf laptop?
    Von fuku im Forum System installieren und konfigurieren
    Antworten: 6
    Letzter Beitrag: 31.07.08, 12:46
  5. Dateisystem
    Von suselinuxuser im Forum Linux Allgemein
    Antworten: 11
    Letzter Beitrag: 31.03.06, 21:41

Stichworte

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •