update-grub2
?ls -l /dev/disk/by-uuid
blkid
fdisk -l
to help find out which is the boot partition./etc/fstab
and you will be able to boot again with no issues.Could not find the root block device in UUID=5f7c7e13-2a46-4ae4-a8c0-f77f84e80900
' and stuck,once I try to boot. However, if I type the same device name /dev/sda2
in, the system goes on.I don´t know why. My Gentoo was installed in one partition /dev/sda2
and I mounted /
into /dev/sda2
. fs
as built-in into the kernel ,not as module can solve it.some says rootfs
should be specified in grub after the kernel
command, device name after root
command in grub should be substituted by the UUID
. I did it all, but those didn't work. /etc/fstab
.USB Mass Storage Support
option wasn't masked build-in
when I built my kernel.Hence, it always blocked in that way.If some are in the same boat with me, and you make sure you have compiled all the referenced file system
as built-in
, please check if the options as follows are built-in
in your kernel.Device Driver-->USB Support -->USB Mass Storage Support
Device Driver-->USB Support -->xHCI HCD (USB 3.0) support
Device Driver-->USB Support --> EHCI HCD (USB 2.0) support
Device Driver-->USB Support --> UHCI HCD (most Intel and VIA) support
Device Driver-->USB Support --> Support for Host-side USB
grub.cfg
hd1,msdos2
, ahci1,msdos2
etc. would refer to the second disk. Usually it's the first hd0,msdos1
having the grub installed on /dev/sda
grub-install --recheck /dev/sda
make oldconfig
and let genkernel --no-clean --menuconfig all
do the rest. wget -O /usr/src/linux/.config kernelconfigurl
make oldconfig
. Just hold 'Enter' if you don't know how to answer these. No, nothing bad will happen, it will default to the default answer, which is what you should pick in a generic kernel anyway. genkernel --no-clean --menuconfig all
. In the menu you can modify things if you wish, or you can just exit. And the install will commence. grub-mkconfig -o /boot/grub/grub.cfg
/usr/src/linux
and issue make localmodconfig
. Great, now you have a kernel with only the stuff you will need. Use genkernel to compile the new minimalistic version and install it the same way. CONFIG_FUSION_SPI=Y
.