Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem trying to boot after install
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
aratis
n00b
n00b


Joined: 29 Jan 2004
Posts: 20

PostPosted: Thu Jan 29, 2004 12:46 am    Post subject: Problem trying to boot after install Reply with quote

I have finished most of the install process, and was booting up for the first time, and I get this

Gentoo initrd startup.....
STEP 1: Command-line parsing
STEP 2: Module loading
-----Scanning for sbp2...no such module loaded
STEP 3: Mounting necessary filesystems per boot options
Started device management daemon v1.3.25 for /dev
STEP 4: Determining root device
STEP 4a: Mounting root
mount: Mounting /dev/hda4 on /newroot failed: Invalid argument
Could not mount specified ROOT, try again
Root block device unspecified or not detected.
Please specify a device to boot, or "shell" for a shell.




I have tried doing the install twice now, both times ending in the same result. First time i used the gentoo-sources for the 2.4 kernel and genkernel install, second time i tried the gaming-sources 2.4.20 kernel and genkernel again. I tried manually compiling, but it kept kicking out on errors, (probably not quite up to that yet hehe)

How can I get back into the later parts of the installation to edit things without having to redo the whole thing. When i insert the live CD to boot, there is nothing on root. How can i get access to the filesystem on my harddrive? Any help would be appreciated, thanks :)
Back to top
View user's profile Send private message
mwhahaha
n00b
n00b


Joined: 29 Jan 2004
Posts: 13
Location: Woodland Hills, CA

PostPosted: Thu Jan 29, 2004 12:55 am    Post subject: Reply with quote

I am also having the same problem on a dell 650. I've installed it flawlessly on dell 650's with scsi, but everytime i go to install an IDE with the following drive setup it does not work:
/dev/hda1 /boot ext3 (500M)
/dev/hda2 swap (2gig)
/dev/hda3 /var ext3 (10gig)
/dev/hda4 / ext3 (remainder either 35gig or 45gig)

8O

edit: i have infact put the real_root, etc in my grub.conf. doesn't do a thing


Last edited by mwhahaha on Thu Jan 29, 2004 1:02 am; edited 1 time in total
Back to top
View user's profile Send private message
isoaga
Apprentice
Apprentice


Joined: 31 Oct 2002
Posts: 206
Location: Newcastle, Australia

PostPosted: Thu Jan 29, 2004 12:58 am    Post subject: Reply with quote

In order to get back to the filesystem you created on your harddrive you have to chroot into it. Something like this

After you have booted with the live cd and you get a promt do (replace hda4 with the root partition you created)

Code:

mount /dev/hda4 /mnt/gentoo
chroot /mnt/gentoo
env-update


then you can just type "exit" to go back to the livecd environment. Oh, remember you will have to mount your boot partition i you want ot change kernels or whatever. You can do this either from the livecd before chrooting or after, eg

For before chroot
Code:

mount /dev/hda2 /mnt/gentoo/boot


For after (provided your /etc/fstab file is correct)
Code:

mount /boot


Hope this helps...
Back to top
View user's profile Send private message
isoaga
Apprentice
Apprentice


Joined: 31 Oct 2002
Posts: 206
Location: Newcastle, Australia

PostPosted: Thu Jan 29, 2004 1:08 am    Post subject: Re: Problem trying to boot after install Reply with quote

I'm not sure but why is mount trying to mount /dev/hda4 to "/newroot" not "/"

aratis wrote:

Gentoo initrd startup.....
STEP 1: Command-line parsing
STEP 2: Module loading
-----Scanning for sbp2...no such module loaded
STEP 3: Mounting necessary filesystems per boot options
Started device management daemon v1.3.25 for /dev
STEP 4: Determining root device
STEP 4a: Mounting root
mount: Mounting /dev/hda4 on /newroot failed: Invalid argument
Could not mount specified ROOT, try again
Root block device unspecified or not detected.
Please specify a device to boot, or "shell" for a shell.
Back to top
View user's profile Send private message
mwhahaha
n00b
n00b


Joined: 29 Jan 2004
Posts: 13
Location: Woodland Hills, CA

PostPosted: Thu Jan 29, 2004 1:11 am    Post subject: Reply with quote

probably because / is taken up by the initrd image and so what it does is mount root then do like a chroot to it. but that's just conjecture. either way this new genkernel annoys me :evil:
Back to top
View user's profile Send private message
aratis
n00b
n00b


Joined: 29 Jan 2004
Posts: 20

PostPosted: Thu Jan 29, 2004 3:28 am    Post subject: Reply with quote

I will try that, thanks alot
Back to top
View user's profile Send private message
dmack
n00b
n00b


Joined: 15 Feb 2004
Posts: 1

PostPosted: Sun Feb 15, 2004 5:02 pm    Post subject: RE: Root block device unspecified or not detected error Reply with quote

I just installed kernel 2.4.22-gentoo-rc5 and during the install I emerged genkernel version 3.0.1_beta11. After going through the install instructions, I found that the genkernel had changed dramatically (from the instructions shipped with the 1.4 Live CD). The kernel compile process completed successfully using "genkernel all". The problem, however, was that on boot, I continued to get the "Root block device unspecified or not detected" error.

After reading some of the posts on this, I went back and made sure that reiserfs support was built into the kernel. Still no luck. Finally, I tried re-compiling the kernel using the "genkernel --menuconfig all" option again. The build finished successfully and what to my wondering newb eyes did appear after the compile completed?

add:
root=/dev/ram0 init=/linuxrc real_root=/dev/$ROOT (where $root is what you specified in fstab)

After thumping my head a few times, I modified the kernel line to read:
kernel (hd0,0)/boot/kernel-2.4.22-gentoo-rc5 root=/dev/ram0 init=/linuxrc real_root=/dev/hda3

Worked like a charm, your mileage may vary.
Back to top
View user's profile Send private message
second_exodous
Guru
Guru


Joined: 09 May 2003
Posts: 479
Location: Salt Lake City, UT USA

PostPosted: Thu Feb 19, 2004 11:18 pm    Post subject: Reply with quote

Hmm, things have changed since I installed Gentoo on my notebook. This is a fresh install on a old pc (well, 2 years old) and I'm getting the same error with step 2 having much more:

Quote:
STEP 2: Module loading
-----Scanning for sbp2...no such module loaded
STEP 3: Mounting necessary filesystems per boot options
Started device management daemon v1.3.25 for /dev
STEP 4: Determining root device
STEP 4a: Mounting root
mount: Mounting /dev/hd3 on /newroot failed: Invalid argument
Could not mount specified ROOT, try again
Root block device unspecified or not detected.
Please specify a device to boot, or "shell" for a shell.


I went in and checked grub.conf and /etc/fstab and both are ok, I even changed the order around from this:

Code:
kernel (hd0,0)/boot/kernel-2.4.22-gentoo-r7 root=/dev/ram0 real_root=/dev/hda3 init=/linuxrc


To this:

Code:
kernel (hd0,0)/boot/kernel-2.4.22-gentoo-rc7 root=/dev/ram0 init=/linuxrc real_root=/dev/hda3


Basically switching real_root and init.

Is it necessary to compile my kernel with this command:

Quote:
genkernel --menuconfig all


Rather than:

Quote:
genkernel all --menuconfig


Once again just shuffling around commands, does that make a differnce?

Thanx,
Stan
Back to top
View user's profile Send private message
second_exodous
Guru
Guru


Joined: 09 May 2003
Posts: 479
Location: Salt Lake City, UT USA

PostPosted: Fri Feb 20, 2004 12:14 am    Post subject: Reply with quote

Ok, here's the fix for this problem, if you have this problem chroot back in with the live cd and recompile your kernel:

genkernel all --menuconfig

and go to file systems, and make reiserfs compiled in rathter than a module.

Thanx,
Stan
Back to top
View user's profile Send private message
peter96362930
Tux's lil' helper
Tux's lil' helper


Joined: 26 Oct 2003
Posts: 141
Location: S.E. Asia

PostPosted: Sun Feb 22, 2004 12:44 pm    Post subject: Reply with quote

Thanks. Recompiling reiserfs support into the kernel (not as a module) solved this problem for me.
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