Ubuntu 7.04 -> Komplettverschlüsselung (Cryptsetup) -> Error15: File Not Found

öhm joa...

Voreiniger Zeit hatte ich schonmal Ubuntu 6.06 auf gleiche weise verschlüsselt, damals ohne Probleme...

Gestern hab ich mir mal wieder 7.04 aufgespielt, und mi gedacht, wenn ich schonma dabei bin verschlüssel ich das ganze gleich noch...
Gegooglet und ein entsprechendes Tutorial auf ubuntuusers gefunden.

Naja das Tutorial hab ich komplett durchgearbeitet, ohne eine einzige Fehlermeldung, allerdings spuckt beim Booten der GRUB nur folgendes aus:
ERROR 15 : File not found!

Laut dem Tutorial liegt das meist daran, dass in der /etc/fstab eine UUID als Device-Bezeichnung der Boot-Partition angegeben ist, bei mir funktioniert allerdings beides nicht...
Weder UUID noch "/dev/hda1".

Ich hab die ganze Prozedur jetzt zum 3. Mal durch, und immer wieder der selbe Fehler... File not found...

Beim ersten mal hab ich versucht mit dem optimierten aes_i586-Modul zu arbeiten, allerdings bekomme ich auch mit dem normalen Modul (aes) die gleiche Fehlermeldung.

Hier mal die Configs:

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
#
#
# /dev/hda3
#UUID=4c888f02-818d-49d1-bfcd-940729d99125 /               ext3    defaults,errors=remount-ro 0       1
/dev/mapper/root /               ext3    defaults,errors=remount-ro 0       1
#
#
# /dev/hda1
#UUID=693949d1-976b-4bed-bfec-d91934bfcff8 /boot           ext2    defaults        0       2
/dev/hda1 /boot           ext2    defaults        0       2
#
#
# /dev/hda4
#UUID=05a51c39-fe06-4457-a986-93f2d15d3237 /media/hda4     ext3    defaults        0       2
/dev/mapper/home /home           ext3    defaults                       0       0
#
#
# /dev/hda2
UUID=b3345b39-186d-4c81-9435-fad51ef8780b none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/hdd        /media/cdrom1   udf,iso9660 user,noauto     0       0

Code:
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default         0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout         3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
#
# title         Windows 95/98/NT/2000
# root          (hd0,0)
# makeactive
# chainloader   +1
#
# title         Linux
# root          (hd0,1)
# kernel        /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/mapper/root ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## ## End Default Options ##

title           Ubuntu, kernel 2.6.20-15-generic
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.20-15-generic root=/dev/mapper/root ro quiet
initrd          /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
title           Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.20-15-generic root=/dev/mapper/root ro single
initrd          /boot/initrd.img-2.6.20-15-generic

title           Ubuntu, memtest86+
root            (hd0,0)
kernel          /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

Beide Configs sind bis auf die Änderungen aus dem Tutorial Standard-Configs.

Code:
# <target name> <source device>         <key file>      <options>
#
root /dev/hda3 none luks,retry=1,cipher=aes-lrw-benbi
home /dev/hda4 none luks,retry=1,cipher=aes-lrw-benbi

Jemand ne Idee woran das liegen könnte?
- Is erst das zweite mal dass ich ein System Komplett verschlüssle...

Wenn notwendig geb ich euch Zugriff auf den Rechner - is eh nix daruf ^^

MFG - Keks :)
 
Sind die für die Entschlüsselung und das LVM notwendigen Module im initrd-Image?
 
Hast du dann auch das initrd-Image neu erstellt nachdem die Änderungen in der initramfs-Konfiguration gemacht wurden? Offenbar wird ja das Kernel-Image nicht gefunden und normalerweise ist das der Fall, wenn die falsche Boot-Partition angegeben wurde oder wenn die Datei aus anderen Gründen (z.B. eine Verschlüsselung) nicht auffindbar ist.
 
naja laut Tutorial soll man am Ende
Code:
update-grub
Code:
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /vmlinuz-2.6.20-15-generic
Found kernel: /memtest86+.bin
Updating /boot/grub/menu.lst ... done
und
Code:
update-initramfs -u ALL
ausführen, und anschließend neu starten.

So hab ich auch gemacht ...
Naja ich hab die 2 Befehle eben nochmal abgesetzt und neu gestartet, aber geändert hats nicht wirklich was :(

MFG - Keks
 
das gleiche problem hatte ich auch früher, ich hab dann einfach die /boot/grub/menu.lst manuell geändert und danach nix mehr ausgeführt.

Da musste einfach nach
Code:
## ## End Default Options ##

bei kernel und initrd aus dem /boot/ n / machen, also so:

Code:
title		Ubuntu, kernel 2.6.20-16-generic
root		(hd0,0)
kernel		/vmlinuz-2.6.20-16-generic root=/dev/mapper/root ro quiet locale=de_DE
initrd		/initrd.img-2.6.20-16-generic
quiet
savedefault

Dann hats bei mir funktioniert.

Manuel
 
hmmm hab den Pfad jetzt mal geändert,
und tatsächlich... Er findet den Kernel jetzt :)
( warum aber? in root is doch auch nur n Link auf das Boot-Verzeichnis !?! )

Naja egal - dickes dankö an dich Manuel :)
und natürlich auch an meinen lieblings-sys-admin bitmuncher *schleim* :D ^^

MFG - Keks :)
 
Original von keksinat0r
hmmm hab den Pfad jetzt mal geändert,
und tatsächlich... Er findet den Kernel jetzt :)
( warum aber? in root is doch auch nur n Link auf das Boot-Verzeichnis !?! )
Ich weiß es natürlich auch nich 100%ig, aber ich schätze mal dadurch dass die einzige unverschlüsselte partition die Bootpartition ist wird die erstmal als / gemountet, und die Rootpartition ist zu dem Zeitpunkt ja noch gar nich gemountet und somit auch die Bootpartition auch nich nich in /boot eingehängt. Ob das jetzt stimmt oder nich weiß ich natürlich nicht, aber das wäre für mich die einzig logische Erklärung, wenns jemand anders genauer weiß lerne ich natürlich gerne noch was neues dazu :D

Manuel
 
Zurück
Oben