Gentoo Error: Could not find the root block device in UUID=
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Gentoo Error: Could not find the root block device in UUID=
Hi, I'm new... I,m Max and I are passionate about the world of Linux.
Kindly I have subjected a question to your attention.
I installed Gentoo on a removable hard drive that also contains backups from Windows.
The process I follow is this:
- I started with ubuntu live usb and partitioned the removable hard disk with Gparted as ext4 (in one partition there were backups for Windows and the remaining approximately 59 GB I left for Gentoo)
- I started the minimal CD Gentoo and at startup I partitioned further ext4 partition with fdisk -l / dev / sdb (the removable HD is sdb), creating four primary partitions (sdb1 BIOS-FAT32, sdb2 BOOT-linux, sdb3 swap/linux and sdb4 ROOT-linux) as suggested from Gentoo's handbook
- I followed everything step by step to download the stage3 (and Portage) and unpack (i486, being my PC a little dated - was published in 2006)
- I came with chroot and I manually set the kernel (then compiled manually not using genkernell)
- I installed Grub2
I detect the start of Grub Gentoo, so everything OK, but when the start after just appears a msg like this (I do not remember exactly, but it's very similar):
"Could not find the root block device in UUID = ....................................
Please specify another value or: press Enter for the same, type "shell" for a shell or "q" to skip ... "
and if I type q:
"Mount: Can not find / newroot in / etc / fstab"
It does not detect the root partition?
I state that I tried to edit the grub.cfg inputting, the rows relating to root, / dev / sdb4 instead of numbers UUID ... also, always on the same file, I changed from root = (hd1,4) to root = (hd1,3) - in fact hd1,3 should not match sdb4 (sda is the HD of Windows)? Or maybe Gentoo SDB is always hd0?
The fstab file must be configured properly:
/Dev/sdb2 /boot ext2 defaults 0 2
/Dev/sdb3 swap sw defaults 0 0
/Dev/sdb4 / ext4 noauto 0 1
And 'maybe a problem of compiling the Linux kernel?
At compile time there was an error:
1) The setting of root=/path/to /, or uuid must be correct - Today I'll check it
2) I reinstalled Grub two time;
3) In /boot there is a initrd file and a vmlinuz file... How can I recreate initrd file alone, without reinstalling Grub another time?
It may be that I have to reconfig and recompile kernel? Maybe i misconfigured the kernel and it needs to do it all?
If you can boot some Linu Live CD, open a terminal and enter as root user the command: blkid and it will show the UUID for each partition. Compare this output to the UUID you got in the error message and enter the correct one if they are not the same. You can do this on boot with Grub2. When you see the boot menu, hit the 'e' key on the keyboard to edit. When the menu changes to show the actual informatin from the grub.cfg file, use the keyboard down arrow to get to the line beginning with linux, then the right arrow key to get to the root=UUID and make the change. This is a one time boot entry and if this happens to work, you need to edit a file in /etc/grub.d to make the change permanent.
Interesting that it suggests a FAT32 BIOS partition plus a standard boot partition. Usually a BIOS boot partition is used with GPT and if I understand correctly, is unformatted. Never used Gentoo so???
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.