Ubuntu startet nicht mehr initramfs, Reperatur Versuch

cyrax

Member
Registriert
24 Sep. 2010
Beiträge
249
Hi,

zur Ausgangslage: System X200 mit Ubuntu 16.04 Mate LTS, bei Installation die Standart Verschlüsselung angewandt. Der Rechner fuhr ganz normal runter, ohne Fehlermeldungen. Beim erneuten starten einen Tag später kommt die Aufforderung das PW fuer die Platte einzugeben, danach lande ich in einer Konsole, kein System wird gestartet. Wenn ich mit exit beenden will bricht der Vorgang bei root ab (vermutlich beim mounten ist aber so schnell das ich nicht viel sehen kann, keine Fehlermeldung jedenfalls).

Ich habe jetzt über ein Life Syztem Ubuntu Mate 16.10 den Rechner gestartet und wollte root einhängen, PW wird akzeptiert, dann kommt der Fehler (mounten nicht moeglich). Die Platte erscheint aber unter Orte und wird dann, nachdem ich Sie angeklickt habe doch eingebunden. Die wichtigsten Daten konnten so kopiert werden. Jetzt wuerde ich gerne versuchen den Fehler zu finden und zu beheben und wollte mit fsck das Überprüfen. Habe mich an dieser Anleitung orientiert http://www.inetcom.ch/luks-reparatur-verschluesselter-partitionen.

Hier nun die Ausgabe der Befehle im Terminal inkl. Aufteilung der Platte, leider kann fsck nicht starten und die Platt ist nicht eingehängt. Jetzt weis ich nicht mehr weiter, an sich scheint die Platte ja in Ordnung zu sein.

Kann da jemand helfen?

Code:
ubuntu-mate@ubuntu-mate:~$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0    7:0    0   1.6G  1 loop /rofs
sda      8:0    0 232.9G  0 disk 
├─sda1   8:1    0   487M  0 part 
├─sda2   8:2    0     1K  0 part 
└─sda5   8:5    0 232.4G  0 part 
sdb      8:16   1   3.7G  0 disk /cdrom
├─sdb1   8:17   1   1.7G  0 part 
└─sdb2   8:18   1   2.3M  0 part 

ubuntu-mate@ubuntu-mate:~$ sudo cryptsetup luksOpen /dev/sda5 lukstemp
Enter passphrase for /dev/sda5: 
ubuntu-mate@ubuntu-mate:~$ lsblk
NAME                          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
loop0                           7:0    0   1.6G  1 loop  /rofs
sda                             8:0    0 232.9G  0 disk  
├─sda1                          8:1    0   487M  0 part  
├─sda2                          8:2    0     1K  0 part  
└─sda5                          8:5    0 232.4G  0 part  
  └─lukstemp                  253:0    0 232.4G  0 crypt 
    ├─ubuntu--mate--vg-root   253:1    0 228.5G  0 lvm   
    └─ubuntu--mate--vg-swap_1 253:2    0   3.9G  0 lvm   
sdb                             8:16   1   3.7G  0 disk  /cdrom
├─sdb1                          8:17   1   1.7G  0 part  
└─sdb2                          8:18   1   2.3M  0 part  
ubuntu-mate@ubuntu-mate:~$ sudo fsck.ext4 /dev/mapper/lukstemp
e2fsck 1.43.4 (31-Jan-2017)
/dev/mapper/lukstemp is in use.
e2fsck: Cannot continue, aborting.

Nachtrag: die boot Partition lasst sich auch einbinden und scheint in Ordnung zu sein.

- - - Beitrag zusammengeführt - - -

Update:

Der Fehler war die falsche Bezeichnung, da sowohl root als auch swap im LMV liegen.

Also mit
Code:
ubuntu-mate@ubuntu-mate:~$ sudo lvdisplay
  --- Logical volume ---
  LV Path                /dev/ubuntu-mate-vg/root
  LV Name                root
  VG Name                ubuntu-mate-vg
  LV UUID                hrWtlf-KPXH-aUOd-yumg-Wjrl-wids-UleEeT
  LV Write Access        read/write
  LV Creation host, time ubuntu-mate, 2017-05-25 11:40:47 +0000
  LV Status              available
  # open                 0
  LV Size                228.47 GiB
  Current LE             58488
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
   
  --- Logical volume ---
  LV Path                /dev/ubuntu-mate-vg/swap_1
  LV Name                swap_1
  VG Name                ubuntu-mate-vg
  LV UUID                Y7da4A-ubyK-ucLk-zSe5-f3q0-wFOm-wmLMEk
  LV Write Access        read/write
  LV Creation host, time ubuntu-mate, 2017-05-25 11:40:47 +0000
  LV Status              available
  # open                 0
  LV Size                3.89 GiB
  Current LE             997
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2

Den richtigen Pfad für root gesucht und dann lief es, gab wohl einiges zu tun ich werde jetzt mal rebooten und schauen ob es wieder geht :

Code:
ubuntu-mate@ubuntu-mate:~$ sudo fsck.ext4 /dev/ubuntu-mate-vg/root
e2fsck 1.43.4 (31-Jan-2017)
/dev/ubuntu-mate-vg/root contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Inodes that were part of a corrupted orphan linked list found.  Fix<y>? yes
Inode 4325440 was part of the orphaned inode list.  FIXED.
Inode 4325460 was part of the orphaned inode list.  FIXED.
Inode 4325466 was part of the orphaned inode list.  FIXED.
Inode 4325975 was part of the orphaned inode list.  FIXED.
Inode 4326145 extent tree (at level 2) could be narrower.  Fix<y>? yes
Inode 4326166 was part of the orphaned inode list.  FIXED.
Deleted inode 4351433 has zero dtime.  Fix<y>? yes
Inode 4352444 was part of the orphaned inode list.  FIXED.
Inode 4352445 was part of the orphaned inode list.  FIXED.
Inode 4352999 was part of the orphaned inode list.  FIXED.
Inode 4353056 was part of the orphaned inode list.  FIXED.
Inode 4353069 was part of the orphaned inode list.  FIXED.
Inode 4353187 was part of the orphaned inode list.  FIXED.
Pass 1E: Optimizing extent trees
Pass 2: Checking directory structure
Directory inode 9571715, block #0, offset 72: directory corrupted
Salvage<y>? yes
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Unattached inode 9571718
Connect to /lost+found<y>? yes
Inode 9571718 ref count is 2, should be 1.  Fix<y>? yes
Unattached inode 9571719
Connect to /lost+found<y>? yes
Inode 9571719 ref count is 2, should be 1.  Fix<y>? yes
Unattached inode 9571720
Connect to /lost+found<y>? yes
Inode 9571720 ref count is 2, should be 1.  Fix ('a' enables 'yes' to all) <y>? yes to all
Unattached inode 9571721
Connect to /lost+found? yes

Inode 9571721 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571722
Connect to /lost+found? yes

Inode 9571722 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571723
Connect to /lost+found? yes

Inode 9571723 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571724
Connect to /lost+found? yes

Inode 9571724 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571725
Connect to /lost+found? yes

Inode 9571725 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571726
Connect to /lost+found? yes

Inode 9571726 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571727
Connect to /lost+found? yes

Inode 9571727 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571728
Connect to /lost+found? yes

Inode 9571728 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571729
Connect to /lost+found? yes

Inode 9571729 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571730
Connect to /lost+found? yes

Inode 9571730 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571731
Connect to /lost+found? yes

Inode 9571731 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571732
Connect to /lost+found? yes

Inode 9571732 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571733
Connect to /lost+found? yes

Inode 9571733 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571734
Connect to /lost+found? yes

Inode 9571734 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571735
Connect to /lost+found? yes

Inode 9571735 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571736
Connect to /lost+found? yes

Inode 9571736 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571737
Connect to /lost+found? yes

Inode 9571737 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571738
Connect to /lost+found? yes

Inode 9571738 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571739
Connect to /lost+found? yes

Inode 9571739 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571740
Connect to /lost+found? yes

Inode 9571740 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571741
Connect to /lost+found? yes

Inode 9571741 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571742
Connect to /lost+found? yes

Inode 9571742 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571743
Connect to /lost+found? yes

Inode 9571743 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571744
Connect to /lost+found? yes

Inode 9571744 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571745
Connect to /lost+found? yes

Inode 9571745 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571746
Connect to /lost+found? yes

Inode 9571746 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571747
Connect to /lost+found? yes

Inode 9571747 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571748
Connect to /lost+found? yes

Inode 9571748 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571749
Connect to /lost+found? yes

Inode 9571749 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571750
Connect to /lost+found? yes

Inode 9571750 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571751
Connect to /lost+found? yes

Inode 9571751 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571752
Connect to /lost+found? yes

Inode 9571752 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571753
Connect to /lost+found? yes

Inode 9571753 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571754
Connect to /lost+found? yes

Inode 9571754 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571755
Connect to /lost+found? yes

Inode 9571755 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571756
Connect to /lost+found? yes

Inode 9571756 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571758
Connect to /lost+found? yes

Inode 9571758 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571759
Connect to /lost+found? yes

Inode 9571759 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571760
Connect to /lost+found? yes

Inode 9571760 ref count is 2, should be 1.  Fix? yes

Unattached inode 9571763
Connect to /lost+found? yes

Inode 9571763 ref count is 2, should be 1.  Fix? yes

Unattached inode 9575051
Connect to /lost+found? yes

Inode 9575051 ref count is 2, should be 1.  Fix? yes

Unattached inode 9575433
Connect to /lost+found? yes

Inode 9575433 ref count is 2, should be 1.  Fix? yes

Unattached inode 9576310
Connect to /lost+found? yes

Inode 9576310 ref count is 2, should be 1.  Fix? yes

Unattached inode 9582002
Connect to /lost+found? yes

Inode 9582002 ref count is 2, should be 1.  Fix? yes

Pass 5: Checking group summary information
Block bitmap differences:  -(875526--875530) -(875533--875537) -(875543--875552) -(29435201--29435205) -(29435326--29435333) -(29446252--29446256) -(30115295--30115299) -(30134312--30134319) -(37572224--37572277) -(49189120--49189195)
Fix? yes

Free blocks count wrong for group #26 (5630, counted=5650).
Fix? yes

Free blocks count wrong for group #898 (7249, counted=7267).
Fix? yes

Free blocks count wrong for group #919 (6757, counted=6770).
Fix? yes

Free blocks count wrong for group #1146 (6188, counted=6242).
Fix? yes

Free blocks count wrong for group #1501 (15859, counted=15935).
Fix? yes

Free blocks count wrong (12565236, counted=12565417).
Fix? yes

Inode bitmap differences:  -4325440 -4325460 -4325466 -4325975 -4326166 -4351433 -(4352444--4352445) -4352999 -4353056 -4353069 -4353187
Fix? yes

Free inodes count wrong for group #528 (0, counted=5).
Fix? yes

Free inodes count wrong for group #531 (3275, counted=3282).
Fix? yes

Free inodes count wrong (13946138, counted=13946150).
Fix? yes


/dev/ubuntu-mate-vg/root: ***** FILE SYSTEM WAS MODIFIED *****
/dev/ubuntu-mate-vg/root: 1028826/14974976 files (0.1% non-contiguous), 47326295/59891712 blocks

- - - Beitrag zusammengeführt - - -

Udpate 2: Alles läuft wieder, das System hatte ohne Murren gebootet. Könnte vielleicht noch jemand etwas zu den Fehlern sagen? An der SSD, die noch nicht wirklich alt ist liegt es aber nicht? In der Laufwerksverwaltung wird jedenfalls alles inkl. Smart Werte als gut angezeigt.

Wie kommt so etwas denn zustande, ich hatte so etwas noch nie. Als ich den FF Browser geöffnet habe, wollte er die letzte Sitzung widerherstellen, scheint also doch nicht ordentlich runtergehfahren zu sein.

Anyway, erst mal ist alles wieder gut.

Hier noch der Link einer Seite aus dem Fedora Forum, der mit geholfen hat vielleicht nützt es ja jemanden noch:

forums.fedoraforum.org/archive/index.php/t-139776.html
 
Zuletzt bearbeitet:
Könnte vielleicht noch jemand etwas zu den Fehlern sagen? An der SSD, die noch nicht wirklich alt ist liegt es aber nicht? In der Laufwerksverwaltung wird jedenfalls alles inkl. Smart Werte als gut angezeigt.

"orphaned inode" sind halb gelöscht Dateien, das heißt im Dateisystem gelöscht aber noch von einem Prozess geöffnet und solange noch auf der Festplatte präsent. Mit harten Reset/Poweroff bleiben die bestehen und werden dann vom fsck weggeräumt. Wenns 'ne einmalige Sache war: alles in bester Ordnung :)
 
  • ok1.de
  • ok2.de
  • thinkstore24.de
  • Preiswerte-IT - Gebrauchte Lenovo Notebooks kaufen

Werbung

Zurück
Oben