Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bootloader won't load [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
Tristelune
n00b
n00b


Joined: 01 May 2015
Posts: 47
Location: Switzerland

PostPosted: Fri Apr 01, 2016 4:08 pm    Post subject: Bootloader won't load [Solved] Reply with quote

Hello,

I have installed Gentoo on a new computer and after the installation, the system doesn't start. I don't even see the menu of the bootloader. The computer
is really new (Lenovo T560), so there is perhaps something different from another installation I did on an old computer. At first I have changed the hard disk and replaced with another one. So I didn't delete the previous system. I simply installed everything on an empty ssd.

There was no error during the installation. I have a GPT partion, with
two partitions and lvm on it. I use lilo, but I can change, for me it doesn' really matter at the moment. I have created a LiveUSB and installed gentoo from it.

Some information:

Code:

# fdisk -l /dev/sda
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: gpt
Disk identifier: 246C8641-3644-8832-4D0518F14449

Device                Start             End                  Sectors          Size          Type
/dev/sda1            2048           309247              307200          150M          Linux filesystem
/dev/sda2           309248       976773134      976463887       465.6G       Linux LVM


My lilo.conf

Code:

boot=/dev/sda           #Install LILO in the MBR
prompt                  # Give the user the chance to select another section
timeout=50              # Wait 10 seconds before booting the default section
default=gentoo          # When the timeout has passed, boot the "gentoo" section

image=/boot/vmlinuz-4.1.15-gentoo-r1
        label=gentoo
        read-only
        initrd=/boot/initramfs-genkernel-x86_64-4.1.15-gentoo
        append="dolvm real_root=/dev/mvg/lvolroot"

image=/boot/vmlinuz-4.1.15-gentoo-r1
        label=gentoo.rescue
        append="init=/bin/bb"   # Launch the gentoo static rescue shell


After running lilo I get:

Code:

# lilo
Warning: LBA32 addressing assumed
Added gentoo   +    *
Added gentoo.rescue
One warning was issued


In the Bios I see "UEFI Bios". I have no experience with UEFI and I don't know if I need to install something different. I have tried to set the option "Uefi/Legacy Boot" to "Legacy Only" with no success. The "Boot Mode" is on "Quick". The "Secure Boot" is "Disabled". In the Boot Order I see "ATA HDD0 Samsung SSD 850 EVO 500 GB", which is my ssd, so no problem. And the system boot from the LiveUSB.

Perhaps I need to install with UEFI, I have done an old installation without UEFI. And I think the first problem is to know why lilo is not loaded. Does anybody has an idea ? Just tell me if you need more information.


Last edited by Tristelune on Mon Apr 04, 2016 7:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Sat Apr 02, 2016 8:32 pm    Post subject: Reply with quote

Using UEFI?
Status of Secure Boot?
Are you planning to Dual Boot with Windows 7 (or with an "upgrade" to Windows 10)?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Tristelune
n00b
n00b


Joined: 01 May 2015
Posts: 47
Location: Switzerland

PostPosted: Sun Apr 03, 2016 1:20 pm    Post subject: Reply with quote

Because it didn't work I have reinstalled it with UEFI. Secure Boot is disabled.

I won't do a dual boot.

After the reinstallation with UEFI and grub2 it's the same problem.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Sun Apr 03, 2016 3:24 pm    Post subject: Reply with quote

The solitary GPT disk on which grub2 is to be installed needs either an ef00 EFI System partition (if using UEFI boot mode) (FAT32 formatted) or an ef02 BIOS boot partition (if using BIOS boot mode) (unformatted) as /dev/sda1..
If making a UEFI system install the livecd/livedvd/liveusb must be bootable in UEFI mode. just created a gentoo minimal install cd; it does not offer to boot in uefi mode. Recommend system rescue cd/usb.
Recommend using UEFI mode and a kernel Imade per https://wiki.gentoo.org/wiki/EFI_stub_kernel . This kernel will be its own boot loader; grub2 not needed If you do decide you need a Boot Manger to allow choice of kernel at boot time; recommend 1. rEFInd 2. efibootmanager, 3. elilo.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Tristelune
n00b
n00b


Joined: 01 May 2015
Posts: 47
Location: Switzerland

PostPosted: Sun Apr 03, 2016 4:09 pm    Post subject: Reply with quote

The first time I did the partition with fdisk and then with parted. After reading your link,
is it recommended to use gdisk ? I have already read elsewhere that using certain tools it won't work.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Sun Apr 03, 2016 4:55 pm    Post subject: Reply with quote

gdisk, parted, gparted, fdisk -- currently all work with gpt disks, I think gdisk is slightly more complete for GPT disks
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Tristelune
n00b
n00b


Joined: 01 May 2015
Posts: 47
Location: Switzerland

PostPosted: Mon Apr 04, 2016 7:18 pm    Post subject: Reply with quote

It works!!!!! :D :D

I didn't manage to get a LiveUSB with UEFI. So I used the LiveUSB from the wiki. I used gdisk to partition my disk. After that I followed the handbook until
the kernel compilation. I wanted to use efibootmgr, but it didn't work. I think it's because my LiveUSB didn't boot with UEFI. So I decided to try efistub. It took me some
time to understand how it works. It's what I did: I compiled my kernel one time. After that, I created a initramfs Like explained in the wiki:

https://wiki.gentoo.org/wiki/EFI_stub_kernel

Because I have installed lvm, I create the initramfs with:

Code:
genkernel --install --lvm --no-compress-initramfs initramfs


After that I gave the following parameters:

Code:

Processor type and features  --->
    [*] Built-in kernel command line
    (dolvm real_root=/dev/mvg/lvolroot rootfstype=ext4)


I compiled it a second time to give the name of the initramfs for the kernel compilation.
After that, I set in the Bios to start the computer with UEFI and it works.

Thank you very much!
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