Gentoo Linux - Kernel Configuration - Modules
bamccaig

This is somewhat of a part 2 thread for my Gentoo installation (part 1 can be found here). Thus far, I have managed to "install" a base system, however, it won't boot. By the time I finished setting up the bootloader it was like 11:30 PM Sunday night (and I had already rushed the kernel - built it before I really understood what was needed) so I had to shutdown and put it on hold. I didn't pay too much attention to why it wouldn't boot because it was so late, but IIRC grub didn't seem to recognize one of the partitions.

It could have been that the kernel didn't know what the LVM2 partition (/dev/sdb4) was, which wouldn't surprise me because I was pretty clueless about configuring modules in the kernel's make menuconfig, but if memory serves grub indicated the root (/) partition (/dev/sdb3) which is ext3. :-/ As you can tell, I'm not really sure where grub stands down and the kernel takes over, but after failing to boot whichever partition I was returned to the grub boot menu so I assume grub was still in control...

Either way, my current dilemma is kernel modules and determining which ones are required for my system and which ones may be used. As I understand it, certain modules need to be compiled into the kernel and others can be compiled separately and loaded after the kernel boots. I seem to be under the impression that modules built into the kernel will perform faster than those loaded outside of the kernel. If this is right should I compile all of the modules used by my system into the kernel (I guess in theory if something changed I could recompile the kernel)?

For the record, when told to add modules to /etc/modules.autoload.d/<kernel_version> I discovered that only one module existed for my kernel. I'm assuming that these were built along with the kernel, but since I didn't know what to select only the one ended up being built. :P

I could go the genkernel route, but I'd rather learn to understand and identify modules. When I get home tonight I'll probably reboot the installation CD, chroot back into my environment, and try again. :-/

HoHo

If you can't get past GRUB then I think that it cannot find a kernel to boot. Most common problem is a typo in grub.conf, anotherone is forgetting to do "make install" in kernel source dir while /boot is mounted

CGamesPlay
Quote:

I seem to be under the impression that modules built into the kernel will perform faster than those loaded outside of the kernel.

No, the kernel links them into the kernel in the same way a DLL is loaded. No penalties (except for loading times). In fact, you only need to store modules built into the kernel if the kernel needs those modules to access /lib/modules. In other words, you should build in your hard disk controller and filesystem, and the rest can be modules.

Quote:

I could go the genkernel route, but I'd rather learn to understand and identify modules.

Genkernel won't save you form that. I actually don't really find the script that useful, it just creates a more heavyweight boot process.

Could you show what the message your system gave was, and please post /etc/fstab and /boot/grub/grub.conf?

bamccaig
HoHo said:

If you can't get past GRUB then I think that it cannot find a kernel to boot. Most common problem is a typo in grub.conf, anotherone is forgetting to do "make install" in kernel source dir while /boot is mounted

I'll double check, but I'm 90% confident that grub.conf is accurate. The Gentoo Handbook doesn't actually make install the kernel. Instead, it does make && make install_modules and then manually copies the kernel image into /boot.

cd /usr/src/linux/
make menuconfig
make && make install_modules
cp arch/<arch>/boot/bzImage /boot/<kernel>

It's difficult to be confident that I did make && make install_modules at the appropriate time because I entered and reentered make menuconfig 3 or 4 times trying to make sense of which modules to build (and which ones were being built where). :-/ It's possible that I built at the wrong time, etc... It's also very likely that my kernel is missing modules and that my system itself is lacking modules.

CGamesPlay said:

No, the kernel links them into the kernel in the same way a DLL is loaded. No penalties (except for loading times). In fact, you only need to store modules built into the kernel if the kernel needs those modules to access /lib/modules. In other words, you should build in your hard disk controller and filesystem, and the rest can be modules.

That makes sense. :) Thanks. So perhaps the problem isn't the kernel, but the lack of external modules (because only one existed there was only one I could add to /etc/modules.autoload.d/<kernel_version> - which was scsi related, not that it necessarily matters :)). :-/

CGamesPlay said:

Could you show what the message your system gave was, and please post /etc/fstab and /boot/grub/grub.conf?

I definitely will as soon as I get home.

Don Freeman

You should be using the correct make options for the kernel:;)

make menuconfig
make && make modules_install && make install

Also, post the output of:

cd /boot/
dir * -R

You can usually just use vmlinuz, but I prefer to actually fully qualify the name.8-)

As for modules, I prefer to find out which ones I need and build those into the kernel. Why keep these out? Granted there are times when you may need to do this, but I would imagine that building them into the kernel is more secure....it is in the kernel, so who can hack it?;)::)

Edit:
Also, when you chroot, be careful that everything is correct. You can think you are chrooted, but you are not. Just be careful. If you are using the same arch (say i686), you can chroot from any Linux distro that matches that arch....(I know you can't chroot into a 64bit environment from a 32bit environment though:-/).

Edit 2:
How grub uses the different drives is in the /boot/grub/device.map file
Example:

(hd0)     /dev/sda
(hd1)     /dev/sdb

Then when you reference a drive in grub (like the /boot/grub/grub.conf file):

root (hd1,0)      //really /dev/sdb1
kernel /vmlinuz-2.6.22-gentoo-r2 root=/dev/sdb3 //set root= to your actual / directory

bamccaig
Don Freeman said:

Also, when you chroot, be careful that everything is correct. You can think you are chrooted, but you are not. Just be careful. If you are using the same arch (say i686), you can chroot from any Linux distro that matches that arch....(I know you can't chroot into a 64bit environment from a 32bit environment though:-/).

Yes, one thing that I realized ~10-30 minutes after chroot'ing into my new environment was that it only affected (effected? I should really clear those up... The xkcd comic made it clear how poorly I understood the differences...) the current terminal. It made sense, but didn't occur to me originally. Since I was switching between all 6 text-terminals it became a minor issue, though I mostly used the other terminals to browse the Web as a regular user.

Don Freeman

I have updated my last post about grub...please re-read.::)

Edit:

I said:

I know you can't chroot into a 64bit environment from a 32bit environment though.:-/

Just one more reason to run a 64-bit environment!;D They better be 64-bit to chroot me!8-)
I remember when I first started with Gentoo and chrooted (well thought I was), I untarred the portage tarball on the livecd base system...didn't hurt anything, just a reboot...but boy, I felt stupid!;D

Gentoo will make you learn a lot of things about Linux...it is not the easiest distro by far, but that is why I like it so much.8-)

Edit 2:
What file system did you decide to take? I know that the xfs file system has some really powerful backup tools...saves the entire partition for you...and it doesn't bog down the system. You can't even tell when it is running.::)

Thomas Fjellstrom

oh, if you''re not well versed in kernel configuring, you can just borrow the config from the livecd, it should be in /boot/config*, which you copy to /usr/src/linux/.config then run "make oldconfig", and continue on. After compiling the kernel you may want to create the initrd image, especially if your root part is on lvm or md raid (unless you made sure those drivers were built into the kernel instead of being modules as the livecd config sets up).

Don Freeman

You don't need an initrd...not normally anyway. The only time I have seen the need is when doing EVMS.:)

bamccaig
Don Freeman said:

Just one more reason to run a 64-bit environment!;D They better be 64-bit to chroot me!8-)

According to my interpretation of the Wikipedia article, my processor (Pentium D 940, IIRC) should be 64-bit (or at least supports the x86-64 instruction set? :-/)... I thought it was 32-bit because the Windows version installed was 32-bit... Cool. :)

Don Freeman said:

I remember when I first started with Gentoo and chrooted (well thought I was), I untarred the portage tarball on the livecd base system...didn't hurt anything, just a reboot...but boy, I felt stupid!;D

The Gentoo Handbook has us untar both the stage3 archive and portage snapshot before chroot'ing, making sure to untar them in /mnt/gentoo and /mnt/gentoo/usr, respectively. Also when we do chroot into the new environment we update the prompt with a (chroot) prefix.

(chroot) livecd /#

I guess that's why. :P

BTW, when you're running off of the Gentoo Installation CD where does it store files that are written to the filesystem...? :-/ I got the impression that "tmpfs" had something do with it, but wasn't sure... Are they all just kept in memory or does it find a piece of unallocated space somewhere and write to there? :-/

Don Freeman said:

What file system did you decide to take? I know that the xfs file system has some really powerful backup tools...saves the entire partition for you...and it doesn't bog down the system. You can't even tell when it is running.::)

I went with ext3 because it seems like a pretty common choice and it's what the Gentoo Handbook did. IIRC, they recommended not to use XFS unless you had a SCSI drive for whatever reason. Since I'm using a SATA HDD I figured that I should just stick to ext3. :-/

Thomas Fjellstrom said:

oh, if you''re not well versed in kernel configuring, you can just borrow the config from the livecd, it should be in /boot/config*, which you copy to /usr/src/linux/.config then run "make oldconfig", and continue on. After compiling the kernel you may want to create the initrd image, especially if your root part is on lvm or md raid (unless you made sure those drivers were built into the kernel instead of being modules as the livecd config sets up).

That sounds like a viable option, though I would still prefer to understand the modules... :-/ One of the installation docs I was reading suggested that as well, but not until after I had chroot'd into the new environment. At the time, I didn't know it was possible to just exit back to the previous root (/) so I figured that the livecd[/"tmpfs"?]'s /boot partition was lost until I rebooted. :-/ Of course when it came time to actually reboot I was enlightened. :D

Don Freeman said:

You don't need an initrd...not normally anyway. The only time I have seen the need is when doing EVMS.:)

Apparently the genkernel script builds one... I don't have a clue what it is or why it's needed though.

Don Freeman

If that is indeed the processor you have, then yes...you can run gentoo in 64-bit mode. It is a little more of a pain to get right, not something I recommend for you just starting Gentoo. If you want in the future, I will help you with that...it has to do with the way it deals with 32-bit and 64-bit libraries. Also, no 64-bit flash player yet...:(

Quote:

Apparently the genkernel script builds one... I don't have a clue what it is or why it's needed though.

Yes, but you do not NEED the initrd file. genkernel is just that...a generic kernel. You could have just copied the livecd kernel for that! It is a generic kernel...it has to support everything!;) You just:

cd /usr/src/linux
make menuconfig
make && make modules_install && make install
modules_update
mc -e /boot/grub/grub.conf // or use whatever editor you have (vi?)

A sample of the packages you may find useful (When we get you up and running.:P)

1app-admin/eselect
2app-admin/logrotate
3app-admin/sudo
4app-admin/syslog-ng
5app-arch/karchiver
6app-arch/mscompress
7app-arch/rar
8app-arch/rpm
9app-arch/unace
10app-arch/unrar
11app-cdr/k3b
12app-dicts/myspell-en
13app-emulation/wine
14app-misc/colordiff
15app-misc/hal-info
16app-misc/mc
17app-office/openoffice
18app-portage/conf-update
19app-portage/elogv
20app-portage/esearch
21app-portage/euses
22app-portage/gentoolkit
23app-portage/profuse
24app-text/iso-codes
25app-text/ispell
26dev-db/mysql
27dev-games/cegui
28dev-games/clanlib
29dev-java/java-config
30dev-lang/php
31dev-libs/libusb
32dev-util/kdevelop
33games-util/joystick
34kde-base/kde-meta
35kde-base/kdejava
36media-gfx/gimp
37media-libs/allegro
38media-libs/allegrogl
39media-sound/alsa-utils
40media-sound/amarok
41media-video/kaffeine
42media-video/kmplayer
43media-video/mplayer
44media-video/nvidia-settings
45net-misc/dhcp
46net-misc/dhcpcd
47sys-apps/dog
48sys-apps/eject
49sys-apps/pciutils
50sys-apps/slocate
51sys-boot/grub
52sys-fs/ntfs3g
53sys-fs/progsreiserfs
54sys-fs/reiserfsprogs
55sys-fs/xfsprogs
56sys-kernel/gentoo-sources
57sys-process/vixie-cron
58www-client/links
59www-client/mozilla-firefox
60www-servers/apache
61x11-apps/mesa-progs
62x11-base/xorg-x11
63x11-drivers/nvidia-drivers
64x11-libs/qt

I would start with mc (midnight commander: awesome), gentoolkit, pciutils, eselect, and definately euses (helps with finding out what the use flags are used for).

An example of euses:

euses doc
doc - Adds extra documentation (API, Javadoc, etc)
dev-java/gjdoc:xmldoclet - Also build support for the xml doclet that generates output in xml instead of the traditional html javadoc.
sys-apps/portage:epydoc - Generate api documentation with epydoc.
www-apps/knowledgetree:opendoc - Allow to search in opendoc documents

8-)

CGamesPlay
Quote:

BTW, when you're running off of the Gentoo Installation CD where does it store files that are written to the filesystem...? :-/ I got the impression that "tmpfs" had something do with it, but wasn't sure... Are they all just kept in memory or does it find a piece of unallocated space somewhere and write to there? :-/

tmpfs is a RAM filesystem, so they aren't saved to your disk.

Quote:

That sounds like a viable option, though I would still prefer to understand the modules... :-/

And I think that's a good choice. If I were you, I would strip your kernel to the bare minimum needed to get to a login prompt, and everything should be compiled into the kernel. Then, once you are on your system, you can change the kernel modules and activate them without even restarting.

Quote:

Yes, but you do not NEED the initrd file. genkernel is just that...a generic kernel.

Not actually important, but genkernel is "generate kernel" :P

Anyways, I don't think we can really work on the problem any more until we know exactly what it is, so let us know what the boot messages are, what your /etc/grub/grub.conf is, and what you /etc/fstab is :)

Don Freeman

Yeah...and stuff. ;D Also, if you can post the output of lspci...we could probably help you pick the correct modules to build into your kernel, so you can actually boot into it.::)

MiquelFire

Another package you may want is screen. I use it all the time when updating my system.

BAF
Quote:

That makes sense. Thanks. So perhaps the problem isn't the kernel, but the lack of external modules (because only one existed there was only one I could add to /etc/modules.autoload.d/<kernel_version> - which was scsi related, not that it necessarily matters ).

No, the problem is either the bootloader, or the kernel. Wether or not you have modules or if it's all compiled into the kernel, etc doesn't matter. The lack of modules won't affect your system's ability to boot, but missing modules that aren't compiled into the kernel can cause various hardware not to work.

Thomas Fjellstrom
Quote:

The lack of modules won't affect your system's ability to boot, but missing modules that aren't compiled into the kernel can cause various hardware not to work.

Not true at all. If ext3 is a module, and/or lvm or your ide driver is a module, and they aren't loaded, it'll never get past the boot loader. Immediate fail.

BAF

I meant to say external modules. My point was the lack of stuff in his modules.autoload.d or actual external modules themselves do not affect the boot process at all (with the assumption you have the correct internal modules, but that has nothing to do with his theory that lack of external modules were causing the problem).

Thomas Fjellstrom
Quote:

(with the assumption you have the correct internal modules, but that has nothing to do with his theory that lack of external modules were causing the problem

There is no such thing as "internal modules". You have modules, and you have "not modules". :P You assumption is flawed.

bamccaig

It appears instead to be having problems with the /boot partition, though it is somehow reading /boot/grub/grub.conf. While I was fetching the following information it occurred to me that lvm2 isn't even installed on my system... :-/ I'm sure that will help eventually. :D

/boot

1(chroot) livecd / # ls -Rla /boot
2/boot:
3total 2458
4drwxr-xr-x 4 root root 1024 Dec 2 23:10 .
5drwxr-xr-x 18 root root 4096 Dec 3 14:40 ..
6-rw-r--r-- 1 root root 0 Apr 19 2007 .keep
7lrwxrwxrwx 1 root root 1 Dec 2 13:49 boot -> .
8drwxr-xr-x 2 root root 1024 Dec 2 23:12 grub
9-rw-r--r-- 1 root root 2486320 Dec 2 22:15 kernel-2.6.22-gentoo-r9
10drwx------ 2 root root 12288 Dec 2 13:06 lost+found
11 
12/boot/grub:
13total 327
14drwxr-xr-x 2 root root 1024 Dec 2 23:12 .
15drwxr-xr-x 4 root root 1024 Dec 2 23:10 ..
16-rw-r--r-- 1 root root 7584 Dec 2 23:10 e2fs_stage1_5
17-rw-r--r-- 1 root root 7424 Dec 2 23:10 fat_stage1_5
18-rw-r--r-- 1 root root 6720 Dec 2 23:10 ffs_stage1_5
19-rw-r--r-- 1 root root 828 Dec 2 23:25 grub.conf
20-rw-r--r-- 1 root root 1842 Dec 2 23:10 grub.conf.sample
21-rw-r--r-- 1 root root 6720 Dec 2 23:10 iso9660_stage1_5
22-rw-r--r-- 1 root root 8192 Dec 2 23:10 jfs_stage1_5
23lrwxrwxrwx 1 root root 9 Dec 2 23:10 menu.lst -> grub.conf
24-rw-r--r-- 1 root root 6848 Dec 2 23:10 minix_stage1_5
25-rw-r--r-- 1 root root 9280 Dec 2 23:10 reiserfs_stage1_5
26-rw-r--r-- 1 root root 33856 Dec 2 23:10 splash.xpm.gz
27-rw-r--r-- 1 root root 512 Dec 2 23:10 stage1
28-rw-r--r-- 1 root root 104924 Dec 2 23:10 stage2
29-rw-r--r-- 1 root root 104924 Dec 2 23:10 stage2_eltorito
30-rw-r--r-- 1 root root 7040 Dec 2 23:10 ufs2_stage1_5
31-rw-r--r-- 1 root root 6272 Dec 2 23:10 vstafs_stage1_5
32-rw-r--r-- 1 root root 8936 Dec 2 23:10 xfs_stage1_5
33 
34/boot/lost+found:
35total 13
36drwx------ 2 root root 12288 Dec 2 13:06 .
37drwxr-xr-x 4 root root 1024 Dec 2 23:10 ..

/boot/grub/grub.conf

1# Which listing to boot as default. 0 is the first, 1 the second, etc.
2default 0
3# How many seconds to wait before the default listing is booted.
4timeout 10
5# Nice, fat splash-image to spice things up. :)
6# Comment out if you don't have a graphics card installed.
7#splashimage=(hd1,0)/grub/splash.xpm.gz
8 
9# ------- Listings: -------
10 
11 
12 
13title=Gentoo Linux 2.6.22-r9
14# Partition where the kernel image (or operating system) is located.
15root (hd1,0)
16kernel /kernel-2.6.22-gentoo-r9 root=/dev/sdb3 dolvm2
17 
18 
19 
20title=Gentoo Linux 2.6.22-r9 (rescue)
21# Partition where the kernel image (or operating system) is located.
22root (hd1,0)
23kernel /kernel-2.6.22-gentoo-r9 root=/dev/sdb3 init=/bin/bb dolvm2
24 
25 
26 
27# The next four lines are only if you dualboot with a Windows system.
28title=Windows XP
29rootnoverify (hd0,0)
30makeactive
31chainloader +1

/etc/fstab

1# /etc/fstab: static file system information.
2#
3# noatime turns off atimes for increased performance (atimes normally aren't
4# needed; notail increases performance of ReiserFS (at the expense of storage
5# efficiency). It's safe to drop the noatime options if you want and to
6# switch between notail / tail freely.
7#
8# The root filesystem should have a pass number of either 0 or 1.
9# All other filesystems should have a pass number of 0 or greater than 1.
10#
11# See the manpage fstab(5) for more information.
12#
13 
14# <fs> <mountpoint> <type> <opts> <dump/pass>
15 
16# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
17/dev/sdb1 /boot ext2 noauto,noatime 1 2
18/dev/sdb3 / ext3 noatime 0 1
19/dev/sdb2 none swap sw 0 0
20/dev/VOLGROUP001/home /home ext3 noatime 0 1
21/dev/VOLGROUP001/opt /opt ext3 noatime 0 1
22/dev/VOLGROUP001/usr /usr ext3 noatime 0 1
23/dev/VOLGROUP001/var /var ext3 noatime 0 1
24/dev/cdrom /mnt/cdrom audo noauto,ro 0 0
25#/dev/fd0 /mnt/floppy auto noauto 0 0
26 
27# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
28# POSIX shared memory (shm_open, shm_unlink).
29# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
30# use almost no memory if not populated with files)
31shm /dev/shm tmpfs nodev,nosuid,noexec 0 0

It would appear the pass numbers for /home, /opt, /usr, and /var should be something other than 1... :)

When I try to boot the first listing (/dev/sdb)

Booting 'Gentoo Linux 2.6.22-r9'

root (hd1,0)
 Filesystem type unknown, partition type 0x7
kernel /kernel-2.6.22-gentoo-r9 root=/dev/sdb3 dolvm2

Error 17: Cannot mount selected partition

Press any key to continue...

BAF

I don't know anything about LVM, so I can't really help. I always just install straight up. Sounds like you need some LVM module or something, or maybe an initrd.

The Gentoo Wiki points here for info on installing with LVM. That should help.

bamccaig
BAF said:

The Gentoo Wiki points here for info on installing with LVM. That should help.

Thanks for the link. I had combined this with the Gentoo Handbook to get my lvm2 partition created and to load it, etc. It seemed to be a little bit more disconnected from the Gentoo Handbook requiring me to fill in the gaps a little bit more. The one you link to seems to compliment the Gentoo Handbook so it will surely help.

Unfortunately, I'm still not sure which modules I should build into my kernel and which ones I should build into external modules. Also, grub doesn't seem to be getting as far as the lvm2 partition so I don't think that's the issue. If anything, those partitions would fail, but my base system would have booted successfully.

So I don't think lvm2 is my immediate problem. :-/

le_y_mistar

back in the day, when i didnt know better and used gentoo, i'd geet annoyed of compiling the kernel...So, I'd copy the kernel from the livecd and the associate modules into my current install, and i'd be able to boot off of it with, saved a lot of time and effort and comes with all the modules that you would need.

Seriously dude, why don't you just go debian or ubuntu?

BAF

The only things you have to build into the kernel are your file systems and any drivers required to get access to your /boot partition. The rest can be external and loaded as needed for other hardware.

CGamesPlay
Quote:

Booting 'Gentoo Linux 2.6.22-r9'

root (hd1,0)
 Filesystem type unknown, partition type 0x7
kernel /kernel-2.6.22-gentoo-r9 root=/dev/sdb3 dolvm2

Error 17: Cannot mount selected partition

Press any key to continue...

Partition type 0x7 is NTFS. Go back into cfdisk and set the type of the partition on your swap and root drives. If that is set correctly, then you need to verify your grub identifiers. You can do that from the grub console from within your chroot.

bamccaig
CGamesPlay said:

Partition type 0x7 is NTFS. Go back into cfdisk and set the type of the partition on your swap and root drives. If that is set correctly, then you need to verify your grub identifiers. You can do that from the grub console from within your chroot.

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? :-/

Don Freeman

Yes, make sure that it is indeed pointing to the correct drive.8-)
You can also do this inside the grub menu. press e to edit that line. You will have to fix this in the grub.conf file, but it will at least allow you to boot.:P

CGamesPlay
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.

bamccaig
I said my /etc/fstab said:

/dev/cdrom /mnt/cdrom audo noauto,ro 0 0

audo!? That can't be right! :P I wonder if I did that or if the template came like that...

Marco Radaelli

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! :P I wonder if I did that or if the template came like that...

Either way that's not preventing your booting process, it's auto BTW ;)

bamccaig
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... ??? Thanks. I'll check it out when I get home. Does anybody have an explanation for why grub would interpret them that way?

** EDIT **

I said:

[quote I said my /etc/fstab]/dev/cdrom /mnt/cdrom audo noauto,ro 0 0

audo!? That can't be right! :P I wonder if I did that or if the template came like that...
</quote>
I know you probably thought it was my mistake, but here is /etc/fstab from the current releases/x86/2007.0/stages/stage3-i686-2007.0.tar.bz2 archive on the Tera-byte Dot Com Inc (Canada/http) Gentoo mirror.

1# /etc/fstab: static file system information.
2#
3# noatime turns off atimes for increased performance (atimes normally aren't
4# needed; notail increases performance of ReiserFS (at the expense of storage
5# efficiency). It's safe to drop the noatime options if you want and to
6# switch between notail / tail freely.
7#
8# The root filesystem should have a pass number of either 0 or 1.
9# All other filesystems should have a pass number of 0 or greater than 1.
10#
11# See the manpage fstab(5) for more information.
12#
13 
14# <fs> <mountpoint> <type> <opts> <dump/pass>
15 
16# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
17/dev/BOOT /boot ext2 noauto,noatime 1 2
18/dev/ROOT / ext3 noatime 0 1
19/dev/SWAP none swap sw 0 0
20/dev/cdrom /mnt/cdrom audo noauto,ro 0 0
21#/dev/fd0 /mnt/floppy auto noauto 0 0
22 
23# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
24# POSIX shared memory (shm_open, shm_unlink).
25# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
26# use almost no memory if not populated with files)
27shm /dev/shm tmpfs nodev,nosuid,noexec 0 0

I guess you could consider that a bug worth reporting... :-/

le_y_mistar

having fun compiling gentoo night after night eh;D

bamccaig

There hasn't actually been a whole lot of compiling thus far... The little bit there has been was fast and pretty. :D

I made the following changes to /boot/grub/grub.conf and reinstalled grub.

1# Which listing to boot as default. 0 is the first, 1 the second, etc.
2default 0
3# How many seconds to wait before the default listing is booted.
4timeout 10
5# Nice, fat splash-image to spice things up. :)
6# Comment out if you don't have a graphics card installed.
7#splashimage=(hd0,0)/grub/splash.xpm.gz
8 
9# ------- Listings: -------
10 
11 
12 
13title=Gentoo Linux 2.6.22-r9
14# Partition where the kernel image (or operating system) is located.
15root (hd0,0)
16kernel /kernel-2.6.22-gentoo-r9 root=/dev/sdb3 dolvm2
17 
18 
19 
20title=Gentoo Linux 2.6.22-r9 (rescue)
21# Partition where the kernel image (or operating system) is located.
22root (hd0,0)
23kernel /kernel-2.6.22-gentoo-r9 root=/dev/sdb3 init=/bin/bb dolvm2
24 
25 
26 
27# The next four lines are only if you dualboot with a Windows system.
28title=Windows XP
29rootnoverify (hd1,0)
30makeactive
31chainloader +1

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? :-/

CGamesPlay

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?

Thomas Fjellstrom

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
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. :D

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
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.

bamccaig
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. :-/ I'd guess it's the kernel modules.

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. ;D

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... :-/ Once I figure out the stage3 I'll probably attempt a stage2 and stage1. :D

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.

CGamesPlay
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.

Thomas Fjellstrom

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
CGamesPlay said:

If you can't find the right module, giving us the output of lspci will help us identify it.

1(chroot) livecd / # lspci
200:00.0 Host bridge: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub (rev 81)
300:01.0 PCI bridge: Intel Corporation 82945G/GZ/P/PL PCI Express Root Port (rev 81)
400:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
500:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
600:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
700:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
800:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
900:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
1000:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
1100:1f.0 ISA bridge: Intel Corporation 82801GH (ICH7DH) LPC Interface Bridge (rev 01)
1200:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
1300:1f.2 RAID bus controller: Intel Corporation 82801GR/GH (ICH7 Family) SATA RAID Controller (rev 01)
1400:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
1501:00.0 VGA compatible controller: nVidia Corporation G72 [GeForce 7300 LE] (rev a1)
1602:01.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev c0)
1702:03.0 Ethernet controller: Atheros Communications, Inc. AR5006X 802.11abg NIC (rev 01)
1802:04.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
1902:05.0 Communication controller: Agere Systems Unknown device 0620
2002:08.0 Ethernet controller: Intel Corporation 82801G (ICH7 Family) LAN Controller (rev 01)

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... :-/ I don't know.

CGamesPlay

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).

Thomas Fjellstrom
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 don't know.

I call bunk. ;) I don't see why it'd be recommended.

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

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
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
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.

:P

Don Freeman
Quote:

Interesting... ??? Thanks. I'll check it out when I get home. Does anybody have an explanation for why grub would interpret them that way?

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
This is also in the Gentoo handbook, in the section about installing grub.::) Also, when in the grub menu on boot, you can hand edit each line. You can use tab completion (limited, and sorta retarded...but doable) to find out what drive hd0 or hd1 is pointing to and what files are in the boot directory (actually where grub was installed).8-)

Quote:

CGamesPlay said:
If you can't find the right module, giving us the output of lspci will help us identify it.

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
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... :-/ Once I figure out the stage3 I'll probably attempt a stage2 and stage1. :D

Well, do not do it unless you like watching tons of compilation lines flow through the screen (like me ;D), because IIRC a stage1 implies compiling the whole toolchain (I guess that's the right name).

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

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
Quote:

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)

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?
This should be something like:

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
(hd0) /dev/sda
(hd1) /dev/sdb

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
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 ;D

bamccaig

I'm going to attempt to rebuild the kernel tonight (I hope). I wish there was a disable-all option so I could start with a bare kernel. IIRC, many of the modules are enabled by default. Thanks to CGamesPlay, Thomas Fjellstrom, BAF, [and anybody I forgot to mention] for the module help. I will try to identify the required modules tonight.

Don Freeman said:

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
This is also in the Gentoo handbook, in the section about installing grub.::) Also, when in the grub menu on boot, you can hand edit each line. You can use tab completion (limited, and sorta retarded...but doable) to find out what drive hd0 or hd1 is pointing to and what files are in the boot directory (actually where grub was installed).8-)

Yes, I'm listening to you! :D I appreciate your help. For whatever reason, booting my slave drive (/dev/sdb) from the BIOS makes grub believe that it is actually (hd0). This has been confirmed by creating a listing for each and attempting to boot both. I can't explain, but if you can then please do. Marco Radaelli has confirmed that grub works the same way for him. /dev/sdb should be (hd1), and while running from the livecd it truly is, but apparently when booting from the BIOS it becomes (hd0). :-/

BTW, is there a reason that I don't have a /boot/grub/device.map?

Don Freeman said:

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

Ah yes, lsmod! I was trying to remember what command that was and couldn't... I did a search of the thread and couldn't find it anywhere (maybe it was said in the last thread?). It was also in the Gentoo Handbook, but at the time I was too exhausted to continue looking for it. I will try to post that tonight.

Don Freeman said:

Also, are you using hd0,1 or hd1,0 for the root in your /boot/grub/grub.conf file?

I already posted my /boot/grub/grub.conf file and the bootable revision. :P

le_y_mistar

hahahahaha what a roller coaster of a thread, how many days have you been compiling gentoo with all these kids?:P

Don Freeman
Quote:

Yes, I'm listening to you! :D I appreciate your help.
Don Freeman said:
Also, are you using hd0,1 or hd1,0 for the root in your /boot/grub/grub.conf file?
I already posted my /boot/grub/grub.conf file and the bootable revision. :P

I guess I wasn't listening...::);D I will try to help you more...got to get back to my computer first.

In the mean time, try to
read this
Read the section on the grub shell. I believe that this is what I did because grub-install did not work for me.:o

If that does not create one for you, simple create the file /boot/grub/default.map Then fill it in like:

(hd0)     /dev/sda
(hd1)     /dev/sdb

And in the /boot/grub/grub.conf file: (using the above example from default.map)

root (hd1,0)      //really /dev/sdb1
kernel /vmlinuz-2.6.22-gentoo-r2 root=/dev/sdb3 //set root= to your actual / directory

Any time that you change the /boot/grub/default.map file you should re-run:

>grub
grub> root (hd0,0)    #(Specify where your /boot partition resides)
grub> setup (hd0)     #(Install GRUB in the MBR)
grub> quit            #(Exit the GRUB shell)

Just remember that the number will be one less than the actual partition number, just like in fdisk. (/dev/sdb1 is really (hd1,0) and /dev/sdb4 is really (hd1,3)::)

Edit:

Quote:

For whatever reason, booting my slave drive (/dev/sdb) from the BIOS makes grub believe that it is actually (hd0). This has been confirmed by creating a listing for each and attempting to boot both. I can't explain, but if you can then please do. Marco Radaelli has confirmed that grub works the same way for him.

If you are using the BIOS to manually boot your second drive, then it will! If you properly installed grub, then you should not have to do that. You install grub in the mbr of the first drive and then from there, everything is relative to that. If you want to manually boot using your BIOS, then in your /boot/grub/grub.conf:

map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,0)      //really /dev/sdb1
kernel /vmlinuz-2.6.22-gentoo-r2 root=/dev/sdb3 //set root= to your actual

This will swap the drives around.::)

bamccaig
Don Freeman said:

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

1livecd /root # lsmod
2Module Size Used by
3sg 19484 0
4eth1394 12548 0
5e100 22792 0
6mii 3968 1 e100
7rtc 7476 0
8tg3 88324 0
9e1000 90432 0
10nfs 85180 0
11lockd 41352 1 nfs
12sunrpc 99644 2 nfs,lockd
13jfs 143340 0
14dm_mirror 13008 0
15dm_mod 31896 1 dm_mirror
16pdc_adma 4868 0
17sata_mv 11656 0
18ata_piix 8072 0
19ahci 11268 0
20sata_qstor 4996 0
21sata_vsc 4100 0
22sata_uli 3204 0
23sata_sis 3844 0
24sata_sx4 8452 0
25sata_nv 4740 0
26sata_via 4868 0
27sata_svw 3844 0
28sata_sil24 8708 0
29sata_sil 5384 0
30sata_promise 6276 0
31libata 61460 15 pdc_adma,sata_mv,ata_piix,ahci,sata_qstor,sata_vsc,sata_uli,sata_sis,sata_sx4,sata_nv,sata_via,sata_svw,sata_sil24,sata_sil,sata_promise
32sbp2 15364 0
33ohci1394 24880 0
34ieee1394 53176 3 eth1394,sbp2,ohci1394
35sl811_hcd 8320 0
36usbhid 29792 0
37ohci_hcd 13572 0
38uhci_hcd 15240 0
39usb_storage 57280 0
40ehci_hcd 19976 0
41usbcore 78084 7 sl811_hcd,usbhid,ohci_hcd,uhci_hcd,usb_storage,ehci_hcd

Don Freeman

Hi bamccaig...I edited my last post. Read the edit about the map command. Slow getting home.:'( Thanks for posting that...should help us figure that out for you.8-)

Edit:
Also, what are your modules that you have in your kernel? You can post your /usr/src/linux/.config file.::) This way we can see what you need compared to what you selected.:D

bamccaig
Don Freeman said:

If you properly installed grub, then you should not have to do that. You install grub in the mbr of the first drive and then from there, everything is relative to that.

Yeah, but I've heard that Windows has a tendency to overwrite the MBR at it's own leisure, which for dual-booters can often require booting a rescue CD or something to reinstall their bootloader. I just find it easier to install grub on my slave drive and boot my slave drive from my BIOS.

Don Freeman

I have done this and yet to have had a problem. The only time windows will try to rewrite the mbr is if you are reinstalling windows. Even then, a simple boot into you distro of choice, and do a grub-install. Simple.;) Even better, keep a backup of the mbr for situations like this.8-)

Jonatan Hedborg

Am i the only one who finds le_y_mistar annoying? And I don't even use gentoo.

My god, there is not a single thread where you don't mention gentoo. It's almost like gentoo broke your heart at some point, and you are really really bitter about it.

Don Freeman

I totally agree....if he doesn't like Gentoo...then go somewhere else...or at least shut the fuck up!;D

bamccaig
Don Freeman said:

Also, what are your modules that you have in your kernel? You can post your /usr/src/linux/.config file.::) This way we can see what you need compared to what you selected.:D

/usr/src/linux/.config :-[

Don Freeman

Ok...I am fixing this for you...
You may need to look at some of this to see if you need things like PCI Express support (I don't). Bump me after reading this so I can post the updated config and tell you how to use it.8-)

CGamesPlay

bamccaig, what is your current status? :)

bamccaig
CGamesPlay said:

bamccaig, what is your current status? :)

Too exhausted to attempt to compile a kernel tonight... :-/ Tomorrow (or at the latest, the weekend) I will try again...

Don Freeman

bamccaig: what kind of sound card and video card do you have...I almost have your .config done...::)

CGamesPlay

So this is your most recent kernel output? http://www.allegro.cc/forums/thread/594244/713620#target

Don Freeman

Never mind...this should work!;D Do the following:

>cp config /usr/src/linux/.config
>cd /usr/src/linux
>make oldconfig
>make menuconfig
>make && make modules_install && make install

That should do ya!::)8-)

Edit:
I will check on you kiddies latter...gotta go shoppin.:'( Must..get..caffeine..;D

BAF
Quote:

Am i the only one who finds le_y_mistar annoying? And I don't even use gentoo.

My god, there is not a single thread where you don't mention gentoo. It's almost like gentoo broke your heart at some point, and you are really really bitter about it.

Just ignore him. If he doesn't get any attention for trolling, he will stop eventually. :P

bamccaig
CGamesPlay said:

So this is your most recent kernel output?

Yep.

Don Freeman

I've modified your config file. It should work for you. It is here, along with instructions on how to use it. Well...got to get some sleep. 6:00am comes early.:-/Will check in later tomorrow. Don't know if I will get a chance to at work, but hopefully.8-)

bamccaig

"Clear!" [Bzzzt!]

CGamesPlay

Uhm, we're waiting for output from you...

bamccaig
CGamesPlay said:

Uhm, we're waiting for output from you...

I was just keeping it alive until I could get around to...requiring output. :-[

MiquelFire

You could have made a part three.

CGamesPlay

Naw, trilogies never work out. Just look at the Matrix and Pirates of the Caribbean.

Jakub Wasilewski

Or Star Wars.

le_y_mistar

still compiling gentoo with fellow neckbeards?

bamccaig
le_y_mistar said:

still compiling gentoo with fellow neckbeards?

:P

Thread #594244. Printed from Allegro.cc