Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

Install finished, new problem

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
Interimo
n00b
n00b
User avatar
Posts: 40
Joined: Sat Nov 18, 2006 4:19 pm

Install finished, new problem

  • Quote

Post by Interimo » Fri Mar 02, 2007 12:01 am

I just finished my install, rebooted, and when GRUB loaded, it loaded with a bunch of weird while lines running down it. I could sort of make out what everything said, and I selected "Gentoo Linux 2.6.19-r5" from my list, and I got an error saying it couldn't mount the filesystem (I think; I couldn't read it very well). I think it has something to do with me typing in the kernel info. wrong. How can get edit the config. file? I've got a few CDs at my disposal: Gentoo, System Rescue CD, Xubuntu, and a few others. Will any help me open the config. file long enough to edit it?
Top
jpmayer87
n00b
n00b
Posts: 51
Joined: Sun Mar 19, 2006 7:53 pm
Location: Troy, NY

Re: Install finished, new problem

  • Quote

Post by jpmayer87 » Fri Mar 02, 2007 12:04 am

Interimo wrote:I just finished my install, rebooted, and when GRUB loaded, it loaded with a bunch of weird while lines running down it. I could sort of make out what everything said, and I selected "Gentoo Linux 2.6.19-r5" from my list, and I got an error saying it couldn't mount the filesystem (I think; I couldn't read it very well). I think it has something to do with me typing in the kernel info. wrong. How can get edit the config. file? I've got a few CDs at my disposal: Gentoo, System Rescue CD, Xubuntu, and a few others. Will any help me open the config. file long enough to edit it?
You should post your grub.conf, but it sounds like grub is trying to load a splashimage from a partition that doesn't exist or that file exists. Try commenting that line out and rebooting.

JP
Top
Interimo
n00b
n00b
User avatar
Posts: 40
Joined: Sat Nov 18, 2006 4:19 pm

  • Quote

Post by Interimo » Fri Mar 02, 2007 12:09 am

That's the thing, I don't know how to go about doing that. I think I messed up the config. as it is, and I can't boot into Gentoo to edit it.
Top
impulze
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 82
Joined: Sat Sep 23, 2006 12:06 pm
Location: Taunusstein, Germany

  • Quote

Post by impulze » Fri Mar 02, 2007 12:35 am

Interimo wrote:That's the thing, I don't know how to go about doing that. I think I messed up the config. as it is, and I can't boot into Gentoo to edit it.
Boot your minimal/install/rescue cd. Then you chroot to your system just like you did in your installation process.

Code: Select all

mkdir /mnt/gentoo
mount /dev/{s,h}dxY /mnt/gentoo
# mount seperate partitions here e.g. boot
# mount /dev/{s,h}dxY /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/sh
env-update
source /etc/profile
export PS1="(chroot) $PS1"
From within that environment configure your kernel, build the bzImage and copy it to the location the bootloader is searching for it.
Please add [SOLVED] to your thread title when the issue no longer exists or has been solved for you. Thank you.
Top
Interimo
n00b
n00b
User avatar
Posts: 40
Joined: Sat Nov 18, 2006 4:19 pm

  • Quote

Post by Interimo » Fri Mar 02, 2007 1:51 am

Awesome, thanks, I'm making a new grub.conf right now.

What do you think of this? Any problems?

Code: Select all

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

title=Gentoo Linux 2.6.19-r5
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.19-gentoo-r5 root=/dev/ram0 init=/linuxrc ramdisk 8192 real_root=/dev/sda4
initrd /boot/initramfs-genkernel-x86-2.6.19-gentoo-r5

title=Windows XP Home Edition
rootnoverify (What goes here?)
makeactive
chainloader +1
2 things.

1. I don't know if I have my hd's right. I have an odd setup I guess, because I used a linux-swap I already had partitioned. Here's my partitions.
/dev/sda2 - linux-swap
/dev/sda3 - /boot
/dev/sda4 - /
/dev/sda1 - NTFS

So, I have a strong feeling my grub is wrong. What would be right?

2. Also, the splashimage is the same as what I used before that made my screen freak out. Did I type it wrong or what? Do I even need a splash image?
Top
impulze
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 82
Joined: Sat Sep 23, 2006 12:06 pm
Location: Taunusstein, Germany

  • Quote

Post by impulze » Fri Mar 02, 2007 2:15 am

Interimo wrote:What do you think of this? Any problems?
Probably.
Interimo wrote:1. I don't know if I have my hd's right. I have an odd setup I guess, because I used a linux-swap I already had partitioned. Here's my partitions.
/dev/sda2 - linux-swap
/dev/sda3 - /boot
/dev/sda4 - /
/dev/sda1 - NTFS
Really not that odd. :)
Interimo wrote:2. Also, the splashimage is the same as what I used before that made my screen freak out. Did I type it wrong or what? Do I even need a splash image?
No you don't need it, just makes the grub menu look fancier.

You need to make sure, that this s-ata device is seen by grub as the first device during booting.
If you would have IDE and S-ATA disks and your bios boots from IDE first grub won't see it as the first device.
But here i go...

Code: Select all

default 0
timeout 60
splashimage=(hd0,2)/boot/grub/splash.xpm.gz

title=Gentoo Linux 2.6.19-r5
root (hd0,2)
kernel /boot/kernel-genkernel-x86-2.6.19-gentoo-r5 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda4
initrd /boot/initramfs-genkernel-x86-2.6.19-gentoo-r5

title=Windows XP Home Edition
rootnoverify (hd0,0)
makeactive
chainloader +1
That's how i would try it.
I'm gonna explain a bit but there are plenty of docs out there which do the same.
grub sees hd0,0 as the first device and first partition.
that would mean sdc5 = hd2,4

your kernel lies on the partition mounted on /boot.
grub sees this partition as it's own / while booting, that's why there's a symlink named boot in /boot which points to itself so you can use the same paths in your grub config as in your environment.

if however your harddisk order during boot differs you may have to play around with the first number after hd since that's (as stated above) the hard disk identifier

also you mixed "ramdisk 8192" with "ramdisk=8192" in your previous configuration
Please add [SOLVED] to your thread title when the issue no longer exists or has been solved for you. Thank you.
Top
Interimo
n00b
n00b
User avatar
Posts: 40
Joined: Sat Nov 18, 2006 4:19 pm

  • Quote

Post by Interimo » Fri Mar 02, 2007 3:24 am

impulze wrote:Probably.
That was blunt :lol:.

Thank you very much, your config. worked perfectly. About this IDE and SATA deal... What exactly do you mean? I tried booting Gentoo, and it said it didn't have a root device. Is that what you meant? To boot the minimal installer CD I went into my BIOS and changed the IDE/SATA controller to AHCI and used "gentoo all-generic-ide" to boot. How do I go about getting Gentoo to boot now that I'm out of the CD environment?
Top
impulze
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 82
Joined: Sat Sep 23, 2006 12:06 pm
Location: Taunusstein, Germany

  • Quote

Post by impulze » Fri Mar 02, 2007 3:38 am

Interimo wrote:it said it didn't have a root device
Does this come from the kernel or does it appear during init after the kernel loaded?
In both cases it would be nice to have the exact error message you get.
Interimo wrote:What's the exact error message you get from the kernel?
I meant, that the bios boot order of your disks/controllers automatically affects the grub device order.
Interimo wrote:How do I go about getting Gentoo to boot now that I'm out of the CD environment?
You also specify all-generic-ide as a kernel parameter in your kernel line from the grub configuration file. But that should not be. Probably genkernel missed to compile some controller drivers which i highly doubt since it's supposed to make kernel compilations easier.

Once you get your system booted we may check into that though.
Please add [SOLVED] to your thread title when the issue no longer exists or has been solved for you. Thank you.
Top
Interimo
n00b
n00b
User avatar
Posts: 40
Joined: Sat Nov 18, 2006 4:19 pm

  • Quote

Post by Interimo » Fri Mar 02, 2007 12:51 pm

Here's the message.

Code: Select all

!!The root block device is unspecified or not detected.
Please specify a device to boot, or "shell" for a shell...
Top
steveL
Watchman
Watchman
Posts: 5153
Joined: Wed Sep 13, 2006 1:18 pm
Location: The Peanut Gallery

  • Quote

Post by steveL » Fri Mar 02, 2007 12:56 pm

It sounds like you haven't got the drivers for your SATA compiled in the kernel. They should be in the initrd and thus loaded before use for a genkernel-compiled kernel.

TBH you'll get much quicker turnaround on this sort of thing on irc, #gentoo at irc.freenode.org is the place to go :)
Top
desultory
Bodhisattva
Bodhisattva
User avatar
Posts: 9410
Joined: Fri Nov 04, 2005 6:07 pm

  • Quote

Post by desultory » Sat Mar 03, 2007 12:30 am

Moved from Gentoo Chat to Installing Gentoo.
Top
Post Reply

11 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic