Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error on first boot
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
Jacksinsomnia
n00b
n00b


Joined: 16 Oct 2003
Posts: 33

PostPosted: Fri Aug 06, 2004 8:11 pm    Post subject: Error on first boot Reply with quote

I just did a stage 3 install using genkernel and get the following error on the first boot:

Code:

mount: Mounting /dev/hda3 on /newroot failed: Invalid Argument

>> Could not mount specified ROOT, try again
>> The root block device is unspecified or not detected

      Please specify a device to boot, "shell" for a shell

boot() ::


When I try /dev/hda3 at the prompt I get the exact same error.
I can boot off the live cd and mount both the root and boot file systems just fine.
Here is my grub.conf:
Code:

default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.4.26-r6
root (hd0,0)
kernel /kernel-2.4.26-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_r
oot=/dev/hda3
initrd /initrd-2.4.26-gentoo-r6


And my /etc/fstab:
Code:

# <fs>                  <mountpoint>    <type>          <opts>                  <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1               /boot           ext2            noauto,noatime          1 2
/dev/hda3               /               ext3            noatime                 0 1
/dev/hda2               none            swap            sw                      0 0
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,user             0 0
#/dev/fd0               /mnt/floppy     auto            noauto                  0 0

# NOTE: The next line is critical for boot!
none                    /proc           proc            defaults                0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none                    /dev/shm        tmpfs           defaults                0 0
Back to top
View user's profile Send private message
_Nomad_
Guru
Guru


Joined: 11 Apr 2003
Posts: 571

PostPosted: Fri Aug 06, 2004 8:21 pm    Post subject: Reply with quote

I'd suggest changing grub.conf to the following:
Code:
default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
 
title=Gentoo Linux 2.4.26-r6
root (hd0,0)
kernel (hd0,0)/boot/kernel-2.4.26-gentoo-r6 root=/dev/hda3

and see if that works...
Back to top
View user's profile Send private message
Jacksinsomnia
n00b
n00b


Joined: 16 Oct 2003
Posts: 33

PostPosted: Fri Aug 06, 2004 8:32 pm    Post subject: Reply with quote

_Nomad_ wrote:
I'd suggest changing grub.conf to the following:
Code:
default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
 
title=Gentoo Linux 2.4.26-r6
root (hd0,0)
kernel (hd0,0)/boot/kernel-2.4.26-gentoo-r6 root=/dev/hda3

and see if that works...


No Luck, I get a kernel panic
Back to top
View user's profile Send private message
_Nomad_
Guru
Guru


Joined: 11 Apr 2003
Posts: 571

PostPosted: Fri Aug 06, 2004 8:34 pm    Post subject: Reply with quote

kernel panic??! then there's something wrong with the kernel... I'm not familiar with how genkernel works so I'd suggest building one yourself... It's really not that hard...
Back to top
View user's profile Send private message
Jacksinsomnia
n00b
n00b


Joined: 16 Oct 2003
Posts: 33

PostPosted: Fri Aug 06, 2004 8:56 pm    Post subject: Reply with quote

_Nomad_ wrote:
kernel panic??! then there's something wrong with the kernel... I'm not familiar with how genkernel works so I'd suggest building one yourself... It's really not that hard...


I unemerged grub and setup lilo and now it works just fine. Weird.
Back to top
View user's profile Send private message
_Nomad_
Guru
Guru


Joined: 11 Apr 2003
Posts: 571

PostPosted: Sat Aug 07, 2004 4:54 am    Post subject: Reply with quote

wel... as long as it works :lol:
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