Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  grub2 update  (Read 33976 times)

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.838
grub2 update
« Reply #60 on: 2013/02/07, 08:49:18 »
This threat is not really a upgrade warning. The majority of users had no problem with updating to grub2. The ones that do had most probably altered config-files they should not have altered or have issues with LVM/RAID and/or encryption. I will leave this threat here, as it is DE/EN already and therefore fits nowhere else really.

greetz
devil

Offline michaaa62

  • User
  • Posts: 299
grub2 update
« Reply #61 on: 2013/02/07, 10:14:12 »
:twisted:  May be some nasty user or mod might do a little imposition or extra excercise to split this into two or three threads in german and english to clean it.  :twisted:

Offline vilde

  • User
  • Posts: 708
grub2 update
« Reply #62 on: 2013/02/07, 10:27:32 »
Quote from: "devil"
This threat is not really a upgrade warning. The majority of users had no problem with updating to grub2. The ones that do had most probably altered config-files they should not have altered or have issues with LVM/RAID and/or encryption. I will leave this threat here, as it is DE/EN already and therefore fits nowhere else really.

greetz
devil
Thank you devil, that made me understand a little more whats going on.

WhiteDwarf

  • Guest
grub2 update
« Reply #63 on: 2013/02/07, 12:41:46 »
Quote from: Bequimão
Das Problem hatte ich doch auch schon, und es liegt vor dem Öffnen der /root-partition

http://forum.siduction.org/index.php?msg=23397#23397

Bitte gib die englischen Originalfehlermeldungen an, so daß kein Ratespiel entsteht.

Grüße,
Bequimão

Dear all,
for making sure everybody who is interested in this issue, I will hopefully explain a little bit more clear about my setup.

Aim is to setup siduction 2012.2 on a laptop with encryprted LV / VG according to siduction manual. I have done it with aptosid on 3 Laptops years ago.
With the last "dist-upgrade" on one of this laptops,I received the message during "update-grub": "core.img" is to big, can't be installed on MBR of /dev/sda. And it also failed to install into a logical volume.
So I decided to switch completly from aptosid to siduction.

I installed installed Siduction 2012.2 with following LV/VG setup on disk /dev/sda and everything was working well.

This is the LV-Setup:
Code: [Select]
root@spica:/home/markus# lvdisplay
  --- Logical volume ---
  LV Path                /dev/crypt_spica/swap
  LV Name                swap
  VG Name                crypt_spica
  LV UUID                m1gKh1-CrA9-ANAD-x13p-pWxh-DOuJ-9B6Epo
  LV Write Access        read/write
  LV Creation host, time ,
  LV Status              available
  # open                 2
  LV Size                2,00 GiB
  Current LE             512
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3
   
  --- Logical volume ---
  LV Path                /dev/crypt_spica/root
  LV Name                root
  VG Name                crypt_spica
  LV UUID                rt8M3l-HwsN-j0kR-Ihf3-foCe-B9lg-rdwOXq
  LV Write Access        read/write
  LV Creation host, time ,
  LV Status              available
  # open                 1
  LV Size                30,00 GiB
  Current LE             7680
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:4
   
  --- Logical volume ---
  LV Path                /dev/crypt_spica/home
  LV Name                home
  VG Name                crypt_spica
  LV UUID                O1HCCv-tG7w-HXi5-GhVt-1jf2-Bi2O-r1l20r
  LV Write Access        read/write
  LV Creation host, time ,
  LV Status              available
  # open                 1
  LV Size                42,28 GiB
  Current LE             10823
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:5
   
  --- Logical volume ---
  LV Path                /dev/spica/boot
  LV Name                boot
  VG Name                spica
  LV UUID                A3lgeV-1Olh-XGm7-mkD9-gxJh-a967-EzGDw9
  LV Write Access        read/write
  LV Creation host, time ,
  LV Status              available
  # open                 1
  LV Size                252,00 MiB
  Current LE             63
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
   
  --- Logical volume ---
  LV Path                /dev/spica/crypt
  LV Name                crypt
  VG Name                spica
  LV UUID                zkCfkW-7p1c-5c2D-wGHv-Bhj9-wHQt-k5PVLQ
  LV Write Access        read/write
  LV Creation host, time ,
  LV Status              available
  # open                 1
  LV Size                74,28 GiB
  Current LE             19016
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
For having newest packages and firmware for ipw2200, i have made a "apt-get update" and "apt-get dist-upgrade".
Then I received the "update-grub" message, described above once more. For me, it looks like the easiest way seems to downgrade the grub packages to version 1.99 with apt-get install packageXY=version.
It run smoothly through with no error messages.
For being sure, I have made an "update-grub" once more.

But after rebooting the system it stops during boot and is going into initramfs shell.

"vgchange -ay" in the console will activate 2 logical volumes: spica-boot and spica-crypt
"cryptsetup luksOpen /dev/mapper/spica-crypt cryptroot" activates the password sequence and granted access to the crypted LV
"vgchange -ay" will activate now another 3 logical volumes: crypt_spica-root, crypt_spica-home,  crypt_spica-swap

Now I can exit initramfs and the system is booting into runlevel 5.

In "etc/default/grub" I have added a rootdelay of 5 and made "update-grub", but still the same problem during boot.

I tried to pick out the messages as follows:
syslog:
Code: [Select]
Feb  7 10:39:02 spica /USR/SBIN/CRON[18170]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -ignore_readdir_race -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete)
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/50mounted-tests on /dev/sda1
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/10freedos on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica 10freedos: debug: /dev/mapper/crypt_spica-home is not a FAT partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/10qnx on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica 10qnx: debug: /dev/mapper/crypt_spica-home is not a QNX4 partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/20macosx on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica macosx-prober: debug: /dev/mapper/crypt_spica-home is not an HFS+ partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/20microsoft on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica 20microsoft: debug: /dev/mapper/crypt_spica-home is not a MS partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/30utility on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica 30utility: debug: /dev/mapper/crypt_spica-home is not a FAT partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/40lsb on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/70hurd on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/80minix on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/83haiku on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica 83haiku: debug: /dev/mapper/crypt_spica-home is not a BeFS partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/90linux-distro on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/90solaris on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica os-prober: debug: /dev/mapper/crypt_spica-swap: is active swap
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/10freedos on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica 10freedos: debug: /dev/mapper/spica-boot is not a FAT partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/10qnx on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica 10qnx: debug: /dev/mapper/spica-boot is not a QNX4 partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/20macosx on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica macosx-prober: debug: /dev/mapper/spica-boot is not an HFS+ partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/20microsoft on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica 20microsoft: debug: /dev/mapper/spica-boot is not a MS partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/30utility on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica 30utility: debug: /dev/mapper/spica-boot is not a FAT partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/40lsb on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/70hurd on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/80minix on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/83haiku on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica 83haiku: debug: /dev/mapper/spica-boot is not a BeFS partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/90linux-distro on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/90solaris on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/50mounted-tests on /dev/mapper/spica-crypt
Feb  7 10:41:06 spica 50mounted-tests: debug: /dev/mapper/spica-crypt is a LUKS partition; skipping

messages:

Code: [Select]
Feb  7 10:12:44 spica os-prober: debug: os detected by /usr/lib/os-probes/50mounted-tests
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/50mounted-tests on /dev/sda1
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/10freedos on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica 10freedos: debug: /dev/mapper/crypt_spica-home is not a FAT partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/10qnx on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica 10qnx: debug: /dev/mapper/crypt_spica-home is not a QNX4 partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/20macosx on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica macosx-prober: debug: /dev/mapper/crypt_spica-home is not an HFS+ partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/20microsoft on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica 20microsoft: debug: /dev/mapper/crypt_spica-home is not a MS partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/30utility on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica 30utility: debug: /dev/mapper/crypt_spica-home is not a FAT partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/40lsb on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/70hurd on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/80minix on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/83haiku on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica 83haiku: debug: /dev/mapper/crypt_spica-home is not a BeFS partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/90linux-distro on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/90solaris on mounted /dev/mapper/crypt_spica-home
Feb  7 10:41:06 spica os-prober: debug: /dev/mapper/crypt_spica-swap: is active swap
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/10freedos on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica 10freedos: debug: /dev/mapper/spica-boot is not a FAT partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/10qnx on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica 10qnx: debug: /dev/mapper/spica-boot is not a QNX4 partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/20macosx on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica macosx-prober: debug: /dev/mapper/spica-boot is not an HFS+ partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/20microsoft on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica 20microsoft: debug: /dev/mapper/spica-boot is not a MS partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/30utility on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica 30utility: debug: /dev/mapper/spica-boot is not a FAT partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/40lsb on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/70hurd on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/80minix on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/83haiku on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica 83haiku: debug: /dev/mapper/spica-boot is not a BeFS partition: exiting
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/90linux-distro on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/mounted/90solaris on mounted /dev/mapper/spica-boot
Feb  7 10:41:06 spica os-prober: debug: running /usr/lib/os-probes/50mounted-tests on /dev/mapper/spica-crypt
Feb  7 10:41:06 spica 50mounted-tests: debug: /dev/mapper/spica-crypt is a LUKS partition; skipping
Feb  7 10:41:06 spica os-prober: debug: os detected by /usr/lib/os-probes/50mounted-tests
dmesg:
Code: [Select]
.
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 257681
[    0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-3.7-6.towo-siduction-686 root=/dev/mapper/crypt_spica-root ro rootdelay=5 quiet rootdelay=5
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
.
.
.
[  215.950422] Adding 2097148k swap on /dev/mapper/crypt_spica-swap.  Priority:-1 extents:1 across:2097148k
[  215.967817] EXT4-fs (dm-4): re-mounted. Opts: (null)
[  216.836896] EXT4-fs (dm-4): re-mounted. Opts: errors=remount-ro
[  217.651772] fuse init (API version 7.20)
[  219.159324] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: errors=remount-ro
[  219.261545] EXT4-fs (dm-5): mounted filesystem with ordered data mode. Opts: errors=remount-ro
[  220.962901] RPC: Registered named UNIX socket transport module.
[  220.962907] RPC: Registered udp transport module.
[  220.962910] RPC: Registered tcp transport module.
[  220.962912] RPC: Registered tcp NFSv4.1 backchannel transport module.
[  221.006380] FS-Cache: Loaded
[  221.076521] FS-Cache: Netfs 'nfs' registered for caching
[  221.151584] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[  221.226148] 8139too 0000:02:01.0 eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
Sorry, for maybe too long code messages, but for now I dont know further.

I see the problem is that the encrypted LV is not recognized.

It would be nice if you could help.
Thanks and regards,
Markus
« Last Edit: 2013/11/10, 03:17:27 by ayla »

Offline michaaa62

  • User
  • Posts: 299
grub2 update
« Reply #64 on: 2013/02/07, 14:24:01 »
@WhiteDwarf: Please post the 'linux' line from the /etc/grub/grub.cfg file, the content of /etc/crypttab as well as /etc/fstab.
And please give the output of
Code: [Select]
ls -al /dev/disk/by-label
ls -al /dev/disk/by-uuid
ls -al /dev/mapper
to check if the labels and uuids are picked up correctly.

P.S. You would be better of with a dedicated thread of your own... Though grub is part of the boot process, it is just one small part of it.

WhiteDwarf

  • Guest
grub2 update
« Reply #65 on: 2013/02/07, 15:16:23 »
Code: [Select]
root@spica:/home/markus# ls -al /dev/disk/by-uuid
insgesamt 0
drwxr-xr-x 2 root root 140 Feb  7 11:45 .
drwxr-xr-x 5 root root 100 Feb  7 11:40 ..
lrwxrwxrwx 1 root root  10 Feb  7 11:45 0f6bce1f-6c1f-472c-9efd-558bb628bf3e -> ../../dm-5
lrwxrwxrwx 1 root root  10 Feb  7 11:40 131fae7f-72e4-4760-9107-fdc4e0c89671 -> ../../dm-0
lrwxrwxrwx 1 root root  10 Feb  7 11:45 5a8fe144-5178-4216-8a98-6d25d22765da -> ../../dm-4
lrwxrwxrwx 1 root root  10 Feb  7 11:40 79229db4-d606-4f32-9230-713af7e67e1e -> ../../dm-1
lrwxrwxrwx 1 root root  10 Feb  7 11:45 bbf43211-5015-40f8-8377-67d91718be00 -> ../../dm-3


grub.cfg

Code: [Select]
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, mit Linux 3.7-6.towo-siduction-686' --class debian --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod lvm
insmod part_msdos
insmod ext2
set root='(spica-boot)'
search --no-floppy --fs-uuid --set=root 131fae7f-72e4-4760-9107-fdc4e0c89671
echo 'Linux 3.7-6.towo-siduction-686 wird geladen …'
linux /vmlinuz-3.7-6.towo-siduction-686 root=/dev/mapper/crypt_spica-root ro rootdelay=5 quiet rootdelay=5
echo 'Initiale Ramdisk wird geladen …'
initrd /initrd.img-3.7-6.towo-siduction-686
}


cryptab, was empty in the past and has worked well, now I have tried the following:
 
Code: [Select]
# <target> <source> <key> <options>
cryptroot /dev/spica-crypt 79229db4-d606-4f32-9230-713af7e67e1e none luks


fstab
Code: [Select]

UUID=131fae7f-72e4-4760-9107-fdc4e0c89671     /boot                ext4         defaults,relatime,errors=remount-ro           0    2  
UUID=bbf43211-5015-40f8-8377-67d91718be00     none                 swap         sw                                            0    0  
UUID=5a8fe144-5178-4216-8a98-6d25d22765da     /                    ext4         defaults,relatime,errors=remount-ro           0    1  
UUID=0f6bce1f-6c1f-472c-9efd-558bb628bf3e     /home                ext4         defaults,relatime,errors=remount-ro           0    2  

192.168.1.12:/media              /multimedia          nfs          nfsvers=3,rsize=65536,wsize=65536,tcp,noatime,intr
192.168.1.12:/backup             /backup              nfs          nfsvers=3,rsize=65536,wsize=65536,tcp,noatime,intr


PS: I'm not quit sure if devil is happy, when starting a new thread

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.838
grub2 update
« Reply #66 on: 2013/02/07, 15:41:56 »
Let me asure you that if you open a new thread, it will leave me pretty much ummoved emotionaly. ;)

greetz
devil

WhiteDwarf

  • Guest
grub2 update
« Reply #67 on: 2013/02/07, 16:02:31 »
Quote from: "devil"
Let me asure you that if you open a new thread, it will leave me pretty much ummoved emotionaly. ;)

greetz
devil


Hi devil,
if you say so...
I will try to open a new one.

regards,
M.

WhiteDwarf

  • Guest
grub2 update
« Reply #68 on: 2013/02/07, 16:11:08 »
Dear all,
I opened a new thread for this "my problem"

http://forum.siduction.org/index.php?msg=27437#27437

Thanks,
Markus
« Last Edit: 2013/11/10, 02:18:29 by ayla »