You are not logged in.

#1 2008-12-20 01:47:33

oliwer
Member
From: Paris
Registered: 2007-06-30
Posts: 153
Website

Speeding my mkinitcio

I'm trying to get rid of the udev hook in my mkinitcpio.conf. I'd like to only use the base hook.

So here is my modules list, which should be enough to run my system (according to hwdetect) :
MODULES="pata_acpi ata_generic scsi_mod ahci ata_piix ext3"

Unfortunately, when booting, the image cannot find my root partition.

I have a Dell Vostro 1500 with a SATA disk and the root partition is in ext3. How could I know which module I miss ?

Offline

#2 2008-12-20 02:22:58

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Speeding my mkinitcio

You can add "break=y" to the kernel params, to get a prompt while in the initramfs image. If you do this, you can then poke around and see what you need to see. Try "echo /dev/*".
Keep in mind, the klibc shell is VERY limited. This is on purpose.

Additionally, please post the output of "lsmod" on a booted system

Offline

#3 2008-12-20 03:02:39

oliwer
Member
From: Paris
Registered: 2007-06-30
Posts: 153
Website

Re: Speeding my mkinitcio

the /dev in my ramfs is almost empty : console, mem, zero... there is no hard disk.

Here is my lsmod >

Module                  Size  Used by
aes_i586                9600  1 
aes_generic            29224  1 aes_i586
ipv6                  260132  12 
cpufreq_ondemand        8588  0 
freq_table              5632  1 cpufreq_ondemand
nls_cp437               7424  1 
vfat                   12800  1 
fat                    49312  1 vfat
fan                     6148  0 
fuse                   52892  2 
ohci1394               30256  0 
ieee1394               80452  1 ohci1394
usb_storage            92736  0 
arc4                    3712  2 
ecb                     4608  2 
crypto_blkcipher       17540  1 ecb
iwlagn                 89988  0 
iwlcore                75588  1 iwlagn
rfkill                 10008  2 iwlcore
mac80211              158876  2 iwlagn,iwlcore
cfg80211               25224  3 iwlagn,iwlcore,mac80211
b44                    28048  0 
mii                     6528  1 b44
ata_generic             6788  0 
pata_acpi               6016  0 
snd_hda_intel         368944  1 
snd_hwdep               8964  1 snd_hda_intel
snd_pcm_oss            40192  0 
snd_pcm                69636  2 snd_hda_intel,snd_pcm_oss
snd_timer              21384  1 snd_pcm
snd_page_alloc          9224  2 snd_hda_intel,snd_pcm
snd_mixer_oss          16512  2 snd_pcm_oss
snd                    50724  6 snd_hda_intel,snd_hwdep,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore               8160  2 snd
iTCO_wdt               12196  0 
iTCO_vendor_support     4996  1 iTCO_wdt
nvidia               7060916  28 
ssb                    40324  1 b44
pcmcia                 35116  1 ssb
pcmcia_core            33812  2 ssb,pcmcia
shpchp                 31380  0 
pci_hotplug            28064  1 shpchp
sdhci_pci               9088  0 
sdhci                  16900  1 sdhci_pci
ricoh_mmc               5632  0 
mmc_core               46620  1 sdhci
uvcvideo               56840  0 
videodev               35584  1 uvcvideo
v4l1_compat            16260  2 uvcvideo,videodev
compat_ioctl32          3072  1 uvcvideo
led_class               5508  1 iwlcore
serio_raw               7172  0 
psmouse                38288  0 
pcspkr                  4352  0 
joydev                 11584  0 
evdev                  11296  18 
i2c_i801               10768  0 
i2c_core               22420  2 nvidia,i2c_i801
usbhid                 46016  0 
ff_memless              6664  1 usbhid
hid                    41856  1 usbhid
dcdbas                  8736  0 
intel_agp              27068  0 
agpgart                30804  2 nvidia,intel_agp
wmi                     7592  0 
video                  18064  10 
output                  4608  1 video
thermal                17052  0 
processor              34732  3 thermal
button                  7824  0 
battery                12036  0 
ac                      6020  0 
rtc_cmos               11424  0 
rtc_core               17564  1 rtc_cmos
rtc_lib                 4480  1 rtc_core
ext3                  126344  3 
jbd                    46228  1 ext3
mbcache                 8708  1 ext3
sd_mod                 27160  7 
sr_mod                 16708  0 
cdrom                  35360  1 sr_mod
ahci                   30348  6 
ata_piix               18308  0 
libata                153504  4 ata_generic,pata_acpi,ahci,ata_piix
scsi_mod               96460  4 usb_storage,sd_mod,sr_mod,libata
dock                    9616  1 libata
ehci_hcd               36236  0 
uhci_hcd               24080  0 
usbcore               134384  6 usb_storage,uvcvideo,usbhid,ehci_hcd,uhci_hcd

I noticed the "libata" module at the end that was not present in my mkinitcpio.conf. I added it but it didn't change anything sad

MODULES="libata pata_acpi ata_generic scsi_mod ahci ata_piix ext3"
BINARIES=""
FILES=""
HOOKS="base keymap"

Offline

#4 2008-12-20 09:53:13

buddabrod
Member
From: Germany
Registered: 2007-02-25
Posts: 220

Re: Speeding my mkinitcio

oliwer wrote:

[...]

Did you try the order hwdetect --show-modules-order gives you?

Offline

#5 2008-12-20 16:05:00

punkeroso
Member
From: Rome, Italy
Registered: 2007-01-19
Posts: 105

Re: Speeding my mkinitcio

oliwer wrote:

[...]

I think you need also sd_mod...

Regards

Offline

#6 2008-12-20 17:38:57

buddabrod
Member
From: Germany
Registered: 2007-02-25
Posts: 220

Re: Speeding my mkinitcio

And without udev you have to setup the device nodes yourself..

Offline

#7 2008-12-20 19:39:08

oliwer
Member
From: Paris
Registered: 2007-06-30
Posts: 153
Website

Re: Speeding my mkinitcio

Ok, problem SOLVED !

punkeroso > I was missing sd_mod indeed.

buddabrod > You scared me. Fortunately there is something in initramfs which created the the root device automatically.

Thanks for the help.

Offline

Board footer

Powered by FluxBB