Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Hilfe bei der Festplattenverschlüsselung
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
McNerl
n00b
n00b


Joined: 19 Oct 2007
Posts: 17
Location: Magdeburg, Germany

PostPosted: Mon Jun 30, 2008 7:48 am    Post subject: [SOLVED] Hilfe bei der Festplattenverschlüsselung Reply with quote

Hallo Forum,

leider komme ich nicht weiter. Ich habe mir schon alle HowTos bei gentoo-wiki.org durch gearbeitet. Leider unterscheiden die sich relativ stark. Die einen arbeiten mit GPG und jeder macht seine initramfs anders.
Letzteres ist auch mein Problem, glaube ich, denn ich kann mein System nicht booten. Via LiveCD kann ich ohne Probleme meine Partitionen mit cryptsetup öffnen und diese dann mounten. Also da sollte mein Problem nicht liegen.

Meine Partitionen:

Code:
/dev/sda
   sda1      ext2      /boot
   sda2      ext3      /      (mit AES 128Bit verschlüsselt)
   sda4      swap      sw
   sda5      ext3      /home   (mit AES 128Bit verschlüsselt)


Ich bin mir selber sehr unsicher was diese Initramfs angeht.
Zu letzt habe ich dieses HowTo ausprobiert, dort scheint mir das am elegantesten gelöst zu sein. Leider ist es auf LVM abgestimmt und mit meinen Änderungen helfen mir nicht, bzw so weit komme ich gar nicht.

Hier mein init
Code:
#!/bin/busybox sh

mount -t proc none /proc
mount -t sysfs none /sys

cryptsetup -T 5 luksOpen /dev/sda2 root

mount -o ro /dev/mapper/root /root

umount /proc
umount /sys

exec switch_root /root /sbin/init


Meine grub.conf
Quote:

default 1
fallback 5
password --md5 ...
#splashimage=(hd0,0)/grub/splashimages-splash.xpm.gz # Habe ich dies aktiv kann ich nicht viel lesen, muss wohl an meiner Auflösung von 1280x800 liegen.

title Gentoo
root (hd0,0)
kernel /vmlinuz root=/dev/ram0 rw

Da ich den Kernel immer mit make && make modules_install && make install installiere, ist bzImage als vmlinuz in /boot vorhanden.

Nun aber mal den Fehler den ich hier überhaupt bekomme.

Quote:
Failed to execute /init
Kernel panic - not syncing: No init found. Try passing init= option to kernel.


init ist auf ausführbar (mit ls -n /usr/src/initramfs/ nachgeschaut)
Dieses Kernel-Option habe ich mit init=/init probiert, damit habe ich die Zeile "Failed to execute /init. Attempting defaults..." zusätzlich bekommen.

Ich hoffe mir kann jemand helfen, ich bin nächste Woche mobil und da brauche ich das Notebook. Aufs Wlan kann ich ja notfalls verzichten aber nicht auf das ganze System.


Last edited by McNerl on Sun Jul 06, 2008 8:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
McNerl
n00b
n00b


Joined: 19 Oct 2007
Posts: 17
Location: Magdeburg, Germany

PostPosted: Sun Jul 06, 2008 8:39 pm    Post subject: Reply with quote

Leider hat mir ja keiner geantwortet. Ich habe aber es nun halb selber hinbekommen.
Code:
genkernel --luks

Das war die "Lösung". Das Ganze läuft nun bei mir problemlos, nur die GRUB-Zeile ist nun etwas lang.
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