staging.inyokaproject.org

nach Einsatz von GParted kein Zugriff mehr auf /home

Status: Ungelöst | Ubuntu-Version: Ubuntu 20.10 (Groovy Gorilla)
Antworten |

michaelyx

Anmeldungsdatum:
24. April 2018

Beiträge: 41

Hallo!

Ich habe auf unbenutzten Speicherplatz meiner Festplatte eine neue Partition erstellt. Seither started Grub nur mehr auf der Kommandozeile.

Um ein paar Daten zu sichern bin ich nach der Wiki zur manuellen Datenrettung vorgegangen. Leider scheint das nicht ganz zu funktionieren. Beim Mounten kommt folgende Meldung:

1
2
3
sudo mount -o bind /mnt/home/.ecryptfs /home/.ecryptfs
mount: /home/.ecryptfs: Spezialgerät /mnt/home/.ecryptfs ist nicht vorhanden.
ubuntu@ubuntu:~$

Bitte um eure Unterstützung!

Hier der gesamte Vorgang:

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
ubuntu@ubuntu:~$ sudo mount /dev/nvme0n1p6 /mnt
ubuntu@ubuntu:~$ sudo apt-get update
Ign:1 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy InRelease
OK:2 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy Release
OK:4 http://archive.ubuntu.com/ubuntu groovy InRelease                     
Holen:5 http://archive.ubuntu.com/ubuntu groovy-updates InRelease [110 kB] 
Holen:6 http://archive.ubuntu.com/ubuntu groovy-updates/main amd64 DEP-11 Metadata [24,1 kB]
Holen:7 http://security.ubuntu.com/ubuntu groovy-security InRelease [110 kB]   
Holen:8 http://security.ubuntu.com/ubuntu groovy-security/main amd64 DEP-11 Metadata [4.692 B]
Es wurden 249 kB in 2 s geholt (109 kB/s).  
Paketlisten werden gelesen... Fertig
ubuntu@ubuntu:~$ sudo nano /etc/apt/sources.list
ubuntu@ubuntu:~$ sudo apt-get update
Ign:1 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy InRelease
OK:2 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy Release
OK:4 http://archive.ubuntu.com/ubuntu groovy InRelease
OK:5 http://archive.ubuntu.com/ubuntu groovy-updates InRelease
Holen:6 http://archive.ubuntu.com/ubuntu groovy/universe amd64 Packages [12,6 MB]
OK:7 http://security.ubuntu.com/ubuntu groovy-security InRelease
Holen:8 http://security.ubuntu.com/ubuntu groovy-security/universe amd64 Packages [37,5 kB]
Holen:9 http://security.ubuntu.com/ubuntu groovy-security/universe Translation-en [15,9 kB]
Holen:10 http://security.ubuntu.com/ubuntu groovy-security/universe amd64 DEP-11 Metadata [2.816 B]
Holen:11 http://security.ubuntu.com/ubuntu groovy-security/universe DEP-11 48x48 Icons [8.717 B]
Holen:12 http://security.ubuntu.com/ubuntu groovy-security/universe DEP-11 64x64 Icons [14,6 kB]
Holen:13 http://security.ubuntu.com/ubuntu groovy-security/universe DEP-11 64x64@2 Icons [29 B]
Holen:14 http://security.ubuntu.com/ubuntu groovy-security/universe amd64 c-n-f Metadata [1.848 B]
Holen:15 http://archive.ubuntu.com/ubuntu groovy/universe Translation-de [2.410 kB]
Holen:16 http://archive.ubuntu.com/ubuntu groovy/universe Translation-en [5.262 kB]
Holen:17 http://archive.ubuntu.com/ubuntu groovy/universe amd64 DEP-11 Metadata [3.726 kB]
Holen:18 http://archive.ubuntu.com/ubuntu groovy/universe DEP-11 48x48 Icons [3.139 kB]
Holen:19 http://archive.ubuntu.com/ubuntu groovy/universe DEP-11 64x64 Icons [7.863 kB]
Holen:20 http://archive.ubuntu.com/ubuntu groovy/universe DEP-11 64x64@2 Icons [43,3 kB]
Holen:21 http://archive.ubuntu.com/ubuntu groovy/universe amd64 c-n-f Metadata [270 kB]
Holen:22 http://archive.ubuntu.com/ubuntu groovy-updates/universe amd64 Packages [73,8 kB]
Holen:23 http://archive.ubuntu.com/ubuntu groovy-updates/universe Translation-en [28,4 kB]
Holen:24 http://archive.ubuntu.com/ubuntu groovy-updates/universe amd64 DEP-11 Metadata [15,1 kB]
Holen:25 http://archive.ubuntu.com/ubuntu groovy-updates/universe DEP-11 48x48 Icons [22,0 kB]
Holen:26 http://archive.ubuntu.com/ubuntu groovy-updates/universe DEP-11 64x64 Icons [40,4 kB]
Holen:27 http://archive.ubuntu.com/ubuntu groovy-updates/universe DEP-11 64x64@2 Icons [29 B]
Holen:28 http://archive.ubuntu.com/ubuntu groovy-updates/universe amd64 c-n-f Metadata [2.408 B]
Es wurden 35,6 MB in 16 s geholt (2.178 kB/s).                                 
Paketlisten werden gelesen... Fertig
ubuntu@ubuntu:~$ sudo apt-get install ecryptfs-utils
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Die folgenden zusätzlichen Pakete werden installiert:
  keyutils libecryptfs1
Vorgeschlagene Pakete:
  zescrow-client
Die folgenden NEUEN Pakete werden installiert:
  ecryptfs-utils keyutils libecryptfs1
0 aktualisiert, 3 neu installiert, 0 zu entfernen und 213 nicht aktualisiert.
Es müssen 198 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 795 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
Holen:1 http://archive.ubuntu.com/ubuntu groovy/universe amd64 libecryptfs1 amd64 111-0ubuntu7 [42,6 kB]
Holen:2 http://archive.ubuntu.com/ubuntu groovy/main amd64 keyutils amd64 1.6.1-2ubuntu1 [45,7 kB]
Holen:3 http://archive.ubuntu.com/ubuntu groovy/universe amd64 ecryptfs-utils amd64 111-0ubuntu7 [110 kB]
Es wurden 198 kB in 1 s geholt (164 kB/s).
Vormals nicht ausgewähltes Paket libecryptfs1 wird gewählt.
(Lese Datenbank ... 192332 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../libecryptfs1_111-0ubuntu7_amd64.deb ...
Entpacken von libecryptfs1 (111-0ubuntu7) ...
Vormals nicht ausgewähltes Paket keyutils wird gewählt.
Vorbereitung zum Entpacken von .../keyutils_1.6.1-2ubuntu1_amd64.deb ...
Entpacken von keyutils (1.6.1-2ubuntu1) ...
Vormals nicht ausgewähltes Paket ecryptfs-utils wird gewählt.
Vorbereitung zum Entpacken von .../ecryptfs-utils_111-0ubuntu7_amd64.deb ...
Entpacken von ecryptfs-utils (111-0ubuntu7) ...
libecryptfs1 (111-0ubuntu7) wird eingerichtet ...
keyutils (1.6.1-2ubuntu1) wird eingerichtet ...
ecryptfs-utils (111-0ubuntu7) wird eingerichtet ...
Trigger für man-db (2.9.3-2) werden verarbeitet ...
Trigger für libc-bin (2.32-0ubuntu3) werden verarbeitet ...
ubuntu@ubuntu:~$ sudo adduser --encrypt-home michaelyx
Benutzer »michaelyx« wird hinzugefügt …
Neue Gruppe »michaelyx« (1000) wird hinzugefügt …
Neuer Benutzer »michaelyx« (1000) mit Gruppe »michaelyx« wird hinzugefügt …
Persönliche Ordner »/home/michaelyx« wird erstellt …
Verschlüsselung wird eingerichtet …

************************************************************************
YOU SHOULD RECORD YOUR MOUNT PASSPHRASE AND STORE IT IN A SAFE LOCATION.
  ecryptfs-unwrap-passphrase ~/.ecryptfs/wrapped-passphrase
THIS WILL BE REQUIRED IF YOU NEED TO RECOVER YOUR DATA AT A LATER TIME.
************************************************************************


Done configuring.

Dateien werden von »/etc/skel« kopiert …
Bitte ein neues Passwort eingeben: 
Bitte das neue Passwort erneut eingeben: 
passwd: Passwort erfolgreich geändert
Benutzerinformationen für michaelyx werden geändert.
Geben Sie einen neuen Wert an oder drücken Sie ENTER für den Standardwert
	Vollständiger Name []: 
	Zimmernummer []: 
	Telefon geschäftlich []: 
	Telefon privat []: 
	Sonstiges []: 
Ist diese Information richtig? [J/N] j
ubuntu@ubuntu:~$ sudo adduser michaelyx sudo
Benutzer »michaelyx« wird der Gruppe »sudo« hinzugefügt …
Benutzer michaelyx wird zur Gruppe sudo hinzugefügt.
Fertig.
ubuntu@ubuntu:~$ sudo mount -o bind /mnt/home/.ecryptfs /home/.ecryptfs
mount: /home/.ecryptfs: Spezialgerät /mnt/home/.ecryptfs ist nicht vorhanden.
ubuntu@ubuntu:~$

Berlin_1946 Team-Icon

Supporter, Wikiteam

Anmeldungsdatum:
18. September 2009

Beiträge: 10477

Hallo michaelyx,

poste bitte die Antworten im Codeblock von

sudo lsblk -o NAME,UUID,FSTYPE,SIZE,LABEL,MOUNTPOINT 
df -hT

Ist deine Festplatte verschlüsselt?

michaelyx

(Themenstarter)

Anmeldungsdatum:
24. April 2018

Beiträge: 41

Vielen Dank für deine Unterstützung! Die Festplatte ist nicht verschlüsselt, aber das home-Verzeichnis.

ubuntu@ubuntu:~$ sudo lsblk -o NAME,UUID,FSTYPE,SIZE,LABEL,MOUNTPOINT 
NAME   UUID                                 FSTYPE   SIZE LABEL       MOUNTPOINT
loop0                                       squash     2G             /rofs
loop1                                       squash  55,3M             /snap/core
loop2                                       squash 217,9M             /snap/gnom
loop3                                       squash  50,7M             /snap/snap
loop4                                       squash  62,1M             /snap/gtk-
loop5                                       squash  30,9M             /snap/snap
sda                                                 14,9G             
└─sda1 94E6-64CB                            vfat    14,9G UBUNTU 20_1 /cdrom
nvme0n1
│                                                  476,9G             
├─nvme0n1p1
│      3062-02AD                            vfat     360M SYSTEM      
├─nvme0n1p2
│                                                    128M             
├─nvme0n1p3
│      F8329B8C329B4E8E                     ntfs   258,5G Windows     
├─nvme0n1p4
│      0086D67086D665A6                     ntfs     980M Windows RE tools
│                                                                     
├─nvme0n1p5
│      54ACA32DACA30896                     ntfs    19,6G Recovery Image
│                                                                     
├─nvme0n1p6
│      3550a9f7-f6f1-466b-8134-7ded6cfe9171 ext4      33G             
├─nvme0n1p7
│      e52d7949-26e2-4970-952d-348063887c4c swap    15,9G             
└─nvme0n1p8
       86bc462d-1bce-4aaf-babd-6f75e4986885 ext4   148,6G             
ubuntu@ubuntu:~$ sudo mount /dev/nvme0n1p6 /mnt 
ubuntu@ubuntu:~$ df -hT
df: /run/user/999/doc: Vorgang nicht zulässig
Dateisystem    Typ     Größe Benutzt Verf. Verw% Eingehängt auf
tmpfs          tmpfs    1,6G    2,1M  1,6G    1% /run
/dev/sda1      vfat      15G    2,8G   13G   19% /cdrom
/cow           overlay  7,8G    160M  7,6G    3% /
tmpfs          tmpfs    7,8G     59M  7,7G    1% /dev/shm
tmpfs          tmpfs    5,0M    8,0K  5,0M    1% /run/lock
tmpfs          tmpfs    4,0M       0  4,0M    0% /sys/fs/cgroup
tmpfs          tmpfs    7,8G    500K  7,8G    1% /tmp
tmpfs          tmpfs    1,6G    152K  1,6G    1% /run/user/999
/dev/nvme0n1p6 ext4      33G     49M   31G    1% /mnt
ubuntu@ubuntu:~$ 

Ich habe die Systempartition noch eingebunden. 1% Verwendeter Speicherplatz sieht nicht gut aus oder?

Berlin_1946 Team-Icon

Supporter, Wikiteam

Anmeldungsdatum:
18. September 2009

Beiträge: 10477

michaelyx schrieb:

Ich habe die Systempartition noch eingebunden.

Nur damit wir vom selben Teil sprechen, was meinst du mit Systempartition?

Poste doch auch noch,

sudo parted -l

Du arbeitest mit einem Live- Aystem und postest von dort die Ergebnisse, richtig verstanden.

michaelyx

(Themenstarter)

Anmeldungsdatum:
24. April 2018

Beiträge: 41

Berlin_1946 schrieb:

Nur damit wir vom selben Teil sprechen, was meinst du mit Systempartition?

Also die wo Ubuntu installiert ist und bei mir auch /home mit meinen Daten liegt.

Poste doch auch noch,

ubuntu@ubuntu:~$ sudo parted -l
Modell: Kingston DT 101 G2 (scsi)
Festplatte  /dev/sda:  16,0GB
Sektorgröße (logisch/physisch): 512B/512B
Partitionstabelle: msdos
Disk-Flags: 

Nummer  Anfang  Ende    Größe   Typ      Dateisystem  Flags
 1      1049kB  16,0GB  16,0GB  primary  fat32        boot, LBA


Modell: KXG50ZNV512G TOSHIBA (nvme)
Festplatte  /dev/nvme0n1:  512GB
Sektorgröße (logisch/physisch): 512B/512B
Partitionstabelle: gpt
Disk-Flags: 

Nummer  Anfang  Ende   Größe   Dateisystem     Name                          Flags
 1      1049kB  379MB  377MB   fat32           EFI system partition          boot, esp
 2      379MB   513MB  134MB                   Microsoft reserved partition  msftres
 3      513MB   278GB  278GB   ntfs            Basic data partition          msftdata
 8      278GB   438GB  160GB   ext4
 6      438GB   473GB  35,4GB  ext4
 7      473GB   490GB  17,0GB  linux-swap(v1)                                swap
 4      490GB   491GB  1028MB  ntfs            Basic data partition          versteckt, diag
 5      491GB   512GB  21,1GB  ntfs            Basic data partition          versteckt, msftdata

Du arbeitest mit einem Live- Aystem und postest von dort die Ergebnisse, richtig verstanden.

Ja genau von einem Live-Stick mit dem selben Ubuntu.

Berlin_1946 Team-Icon

Supporter, Wikiteam

Anmeldungsdatum:
18. September 2009

Beiträge: 10477

Hallo michaelyx,

poste bitte die Antworten im Codeblock von

sudo mount -t ext4 /dev/nvme0n1p6 /mnt
ls -al /mnt

und

sudo mount -t ext4 /dev/nvme0n1p8 /mnt
ls -al /mnt

michaelyx

(Themenstarter)

Anmeldungsdatum:
24. April 2018

Beiträge: 41

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
ubuntu@ubuntu:~$ sudo mount -t ext4 /dev/nvme0n1p6 /mnt
mount: /mnt: /dev/nvme0n1p6 ist bereits auf /mnt eingehängt.
ubuntu@ubuntu:~$ ls -al /mnt
insgesamt 24
drwxr-xr-x 4 root root  4096 Dez 28 15:00 .
drwxr-xr-x 1 root root   240 Dez 29 09:41 ..
drwxr-xr-x 3 root root  4096 Dez 28 15:00 boot
drwx------ 2 root root 16384 Dez 24 21:22 lost+found
ubuntu@ubuntu:~$ sudo mount -t ext4 /dev/nvme0n1p8 /mnt
ubuntu@ubuntu:~$ ls -al /mnt
insgesamt 20
drwxr-xr-x 3 root root  4096 Dez 26 18:29 .
drwxr-xr-x 1 root root   240 Dez 29 09:41 ..
drwx------ 2 root root 16384 Dez 26 18:29 lost+found
ubuntu@ubuntu:~$ 




Berlin_1946 Team-Icon

Supporter, Wikiteam

Anmeldungsdatum:
18. September 2009

Beiträge: 10477

Hallo michaelyx,

Der Befehl durchsucht alle eingebundenen Partitionen nach Ordnern, die mit ecryptfs verschlüsselt wurden

Aus dem Wiki ecryptfs/Datenrettung (Abschnitt „Daten-automatisiert-auslesen“)

poste bitte die Antworten im Codeblock von

sudo ecryptfs-recover-private

Ich weiß nicht ob du den Befehl schon installiert hast?

wenn er fehlt dann mit

sudo apt-get install ecryptfs-utils

nachtragen.

michaelyx

(Themenstarter)

Anmeldungsdatum:
24. April 2018

Beiträge: 41

Um ecryptfs-utils installieren zu können, musste ich noch die Paketquellen universe freischalten siehe: https://forum.ubuntuusers.de/post/9213396

Hier das Suchergebnis

1
2
3
4
5
6
7
ubuntu@ubuntu:~$ sudo ecryptfs-recover-private
INFO: Searching for encrypted private directories (this might take a while)...
find: ‘/run/user/999/doc’: Keine Berechtigung
find: ‘/run/user/999/gvfs’: Keine Berechtigung
find: Dateisystemschleife erkannt; ‘/sys/kernel/debug/energy_model’ ist ein Teil der gleichen Schleife wie ‘/sys/kernel/debug’.
ubuntu@ubuntu:~$ 

Berlin_1946 Team-Icon

Supporter, Wikiteam

Anmeldungsdatum:
18. September 2009

Beiträge: 10477

Hallo michaelyx,

schau mal ob das hilft:

sudo -i
sudo ecryptfs-recover-private

Und als Root nochmal (als 1. sollte root@ ... stehen).

sudo mount -t ext4 /dev/nvme0n1p6 /mnt
ls -hal /mnt
exit

kleines Delta

michaelyx

(Themenstarter)

Anmeldungsdatum:
24. April 2018

Beiträge: 41

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
ubuntu@ubuntu:~$ sudo -i
root@ubuntu:~# sudo ecryptfs-recover-private
INFO: Searching for encrypted private directories (this might take a while)...
find: ‘/run/user/999/gvfs’: Keine Berechtigung
find: ‘/run/user/1000/gvfs’: Keine Berechtigung
find: Dateisystemschleife erkannt; ‘/sys/kernel/debug/energy_model’ ist ein Teil der gleichen Schleife wie ‘/sys/kernel/debug’.
root@ubuntu:~# sudo mount -t ext4 /dev/nvme0n1p6 /mnt
root@ubuntu:~# ls -hal /mnt
insgesamt 24K
drwxr-xr-x 4 root root 4,0K Dez 28 15:00 .
drwxr-xr-x 1 root root  240 Dez 29 09:41 ..
drwxr-xr-x 3 root root 4,0K Dez 28 15:00 boot
drwx------ 2 root root  16K Dez 24 21:22 lost+found
root@ubuntu:~# exit
Abgemeldet
ubuntu@ubuntu:~$ 

Was meinst du mit "kleines Delta"?

Berlin_1946 Team-Icon

Supporter, Wikiteam

Anmeldungsdatum:
18. September 2009

Beiträge: 10477

Das Delta (gelb)

 ls -hal /mnt
 ls -al /mnt

für mich sehen die beiden Partition leer aus. 😢

Vllt hat einer der mitliest noch eine Idee.

michaelyx

(Themenstarter)

Anmeldungsdatum:
24. April 2018

Beiträge: 41

Danke für deine Unterstützung!

Ich habe einen Lösungsvorschlag mit dem Befehl 'find' gefunden: https://askubuntu.com/questions/760642/sudo-ecryptfs-recover-private-gives-find-run-user-1000-gvfs-permission-d Werde aber nicht schlau daraus.

Hat jemand eine Idee dazu ...?

Berlin_1946 Team-Icon

Supporter, Wikiteam

Anmeldungsdatum:
18. September 2009

Beiträge: 10477

michaelyx schrieb:

Werde aber nicht schlau daraus.

Kannst du Fragen stellen, was du nicht verstehst?

dingsbums

Anmeldungsdatum:
13. November 2010

Beiträge: 3793

michaelyx schrieb:

Ich habe auf unbenutzten Speicherplatz meiner Festplatte eine neue Partition erstellt. Seither started Grub nur mehr auf der Kommandozeile.

Du könntest den Vorgang rückgängig machen, wenn da noch keine Daten drauf sind. Vielleicht hast du ja Glück im Unglück.

Idealerweise erstellst du vor weiteren Experimenten ein Abbild deiner kompletten Festplatte mit gddrescue. Siehe auch Datenrettung.

Und für die Zukunft: ▶ Datensicherung

Antworten |