/srv/irclogs.ubuntu.com/2009/11/07/#ubuntu-kernel.txt

=== johanbr_ is now known as johanbr
bmhmHi, got a question about luks-support in 9.1009:58
bmhmseems to have been altered09:58
bmhmI got a laptop with luks-encrypted partitions. While booting with 9.04's kernel, decrypting works09:58
bmhmdoesn't work when booting with the new kernel09:58
bmhmany ideas?09:58
hyperairstrange, it works for mine nicely10:08
hyperairwhat happens when booting 9.10's kernel?10:09
hyperaircould it be that cryptsetup somehow disappeared and your initrd doesn't have it?10:09
bmhmhmm10:11
bmhmprobably my initramfs is faulty10:11
bmhmbut how did this happen?10:12
bmhmand how do I restore it?10:12
hyperairwait a sec. how is your setup like?10:13
hyperairis root on a luks partition?10:13
bmhmyes it is10:13
bmhm./boot is not10:13
hyperairah10:13
hyperairsimilar to mine thne10:13
hyperairthen*10:13
bmhm./ and ./home are10:13
hyperairlvm?10:13
bmhmno lvm10:13
hyperairah10:13
hyperairso they're separate10:13
hyperairokay, do you have your jaunty kernels around with the same installation, or is your karmic and jaunty installation separate?10:14
hyperair(and you should leave the leading ".". "." stands for "current directory")10:14
bmhmI cant leave .10:16
bmhmat least in IRC10:16
bmhmtry starting a chat message with a slash10:16
bmhm:-)10:16
bmhmyes, it works with my jaunty kernel10:16
bmhmI just saw some issues with ldconfi10:17
bmhmg10:17
hyperair/blah10:17
hyperair;-)10:17
hyperairtry either // or / /10:17
hyperairwell boot using your jaunty kernel and run sudo update-initramfs -u -k all10:18
hyperairsee if that works10:18
bmhmI fixed some library-problems, maybe this is already it. Afterwards, I'll try your suggestion (currently rebooting)10:18
hyperairgood luck10:19
bmhmat least I can now use vim again...10:19
bmhmwhile updating, ldconfig said, my libavahi* and libgpg*-files were empty10:20
hyperairheh10:20
hyperairsoudns like your isntallation's kinda knocked up10:20
bmhmyeah10:20
hyperairi'd install debsums and run a check10:20
bmhmdebsums? never heard of it, i'll try10:20
hyperairit's good for detecting files which differ from what the's installed10:20
bmhmyou wouldn't guess what happened to my fathers laptop10:20
hyperairwhat?10:21
hyperairtossed it out the window and it survived? =p10:21
bmhm/boot was full. But I couldn't remove old kernels, because dpkg --configure -a had no disk space on /boot10:21
bmhm...10:21
bmhmand there was no "resume"-optin10:21
bmhmthe upgrade process just broke10:21
bmhmhow annoying10:23
hyperairah10:24
hyperairyou could dpkg --configure -a again10:24
bmhmdo you have a cipher= option specified in /etc/crypttab?10:24
hyperairit'll continue from where it left off10:24
hyperairno i don't10:24
bmhmI see, maybe this might be an issue10:24
hyperaircryptostuff /dev/sda2 none luks10:24
hyperairthat's the only line there10:24
hyperairaside from the comment10:24
bmhmI see. mayby I'll try to remove that option10:25
hyperairit shouldn't cause issues imo10:26
hyperairthe problem is most probably because dpkg failed10:26
bmhmyeah10:26
hyperairmake sure dpkg completes whatever it's doing10:26
bmhmupdate-initramfs found the crypto devices10:26
hyperairgive /boot more space or whatever10:26
bmhmlet's reboot10:26
bmhmI thought 200MiB are enough for /boot10:26
bmhmbut jaunty had a lot of kernel updates10:27
hyperair/dev/sda1             510M  126M  359M  26% /boot10:27
bmhmI see10:27
hyperair200MiB is kinda cutting it close10:27
hyperairyou can purge some of your kernels10:27
bmhmI did10:27
hyperairthe older ones10:27
hyperairah10:27
bmhmbut...10:27
bmhmI couldn't do via dpkg or aptitude10:27
bmhmsince i had to do dpkg --configure -a first10:28
bmhmand I couldn't execute that because of low disk space10:28
bmhmso I had to remove them via 'rm'10:28
bmhmthat's what bugging me10:28
hyperairlol10:28
hyperairi see10:28
hyperairrm, dpkg --configure -a, then purge10:28
bmhmyeah10:29
bmhmexactly10:29
bmhmfrom SLES, I know `rpm -qf </path/to/file>` and rpm tells, to which pakage this file belongs to10:32
bmhmvery handy10:32
_maksdpkg -S file10:33
bmhmah10:35
bmhmgotto remember that10:35
hyperairor dlocate10:35
hyperairdlocate is a very much faster dpkg -S10:35
bmhmrpm is extremely slow10:35
bmhmboth dlocate and dpkg are probably faster10:36
hyperairheh10:36
hyperairwell dpkg -S takes quite some time10:36
hyperairbut dlocate is almost instantaneous10:36
hyperairit seems dlocate can also do md5sums check10:36
bmhmI guess dlocate builds some sorta hash map10:36
hyperairs10:36
hyperairit does10:36
hyperairno actually it says it keeps a text dump10:36
bmhmo.O10:36
hyperairit says it keeps a text dump from dpkg10:37
bmhmdlocate -l understands regex, hooray!10:37
hyperairand just uses grep10:37
hyperairlol10:37
hyperair$ wc -l dlocatedb10:37
hyperair408412 dlocatedb10:37
hyperairmy my, that's a lot of lines. xD10:37
bmhmgrep is fast then :-P10:38
bmhmI had some issues using grep on AIX, but that's another story10:39
bmhmhyperair: cryptsetup works, thanks!!10:39
hyperairheh10:39
hyperairnp10:39
bmhmin our company we use SLES, AIX, Solaris on servers. on AIX and Solaris there is only ksh88 available. bah!10:40
bmhmby the way, hyperair, have you seen that recent picture of Linus Torvalds in front of a win7-store?10:43
bmhmhttp://tr.im/Eqan10:44
hyperairbmhm: i did, yes.10:51
hyperairit was hilarious10:51
bmhmhyperair: can you help me with another LUKS-Issue?10:59
hyperairwhat's up?10:59
bmhmas I said... no LVM. I am trying to derive keys from root. Works with swap, but won't work with home (both deriving from root)11:00
hyperairwhat do you mean derive keys from root?11:00
bmhmmeans using /lib/cryptsetup/scripts/decrypt_derived as option11:01
hyperairhmm11:02
hyperairnever done anything of that sort O_o11:02
hyperairwhat does it make your crypttab look like?11:02
bmhmerhm wait a mo11:03
bmhmhyperair: http://pastebin.ca/166077211:04
hyperairbmhm: how do you create your cryptsetup volumes?11:17
bmhmit's been some time since I created them11:20
hyperairheh11:22
bmhmdunno, does it really matter?11:24
bmhmhyperair: it works when I remove the script-part from the /home-line. I just have to type the password twice11:25
hyperairhmm11:25
hyperairis there documentation on this script?11:25
bmhmhyperair: just found the issue11:30
bmhmto use a derrived key, it has to be added to the luks header first11:30
hyperair?11:30
hyperairluks header?11:30
hyperairwhat do you mean?11:30
bmhmthe partition header created by luks11:30
bmhmit has to be added via cryptsetup luksAddKey11:31
hyperairi don't understand11:32
hyperairdion't you mean luksFormat?11:32
hyperairoh i get it11:33
hyperairi understand now.11:33
hyperair% /lib/cryptsetup/scripts/decrypt_derived crypt-part > /mnt/crypt-part/key-file11:33
hyperair2.% cryptsetup luksAddKey /dev/sda7 /mnt/crypt-part/key-file11:34
hyperairaha.11:34
bmhmyeah11:34
bmhmi took it from german ubuntuusers-wiki11:34
hyperairah11:34
hyperairwell i faced that problem at first, so i used lvm instead11:34
hyperairi don't regret it, since lvm makes it extremely easy to resize partitions.11:34
hyperairor create new ones11:34
hyperairresizing cryptsetup volumes are kinda.. @_@11:35
bmhmYeah, true11:35
bmhmbut when I created my luks partitions about 1.5 years ago, there was no appropriate tutorial11:35
hyperair1.5 years?11:36
hyperairthat's about the same time i created mine11:36
hyperairthere were cryptsetup/lvm tutorials lying around11:36
bmhmwell... 11:37
hyperairit's a good thing i used lvm anyway, i learnt loads about lvm (and use it for sg.releases.ubuntu.com now)11:37
bmhmtrue11:37
bmhmLVM really is a good thing to have11:37
hyperairyep11:37
bmhmbtrfs will have some interesting features as well, which will interact with LVM11:38
hyperairhmm11:38
hyperairis it?11:38
hyperairinteract with LVM? i thought it was going to provide all kinds of LVM which will make LVM rather useless for it11:38
bmhmah perhaps that's what I meant11:39
bmhmthis is where I get my information from:11:40
bmhmhttp://www.h-online.com/open/features/The-Btrfs-file-system-746597.html11:40
bmhmit's a translation of the german site "heise.de", which is the publisher of the best-known german computer magazine (called "c't").11:41
bmhmbtrfs has also raid built in. I wonder what happens to md,11:41
hyperairit'll be around for legacy file systems i suppose11:47
bmhmdo you know "the h"? great page imho11:50
hyperairnope11:56
hyperairwhat's that11:56
bmhmthe page i just posted an article from12:06
bmhmwell anyway. got to go12:09
bmhmthanks for helping12:09
=== maco_ is now known as maco
=== maco_ is now known as maco
=== nightwis- is now known as nightwish
=== kees__ is now known as kees
=== BenC2 is now known as BenC
=== maco_ is now known as maco
dtchenapw: should I modify build-mkschroot to accept lucid as a valid $SUITE, too?20:42
dtchenugh, this is going to require kludging in a newer debootstrap, too20:42
dtchen...which of course doesn't exist yet.20:43
=== SEJeff_ is now known as SEJeff
Nglool: have you had any complete kernel panics on your 301 in karmic, particularly recently?23:20

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!