Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lenovo E570
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ago
Developer
Developer


Joined: 01 Mar 2008
Posts: 1522
Location: Milan, Italy

PostPosted: Sat Jan 05, 2019 2:16 pm    Post subject: Lenovo E570 Reply with quote

Hi there!

I've installed gentoo on a Lenovo E570 which have an nvme disk. I'm not using secure boot / uefi.

The main issue is that when I'm trying to boot selecting the disk device it fails. I discovered I can boot from e.g. a livecd choosing "Boot from a second hd", but the truth is that there aren't 2 hard disk, I don't see 2 disks typing F12 at boot time.
Any ideas?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44153
Location: 56N 3W

PostPosted: Sat Jan 05, 2019 2:59 pm    Post subject: Reply with quote

ago,

If you are booting in legacy (BIOS) mode, I suspect that the legacy BIOS has never been tested with NVME, until you tried.

Are you mixing legacy mode and GPT?

Where does booting fail?
Is there an error from the firmware saying that it can't find an operating system or do you get a Grub menu, then nothing?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ago
Developer
Developer


Joined: 01 Mar 2008
Posts: 1522
Location: Milan, Italy

PostPosted: Sat Jan 05, 2019 3:02 pm    Post subject: Reply with quote

Hi,

I'm using GPT

Typing enter on NVME disk returns nothing like isn't a bootable disk. So I see again the F12 screen.

There arent grub errors, infact when I'm booting from livecd choosing the second disk I don't have issues.


FTR: installing somethink like kubuntu in the same way works as expected
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44153
Location: 56N 3W

PostPosted: Sat Jan 05, 2019 3:28 pm    Post subject: Reply with quote

ago,

Check that the bootable flag is set on the partition in the protective MBR.
BIOS mode will only read the protective MBR.

fdisk -t dos ...
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ago
Developer
Developer


Joined: 01 Mar 2008
Posts: 1522
Location: Milan, Italy

PostPosted: Sat Jan 05, 2019 4:01 pm    Post subject: Reply with quote

I made it from parted, and I made the boot partition bootable:

Code:
Number  Start   End     Size    File system  Name    Flags
 1      1049kB  3146kB  2097kB               grub    bios_grub
 2      3146kB  105MB   102MB   ext4         boot    boot, esp
 3      105MB   250GB   250GB   ext4         rootfs


BTW, I made a pendrive with only grub, to boot from it...and it is the same way, I'm able to boot from the livecd but not from the pendrive as a disk
Back to top
View user's profile Send private message
GenieSpark
n00b
n00b


Joined: 05 Jan 2019
Posts: 3

PostPosted: Sat Jan 05, 2019 6:50 pm    Post subject: Reply with quote

SSD?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44153
Location: 56N 3W

PostPosted: Sat Jan 05, 2019 7:54 pm    Post subject: Reply with quote

ago,

That's your normal GPT partition table.

For example, from my BIOS only, HP Microserver, that boots from a 4TB drive.

Code:
Eccles_2 ~ # fdisk -l /dev/sda
Disk /dev/sda: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors
Disk model: HGST HDN726040AL
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 0DE44267-8564-A24B-B2FF-23A7FDA9C02B

Device         Start        End    Sectors  Size Type
/dev/sda1       2048     124927     122880   60M Linux filesystem
/dev/sda2     124928   27342847   27217920   13G Linux filesystem
/dev/sda3   27342848  175781887  148439040 70.8G Linux filesystem
/dev/sda4  175781888 7814035455 7638253568  3.6T Linux filesystem
Thats the real GPT.

and the protective MBR partition table from the same drive.

Code:
Eccles_2 ~ # fdisk -t dos -l /dev/sda
Disk /dev/sda: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors
Disk model: HGST HDN726040AL
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start        End    Sectors Size Id Type
/dev/sda1  *        1 4294967295 4294967295   2T ee GPT

Partition 1 does not start on physical sector boundary.

Notice the Boot flag on the 'protective' partition, which is all the BIOS sees.
That's the Boot flag that must be set.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ago
Developer
Developer


Joined: 01 Mar 2008
Posts: 1522
Location: Milan, Italy

PostPosted: Sat Jan 05, 2019 8:44 pm    Post subject: Reply with quote

well...the boot flag misses in that place. I added it and now I'm able to see that.....but the problem still remain..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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