Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo dual-boot w/ Gentoo, vmlinuz not found [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6315
Location: /usr/lib64/lv2

PostPosted: Wed Dec 09, 2015 9:02 pm    Post subject: Gentoo dual-boot w/ Gentoo, vmlinuz not found [SOLVED] Reply with quote

I'm trying to set up a dual boot of Gentoo with Gentoo. The reason for this is I've moved my development of Gentoo Studio from swapping out a physical drive in a laptop to using a hard drive in my actually computer DAW. I've tested the second Gentoo installation by switching the boot disk in the BIOS, and it works. What doesn't work is grub2 on my primary drive actually booting the second install. grub2-mkconfig finds it, but apparently does not assign it the correct params to get it booted, so it ends with a cannot find vmlinuz error.

I'm having trouble figuring out exactly how I need to tweak grub.cfg. Here's the entry for the second Gentoo installation:

Code:

menuentry 'Gentoo Base System release 2.2 (on /dev/sdd4)' --class gnu-linux --class gnu --class os $menuentry_id_option
 'osprober-gnulinux-simple-d097f211-ec2b-40e0-a60f-e44c4d9b7111' {
        insmod part_gpt
        insmod ext2
        set root='hd3,gpt4'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd3,gpt4 --hint-efi=hd3,gpt4 --hint-baremetal=ahci3,gpt4
 d097f211-ec2b-40e0-a60f-e44c4d9b7111
        else
          search --no-floppy --fs-uuid --set=root d097f211-ec2b-40e0-a60f-e44c4d9b7111
        fi
        linux /boot/vmlinuz-4.1.5-rt-rt5 root=/dev/sdd4
}


(Copied from nano -$ to avoid line wrap.)

Here's my fdisk -l. The disk for the second Gentoo install is sdd.

Code:

Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x000225f0

Device     Boot Start        End    Sectors   Size Id Type
/dev/sdb1        2048 1953525167 1953523120 931.5G 83 Linux


Disk /dev/sdc: 74.5 GiB, 80026361856 bytes, 156301488 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: D52B1AFB-E087-44DE-8645-5C6FD438D3E0

Device       Start       End   Sectors  Size Type
/dev/sdc1     2048      6143      4096    2M BIOS boot
/dev/sdc2     6144    268287    262144  128M Linux swap
/dev/sdc3   268288   1316863   1048576  512M Microsoft basic data
/dev/sdc4  1316864 156299439 154982576 73.9G Microsoft basic data


Disk /dev/sdd: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: CF8F07C9-5079-42E4-8953-5FB575B0DC11

Device         Start       End   Sectors   Size Type
/dev/sdd1       2048      6143      4096     2M BIOS boot
/dev/sdd2       6144    268287    262144   128M EFI System
/dev/sdd3     268288   1316863   1048576   512M Linux filesystem
/dev/sdd4    1316864 121563135 120246272  57.3G Linux filesystem
/dev/sdd5  121563136 976773119 855209984 407.8G Microsoft basic data


Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x3c6430ed

Device     Boot  Start       End   Sectors   Size Id Type
/dev/sda1  *      2048    206847    204800   100M  7 HPFS/NTFS/exFAT
/dev/sda2       206848 976771071 976564224 465.7G  7 HPFS/NTFS/exFAT


How should I figure out how to fix the grub.cfg entry?

EDIT:

Figured it out. grub2-mkconfig assigned the wrong uuid, so I did

Code:

cd /dev/disk/by-uuid
ls -lah


That showed me which partition had which uuid. The uuid needed to boot the second Gentoo install was incorrect in grub.cfg. Manually changing that to the correct one and removing "/boot" from the vmlinuz line did the trick.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum