LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 01-13-2016, 09:27 AM   #1
Max__
LQ Newbie
 
Registered: Jan 2016
Posts: 4

Rep: Reputation: Disabled
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:

"Sys-devel / bin86-0.16.21 :: gentoo failed (compile phase)
emake failed "

I thank all those who want me to help.
Greetings
 
Old 01-13-2016, 01:31 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,350

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
Code:
"Could not find the root block device in UUID = <blah>
The problem is that the kernel cannot find the / filesystem. Causes
  1. The setting of root=/path/to /, or uuid = should be done directly after the line in grub which specifies the kernel. Check it.
  2. Grub could be misconfigured
  3. Your kernel might need an initrd and you mightn't have one.
 
Old 01-14-2016, 02:21 AM   #3
Max__
LQ Newbie
 
Registered: Jan 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi and thank you very much for reponse...:

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?

Thank you
 
Old 01-14-2016, 06:55 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,350

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
I'm not familiar with grub2 (laziness) but usually, after the kernel line, you can put the initrd.
Quote:
kernel=some-kernell root = /some-disk
initrd = /path/to/initrd
Use the one that's there unless it throws an error.
 
Old 01-14-2016, 07:40 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,534

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Quote:
"Could not find the root block device in UUID =
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???
 
Old 01-14-2016, 08:26 AM   #6
Max__
LQ Newbie
 
Registered: Jan 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
The UUID is the same than that on grub.cfg
The initrd path it is correct on grub.cfg.

Today i redid the procedure, and in phase of emerge "sys-apps/pciutils" there was an error that I first ignored:

"Failed to emerge sys-apps/pciutils-3.3.1 - emake failed"

And in phase of compiling kernel this error, that I had ignored:

"failed to emerge sys-devel/bin86-0.16.21 - emake failed"

Are these important?

Thanks a lot
 
Old 01-15-2016, 06:44 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,350

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
They probably are. You need to get a Debian head to comment on it though.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Couldn't find the device with uuid jungo920 Linux - Server 6 07-23-2015 03:43 AM
initramfs don't find my root block device Olaf35 Gentoo 3 10-06-2014 05:16 PM
Cannot open root device “nfs” or unknown-block(2,0): error -6 mcha Linux - Newbie 7 08-06-2014 11:10 AM
Couldn't find device with uuid rookee Linux - Enterprise 4 06-30-2014 08:38 PM
problem with installing linux gentoo with a "root block device" AKAKAK Linux - Distributions 15 10-23-2007 05:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration