Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub causing kernel panic [SOLVED!]
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Tue Feb 24, 2009 12:46 am    Post subject: Grub causing kernel panic [SOLVED!] Reply with quote

I am getting an error after trying to setup grub on my new gentoo install. On boot it causes kernel panic. Here is some output:

Code:

Root-NFS: No NFS server available, giving up.
VFS:Unable to mountroot fs via NFS, trying floppy.
VFS: Cannot open rootdevice "hda3" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)


Anyone have any ideas? Thanks in advance!
_________________
Sall

* AMD Turion(tm) 64 Mobile Technology ML-32
* 1Gb RAM
* 2.6.27-gentoo-r8 x86_64
* Xfce4


Last edited by sall on Sat Feb 28, 2009 3:33 am; edited 1 time in total
Back to top
View user's profile Send private message
minor_prophets
Apprentice
Apprentice


Joined: 07 Oct 2007
Posts: 281

PostPosted: Tue Feb 24, 2009 1:32 am    Post subject: Reply with quote

Sall,
Can you give us anymore info, bud??

:arrow: Please don't take this the wrong way, but your post is rather sparse and you're now exactly a newbie to the forum anymore 8O
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Tue Feb 24, 2009 1:36 am    Post subject: Reply with quote

I don't know what more info to provide? Please, let me know some output you need. Thanks!
_________________
Sall

* AMD Turion(tm) 64 Mobile Technology ML-32
* 1Gb RAM
* 2.6.27-gentoo-r8 x86_64
* Xfce4
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Tue Feb 24, 2009 2:08 am    Post subject: Reply with quote

edit /boot/grub/grub.conf changing hda3 to sda3 ---new kernels don't use hda nomenclature
if that still fails provide grub.conf, lspci -nnk, emerge --search grub outputs
before the error msg provided was there a line about available partitions?
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Tue Feb 24, 2009 2:49 am    Post subject: Reply with quote

Changing from /dev/hda3 to /dev/sda3 does no good. My hard drives are seen as /dev/hda.

Here is my /etc/fstab:
Code:

/dev/hda1 /boot ext2 defaults,noatime 1 2
/dev/hda3 / ext3 noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,user 0 0


grub.conf
Code:

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

title Gentoo Linux 2.6.27-r8
root (hd0,0)
kernel /boot/kernel-2.6.27-r8 root=/dev/hda3


I cannot post lspci as for it is a lot of output top type out as for i cannot copy and paste. If you know a way I can access that info from another pc let me know. Hope this output sheds some light?[/quote]
_________________
Sall

* AMD Turion(tm) 64 Mobile Technology ML-32
* 1Gb RAM
* 2.6.27-gentoo-r8 x86_64
* Xfce4
Back to top
View user's profile Send private message
minor_prophets
Apprentice
Apprentice


Joined: 07 Oct 2007
Posts: 281

PostPosted: Tue Feb 24, 2009 3:00 am    Post subject: Reply with quote

Also, post your kernel config. It will be particularly helpful in the area of the Device Drivers...ATA / SATA sections.

Sorry. Edited it. Start up sshd from the install PC, make note of your ip address, change the root password to something your remember and ssh into the LiveCD instance. Chroot into your install environment. Copy and paste should be easy at that point.

I do apologize about the tongue and cheek earlier.
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Tue Feb 24, 2009 3:19 am    Post subject: Reply with quote

Alright, I'll try that. In the meantime I'm going to try one other thig and insert my UUID into grub.cong as for a read on another thread from elsewhere. I will get back with you though regardless of whether I can copy and paste these outputs you requested. and haha i take it with a grain of salt i misread things all the time...
_________________
Sall

* AMD Turion(tm) 64 Mobile Technology ML-32
* 1Gb RAM
* 2.6.27-gentoo-r8 x86_64
* Xfce4
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Tue Feb 24, 2009 1:59 pm    Post subject: Reply with quote

sall wrote:
I cannot post lspci as for it is a lot of output top type out as for i cannot copy and paste.

The only part you really need to look at is the IDE controller that your harddrive is plugged into.
Your kernel is currently missing this driver, and that is why it falls back to booting from NFS and then floppy.
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Tue Feb 24, 2009 4:18 pm    Post subject: Reply with quote

I've read several places that this is because there is no initrd because I did not use genkernel kernel and configured my own kernel using make && make modules_install.

this is relevant lspci output:
Code:

00:14.1 IDE Interface: ATI Technologies Inc IXP SB400 IDE Controller



Adding:
Code:

Enable PCI support for the kernel:

Bus options (PCI, PCMCIA, EISA, MCA, ISA)
    [*] PCI Support

Enable the IDE subsystem, and IDE support:

Device Drivers
    [*] ATA/ATAPI/MFM/RLL support
    [*]   Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support


This did nothing. Still the same error. Any ideas?
_________________
Sall

* AMD Turion(tm) 64 Mobile Technology ML-32
* 1Gb RAM
* 2.6.27-gentoo-r8 x86_64
* Xfce4
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Tue Feb 24, 2009 8:23 pm    Post subject: Reply with quote

initrd or not is not the problem.

make a system rescue cd http://www.sysresccd.org/Download or a fresh ubuntu livecd http://www.ubuntu.com/getubuntu/download boot it and once it is booted run lspci -nnk and copy and paste the result here. This will tell us what exactly your equipment is and what drivers a working system with a current kernel is using.
Also run and post fdisk -l output.

then mount your root and boot partitions (mkdir /mnt/gentoo if using ubuntu) and extract a copy of your config file and post here
Code:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
cd /mnt/gentoo/usr/src/linux
cat .config


Was there a list of available partitions a few lines before the kernel panic message?
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Wed Feb 25, 2009 2:36 am    Post subject: Reply with quote

sall wrote:
this is relevant lspci output:
Code:

00:14.1 IDE Interface: ATI Technologies Inc IXP SB400 IDE Controller

Ok, since you are using the legacy IDE drivers, this is the one you want for your chipset.
menuconfig:
Device Drivers  --->
  <*> ATA/ATAPI/MFM/RLL support  --->
    <*>     Include IDE/ATA-2 DISK support
    <*>     ATI IXP chipset IDE support
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Thu Feb 26, 2009 5:57 pm    Post subject: Reply with quote

The only option I have to choose from in the kernel configuration under ATA/ATAPI/MFM/RLL support is Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support (NEW). I just did a fresh install and now trying to compile this kernel again properly without the use of genkernel. Any ideas on why I don't have:
Code:

Device Drivers  --->
  <*> ATA/ATAPI/MFM/RLL support  --->
    <*>     Include IDE/ATA-2 DISK support
    <*>     ATI IXP chipset IDE support


I am using kernel 2.6.27-gentoo-r8.
_________________
Sall

* AMD Turion(tm) 64 Mobile Technology ML-32
* 1Gb RAM
* 2.6.27-gentoo-r8 x86_64
* Xfce4
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Thu Feb 26, 2009 8:25 pm    Post subject: Reply with quote

Because the kernel developers want to use libata for all ata hard drives.
I have a 2.6.27-r7 that still shows
Quote:
Device Drivers --->
<*> ATA/ATAPI/MFM/RLL support --->
<*> Include IDE/ATA-2 DISK support
<*> ATI IXP chipset IDE support
But I think that was the last one.
I would recommend going with the flow. After which all drives will be in sdx nomenclature so edit grub.conf and /etc/fstab; hdx to sdx everywhere.
Something like this...
Quote:
Device Drivers --->
<*> ATA/ATAPI/MFM/RLL support --->
SCSI device support --->
*** SCSI support type (disk, tape, CD-ROM) ***
<*> SCSI disk support
< > SCSI tape support
< > SCSI OnStream SC-x0 tape support
<*> SCSI CDROM support
<*> Serial ATA (prod) and Parallel ATA (experimental) drivers --->
--- Serial ATA (prod) and Parallel ATA (experimental) drivers
[*] ATA ACPI Support
[*] SATA Port Multiplier support
<*> AHCI SATA support
< > Silicon Image 3124/3132 SATA support
[*] ATA SFF support
< > ServerWorks Frodo / Apple K2 SATA support
< > Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support
< > Marvell SATA support (HIGHLY EXPERIMENTAL)
< > NVIDIA SATA support
< > Pacific Digital ADMA support
< > Pacific Digital SATA QStor support
< > Promise SATA TX2/TX4 support
< > Promise SATA SX4 support
< > Silicon Image SATA support
< > SiS 964/965/966/180 SATA support
< > ULi Electronics SATA support
< > VIA SATA support
< > VITESSE VSC-7174 / INTEL 31244 SATA support
< > Initio 162x SATA support
< > ACPI firmware driver for PATA
< > ALi PATA support (Experimental)
< > AMD/NVidia PATA support
< > ARTOP 6210/6260 PATA support
<*> ATI PATA support
< > CMD640 PCI PATA support (Very Experimental)
< > CMD64x PATA support
< > CS5510/5520 PATA support
< > CS5530 PATA support (Experimental)
< > Cypress CY82C693 PATA support (Very Experimental)
< > EFAR SLC90E66 support
< > Generic ATA support
< > HPT 366/368 PATA support
< > HPT 370/370A/371/372/374/302 PATA support (Experimental)
< > HPT 372N/302N PATA support (Very Experimental)
< > HPT 343/363 PATA support
< > IT8211/2 PATA support
< > IT8213 PATA support (Experimental)
< > JMicron PATA support
< > Compaq Triflex PATA support
< > Marvell PATA support via legacy mode
< > Intel PATA MPIIX support
< > Intel PATA old PIIX support
< > NETCELL Revolution RAID support
< > Ninja32/Delkin Cardbus ATA support (Experimental)
< > Nat Semi NS87415 PATA support (Experimental)
< > OPTI621/6215 PATA support (Very Experimental)
< > OPTI FireStar PATA support (Very Experimental)
< > Older Promise PATA controller support (Experimental)
< > RADISYS 82600 PATA support (Very Experimental)
< > PC Tech RZ1000 PATA support
< > SC1200 PATA support (Very Experimental)
< > SERVERWORKS OSB4/CSB5/CSB6/HT1000 PATA support
< > Promise PATA 2027x support
< > CMD / Silicon Image 680 PATA support
< > SiS PATA support (Experimental)
< > VIA PATA support
< > Winbond SL82C105 PATA support
< > Intel SCH PATA support
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Thu Feb 26, 2009 11:16 pm    Post subject: Reply with quote

Alright, I do somewhat understand what you are saying now. But fdisk sees my drives at /dev/hda how is changing everything to /dev/sda going to make a difference, sda is typically what all my usb devices were named. I would assume it will assign another /dev/ for them such sdb or something lf the like. Anyways, I will try exactly what you have stated when I get the chance. Hectic few days. I'll let you know the results.
_________________
Sall

* AMD Turion(tm) 64 Mobile Technology ML-32
* 1Gb RAM
* 2.6.27-gentoo-r8 x86_64
* Xfce4
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Thu Feb 26, 2009 11:30 pm    Post subject: Reply with quote

There was no result for the output of lspi -nnk:
Code:

lspci -nnk
lspci: invalid option -- k
Usage: lspci [<switches>]

-v      Be verbose
-n      Show numeric ID's
-nn      Show both textual and numeric ID's (names & numbers)
-b      Bus-centric view (PCI addresses and IRQ's instead of those seen by the CPU)
-x      Show hex-dump of the standard portion of config space
-xxx      Show hex-dump of the whole config space (dangerous; root only)
-xxxx      Show hex-dump of the 4096-byte extended config space (root only)
-s [[[[<domain>]:]<bus>]:][<slot>][.[<func>]]   Show only devices in selected slots
-d [<vendor>]:[<device>]   Show only selected devices
-t      Show bus tree
-m      Produce machine-readable output
-i <file>   Use specified ID database instead of /usr/share/misc/pci.ids.gz
-D      Always show domain numbers
-M      Enable `bus mapping' mode (dangerous; root only)
-P <dir>   Use specified directory instead of /proc/bus/pci
-F <file>   Read configuration data from given file
-G      Enable PCI access debugging


Here is just my lspci:
Code:

lspci
00:00.0 Host bridge: ATI Technologies Inc RS480 Host Bridge (rev 01)
00:01.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge
00:13.0 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller
00:13.1 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller
00:13.2 USB Controller: ATI Technologies Inc IXP SB400 USB2 Host Controller
00:14.0 SMBus: ATI Technologies Inc IXP SB400 SMBus Controller (rev 11)
00:14.1 IDE interface: ATI Technologies Inc IXP SB400 IDE Controller
00:14.3 ISA bridge: ATI Technologies Inc IXP SB400 PCI-ISA Bridge
00:14.4 PCI bridge: ATI Technologies Inc IXP SB400 PCI-PCI Bridge
00:14.5 Multimedia audio controller: ATI Technologies Inc IXP SB400 AC'97 Audio Controller (rev 02)
00:14.6 Modem: ATI Technologies Inc SB400 AC'97 Modem Controller (rev 02)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:05.0 VGA compatible controller: ATI Technologies Inc Radeon XPRESS 200M 5955 (PCIE)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
05:02.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
05:09.0 CardBus bridge: Texas Instruments PCIxx21/x515 Cardbus Controller
05:09.2 FireWire (IEEE 1394): Texas Instruments OHCI Compliant IEEE 1394 Host Controller
05:09.3 Mass storage controller: Texas Instruments PCIxx21 Integrated FlashMedia Controller
05:09.4 SD Host controller: Texas Instruments PCI6411/6421/6611/6621/7411/7421/7611/7621 Secure Digital Controller

_________________
Sall

* AMD Turion(tm) 64 Mobile Technology ML-32
* 1Gb RAM
* 2.6.27-gentoo-r8 x86_64
* Xfce4
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Fri Feb 27, 2009 12:05 am    Post subject: Reply with quote

lspc1 -nnk requires a newer system than that provided by the gentoo cd's
as you have posted the 2.6.27-r8 kernel does not natively support non libata ata (ide) hard disk drivers in menuconfig. Manual editing of the config file might well allow use of the older ata drivers, I don't know.
When the libata drivers are used they use the scsi protocol and the sda nomenclature.
The cd you are using has a kernel of 2.6.24-r5 vintage and uses the libata drivers only for sata drives. It uses another older set of drivers for ata(ide) drives. Thus every time you boot the cd your drives will be hdx. But when you finally boot a kernel 2.6.27-r8 your drives will be sdx.
You could use UUID in grub and fstab but that won't help until you have a driver installed in the kernel.
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Fri Feb 27, 2009 3:46 am    Post subject: Reply with quote

I completely understand now what you are saying. Sorry for being hard headed. The Gentoo CD I have is using an old kernel and doesn't use the same support as my current kernel being built. The whole switching from /dev/hda* to /dev/sda* makes sense after your explanation. However, I do not understand that when I used genkernel I did not have this problem ( just installed with same cd a month ago ) and had no problems with the same kernel version and everything was read as /dev/hda hard drive wise. I am currently building my kernel now with the support you suggested. I will proceed then to rename everything in grub.conf and fstab from /dev/hda* to /dev/sda*. I will post an update as soon as I install grub, reboot, and cross my fingers! :) Thanks for your help and explanations thus far!

**UPDATE**

I compiled kernel as I mentioned. Installed grub-static. Edited grub.conf and fstab from /dev/hda* to /dev/sda*. I then go to install grub and get this error:

Code:

The file /boot/grub/stage1 not read correctly.


My fstab conf is set as:
Code:

/dev/sda1 /boot ext2 defaults,noatime 1 2
/dev/sda2 none  swap sw 00
/dev/sda3 / ext3 noatime 01


My grub.conf is set as:
Code:

default 0
timeout 30
#splashimage is commented out (don't want it)

Title Gentoo 2.6.27-r8
root (hd0,0)
kernel /boot/custom-2.6.27-r8 root=/dev/sda3


I then run:
Code:

# grep -v rootfs /proc/mounts > /etc/mtab
# grub-install --no-floppy /dev/sda
The file /boot/grub/stage1 not read correctly.


Not quite sure where I am going wrong, I even went back and edited both fstab and grub to look at /dev/hda* again. As well as running:
Code:

# grep -v rootfs /proc/mounts > /etc/mtab
# grub-install --no-floppy /dev/h
da
[/code]

I still continue to get the same error. Any ideas?
_________________
Sall

* AMD Turion(tm) 64 Mobile Technology ML-32
* 1Gb RAM
* 2.6.27-gentoo-r8 x86_64
* Xfce4
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21706

PostPosted: Fri Feb 27, 2009 4:51 am    Post subject: Reply with quote

sall wrote:
However, I do not understand that when I used genkernel I did not have this problem ( just installed with same cd a month ago ) and had no problems with the same kernel version and everything was read as /dev/hda hard drive wise.


Genkernel built a kernel that used the older IDE drivers for your disks. The IDE driver picked an hdx name for your disk. This works, but results in lower performing disks, which is why most people will encourage you to follow your current path of using the SATA drivers. The SATA drivers pick sdx names.

Glancing through the info page for grub-install, it looks like you might need to pass --root-directory. From the info page:
Quote:
`--root-directory=DIR'
Install GRUB images under the directory DIR instead of the root
directory. This option is useful when you want to install GRUB
into a separate partition or a removable disk. Here is an example
in which you have a separate "boot" partition which is mounted on
`/boot':

grub-install --root-directory=/boot hd0

I have never used grub-install, so I could be wrong in this suggestion. Instead, I run grub interactively and prepare the disk using the root and setup commands.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Fri Feb 27, 2009 5:01 am    Post subject: Reply with quote

reboot: A big BTW, you had a working grub, it should still be working since grub-install is failing. You may only need to boot. If not able to boot from grub menu on reboot:
when the grub menu appears, enter c to go to a command line
enter:
find /boot/grub/stage1
the return should be:
(hd0,0)
if so enter:
root (hd0,0)
the return should be like: Filesystem type is e2fs, partition type 0x83 , if so enter:
setup (hd0)
the return should resemble:
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded
.
succeeded
Running "install /boot/grub/stage1 d (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage
2 /boot/grub/menu.lst"... succeeded
Done.

The important words being embedded succeeded and done.
press Esc twice to return to the grub menu,
enter b to boot

if this process does not work:
boot the cd
enter the chroot:(shortform of the handbook)
Code:
mount /dev/hda3 /mnt/gentoo
mount /dev/hda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"

(note the hdx nomenclature still applies because still on old kernel. When in chroot will still be on old kernel so will still be hdx. Probably why grub-setup /dev/sda erred.)
then run:
Code:
emerge --sync
emerge grub
grub
root (hd0,0)
setup (hd0)
quit

again key words in the returns will be embedded and succeeded.

As a BTW, the 2.6.27-r8 has not been in stable very long, you may have been on 27-r5 or r7 when you did the genkernel. Or if you used the x86 handbook and did the step zcat /proc/config.gz /usr/share/genkernel/x86/kernel-config-2.6 you could have been using a 2.6.24-r4 config file to build a 2.6.27-r8 kernel.
another BTW, you had a working grub, it should still be working since grub-install is failing. You may only need to reboot.
and another BTW, if you get grub to boot to a kernel once again it is vital that you note lines saying
Quote:
Please append a correct "root=" boot option; here are the available partitions:
(normally appears before the kernel panic message) If no disk partitions are listed then there are no disk drivers. If sda's or hda's are listed that question is settled. If there is a complaint about the file file system support may be missing. If it gets to mounted read only and does not mount read write fstab is the problem.

Last edited by DONAHUE on Fri Feb 27, 2009 6:23 am; edited 1 time in total
Back to top
View user's profile Send private message
mjpark
n00b
n00b


Joined: 22 Feb 2009
Posts: 4

PostPosted: Fri Feb 27, 2009 5:22 am    Post subject: Reply with quote

Hi. I'll make the bet that there is nothing wrong with your grub.conf and that the kernel panic is correct. I apologize in advance if you already mentioned this, (tired and using vim/w3m to reply), but are you able to boot into genkernel still? You can lsmod and get a hint what modules have been loaded, dmesg also helps to understand what you might need to include as far as kernel configurations go, as well as lspci -v. If you can run your system with genkernel, then you can run it using your customized one, you just need to configure it properly. The thing is, you _really_, and I mean REALLY(tm), need to know your hardware to its bone. What type, controllers, etc... Save your config files, rename it if want, make clean / make distclean etc... load and try again with different settings. Deselect things you really don't need so that the build will go faster. But yeah, the kernel does not have the right information concerning your IDE controller so that it can read it. No worries, you'll get it!

EDIT: and if you have legacy IDE drive, than hda1,2,3,4 is correct. kernel is fine with that.
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Fri Feb 27, 2009 7:05 pm    Post subject: Reply with quote

I finally got an ubuntu live cd downloaded and burnt to a disc. Here is some of the output requested a post or two ago.

lspci -nnk output:
Code:

ubuntu@ubuntu:~$ sudo lspci -nnk
00:00.0 Host bridge [0600]: ATI Technologies Inc RS480 Host Bridge [1002:5950] (rev 01)
   Kernel modules: ati-agp
00:01.0 PCI bridge [0604]: ATI Technologies Inc RS480 PCI Bridge [1002:5a3f]
   Kernel modules: shpchp
00:13.0 USB Controller [0c03]: ATI Technologies Inc IXP SB400 USB Host Controller [1002:4374]
   Kernel driver in use: ohci_hcd
   Kernel modules: ohci-hcd
00:13.1 USB Controller [0c03]: ATI Technologies Inc IXP SB400 USB Host Controller [1002:4375]
   Kernel driver in use: ohci_hcd
   Kernel modules: ohci-hcd
00:13.2 USB Controller [0c03]: ATI Technologies Inc IXP SB400 USB2 Host Controller [1002:4373]
   Kernel driver in use: ehci_hcd
   Kernel modules: ehci-hcd
00:14.0 SMBus [0c05]: ATI Technologies Inc IXP SB400 SMBus Controller [1002:4372] (rev 11)
   Kernel driver in use: piix4_smbus
   Kernel modules: i2c-piix4
00:14.1 IDE interface [0101]: ATI Technologies Inc IXP SB400 IDE Controller [1002:4376]
   Kernel driver in use: pata_atiixp
   Kernel modules: pata_atiixp
00:14.3 ISA bridge [0601]: ATI Technologies Inc IXP SB400 PCI-ISA Bridge [1002:4377]
00:14.4 PCI bridge [0604]: ATI Technologies Inc IXP SB400 PCI-PCI Bridge [1002:4371]
00:14.5 Multimedia audio controller [0401]: ATI Technologies Inc IXP SB400 AC'97 Audio Controller [1002:4370] (rev 02)
   Kernel driver in use: ATI IXP AC97 controller
   Kernel modules: snd-atiixp
00:14.6 Modem [0703]: ATI Technologies Inc SB400 AC'97 Modem Controller [1002:4378] (rev 02)
   Kernel driver in use: ATI IXP MC97 controller
   Kernel modules: snd-atiixp-modem
00:18.0 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration [1022:1100]
00:18.1 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map [1022:1101]
00:18.2 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller [1022:1102]
00:18.3 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control [1022:1103]
   Kernel driver in use: k8temp
   Kernel modules: k8temp
01:05.0 VGA compatible controller [0300]: ATI Technologies Inc Radeon XPRESS 200M 5955 (PCIE) [1002:5955]
   Kernel modules: radeonfb
05:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ [10ec:8139] (rev 10)
   Kernel driver in use: 8139too
   Kernel modules: 8139cp, 8139too
05:02.0 Network controller [0280]: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller [14e4:4318] (rev 02)
   Kernel driver in use: b43-pci-bridge
   Kernel modules: ssb
05:09.0 CardBus bridge [0607]: Texas Instruments PCIxx21/x515 Cardbus Controller [104c:8031]
   Kernel driver in use: yenta_cardbus
   Kernel modules: yenta_socket
05:09.2 FireWire (IEEE 1394) [0c00]: Texas Instruments OHCI Compliant IEEE 1394 Host Controller [104c:8032]
   Kernel driver in use: ohci1394
   Kernel modules: ohci1394
05:09.3 Mass storage controller [0180]: Texas Instruments PCIxx21 Integrated FlashMedia Controller [104c:8033]
   Kernel driver in use: tifm_7xx1
   Kernel modules: tifm_7xx1
05:09.4 SD Host controller [0805]: Texas Instruments PCI6411/6421/6611/6621/7411/7421/7611/7621 Secure Digital Controller [104c:8034]
   Kernel driver in use: sdhci-pci
   Kernel modules: sdhci-pci


fdisk -l output
Code:

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0006f4b2

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1           5       40131   82  Linux swap / Solaris
/dev/sda2               6          68      506047+  83  Linux
/dev/sda3              69        7296    58058910   83  Linux


I take it I just need to compile those options above into my kernel and set my grub.conf and /etc/fstab to /dev/sda* as we have already mentioned. I assume I do not have all those options compiled into my kernel. How can I look at the kernel configuration of the livecd itself so I don't have to search around the kernel to look for the options above? Thanks in advance!
_________________
Sall

* AMD Turion(tm) 64 Mobile Technology ML-32
* 1Gb RAM
* 2.6.27-gentoo-r8 x86_64
* Xfce4
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Fri Feb 27, 2009 7:32 pm    Post subject: Reply with quote

Code:
zcat /proc/config.gz

should put the ubuntu config on the screen

Code:
mkdir /mnt/gentoo
mount /dev/hda3 /mnt/gentoo
mount /dev/hda1 /mnt/gentoo/boot
zcat /proc/config.gz /mnt/gentoo/boot/config

should put it in a file in a relatively handy location
note that this config may have many items in modules <m>(=m) that you will want to build in <*>(=y) (and it may have a lot of extra stuff, no problem)

unfortunately I have not found a handy cross reference of menuconfig item to config file item to kernel module/driver name
in menuconfig the help will frequently tell the config file item name and sometimes the module/driver name, for example:
Quote:
CONFIG_PATA_ATIIXP:
This option enables support for the ATI ATA interfaces
found on the many ATI chipsets.
If unsure, say N.
Symbol: PATA_ATIIXP [=n]
Prompt: ATI PATA support
Defined at drivers/ata/Kconfig:257
Depends on: ATA && ATA_SFF && PCI
Location:-> Device Drivers
-> Serial ATA (prod) and Parallel ATA (experimental) drivers (ATA
-> ATA SFF support (ATA_SFF [=y])


Last edited by DONAHUE on Fri Feb 27, 2009 8:05 pm; edited 2 times in total
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Fri Feb 27, 2009 7:41 pm    Post subject: Reply with quote

Alright so from a previopusx post I completely missed:

Code:

if this process does not work:
boot the cd
enter the chroot:(shortform of the handbook)
Code:
mount /dev/hda3 /mnt/gentoo
mount /dev/hda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"

(note the hdx nomenclature still applies because still on old kernel. When in chroot will still be on old kernel so will still be hdx. Probably why grub-setup /dev/sda erred.)
then run:
Code:
emerge --sync
emerge grub
grub
root (hd0,0)
setup (hd0)
quit

again key words in the returns will be embedded and succeeded.


Do you mean in grub.conf and /etc/fstab I should keep them as hda* and not sda*?
_________________
Sall

* AMD Turion(tm) 64 Mobile Technology ML-32
* 1Gb RAM
* 2.6.27-gentoo-r8 x86_64
* Xfce4
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Fri Feb 27, 2009 7:46 pm    Post subject: Reply with quote

sall,

If you use the old IDE driver, like the CD kernel, you need /dev/hd... to describe your partitions to the kernel.
When you use the new libata drivers under SATA, you need /dev/sd... to describe your partitions to the kernel.

Grub neither knows nor cares, the kernel is not running when grub is working. It asks the BIOS what drives you have and knows them by their BIOS detection order. Thus all hard drives are (hd...) to grub.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Fri Feb 27, 2009 7:50 pm    Post subject: Reply with quote

have you tried a simple boot of the hard drive to see if grub still starts a kernel?
if/when look for available partitions message

I would strongly suggest the /etc/fstab and /boot/grub/grub.conf use sdx nomenclature. You are stuck with keeping mental track while working with the gentoo cd that any drive/partitionfile commands will be using the old kernel and the old hdx nomenclature.
BTW: You can do chroot from the ubunu live cd which will eliminate any further need to think hda.


Last edited by DONAHUE on Fri Feb 27, 2009 8:11 pm; edited 1 time in total
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
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
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