gdaddy
March 3rd, 2010, 11:23 PM
Hi,
I've been trying for days and I just can't get this to work.
I pretty much follow this guide verbatim http://www.howtoforge.com/set-up-a-fully-encrypted-raid1-lvm-system-p5 - in fact I am so practised at it I can do it in about 5 minutes.
I have also tried following the guide but installing both hard drives.
I have tried removing grub2 and using grub (and just about every permutation of grub).
I have tried removing all the UUID references in crypttab, fstab and also changed the /etc/defaults/grub to not use UUID.
It just won't work.
So what happens.
On install boots fine, but if I remove either drive it either stops with Grub loading screen on Grub2 or it stops after Stage1.5 of grub. When it finally drops I get an error saying Check cryptopts=source= bootarg cat /proc/cmdline or missing modules, devices, then later /dev/disk/by-uuid/<xxxx> does not exist
Any ideas?
Have run Boot Info Script when using both drives below
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks for (md0)/grub.
=> Grub 2 is installed in the MBR of /dev/sdb and looks for (md0)/grub.
sda1: __________________________________________________ _______________________
File system: linux_raid_member
Boot sector type: -
Boot sector info:
sda2: __________________________________________________ _______________________
File system: linux_raid_member
Boot sector type: Unknown
Boot sector info:
sda3: __________________________________________________ _______________________
File system: linux_raid_member
Boot sector type: Unknown
Boot sector info:
sda4: __________________________________________________ _______________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________ _______________________
File system: linux_raid_member
Boot sector type: Unknown
Boot sector info:
sdb1: __________________________________________________ _______________________
File system: linux_raid_member
Boot sector type: -
Boot sector info:
sdb2: __________________________________________________ _______________________
File system: linux_raid_member
Boot sector type: Unknown
Boot sector info:
sdb3: __________________________________________________ _______________________
File system: linux_raid_member
Boot sector type: Unknown
Boot sector info:
sdb4: __________________________________________________ _______________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sdb5: __________________________________________________ _______________________
File system: linux_raid_member
Boot sector type: Unknown
Boot sector info:
md0: __________________________________________________ _______________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs: /grub/grub.cfg /grub/core.img
md2: __________________________________________________ _______________________
File system: crypto_LUKS
Boot sector type: Unknown
Boot sector info:
Mounting failed:
mount: unknown filesystem type 'crypto_LUKS'
md1: __________________________________________________ _______________________
File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed:
mount: unknown filesystem type 'crypto_LUKS'
mount: unknown filesystem type ''
md3: __________________________________________________ _______________________
File system: crypto_LUKS
Boot sector type: Unknown
Boot sector info:
Mounting failed:
mount: unknown filesystem type 'crypto_LUKS'
mount: unknown filesystem type ''
mount: unknown filesystem type 'crypto_LUKS'
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ __________________________________________________ ___
Disk /dev/sda: 15.3 GB, 15289286656 bytes
255 heads, 63 sectors/track, 1858 cylinders, total 29861888 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x00099c65
Partition Boot Start End Size Id System
/dev/sda1 * 63 498,014 497,952 fd Linux raid autodetect
/dev/sda2 498,015 2,457,944 1,959,930 fd Linux raid autodetect
/dev/sda3 2,457,945 12,225,464 9,767,520 fd Linux raid autodetect
/dev/sda4 12,225,465 14,185,394 1,959,930 5 Extended
/dev/sda5 12,225,528 14,185,394 1,959,867 fd Linux raid autodetect
Drive: sdb ___________________ __________________________________________________ ___
Disk /dev/sdb: 15.9 GB, 15942549504 bytes
255 heads, 63 sectors/track, 1938 cylinders, total 31137792 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x000d4719
Partition Boot Start End Size Id System
/dev/sdb1 * 63 498,014 497,952 fd Linux raid autodetect
/dev/sdb2 498,015 2,457,944 1,959,930 fd Linux raid autodetect
/dev/sdb3 2,457,945 12,225,464 9,767,520 fd Linux raid autodetect
/dev/sdb4 12,225,465 14,570,954 2,345,490 5 Extended
/dev/sdb5 12,225,528 14,570,954 2,345,427 fd Linux raid autodetect
blkid -c /dev/null: __________________________________________________ __________
Device UUID TYPE LABEL
/dev/mapper/md1_crypt f8a059ed-c929-4eea-8b2f-ad1f46e841ab swap
/dev/mapper/md2_crypt eb80e51e-ebc7-42f0-9bfd-97d8274b3369 ext4
/dev/md0 fe7150b0-f9a3-4f90-aff4-f41f90457fd9 ext4
/dev/md2 4a447fc6-3900-499e-a7de-3d33b624b888 crypto_LUKS
/dev/md3 55392b58-06d0-46de-ae61-72b9882c8bb4 crypto_LUKS
/dev/sda1 b0162122-3deb-3d3d-0e32-c0984ef61a94 linux_raid_member
/dev/sda2 948f36c6-beb3-fece-7ca4-22883c4a6551 linux_raid_member
/dev/sda3 2be7c484-44a3-0f30-cbed-27033da55193 linux_raid_member
/dev/sda5 a4cce4c5-96bd-801b-ab66-1a94328e4720 linux_raid_member
/dev/sdb1 b0162122-3deb-3d3d-0e32-c0984ef61a94 linux_raid_member
/dev/sdb2 948f36c6-beb3-fece-7ca4-22883c4a6551 linux_raid_member
/dev/sdb3 2be7c484-44a3-0f30-cbed-27033da55193 linux_raid_member
/dev/sdb5 a4cce4c5-96bd-801b-ab66-1a94328e4720 linux_raid_member
=============================== "ls -R /dev/mapper/" output: ===============================
/dev/mapper:
control
md1_crypt
md2_crypt
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/mapper/md2_crypt / ext4 (rw,errors=remount-ro)
/dev/md0 /boot ext4 (rw)
============================== md0/grub/grub.cfg: ==============================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod raid
insmod mdraid
insmod ext2
set root=(md0)
# search --no-floppy --fs-uuid --set fe7150b0-f9a3-4f90-aff4-f41f90457fd9
linux /vmlinuz-2.6.31-14-generic root=/dev/mapper/md2_crypt ro quiet splash
initrd /initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod raid
insmod mdraid
insmod ext2
set root=(md0)
search --no-floppy --fs-uuid --set fe7150b0-f9a3-4f90-aff4-f41f90457fd9
linux /vmlinuz-2.6.31-14-generic root=/dev/mapper/md2_crypt ro single
initrd /initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
==================== md0: Location of files loaded by Grub: ====================
.0GB: grub/core.img
.0GB: grub/grub.cfg
.0GB: initrd.img-2.6.31-14-generic
.0GB: vmlinuz-2.6.31-14-generic
=========================== Unknown MBRs/Boot Sectors/etc =======================
Unknown BootLoader on sda2
<removed>
Unknown BootLoader on sda3
<removed>
Unknown BootLoader on sda5
<removed>
Unknown BootLoader on sdb2
<removed>
Unknown BootLoader on sdb3
<removed>
Unknown BootLoader on sdb5
<removed>
Unknown BootLoader on md2
<removed>
Unknown BootLoader on md1
<removed>
Unknown BootLoader on md3
<removed>
I've been trying for days and I just can't get this to work.
I pretty much follow this guide verbatim http://www.howtoforge.com/set-up-a-fully-encrypted-raid1-lvm-system-p5 - in fact I am so practised at it I can do it in about 5 minutes.
I have also tried following the guide but installing both hard drives.
I have tried removing grub2 and using grub (and just about every permutation of grub).
I have tried removing all the UUID references in crypttab, fstab and also changed the /etc/defaults/grub to not use UUID.
It just won't work.
So what happens.
On install boots fine, but if I remove either drive it either stops with Grub loading screen on Grub2 or it stops after Stage1.5 of grub. When it finally drops I get an error saying Check cryptopts=source= bootarg cat /proc/cmdline or missing modules, devices, then later /dev/disk/by-uuid/<xxxx> does not exist
Any ideas?
Have run Boot Info Script when using both drives below
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks for (md0)/grub.
=> Grub 2 is installed in the MBR of /dev/sdb and looks for (md0)/grub.
sda1: __________________________________________________ _______________________
File system: linux_raid_member
Boot sector type: -
Boot sector info:
sda2: __________________________________________________ _______________________
File system: linux_raid_member
Boot sector type: Unknown
Boot sector info:
sda3: __________________________________________________ _______________________
File system: linux_raid_member
Boot sector type: Unknown
Boot sector info:
sda4: __________________________________________________ _______________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________ _______________________
File system: linux_raid_member
Boot sector type: Unknown
Boot sector info:
sdb1: __________________________________________________ _______________________
File system: linux_raid_member
Boot sector type: -
Boot sector info:
sdb2: __________________________________________________ _______________________
File system: linux_raid_member
Boot sector type: Unknown
Boot sector info:
sdb3: __________________________________________________ _______________________
File system: linux_raid_member
Boot sector type: Unknown
Boot sector info:
sdb4: __________________________________________________ _______________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sdb5: __________________________________________________ _______________________
File system: linux_raid_member
Boot sector type: Unknown
Boot sector info:
md0: __________________________________________________ _______________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs: /grub/grub.cfg /grub/core.img
md2: __________________________________________________ _______________________
File system: crypto_LUKS
Boot sector type: Unknown
Boot sector info:
Mounting failed:
mount: unknown filesystem type 'crypto_LUKS'
md1: __________________________________________________ _______________________
File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed:
mount: unknown filesystem type 'crypto_LUKS'
mount: unknown filesystem type ''
md3: __________________________________________________ _______________________
File system: crypto_LUKS
Boot sector type: Unknown
Boot sector info:
Mounting failed:
mount: unknown filesystem type 'crypto_LUKS'
mount: unknown filesystem type ''
mount: unknown filesystem type 'crypto_LUKS'
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ __________________________________________________ ___
Disk /dev/sda: 15.3 GB, 15289286656 bytes
255 heads, 63 sectors/track, 1858 cylinders, total 29861888 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x00099c65
Partition Boot Start End Size Id System
/dev/sda1 * 63 498,014 497,952 fd Linux raid autodetect
/dev/sda2 498,015 2,457,944 1,959,930 fd Linux raid autodetect
/dev/sda3 2,457,945 12,225,464 9,767,520 fd Linux raid autodetect
/dev/sda4 12,225,465 14,185,394 1,959,930 5 Extended
/dev/sda5 12,225,528 14,185,394 1,959,867 fd Linux raid autodetect
Drive: sdb ___________________ __________________________________________________ ___
Disk /dev/sdb: 15.9 GB, 15942549504 bytes
255 heads, 63 sectors/track, 1938 cylinders, total 31137792 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x000d4719
Partition Boot Start End Size Id System
/dev/sdb1 * 63 498,014 497,952 fd Linux raid autodetect
/dev/sdb2 498,015 2,457,944 1,959,930 fd Linux raid autodetect
/dev/sdb3 2,457,945 12,225,464 9,767,520 fd Linux raid autodetect
/dev/sdb4 12,225,465 14,570,954 2,345,490 5 Extended
/dev/sdb5 12,225,528 14,570,954 2,345,427 fd Linux raid autodetect
blkid -c /dev/null: __________________________________________________ __________
Device UUID TYPE LABEL
/dev/mapper/md1_crypt f8a059ed-c929-4eea-8b2f-ad1f46e841ab swap
/dev/mapper/md2_crypt eb80e51e-ebc7-42f0-9bfd-97d8274b3369 ext4
/dev/md0 fe7150b0-f9a3-4f90-aff4-f41f90457fd9 ext4
/dev/md2 4a447fc6-3900-499e-a7de-3d33b624b888 crypto_LUKS
/dev/md3 55392b58-06d0-46de-ae61-72b9882c8bb4 crypto_LUKS
/dev/sda1 b0162122-3deb-3d3d-0e32-c0984ef61a94 linux_raid_member
/dev/sda2 948f36c6-beb3-fece-7ca4-22883c4a6551 linux_raid_member
/dev/sda3 2be7c484-44a3-0f30-cbed-27033da55193 linux_raid_member
/dev/sda5 a4cce4c5-96bd-801b-ab66-1a94328e4720 linux_raid_member
/dev/sdb1 b0162122-3deb-3d3d-0e32-c0984ef61a94 linux_raid_member
/dev/sdb2 948f36c6-beb3-fece-7ca4-22883c4a6551 linux_raid_member
/dev/sdb3 2be7c484-44a3-0f30-cbed-27033da55193 linux_raid_member
/dev/sdb5 a4cce4c5-96bd-801b-ab66-1a94328e4720 linux_raid_member
=============================== "ls -R /dev/mapper/" output: ===============================
/dev/mapper:
control
md1_crypt
md2_crypt
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/mapper/md2_crypt / ext4 (rw,errors=remount-ro)
/dev/md0 /boot ext4 (rw)
============================== md0/grub/grub.cfg: ==============================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod raid
insmod mdraid
insmod ext2
set root=(md0)
# search --no-floppy --fs-uuid --set fe7150b0-f9a3-4f90-aff4-f41f90457fd9
linux /vmlinuz-2.6.31-14-generic root=/dev/mapper/md2_crypt ro quiet splash
initrd /initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod raid
insmod mdraid
insmod ext2
set root=(md0)
search --no-floppy --fs-uuid --set fe7150b0-f9a3-4f90-aff4-f41f90457fd9
linux /vmlinuz-2.6.31-14-generic root=/dev/mapper/md2_crypt ro single
initrd /initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
==================== md0: Location of files loaded by Grub: ====================
.0GB: grub/core.img
.0GB: grub/grub.cfg
.0GB: initrd.img-2.6.31-14-generic
.0GB: vmlinuz-2.6.31-14-generic
=========================== Unknown MBRs/Boot Sectors/etc =======================
Unknown BootLoader on sda2
<removed>
Unknown BootLoader on sda3
<removed>
Unknown BootLoader on sda5
<removed>
Unknown BootLoader on sdb2
<removed>
Unknown BootLoader on sdb3
<removed>
Unknown BootLoader on sdb5
<removed>
Unknown BootLoader on md2
<removed>
Unknown BootLoader on md1
<removed>
Unknown BootLoader on md3
<removed>