View previous topic :: View next topic |
Author |
Message |
simapple n00b
Joined: 15 Aug 2022 Posts: 4
|
Posted: Tue Aug 16, 2022 1:01 am Post subject: block device is not a valid block device |
|
|
I am trying install gentoo,edit existing grub configration:
Code: |
menuentry "gentoo install" {
insmod lvm
insmod ext2
set root="lvm/debian--vg-root"
set isofile=($root)"/install-amd64-minimal-20220807T170536Z.iso"
bootoptions="isoboot=$isofile root=/dev/ram0 init=/linuxrc dokeymap docache dosshd looptype=squashfs loop=/image.squashfs cdroot "
loopback loop $isofile
linux (loop)/boot/gentoo $bootoptions
initrd (loop)/boot/gentoo.igz
}
|
but after booting and loading kernel success,it occurs an error:
Media not found
Could not find CD to boot, something else needed!
Block device is not a valid root device
Could not find the root block device in .
Please specify another value or : |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3874
|
Posted: Tue Aug 16, 2022 10:09 am Post subject: |
|
|
Welcome to the Forums!
Your grub entry seems wrong.
This is live cd grub not your Gentoo grub.
You need initramfs to boot into lvm root.
Do you have one?
Make sure its in /boot directory
You also might need
Code: |
GRUB_PRELOAD_MODULES="lvm"
|
Plz post your /etc/default/grub
Plz run
Code: |
grub-mkconfig -o /boot/grub/grub.cfg
|
from INSIDE your chrooted Gentoo system.
Do not copy from live cd.
What exactly are you trying to do?
Plz follow the Wiki exactly.
It is best if you avoided shortcuts. _________________
|
|
Back to top |
|
|
simapple n00b
Joined: 15 Aug 2022 Posts: 4
|
Posted: Wed Aug 17, 2022 3:45 am Post subject: |
|
|
My computer has been installed debian os,I want to install gentoo by installation iso file on disk.
The debian os use lvm.Using current grub configration , that could boot and load iso file from lvm disk.
Gentoo install progress went success.After selected keymap, the error occurred and install progress was interrupted.
alamahant wrote: | Welcome to the Forums!
Your grub entry seems wrong.
This is live cd grub not your Gentoo grub.
You need initramfs to boot into lvm root.
Do you have one?
Make sure its in /boot directory
You also might need
Code: |
GRUB_PRELOAD_MODULES="lvm"
|
Plz post your /etc/default/grub
Plz run
Code: |
grub-mkconfig -o /boot/grub/grub.cfg
|
from INSIDE your chrooted Gentoo system.
Do not copy from live cd.
What exactly are you trying to do?
Plz follow the Wiki exactly.
It is best if you avoided shortcuts. |
|
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Wed Aug 17, 2022 8:56 am Post subject: |
|
|
Hi,
since you have a running debian, why not continue installing gentoo from a shell within the debian installation? Its the same procedure, just without booting the livecd/dvd/usb... ist just like starting with chapter 11 in the install handbook (if you dont have partitions already):
https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#Partitioning_the_disk_with_GPT_for_UEFI
Greetings, Stefan _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
simapple n00b
Joined: 15 Aug 2022 Posts: 4
|
Posted: Thu Aug 18, 2022 1:02 am Post subject: |
|
|
Yes,it's a good idea. I was lost the way.
But I am still curious about why could not boot and go into gentoo installation shell by booting from iso. |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Thu Aug 18, 2022 5:24 am Post subject: |
|
|
Hi,
i tested a bit around and this is working for me. But you need to adapt this to your paths and your LVM config:
Code: |
menuentry "Gentoo Minimal ISO" --class gentoo --class gnu-linux --class gnu --class os {
loopback loop /gentoo.iso
linux (loop)/boot/gentoo root=/dev/ram0 init=/linuxrc dokeymap looptype=squashfs loop=/image.squashfs cdroot initrd=/boot/gentoo.igz isoboot=/gentoo.iso
initrd (loop)/boot/gentoo.igz
}
|
Greetings Stefan _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
|