|
|
| Gentoo Linux - Kernel Configuration - Modules |
|
Don Freeman
Member #5,110
October 2004
|
Yes, make sure that it is indeed pointing to the correct drive.8-) -- |
|
CGamesPlay
Member #2,559
July 2002
|
Quote:
I gather that the second suggestion was to verify that (hd1,0) is pointing to my slave (Linux) drive and not my master (Windows) drive? Yes. -- Ryan Patterson - <http://cgamesplay.com/> |
|
bamccaig
Member #7,536
July 2006
|
I said my /etc/fstab said: /dev/cdrom /mnt/cdrom audo noauto,ro 0 0
audo!? That can't be right! -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
|
Marco Radaelli
Member #3,028
December 2002
|
This is the relevant part of my grub.conf title Gentoo kernel-2.6.22-r9 root (hd0,0) kernel /boot/kernel-2.6.22-r9 root=/dev/sdb3 vga=0x31B video=vesafb:mtrr:3,ywrap,1280x1024-32
I have 2 SATA disks, the one on the first channel has Windows, the one on the second has Gentoo. Go figure why I had to put (hd0,0) in it, but my box kept non-booting until I changed that from (hd1,0) to (hd0,0) [edit] Quote:
That can't be right!
Either way that's not preventing your booting process, it's auto BTW
|
|
bamccaig
Member #7,536
July 2006
|
Marco Radaelli said:
I have 2 SATA disks, the one on the first channel has Windows, the one on the second has Gentoo. Go figure why I had to put (hd0,0) in it, but my bow kept non-booting until I changed that from (hd1,0) to (hd0,0)
Interesting... ** EDIT ** I said: [quote I said my /etc/fstab]/dev/cdrom /mnt/cdrom audo noauto,ro 0 0
audo!? That can't be right!
I guess you could consider that a bug worth reporting... -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
|
le_y_mistar
Member #8,251
January 2007
|
having fun compiling gentoo night after night eh;D ----------------- |
|
bamccaig
Member #7,536
July 2006
|
There hasn't actually been a whole lot of compiling thus far... The little bit there has been was fast and pretty. I made the following changes to /boot/grub/grub.conf and reinstalled grub.
Note: Emphasis on (hd0,0). I actually added both options for me to test each and the first partition on (hd0) began to successfully boot Linux. Note that I haven't actually attempted to boot my Windows system from this grub install, but I assume it is correct. From the livecd (hd1) was correct so I stuck with those values when installing grub. Perhaps when booting my slave drive the BIOS switches them or something... Unfortunately, booting my kernel didn't get too far and eventually the kernel panicked. I'm going to have to recompile the kernel. Hopefully I do it correctly this time... So how do I determine which modules to build into the kernel and which ones to build as external modules? Should I just go through the entire make menuconfig checking out the help section for each node and guessing? -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
|
CGamesPlay
Member #2,559
July 2002
|
The easiest way to do it would probably be to go through every menu option and turn all compiled-in modules into external modules. Then, go through and find the options necessary for you to boot, and set those to be compiled-in. What message did the kernel give you? -- Ryan Patterson - <http://cgamesplay.com/> |
|
Thomas Fjellstrom
Member #476
June 2000
|
the panic may not be module related. First I'd make sure the "root=/dev/hdb3" is correct. and try and post the message you get when the kernel panics. -- |
|
Marco Radaelli
Member #3,028
December 2002
|
Quote: There hasn't actually been a whole lot of compiling thus far...
Yeah, starting from a stage3 isn't as cool as from a stage1 Quote:
The little bit there has been was fast and pretty.
That's because you still haven't got X, KDE, OpenOffice, ... Quote:
So how do I determine which modules to build into the kernel and which ones to build as external modules? Should I just go through the entire make menuconfig checking out the help section for each node and guessing? Altough that's a good read, I decided to go for the all-in and module-when-needed. So, i.e., my nvidia driver is compiled as a module, because X was complaining it couldn't load it.
|
|
CGamesPlay
Member #2,559
July 2002
|
Quote: Altough that's a good read, I decided to go for the all-in and module-when-needed. So, i.e., my nvidia driver is compiled as a module, because X was complaining it couldn't load it. The reason I wouldn't consider doing this is because if a module has a problem it can't be unloaded, and because I can't change my kernel configuration without rebooting. -- Ryan Patterson - <http://cgamesplay.com/> |
|
bamccaig
Member #7,536
July 2006
|
CGamesPlay said: What message did the kernel give you?
VFS: Cannot open root device "sdb3" or unknown-block(2,0) Please append a correct "root=" boot option; here are the available options: 0300 130528 hda driver: ide-cdrom 0340 4194302 hdb driver: ide-cdrom Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) Keep in mind that this was written down and then typed. :) I have two guesses based on this output: either the kernel doesn't have appropriate support for my SATA hard drives/disc controller (I should note that my PC might also have a RAID controller) or Linux believes the slave drive is actually the master too and I need to indicate /dev/sda3. Thomas Fjellstrom said: the panic may not be module related. First I'd make sure the "root=/dev/hdb3" is correct. and try and post the message you get when the kernel panics.
Good call. Marco Radaelli said:
Yeah, starting from a stage3 isn't as cool as from a stage1
Now I'm intrigued... The Gentoo Handbook made it seem like stage1 and stage2 was obsoleted. Unfortunately, stage1 and stage2 installations are apparently no longer unsupported... Marco Radaelli said:
That's because you still haven't got X, KDE, OpenOffice, ... Yeah, I expect a lot more compiling when I actually get a bootable system. I'd be disappointed if there wasn't. CGamesPlay said: The reason I wouldn't consider doing this is because if a module has a problem it can't be unloaded, and because I can't change my kernel configuration without rebooting. Yeah, it sounds a lot better to build as little into the kernel as possible. -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
|
CGamesPlay
Member #2,559
July 2002
|
Quote: I have two guesses based on this output: either the kernel doesn't have appropriate support for my SATA hard drives/disc controller (I should note that my PC might also have a RAID controller) This sounds like the most likely option. If you can't find the right module, giving us the output of lspci will help us identify it. -- Ryan Patterson - <http://cgamesplay.com/> |
|
Thomas Fjellstrom
Member #476
June 2000
|
See if your SATA controller is in raid mode, and turn it off. Try "enhanced" and "compatibility" mode, the latter will make the sata disk appear in the spot the first pata disk usually is. -- |
|
bamccaig
Member #7,536
July 2006
|
CGamesPlay said: If you can't find the right module, giving us the output of lspci will help us identify it.
Thomas Fjellstrom said: See if your SATA controller is in raid mode, and turn it off.
The hard drives are not actually actively using RAID, but both drives' SATA mode is set to RAID... I read that it is the recommended setting regardless of whether you're actually using RAID or not for whatever reason... -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
|
CGamesPlay
Member #2,559
July 2002
|
I have the same SATA controller. Verify that "Intel PIIX/ICH SATA support" is compiled in. You can find it in Device Drivers -> Serial ATA (prod) and Parallel ATA (experimental) drivers (kernel source 2.6.19-gentoo-r5). -- Ryan Patterson - <http://cgamesplay.com/> |
|
Thomas Fjellstrom
Member #476
June 2000
|
Quote:
The hard drives are not actually actively using RAID, but both drives' SATA mode is set to RAID... I read that it is the recommended setting regardless of whether you're actually using RAID or not for whatever reason... I call bunk. I have a ICH9 version of that chip, and have the following modules loaded: ata_generic 9988 0 ata_piix 20996 9 both are in the initramfs/initrd that "update-initramfs" generated (debian script). in fact, everything is set to module.. moose@natasha:~/data/Anime$ lsmod Module Size Used by snd_rtctimer 5216 0 binfmt_misc 14860 1 coretemp 9856 0 w83627ehf 24464 0 i2c_isa 6400 1 w83627ehf i2c_dev 10248 0 i2c_i801 11036 0 cpuid 5768 0 isofs 39268 0 udf 90024 1 nfs 272728 2 lockd 76336 2 nfs sunrpc 198536 3 nfs,lockd rfcomm 47656 2 l2cap 28672 11 rfcomm bluetooth 63876 4 rfcomm,l2cap vboxdrv 1649696 0 ppdev 11272 0 acpi_cpufreq 10632 0 cpufreq_stats 8160 0 cpufreq_ondemand 10896 4 cpufreq_userspace 6048 0 cpufreq_conservative 9608 0 freq_table 6464 3 acpi_cpufreq,cpufreq_stats,cpufreq_ondemand cpufreq_powersave 3072 0 button 10400 0 sbs 21520 0 ac 7304 0 dock 12264 0 container 6400 0 video 21140 0 battery 12424 0 tun 14080 0 af_packet 28172 2 bridge 64168 0 ipv6 317192 14 parport_pc 41896 0 lp 15048 0 parport 44172 3 ppdev,parport_pc,lp snd_hda_intel 337192 2 snd_pcm_oss 50048 0 snd_mixer_oss 20096 1 snd_pcm_oss snd_pcm 94344 2 snd_hda_intel,snd_pcm_oss snd_seq_dummy 5380 0 snd_seq_oss 36864 0 snd_seq_midi 11008 0 snd_rawmidi 29824 1 snd_seq_midi snd_seq_midi_event 9984 2 snd_seq_oss,snd_seq_midi snd_seq 62496 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event nvidia 7013492 24 xpad 11400 0 atl1 40204 0 lirc_atiusb 21552 1 lirc_dev 18248 1 lirc_atiusb mii 7424 1 atl1 snd_timer 27272 3 snd_rtctimer,snd_pcm,snd_seq i2c_core 30208 5 w83627ehf,i2c_isa,i2c_dev,i2c_i801,nvidia snd_seq_device 10260 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq snd 69288 13 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device psmouse 45596 0 soundcore 10272 1 snd shpchp 38300 0 pci_hotplug 36612 1 shpchp snd_page_alloc 12560 2 snd_hda_intel,snd_pcm serio_raw 9092 0 pcspkr 4608 0 intel_agp 30624 0 evdev 13056 3 usbhid 32576 0 hid 33408 1 usbhid ext3 146576 4 jbd 69360 1 ext3 mbcache 11272 1 ext3 sg 41384 0 sd_mod 32512 8 sr_mod 19876 1 cdrom 41768 1 sr_mod ata_generic 9988 0 ata_piix 20996 9 libata 138928 2 ata_generic,ata_piix scsi_mod 172856 4 sg,sd_mod,sr_mod,libata ehci_hcd 40076 0 uhci_hcd 29600 0 usbcore 161584 6 xpad,lirc_atiusb,usbhid,ehci_hcd,uhci_hcd thermal 16528 0 processor 36232 2 acpi_cpufreq,thermal fan 6920 0 fuse 52528 5 apparmor 47008 0 commoncap 9472 1 apparmor
-- |
|
BAF
Member #2,981
December 2002
|
I wouldn't go changing your RAID settings at this point, or it's going to fuck with your Windows install. At this point, I assume you had to install Windows with a RAID driver. Turning off RAID will likely make windows throw a blue screen pretty quickly on boot. Just make sure you have the right drivers compiled IN to your kernel for the controller, and if anything is required for LVM to work, make sure that is compiled in as well. Remember, unless you mess around with initrd's and stuff, your kernel needs to be able to access your drives without loading any modules. |
|
Thomas Fjellstrom
Member #476
June 2000
|
Quote: Just make sure you have the right drivers compiled IN to your kernel for the controller, and if anything is required for LVM to work, make sure that is compiled in as well. Don't need to. My servers run off LVM and/or MD raid (root as well), and they are all enabled as modules. Thats the joy of initramfs, you just generate a new one, and wham, all the modules you need are loaded before linux even attempts to init the real root filesystem. -- |
|
BAF
Member #2,981
December 2002
|
Thats why I said: Remember, unless you mess around with initrd's and stuff, your kernel needs to be able to access your drives without loading any modules.
|
|
Don Freeman
Member #5,110
October 2004
|
Quote:
Interesting...
Are you even listening to me?!?:o I am trying to help you out...:P Read my post about the file: /boot/grub/device.map Quote:
CGamesPlay said: I believe I have said this in the beginning.:o It would be nice if you showed us the output of lsmod with the gentoo cd kernel running. That way you can get an idea of what modules you will need.:P I am willing to help you, but if you are not going to listen, then I am not going to bother...:-/ With the kernel panic, it sounds as though it could not find the root drive. Most likely cause: invalid SATA controller module, or you are using an IDE controller module with causes your root to actually be /dev/hdb3 instead of /dev/sdb3::) There have been multiple references above about people with that same chipset, so use there SATA module. For something like the drive controller module, if that module fails...what else are you going to do? Compile that into the kernel.:P -- |
|
Marco Radaelli
Member #3,028
December 2002
|
bamccaig said:
Now I'm intrigued... The Gentoo Handbook made it seem like stage1 and stage2 was obsoleted. Unfortunately, stage1 and stage2 installations are apparently no longer unsupported...
Well, do not do it unless you like watching tons of compilation lines flow through the screen (like me Don Freeman said: Read my post about the file: /boot/grub/device.map Not to fight you, but: device.map (fd0) /dev/fd0 (hd0) /dev/sda (hd1) /dev/sdb mount output /dev/sdb3 on / type reiserfs (rw,noatime) proc on /proc type proc (rw,nosuid,nodev,noexec) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec) udev on /dev type tmpfs (rw,nosuid) devpts on /dev/pts type devpts (rw,nosuid,noexec) /dev/sdb6 on /mnt/fat32 type vfat (rw,noexec,nosuid,nodev,noatime) /dev/sda1 on /mnt/winxp type ntfs (ro,noatime,umask=0022) /dev/sdb5 on /mnt/winxp-share type ntfs (ro,noatime,umask=0022) shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev) usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) /dev/sdb1 on /boot type ext2 (rw,sync,noatime) grub.conf title Gentoo kernel-2.6.22-r9 root (hd0,0) kernel /boot/kernel-2.6.22-r9 root=/dev/sdb3 vga=0x31B video=vesafb:mtrr:3,ywrap,1280x1024-32
|
|
HoHo
Member #4,534
April 2004
|
Going with stage1 will only mean you'll need to compile GCC, glibc, stdlibc++-v3, binutils and a few other packages. It doesn't take all that much time, actually. Though I haven't used the official handbook for ages, I usually just get some of the "experimental" guides from Gentoo forum. They mostly go with stage3 base but compile toolchain anyway to make sure that system is as stable as possible. When making the first Gentoo install I wouldn't bother with anythinb tut stage 3. Get something to work and work on from there. __________ |
|
Don Freeman
Member #5,110
October 2004
|
Quote:
VFS: Cannot open root device "sdb3" or unknown-block(2,0)
It is as I feared. Your kernel is compiled with the IDE modules...NOT your SATA modules.::) Also, are you using hd0,1 or hd1,0 for the root in your /boot/grub/grub.conf file? root (hd1,0) //really /dev/sdb1, partition 1. // If you installed boot on your third partition... use root (hd1,2) (3-1=2) kernel /vmlinuz-2.6.22-gentoo-r2 root=/dev/sdb3 //set root= to your actual / directory You can also use the new style ATA modules for your IDE CDROM drives as well...they would become: /dev/sr0 and /dev/sr1. I believe that the major push is towards this anyway, as quite a few distros are doing this. You may experience problems running both subsystems (the new style ATA and the old style). Also, make sure you compiled in support for the filesystem you are using. If you did not compile in support for reiserfs and you are using reiserfs as your filesystem...well, no wonder it doesn't work!::) I believe there have been a couple of people here that said they had that same chipset. Just find those in your kernel's menuconfig and make sure they are being compiled in.::) Quote: Not to fight you, but: device.map (fd0) /dev/fd0 Actually, you can change that file to say whatever you want after...but if you don't do the grub setup again...it does not take effect!:P -- |
|
Marco Radaelli
Member #3,028
December 2002
|
Quote: Actually, you can change that file to say whatever you want after...but if you don't do the grub setup again...it does not take effect!
A-ha! I didn't know
|
|
|
|