View previous topic :: View next topic |
Author |
Message |
bldurling n00b
Joined: 28 Aug 2004 Posts: 3 Location: Pennsylvania, USA
|
Posted: Sat Aug 28, 2004 2:13 am Post subject: Mounting /dev/hda3 on /newroot failed |
|
|
Just when I thought I was so close!
I've tried installing Gentoo Linux on my noname laptop. When I tried booting of the hard disk I get the following message:
Code: | >> Mounting filesystems...
Started device management daemon v1.3.25 for /dev
>> Determining root device...
>> Mounting root...
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, or "shell" for a shell...
boot () :: |
I can't get the system started from here. I've looked around on the forums, google and newsgroups and I've tried a number of different hacks on my grub.conf and fstab. Nothing so far has worked. I've included my fstab and grub.conf below along with the listing output of fdisk. If anyone has an idea of how I can get gentoo booted that would be great.
Thanks.
cheers,
Bruce
* /boot/grub/grub.conf
Code: | default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.4.26-r9
root (hd0,0)
kernel /kernel-2.4.26-gentoo-r9 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3
initrd /initrd-2.4.26-gentoo-r9 |
* /etc/fstab
Code: | # /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
/dev/hda1 /boot ext2 noauto,noatime 1 2
/dev/hda2 none swap sw 0 0
/dev/hda3 / ext3 noatime 0 1
/dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT /boot ext2 noauto,noatime 1 1
#/dev/ROOT / xfs noatime 0 0
#/dev/SWAP none swap sw 0 0
#/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 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 |
* fdisk listing
Code: | Disk /dev/hda: 20.0 GB, 20003880960 bytes
255 heads, 63 sectors/track, 2432 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 5 40131 83 Linux
/dev/hda2 6 68 506047+ 82 Linux swap
/dev/hda3 69 2432 18988830 83 Linux |
|
|
Back to top |
|
|
cching1112 n00b
Joined: 26 Aug 2004 Posts: 32
|
Posted: Sat Aug 28, 2004 2:24 am Post subject: |
|
|
Have the same error with you. Can any one help?? |
|
Back to top |
|
|
klevermoniker n00b
Joined: 24 Aug 2004 Posts: 1 Location: Chicag
|
Posted: Sat Aug 28, 2004 2:32 am Post subject: |
|
|
Me three _________________ I am klevermoniker, and I am a windows user |
|
Back to top |
|
|
count_zero Guru
Joined: 17 May 2004 Posts: 460 Location: Little Rock, Arkansas, USA
|
Posted: Sat Aug 28, 2004 4:10 am Post subject: |
|
|
I realize you must be running genkernel, but you might just try changing grub.conf to read like this, just to see if it boots.
Code: | title=Gentoo Linux 2.4.26-r9
root (hd0,0)
kernel /kernel-2.4.26-gentoo-r9 root=/dev/hda3
|
_________________ "We must all hang together, or assuredly we shall all hang separately."
-Ben Franklin |
|
Back to top |
|
|
bldurling n00b
Joined: 28 Aug 2004 Posts: 3 Location: Pennsylvania, USA
|
Posted: Sat Aug 28, 2004 4:40 am Post subject: |
|
|
Thank you Count_Zero, my Gibsonian Friend!
It does indeed boot now. There are some other problems with the networking that I'll take a look at next. Should I change my grub.conf to this permanently? I also removed the line that had:
Code: | initrd /initrd-2.4.26-gentoo-r9 |
Is this correct as well? I don't really know much about grub, so I don't know what the consequences of removing this line are.
Thank you again for your help.
cheers,
Bruce
count_zero wrote: | I realize you must be running genkernel, but you might just try changing grub.conf to read like this, just to see if it boots.
Code: | title=Gentoo Linux 2.4.26-r9
root (hd0,0)
kernel /kernel-2.4.26-gentoo-r9 root=/dev/hda3
|
|
|
|
Back to top |
|
|
bldurling n00b
Joined: 28 Aug 2004 Posts: 3 Location: Pennsylvania, USA
|
Posted: Sat Aug 28, 2004 5:10 am Post subject: |
|
|
Oh, and I am running a kernel from genkernel.
Thanks again.
cheers,
Bruce |
|
Back to top |
|
|
count_zero Guru
Joined: 17 May 2004 Posts: 460 Location: Little Rock, Arkansas, USA
|
Posted: Sat Aug 28, 2004 6:15 am Post subject: |
|
|
Those extra lines in grub are for fancy things that genkernel likes to do, such as bootsplash. The initrd line points toward the image that would show on the screen while the computer boots, rather than the kernel messages that scroll across the screen. It looks nice, but obviously not essential. I'm not sure what the other options do, they're not needed with a custom-compiled kernel (I've never used genkernel). If you would like to get bootsplash/gensplash working, check out this topic:
https://forums.gentoo.org/viewtopic.php?t=206778&highlight=gensplash
It's not too difficult (just 5 easy steps!), and there are lots of people willing to help you through it. Best of luck! _________________ "We must all hang together, or assuredly we shall all hang separately."
-Ben Franklin |
|
Back to top |
|
|
MartyParish n00b
Joined: 08 Oct 2004 Posts: 40 Location: Maryland-US
|
Posted: Mon Oct 11, 2004 2:15 pm Post subject: |
|
|
Thank you very much count_zero! I was about to give up on Gentoo, since I have spent DAYS just trying to get it installed and the manual expects you to be a freakin computer genius.
That section of the manual SHOULD be edited because I am seeing many people with the same problem.
Cheers,
Marty |
|
Back to top |
|
|
simonckenyon n00b
Joined: 17 Jun 2008 Posts: 1
|
Posted: Tue Jun 17, 2008 8:49 am Post subject: |
|
|
count_zero wrote: | Those extra lines in grub are for fancy things that genkernel likes to do, such as bootsplash. The initrd line points toward the image that would show on the screen while the computer boots, rather than the kernel messages that scroll across the screen. It looks nice, but obviously not essential. I'm not sure what the other options do, they're not needed with a custom-compiled kernel (I've never used genkernel). If you would like to get bootsplash/gensplash working, check out this topic:
https://forums.gentoo.org/viewtopic.php?t=206778&highlight=gensplash
It's not too difficult (just 5 easy steps!), and there are lots of people willing to help you through it. Best of luck! |
i was looking for some answers about a problem that i was having with grub and i came across this post.
you might have helped marty, but your answer is incorrect:
genkernel is a tool for building the kernel and the initrd image. setting up all the files for bootsplash is one of the smallest things that it does
the real_root/initrd stuff gives the kernel a small ram disk as its root file system for a short period so that it can load modules before the real root takes over |
|
Back to top |
|
|
|
|
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
|
|