You are not logged in.

#1 2008-01-23 14:39:50

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

pata & modules in mkinitcpio.conf and rc.conf [solved]

hello,

last year when i installed arch i used the ide-legacy module for my ide stuff, because of compatibility reasons  (my hardware is quite old: mainboard 7 years, hdd 3 years, cdrom 5 years). i wanted yesterday to switch to pata. i changed following files: menu.lst, fstab and finally mkinitcpio.conf, ran "mkinitcpio -g kernel26pata.img" like described in a thread here (http://bbs.archlinux.org/viewtopic.php?id=32296).
here are the relevant entries:
fstab:

/dev/sda5               /                           reiserfs        defaults           0      1
/dev/sda1               /boot                       ext3            defaults           0      2
/dev/sda6               /var                        reiserfs        defaults           0      2
/dev/sda4               /home                       reiserfs        defaults           0      2
/dev/sda3               none                        swap            sw                 0      0

menu.lst:

# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /vmlinuz26 root=/dev/sda5 resume=/dev/sda3 ro vga=773
initrd /kernel26pata.img

and finally mkinitcpio.conf:

MODULES="generic via82cxxx"
HOOKS="base udev autodetect pata filesystems"

note that the MODULES array is the one automatically generated at installation.
and for the sake of completeness here are also some relevant entries from rc.conf:

MOD_AUTOLOAD="yes"
MODULES=(8139cp 8139too mii slhc ac97_bus snd-mixer-oss snd-pcm-oss snd-seq-oss snd-seq-device snd-seq-midi-event snd-seq snd-hwdep snd-page-alloc snd-pcm snd-rawmidi snd-timer snd snd-ac97-codec snd-emu10k1 snd-bt87x soundcore snd-util-mem i2c-viapro w83781d via686a lirc_sir fuse truecrypt joydev)
DAEMONS=(syslog-ng hal @network @netfs sshd @gpm @crond @adsl @alsa @anacrond dovecot postfix lircd privoxy tor)

here the same: the MODULES array is the one generated at installation. i only added the last four.

however, everytime i wanted to boot into arch the hdd and cdrom was detected as hd* not sd* and further booting failed because of the fstab entries (messages like: unable to detect /dev/sda5 etc). obviously the ide modules still get loaded instead of the pata ones.

now i'm clueless. what did i do wrong?
is there a way to automagically generate the MODULES array in mkinitcpio.conf, so the pata-hook affects?
i don't really want to edit this by hand or do this by try-and-error.

and another question: when i change my hardware (let's say i use another soudcard with another module), is there a way to regenerate the MODULES array in rc.conf?
i know i can use hwdetect --modules, but this shows about 70 modules.

some more information:

root@computer:~ # lshwd 
00:00.0 Class 0600: VIA Technologies Inc.|VT82C691 [Apollo PRO] (via-agp)
00:01.0 Class 0604: VIA Technologies Inc.|VT82C598 [Apollo MVP3 AGP] (unknown)
00:04.0 Class 0601: VIA Technologies Inc.|VT82C686 [Apollo Super] (unknown)
00:04.1 Class 0101: VIA Technologies Inc.|VT82C586 IDE [Apollo] (snd_via82xx)
00:04.2 Class 0c03: VIA Technologies Inc.|VT82C586B USB (uhci_hcd)
00:04.3 Class 0c03: VIA Technologies Inc.|VT82C586B USB (uhci_hcd)
00:04.4 Class 0600: VIA Technologies Inc.|VT82C686 [Apollo Super ACPI] (i2c-viapro)
00:06.0 Class 0200: Realtek Semiconductor|TTP-Monitoring Card V2.0 (8139too)
00:07.0 Class 0401: Creative Labs|SB Live! (audio) (snd-emu10k1)
00:07.1 Class 0980: Creative Labs|SB Live! (joystick) (emu10k1-gp)
00:08.0 Class 0200: D-Link System Inc.|DFE 530 TX+ Fast Ethernet Adapter (8139too)
00:0a.0 Class 0400: Brooktree Corp.|Bt878 (bttv)
00:0a.1 Class 0480: Brooktree Corp.|WinTV Series (bt878)
01:00.0 Class 0300: nVidia Corp.|NV18 GeForce4 MX440 AGP 8x (nv)
---:--- Mouse: Generic PS/2 Wheel Mouse [/dev/psaux] (msintellips/2)

and

root@computer:~ # mkinitcpio -M
Modules autodetected:
ata_generic
libata
pata_via
cdrom
ide-cd
ide-core
ide-disk
generic
via82cxxx
8139cp
8139too
mii
usbcore
uhci-hcd
jbd
ext3
reiserfs

thank you in advance,
vlad

Last edited by DonVla (2008-01-24 16:56:31)

Offline

#2 2008-01-23 18:37:23

Zer0
Member
From: Windsor, ON, Canada
Registered: 2006-08-25
Posts: 299

Re: pata & modules in mkinitcpio.conf and rc.conf [solved]

I'd say throw ata_generic and pata_via in your modules line for mkinitcpio.conf

Offline

#3 2008-01-23 19:02:02

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: pata & modules in mkinitcpio.conf and rc.conf [solved]

thanks,

which modules do i need now:
ata_generic, pata_via... and?
i guess i don't need generic any more, but via82cxxx? that's the module for the chipset.
as i asked before

is there a way to automagically generate the MODULES array in mkinitcpio.conf, so the pata-hook affects?

i mean, it _was_ automatically generated at installation.

vlad

Offline

#4 2008-01-24 07:44:48

gradgrind
Member
From: Germany
Registered: 2005-10-06
Posts: 921

Re: pata & modules in mkinitcpio.conf and rc.conf [solved]

You often don't need anything at all in the MODULES= entries (both mkinitcpio.conf and rc.conf) - only stuff that doesn't get autodetected. I would suggest you start with nothing, rerun mkinitcpio and add anything that's missing later. Soundcards often get autodetected, so you might not need them in the MODULES array. You should also check that there's nothing harmful in /etc/modprobe.conf.

Offline

#5 2008-01-24 16:50:21

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: pata & modules in mkinitcpio.conf and rc.conf [solved]

thanks,
i got it working.

MODULES="pata_via ata_generic"

in mkinitcpio.conf did the trick.
@gradgrind: when i have some time i'll try your suggestion and tweak the conf file entries. but when i installed arch i intended to tweak and change stuff as less as possible.
btw, what do you mean by "check that there's nothing harmful in /etc/modprobe.conf." what could be harmful?

vlad

Offline

#6 2008-01-24 17:14:08

gradgrind
Member
From: Germany
Registered: 2005-10-06
Posts: 921

Re: pata & modules in mkinitcpio.conf and rc.conf [solved]

Glad it's going now.

DonVla wrote:

@gradgrind: ...
btw, what do you mean by "check that there's nothing harmful in /etc/modprobe.conf." what could be harmful?
vlad

Nothing specific. It's just that it's one of those places where old configurations which are perhaps no longer valid could gather.

Offline

#7 2008-01-24 17:38:51

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: pata & modules in mkinitcpio.conf and rc.conf [solved]

yes, i see.

two last questions for clarity:
when i run mkinitcpio -M i get a list of modules. can i put them into the MODULES list in mkinitcpio.conf and delete the autodetect and filesystems hooks? and can i use the hwdetect --modules output for the MODULES array in rc.conf?

vlad

Offline

#8 2008-01-24 19:47:28

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: pata & modules in mkinitcpio.conf and rc.conf [solved]

DonVla wrote:

yes, i see.

...can i use the hwdetect --modules output for the MODULES array in rc.conf?

vlad

According to this article in the wiki, YES.: http://wiki.archlinux.org/index.php/Ude … _One_Thing

Offline

#9 2008-01-25 15:39:56

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: pata & modules in mkinitcpio.conf and rc.conf [solved]

thanks misfit138,

and what about the mkinitcpio.conf MODULES entry.

psycho '78

Offline

#10 2008-01-25 23:39:04

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: pata & modules in mkinitcpio.conf and rc.conf [solved]

DonVla wrote:

thanks misfit138,

psycho '78

...12 O' clock...don't be late for all this horror business..

Offline

Board footer

Powered by FluxBB