Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Probleme mit verschlüsselter Rootpartition
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
ChrisM87
l33t
l33t


Joined: 07 Aug 2004
Posts: 728
Location: Rheinland-Pfalz (Germany)

PostPosted: Thu Feb 16, 2006 6:48 pm    Post subject: Probleme mit verschlüsselter Rootpartition Reply with quote

Hallo,

ich wollte auf meinem Laptop meine Rootpartition nach diesem Howto mit diesem Script verschlüsseln.

Es ist jetzt auch alles eingerichtet und ich kann auch in die Initrd mit /bin/sh booten.

Wenn ich allerdings versuche, das Script aus dem Initrd zu booten (linuxrc), dann kommen massig Fehlermeldungen, auch wenn ich das Script so anpasse, wie es in dem Howto beschrieben wird, also verschlüsselte Swap raus usw.

Wenn ich die Befehle in dem Script von Hand ausführe (nachdem ich mit /bin/sh gebootet habe), passiert folgendes:

export PATH=/bin -> Keine Ausgabe
mount -t proc proc /proc -> warning: can't open /etc/fstab: No such file or directory (ist denke ich normal hier)
cat /proc/cmdline -> root=/dev/ram0 rw init=/bin/sh
umount /proc -> Keine Ausgabe
cryptsetup create root /dev/hda3 -> Enter passphrase... danach keine andere Meldung mehr (d.h. ok)
mount /dev/mapper/root /new -> mounting ext3 filesystem as ext2 (also auch kein echter Fehler)
cd /new
mkdir initrd -> File exists
pivot_root . initrd -> Keine Ausgabe

Und dann aber!
exec chroot . /bin/sh <<- EOF >dev/console 2>&1

Daraufhin kommt ein Prompt (warum verschwindet der nicht, ich pipe doch direkt EOF hinein?)
Wenn ich da dann EOF eingebe, passiert folgendes:

Kernel panic - not syncing: Attempted to kill init!

Mit der Kernel Panic ist dann natürlich Schluss, jetzt aber die Frage, wo ist das Problem?

Hier noch die Ausgabe bei Verwendung des generierten Scripts ohne Abänderungen:
Quote:
...
Freeing unused kernel memory: 228k freed
warning: can't open /etc/fstab: No such file or directory
activate swap crypto
device-mapper: crypt: Error initializing ESSIV hash
device-mapper: error adding target to table
Command failed: Invalid argument
/dev/mapper/swap: No such file or directory
Enter paraphrase: [Passwort]
device-mapper: crypt: Error initializing ESSIV hash
device-mapper: error adding target to table
Command failed: Invalid argument
mount: you must specify the filesystem type
pivot_root: Device or resource busy
/linuxrc: linux 21: dev/console: No such file or directory
Kernel panic - not syncing: Attempted to kill init!


ChrisM
_________________
born to be root - sorry for my bad English!
Back to top
View user's profile Send private message
ChrisM87
l33t
l33t


Joined: 07 Aug 2004
Posts: 728
Location: Rheinland-Pfalz (Germany)

PostPosted: Fri Feb 17, 2006 4:57 pm    Post subject: Reply with quote

*bump*
_________________
born to be root - sorry for my bad English!
Back to top
View user's profile Send private message
ChrisM87
l33t
l33t


Joined: 07 Aug 2004
Posts: 728
Location: Rheinland-Pfalz (Germany)

PostPosted: Wed Feb 22, 2006 6:14 pm    Post subject: Reply with quote

*bump*

Habs jetzt schon mit neuer Initrd und allem probiert, aber es geht nix. :(

Kann mir jemand ein Howto empfehlen, mit dem ich die Root verschlüsseln kann und das erwiesenermaßen funktioniert?
_________________
born to be root - sorry for my bad English!
Back to top
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Wed Feb 22, 2006 9:38 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic.php?t=191052
_________________
Never argue with an idiot. He brings you down to his level, then beats you with experience.

How-To: Daten verschlüsselt auf DVD speichern.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum