You are not logged in.
Pages: 1
Hello People,
I am currently having a dual boot with Windows & Ubuntu, and now I wish to have a triple boot with Arch Linux and keeping my Grub installation from Ubuntu.
The problem now is when I try to boot over Arch, I get an error message "missing "boot/vmlinuz-linux", follow by a "bad magic alloc" error.
My installation was made over a ~110 GB partition, split in LVM partitions as such:
# lsblk -f
...
└─sdb12 LVM2_member L3OFvG-E1dk-rNzx-etkr-Ruvb-An0N-1N41E1
├─Grp01-lvolroot ext4 22405dfc-4edd-4379-a2c7-ebeedbac3f63 /mnt
├─Grp01-lvolhome ext4 6be083f2-8bee-47d8-b1ea-fdc0d4cf8cf9 /mnt/home
├─Grp01-lvoletc ext4 29b92356-0bea-453b-9538-4d11952d3de6 /mnt/etc
├─Grp01-lvolboot ext2 59dc2132-3c7e-47fa-9825-8739b58d1242 /mnt/boot
└─Grp01-lvolswap swap 4a16f8c2-9a9e-4b3c-b779-f788d353fd7d
...# pvdisplay
--- Physical volume ---
PV Name /dev/sdb12
VG Name Grp01
PV Size 109,06 GiB / not usable 3,00 MiB
Allocatable yes
PE Size 4,00 MiB
Total PE 27919
Free PE 783
Allocated PE 27136
PV UUID L3OFvG-E1dk-rNzx-etkr-Ruvb-An0N-1N41E1# vgdisplay
--- Volume group ---
VG Name Grp01
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 8
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 5
Open LV 4
Max PV 0
Cur PV 1
Act PV 1
VG Size 109,06 GiB
PE Size 4,00 MiB
Total PE 27919
Alloc PE / Size 27136 / 106,00 GiB
Free PE / Size 783 / 3,06 GiB
VG UUID i8z17c-1GqI-Rz6H-ADDX-Zn5p-JvQO-dstWUk# lvdisplay
--- Logical volume ---
LV Path /dev/Grp01/lvolroot
LV Name lvolroot
VG Name Grp01
LV UUID Bv8gXB-D7li-j8gb-nXJg-KRTW-GaUJ-O1QfKJ
LV Write Access read/write
LV Creation host, time archiso, 2017-03-11 20:04:28 +0100
LV Status available
# open 1
LV Size 60,00 GiB
Current LE 15360
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
--- Logical volume ---
LV Path /dev/Grp01/lvolhome
LV Name lvolhome
VG Name Grp01
LV UUID Ud2ngI-C9lz-FL9k-t0VP-10hx-LKHn-64ThfW
LV Write Access read/write
LV Creation host, time archiso, 2017-03-11 20:04:43 +0100
LV Status available
# open 1
LV Size 40,00 GiB
Current LE 10240
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1
--- Logical volume ---
LV Path /dev/Grp01/lvoletc
LV Name lvoletc
VG Name Grp01
LV UUID TEBDxY-ERYl-RJxJ-jylk-ukLS-AhaA-X1eOdV
LV Write Access read/write
LV Creation host, time archiso, 2017-03-11 20:05:06 +0100
LV Status available
# open 1
LV Size 2,00 GiB
Current LE 512
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:2
--- Logical volume ---
LV Path /dev/Grp01/lvolboot
LV Name lvolboot
VG Name Grp01
LV UUID 0DB5oe-j7Rc-lss5-VjDe-UwTO-6Hne-0tK1sw
LV Write Access read/write
LV Creation host, time archiso, 2017-03-11 20:05:22 +0100
LV Status available
# open 1
LV Size 2,00 GiB
Current LE 512
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:3
--- Logical volume ---
LV Path /dev/Grp01/lvolswap
LV Name lvolswap
VG Name Grp01
LV UUID x1YOJp-QDde-qomh-jSI0-OABc-RiDr-qGmN5j
LV Write Access read/write
LV Creation host, time archiso, 2017-03-11 20:07:48 +0100
LV Status available
# open 0
LV Size 2,00 GiB
Current LE 512
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:4# tree /mnt/boot
/mnt/boot
├── grub
│ ├── grub.cfg
│ └── grub.cfg.example
├── initramfs-linux-fallback.img
├── initramfs-linux.img
├── lost+found
└── vmlinuz-linux
2 directories, 5 filesHere is the boot record for Grub (to note that the initial configuration was pointing at the UUID of the root partition, I modified it so it points to the /boot partition, even though the result is the same):
insmod part_gpt
insmod lvm
insmod ext2
set root='lvmid/i8z17c-1GqI-Rz6H-ADDX-Zn5p-JvQO-dstWUk/0DB5oe-j7Rc-lss5-VjDe-UwTO-6Hne-0tK1sw'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/i8z17c-1GqI-Rz6H-ADDX-Zn5p-JvQO-dstWUk/0DB5oe-j7Rc-lss5-VjDe-UwTO-6Hne-0tK1sw' 59dc2132-3c7e-47fa-9825-8739b58d1242
else
search --no-floppy --fs-uuid --set=root 59dc2132-3c7e-47fa-9825-8739b58d1242
fi
linux /boot/vmlinuz-linux root=UUID=59dc2132-3c7e-47fa-9825-8739b58d1242 rw quiet
initrd /boot/initramfs-linux.imgWhile setting up Arch from the ISO, I also made sure to add 'lvm2' in the hooks of /etc/mkinitcpio.conf, and regenerated the vmlinuz.
I'm a bit lost right now and kind of spend the whole day trying to figure out why it was not working but with no luck.
Is anyone able to help me on this matter ?
Thanks.
P.S: I did not install Arch using EFI.
Last edited by Ra'Jiska (2017-03-11 20:51:38)
Offline
Have you configured grub to preload lvm module?
Offline
I actually did not as there is the insmod lvm2 in grub.
However, I finally found what was the issue:
The line
linux /boot/vmlinuz-linux root=UUID=59dc2132-3c7e-47fa-9825-8739b58d1242 rw quiethad to be replaced for:
linux /boot/vmlinuz-linux root=/dev/mapper/Grp01-lvolroot rw quietI also had another issue which prevented me to boot my system as login service timed out and because all the changes I did in installation (localtime, locales, etc...) weren't applied.
This was because I used /etc in another partition and it appears it isn't supported, I therefore had to leave a / partition with its /etc folder together.
Thanks for your help.
Last edited by Ra'Jiska (2017-03-12 15:24:01)
Offline
Pages: 1