Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LILO booting from /dev/nvme0n1 (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
Spanik
Guru
Guru


Joined: 12 Dec 2003
Posts: 455
Location: Belgium

PostPosted: Sat Feb 09, 2019 4:29 pm    Post subject: LILO booting from /dev/nvme0n1 (solved) Reply with quote

I'm setting up my new Supermicro H11SSL-i and I want to use LILO. This motherboard comes with an onboard NVMe M.2 slot. I put an SSD into that for the OS. Took some time to get the options to get that to show in the bios boot menu.

I followed the handbook and choose LILO as the boot manager simply because I always have trouble getting Grub2 to even boot and grub-static seems to be no longer available. First time I'm using it so could be doing a stupid simple mistake. Used the following lilo.conf

Code:
boot=/dev/nvme0n1
prompt
timeout=10
default=gentoo

image=/boot/vmlinuz-4.18.83-gentoo
  label=gentoo
  read-only
  root=/dev/nvme0n1p4


When I run /sbin/lilo I get

Code:
Warning: LBA32 addressing assumes
WARNING: SATA partition in the high region (>15)
LILO needs the kernel in one of the first 15 SATA partitions. If
you need support for kernel in SATA partitions of the high region
than try grub2 for this purpose!
Fatal: Sorry cannot handle device 0x10300


Are there any other options? Like using UUID's? I could add in another SSD on the SATA with just /boot and then put / on the NVMe but I'm afraid that it won't help.
_________________
Expert in non-working solutions


Last edited by Spanik on Thu Feb 14, 2019 8:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Feb 09, 2019 4:39 pm    Post subject: Reply with quote

Spanik,

What is the major device number for /dev/nvme0n1 ?
I suspect its over 255, so lilo can't use it.

/boot on an ordinary SATA drive will work.
lilo will see that and load the kernel. After that, its up to the kernel to mount root.
_________________
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
Spanik
Guru
Guru


Joined: 12 Dec 2003
Posts: 455
Location: Belgium

PostPosted: Sat Feb 09, 2019 8:34 pm    Post subject: Reply with quote

Not sure if this is correct, but "ls -l /dev/nvme0n1" gives

Code:
brw-rw---- 1 root disk 259, 0 Feb 9 18:15 /dev/nvme0n1


So I guess I'mm have to find a working ssd somewhere...
_________________
Expert in non-working solutions
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Feb 09, 2019 8:43 pm    Post subject: Reply with quote

Spanik,

Its just for /boot. Almost anything will do.
_________________
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
Spanik
Guru
Guru


Joined: 12 Dec 2003
Posts: 455
Location: Belgium

PostPosted: Sat Feb 09, 2019 9:46 pm    Post subject: Reply with quote

Well I do have an ssd that can be wiped somewhere, the hd's are already with data on it so I'm not going to mess with those. Most of the job will be putting it inside the case.

Thanks.
_________________
Expert in non-working solutions
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Feb 09, 2019 10:01 pm    Post subject: Reply with quote

Spanik,

You only need 64 Mb, less if you roll your own kernel and initrd.
A USB stick maybe?

That will show up as /dev/sd... which will keep lilo happy.
_________________
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
Spanik
Guru
Guru


Joined: 12 Dec 2003
Posts: 455
Location: Belgium

PostPosted: Thu Feb 14, 2019 8:53 pm    Post subject: Reply with quote

I added the ssd from the previous pc. This turned up as /dev/sdb. Made an MBR style partition table, a single partition of 128MB type 4 and set the boot flag (fdisk with -t dos option). Changed fstab and lilo.conf to /dev/sdb1 and /dev/sdb. Then ran make install and rebooted. Took a looooong time but that seemed to be some checking. Could directly log into the new kernel.

Thanks!

PS: sometimes old methods are the best...
_________________
Expert in non-working solutions
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