How can I modify initrd booting from a live cd?

I’ve moved the system to a vfs but it does not boot because of “FATAL: module linear not found”. I guess vfs is not included in initrd.
I can boot the system from system rescue with the option “boot an installed system” wich I assume uses the kernel and initrd in system rescue and then mount / from the HD and boot the system.
Then I edited /etc/sysconfig/kernel and added linear and lvm2 and I run mkinitrd but it display some warnings (o errors) module linear not found, module lvm2 not found…

I think the problem I I’m booting with a 3.4.66 kernel but the kernel on HD is 3.11 and mkinitrd is searchin for the modules in /lib/modules/3.4.66

How can I change it?

regards

You need to realy take over the installed system:

  • mount your “/” partition to /mnt
    then

mount --bind /dev /mnt/dev
chroot /mnt
mkinitrd

It could be that you have to make /proc and /sys available to the chroot environment, but I’m not sure.

I’ve really taken over the installed system because system rescue actually mount my / partition on boot, but with a different kernel

/dev/mapper/grupo1-raiz is mounted as /

here is mkinitrd output



Kernel image:   /boot/vmlinuz-3.11.6-4-default
Initrd image:   /boot/initrd-3.11.6-4-default
WARNING: All config files need .conf: /etc/modprobe.d/ipv6, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/nvidia, it will be ignored in a future release.
KMS drivers:     radeon
Root device:    /dev/mapper/grupo1-raiz (mounted on / as ext4)
modprobe: Module via82cxxx not found.
WARNING: no dependencies for kernel module 'via82cxxx' found.
modprobe: Module ide_pci_generic not found.
WARNING: no dependencies for kernel module 'ide_pci_generic' found.
modprobe: Module lvm2 not found.
WARNING: no dependencies for kernel module 'lvm2' found.
Kernel Modules:    hwmon thermal_sys thermal processor fan libata sata_via pata_via ata_generic reiserfs edd linear dm-mod dm-log dm-region-hash dm-mirror dm-snapshot raid0 raid1 raid10 async_tx async_memcpy xor async_xor raid6_pq async_pq async_raid6_recov raid456 scsi_dh scsi_dh_rdac scsi_dh_hp_sw scsi_dh_emc scsi_dh_alua i2c-core i2c-algo-bit drm drm_kms_helper ttm radeon libahci ahci usb-common usbcore ohci-hcd uhci-hcd ehci-hcd xhci-hcd hid usbhid hid-logitech-dj hid-generic hid-holtek-kbd hid-lenovo-tpkbd hid-ortek hid-roccat hid-roccat-common hid-roccat-arvo hid-roccat-isku hid-samsung hid-apple hid-belkin hid-cherry hid-ezkey hid-microsoft ehci-pci ohci-pci 
Firmware:    radeon/R520_cp.bin radeon/RS600_cp.bin radeon/RS690_cp.bin radeon/R420_cp.bin radeon/R300_cp.bin radeon/R200_cp.bin radeon/R100_cp.bin radeon/SUMO2_me.bin radeon/SUMO2_pfp.bin radeon/SUMO_me.bin radeon/SUMO_pfp.bin radeon/SUMO_rlc.bin radeon/PALM_me.bin radeon/PALM_pfp.bin radeon/CYPRESS_smc.bin radeon/CYPRESS_rlc.bin radeon/CYPRESS_me.bin radeon/CYPRESS_pfp.bin radeon/JUNIPER_smc.bin radeon/JUNIPER_rlc.bin radeon/JUNIPER_me.bin radeon/JUNIPER_pfp.bin radeon/REDWOOD_smc.bin radeon/REDWOOD_rlc.bin radeon/REDWOOD_me.bin radeon/REDWOOD_pfp.bin radeon/CEDAR_smc.bin radeon/CEDAR_rlc.bin radeon/CEDAR_me.bin radeon/CEDAR_pfp.bin radeon/R700_rlc.bin radeon/R600_rlc.bin radeon/RV710_smc.bin radeon/RV710_me.bin radeon/RV710_pfp.bin radeon/RV740_smc.bin radeon/RV730_smc.bin radeon/RV730_me.bin radeon/RV730_pfp.bin radeon/RV770_smc.bin radeon/RV770_me.bin radeon/RV770_pfp.bin radeon/RS780_me.bin radeon/RS780_pfp.bin radeon/RV670_me.bin radeon/RV670_pfp.bin radeon/RV635_me.bin radeon/RV635_pfp.bin radeon/RV620_
me.bin radeon/RV620_pfp.bin radeon/RV630_me.bin radeon/RV630_pfp.bin radeon/RV610_me.bin radeon/RV610_pfp.bin radeon/R600_me.bin radeon/R600_pfp.bin radeon/ARUBA_rlc.bin radeon/ARUBA_me.bin radeon/ARUBA_pfp.bin radeon/CAYMAN_smc.bin radeon/CAYMAN_rlc.bin radeon/CAYMAN_mc.bin radeon/CAYMAN_me.bin radeon/CAYMAN_pfp.bin radeon/CAICOS_smc.bin radeon/CAICOS_mc.bin radeon/CAICOS_me.bin radeon/CAICOS_pfp.bin radeon/TURKS_smc.bin radeon/TURKS_mc.bin radeon/TURKS_me.bin radeon/TURKS_pfp.bin radeon/BTC_rlc.bin radeon/BARTS_smc.bin radeon/BARTS_mc.bin radeon/BARTS_me.bin radeon/BARTS_pfp.bin radeon/HAINAN_smc.bin radeon/HAINAN_rlc.bin radeon/HAINAN_mc.bin radeon/HAINAN_ce.bin radeon/HAINAN_me.bin radeon/HAINAN_pfp.bin radeon/OLAND_smc.bin radeon/OLAND_rlc.bin radeon/OLAND_mc.bin radeon/OLAND_ce.bin radeon/OLAND_me.bin radeon/OLAND_pfp.bin radeon/VERDE_smc.bin radeon/VERDE_rlc.bin radeon/VERDE_mc.bin radeon/VERDE_ce.bin radeon/VERDE_me.bin radeon/VERDE_pfp.bin radeon/PITCAIRN_smc.bin radeon/PITCAIRN_rlc.bin radeon/
PITCAIRN_mc.bin radeon/PITCAIRN_ce.bin radeon/PITCAIRN_me.bin radeon/PITCAIRN_pfp.bin radeon/TAHITI_smc.bin radeon/TAHITI_rlc.bin radeon/TAHITI_mc.bin radeon/TAHITI_ce.bin radeon/TAHITI_me.bin radeon/TAHITI_pfp.bin radeon/BONAIRE_uvd.bin radeon/TAHITI_uvd.bin radeon/SUMO_uvd.bin radeon/CYPRESS_uvd.bin radeon/RV710_uvd.bin radeon/KABINI_sdma.bin radeon/KABINI_rlc.bin radeon/KABINI_mec.bin radeon/KABINI_ce.bin radeon/KABINI_me.bin radeon/KABINI_pfp.bin radeon/BONAIRE_sdma.bin radeon/BONAIRE_rlc.bin radeon/BONAIRE_mc.bin radeon/BONAIRE_mec.bin radeon/BONAIRE_ce.bin radeon/BONAIRE_me.bin radeon/BONAIRE_pfp.bin 
Features:       acpi dm md kms plymouth block usb lvm2 resume.userspace resume.kernel

Kernel image:   /boot/vmlinuz-3.11.6-4-pae
Initrd image:   /boot/initrd-3.11.6-4-pae
WARNING: All config files need .conf: /etc/modprobe.d/ipv6, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/nvidia, it will be ignored in a future release.
Root device:    /dev/mapper/grupo1-raiz (mounted on / as ext4)
modprobe: Module thermal not found.
WARNING: no dependencies for kernel module 'thermal' found.
modprobe: Module processor not found.
WARNING: no dependencies for kernel module 'processor' found.
modprobe: Module fan not found.
WARNING: no dependencies for kernel module 'fan' found.
modprobe: Module sata_via not found.
WARNING: no dependencies for kernel module 'sata_via' found.
modprobe: Module pata_via not found.
WARNING: no dependencies for kernel module 'pata_via' found.
modprobe: Module ata_generic not found.
WARNING: no dependencies for kernel module 'ata_generic' found.
modprobe: Module via82cxxx not found.
WARNING: no dependencies for kernel module 'via82cxxx' found.
modprobe: Module ide_pci_generic not found.
WARNING: no dependencies for kernel module 'ide_pci_generic' found.
modprobe: Module reiserfs not found.
WARNING: no dependencies for kernel module 'reiserfs' found.
modprobe: Module lvm2 not found.
WARNING: no dependencies for kernel module 'lvm2' found.
modprobe: Module linear not found.
WARNING: no dependencies for kernel module 'linear' found.
modprobe: Module dm_mirror not found.
WARNING: no dependencies for kernel module 'dm-mirror' found.
modprobe: Module dm_snapshot not found.
WARNING: no dependencies for kernel module 'dm-snapshot' found.
modprobe: Module raid0 not found.
WARNING: no dependencies for kernel module 'raid0' found.
modprobe: Module raid1 not found.
WARNING: no dependencies for kernel module 'raid1' found.
modprobe: Module raid10 not found.
WARNING: no dependencies for kernel module 'raid10' found.
modprobe: Module raid456 not found.
WARNING: no dependencies for kernel module 'raid456' found.
modprobe: Module usbhid not found.
WARNING: no dependencies for kernel module 'usbhid' found.
modprobe: Module hid_logitech_dj not found.
WARNING: no dependencies for kernel module 'hid-logitech-dj' found.
modprobe: Module hid_generic not found.
WARNING: no dependencies for kernel module 'hid-generic' found.
modprobe: Module hid_holtek_kbd not found.
WARNING: no dependencies for kernel module 'hid-holtek-kbd' found.
modprobe: Module hid_lenovo_tpkbd not found.
WARNING: no dependencies for kernel module 'hid-lenovo-tpkbd' found.
modprobe: Module hid_ortek not found.
WARNING: no dependencies for kernel module 'hid-ortek' found.
modprobe: Module hid_roccat_arvo not found.
WARNING: no dependencies for kernel module 'hid-roccat-arvo' found.
modprobe: Module hid_roccat_isku not found.
WARNING: no dependencies for kernel module 'hid-roccat-isku' found.
modprobe: Module hid_samsung not found.
WARNING: no dependencies for kernel module 'hid-samsung' found.
modprobe: Module ehci_pci not found.
WARNING: no dependencies for kernel module 'ehci-pci' found.
modprobe: Module ohci_pci not found.
WARNING: no dependencies for kernel module 'ohci-pci' found.
Kernel Modules:    edd dm-mod usb-common usbcore ohci-hcd uhci-hcd ehci-hcd xhci-hcd 
Features:       acpi dm md plymouth block usb lvm2 resume.userspace resume.kernel

I’ve tried also to boot with system rescue and then mount the vfs partition and then chroot it:


mount /dev/dm-1 /raiz
mount /dev/dm-0 /raiz/boot
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
mount --bind /proc /mnt/proc
chroot /raiz
mkinitrd


and makinitrd does NOTHING. Neither output, nor error

On 2014-01-14 15:36, fperal wrote:

> I can boot the system from system rescue with the option “boot an
> installed system”

What? That feature was removed years ago. You must be using a very old
cd/dvd

> I think the problem I I’m booting with a 3.4.66 kernel but the kernel on
> HD is 3.11 and mkinitrd is searchin for the modules in
> /lib/modules/3.4.66

You need to use the rescue system of the same version as the installed
system.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

It’s a pity because it was a good feature.
No, I’m not using an old CD, I’m not booting with OpenSuse DVD in rescue mode, I’m booting with System Rescue CD which is an awesome collection of recovery tools in one CD.

> I think the problem I I’m booting with a 3.4.66 kernel but the kernel on
> HD is 3.11 and mkinitrd is searchin for the modules in
> /lib/modules/3.4.66

You need to use the rescue system of the same version as the installed
system.

I’ve tried, and I get the same result that with system rescue mounting, no error, no result, mkinitrd does nothing … until I’ve realized I was doing a fake mount.
I have a / partition, a /boot and a /home.

I was mounting my / partition on /raiz and my boot partition on /raiz/boot … but what I was really doing was mounting the home partition on /raiz/boot. I must have done 20 times!!!

now, I’ve done


mount /dev/dm-1 /raiz
mount /dev/md126 /raiz/boot
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
mount --bind /proc /mnt/proc
chroot /raiz
mkinitrd

And the result is


Kernel image:   /boot/vmlinuz-3.11.6-4-pae
Initrd image:   /boot/initrd-3.11.6-4-pae
WARNING: All config files need .conf: /etc/modprobe.d/ipv6, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/nvidia, it will be ignored in a future release.
Root device:    /dev/mapper/grupo1-raiz (mounted on / as ext4)
[BLOCK] /dev/sda -> ahci
[BLOCK] /dev/sdb -> ahci
[MODULES]    01-acpi.sh: thermal processor fan
[MODULES]    02-start.sh: sata_via pata_via ata_generic via82cxxx ide_pci_generic reiserfs fan edd lvm2 linear
[MODULES]    02-start.sh: 
[MODULES]    03-dm.sh: dm-mirror
[MODULES]    03-dm.sh: dm-mod
[MODULES]    03-dm.sh: dm-snapshot
[MODULES]    03-md.sh: raid0
[MODULES]    03-md.sh: raid1
[MODULES]    03-md.sh: raid10
[MODULES]    03-md.sh: raid456
[MODULES]    03-rtc.sh: rtc_cmos
[MODULES]    03-storage.sh: 
[MODULES]    11-block.sh: ahci
[MODULES]    11-usb.sh: usbcore
[MODULES]    11-usb.sh: ohci_hcd
[MODULES]    11-usb.sh: uhci-hcd
[MODULES]    11-usb.sh: ehci_hcd
[MODULES]    11-usb.sh: xhci-hcd
[MODULES]    11-usb.sh: usbhid
[MODULES]    11-usb.sh: hid-logitech-dj
[MODULES]    11-usb.sh: hid-generic
[MODULES]    11-usb.sh: hid-holtek-kbd
[MODULES]    11-usb.sh: hid-lenovo-tpkbd
[MODULES]    11-usb.sh: hid-logitech-dj
[MODULES]    11-usb.sh: hid-ortek
[MODULES]    11-usb.sh: hid-roccat-arvo
[MODULES]    11-usb.sh: hid-roccat-isku
[MODULES]    11-usb.sh: hid-samsung
[MODULES]    11-usb.sh: hid-apple
[MODULES]    11-usb.sh: hid-belkin
[MODULES]    11-usb.sh: hid-cherry
[MODULES]    11-usb.sh: hid-ezkey
[MODULES]    11-usb.sh: hid-microsoft
[MODULES]    11-usb.sh: ehci-pci
[MODULES]    11-usb.sh: ohci-pci
[MODULES]    61-lvm2.sh: linear
[MODULES]    Unsupported kernel (3.11.6-4-pae)
modprobe: Module thermal not found.
WARNING: no dependencies for kernel module 'thermal' found.
modprobe: Module processor not found.
WARNING: no dependencies for kernel module 'processor' found.
modprobe: Module fan not found.
WARNING: no dependencies for kernel module 'fan' found.
modprobe: Module sata_via not found.
WARNING: no dependencies for kernel module 'sata_via' found.
modprobe: Module pata_via not found.
WARNING: no dependencies for kernel module 'pata_via' found.
modprobe: Module ata_generic not found.
WARNING: no dependencies for kernel module 'ata_generic' found.
modprobe: Module via82cxxx not found.
WARNING: no dependencies for kernel module 'via82cxxx' found.
modprobe: Module ide_pci_generic not found.
WARNING: no dependencies for kernel module 'ide_pci_generic' found.
modprobe: Module reiserfs not found.
WARNING: no dependencies for kernel module 'reiserfs' found.
modprobe: Module lvm2 not found.
WARNING: no dependencies for kernel module 'lvm2' found.
modprobe: Module linear not found.
WARNING: no dependencies for kernel module 'linear' found.
modprobe: Module dm_mirror not found.
WARNING: no dependencies for kernel module 'dm-mirror' found.
modprobe: Module dm_snapshot not found.
WARNING: no dependencies for kernel module 'dm-snapshot' found.
modprobe: Module raid0 not found.
WARNING: no dependencies for kernel module 'raid0' found.
modprobe: Module raid1 not found.
WARNING: no dependencies for kernel module 'raid1' found.
modprobe: Module raid10 not found.
WARNING: no dependencies for kernel module 'raid10' found.
modprobe: Module raid456 not found.
WARNING: no dependencies for kernel module 'raid456' found.
modprobe: Module usbhid not found.
WARNING: no dependencies for kernel module 'usbhid' found.
modprobe: Module hid_logitech_dj not found.
WARNING: no dependencies for kernel module 'hid-logitech-dj' found.
modprobe: Module hid_generic not found.
WARNING: no dependencies for kernel module 'hid-generic' found.
modprobe: Module hid_holtek_kbd not found.
WARNING: no dependencies for kernel module 'hid-holtek-kbd' found.
modprobe: Module hid_lenovo_tpkbd not found.
WARNING: no dependencies for kernel module 'hid-lenovo-tpkbd' found.
modprobe: Module hid_ortek not found.
WARNING: no dependencies for kernel module 'hid-ortek' found.
modprobe: Module hid_roccat_arvo not found.
WARNING: no dependencies for kernel module 'hid-roccat-arvo' found.
modprobe: Module hid_roccat_isku not found.
WARNING: no dependencies for kernel module 'hid-roccat-isku' found.
modprobe: Module hid_samsung not found.
WARNING: no dependencies for kernel module 'hid-samsung' found.
modprobe: Module ehci_pci not found.
WARNING: no dependencies for kernel module 'ehci-pci' found.
modprobe: Module ohci_pci not found.
WARNING: no dependencies for kernel module 'ohci-pci' found.
Kernel Modules:    edd dm-mod usb-common usbcore ohci-hcd uhci-hcd ehci-hcd xhci-hcd 
[MOUNT] Root:    /dev/mapper/grupo1-raiz
Features:       acpi dm md plymouth block usb lvm2 resume.userspace resume.kernel
Shared libs:    lib/ld-2.18.so lib/libacl.so.1.1.0 lib/libattr.so.1.1.0 lib/libc-2.18.so lib/libcap.so.2.22 usr/lib/libcom_err.so.2.1 lib/libcrypt-2.18.so lib/libdbus-1.so.3.8.2 lib/libdevmapper-event.so.1.02 lib/libdevmapper.so.1.02 lib/libdevmapper.so.1.03 lib/libdl-2.18.so usr/lib/libe2p.so.2.3 usr/lib/libext2fs.so.2.4 lib/libgcc_s.so.1 usr/lib/libkmod.so.2.2.4 lib/libm-2.18.so lib/libpthread-2.18.so lib/libreadline.so.6.2 lib/libresolv-2.18.so lib/librt-2.18.so lib/libselinux.so.1 lib/libsepol.so.1 lib/libtinfo.so.5.9 lib/libz.so.1.2.8 usr/lib/libEGL.so.1.0.0 usr/lib/libGL.so.1.2.0 usr/lib/libX11-xcb.so.1.0.0 usr/lib/libX11.so.6.3.0 usr/lib/libXau.so.6.0.0 usr/lib/libXdamage.so.1.1.0 usr/lib/libXext.so.6.4.0 usr/lib/libXfixes.so.3.1.0 usr/lib/libXrender.so.1.3.0 usr/lib/libXxf86vm.so.1.0.0 usr/lib/libatasmart.so.4.0.5 usr/lib/libblkid.so.1.1.0 usr/lib/libcairo.so.2.11200.16 usr/lib/libdal-0.3.so.0.0.0 usr/lib/libdirect-1.6.so.0.3.0 usr/lib/libdirectfb-1.6.so.0.3.0 usr/lib/libdrm.so.2.4.0 usr/lib/libexpat.so.
1.6.0 usr/lib/libffi.so.4.0.1 usr/lib/libfontconfig.so.1.8.0 usr/lib/libfreetype.so.6.10.2 usr/lib/libfusion-1.6.so.0.3.0 usr/lib/libgbm.so.1.0.0 usr/lib/libgcrypt.so.11.8.2 usr/lib/libglapi.so.0.0.0 usr/lib/libglib-2.0.so.0.3800.2 usr/lib/libgmodule-2.0.so.0.3800.2 usr/lib/libgobject-2.0.so.0.3800.2 usr/lib/libgpg-error.so.0.10.0 usr/lib/libgraphite2.so.3.0.1 usr/lib/libharfbuzz.so.0.921.0 usr/lib/libjpeg.so.8.0.2 usr/lib/liblzma.so.5.0.5 usr/lib/liblzo2.so.2.0.0 usr/lib/libmount.so.1.1.0 usr/lib/libmtp.so.9.1.0 usr/lib/libpango-1.0.so.0.3600.1 usr/lib/libpangocairo-1.0.so.0.3600.1 usr/lib/libpangoft2-1.0.so.0.3600.1 usr/lib/libparted.so.0.0.2 usr/lib/libpcre.so.1.2.1 usr/lib/libpixman-1.so.0.30.2 usr/lib/libply-splash-core.so.2.1.0 usr/lib/libply-splash-graphics.so.2.1.0 usr/lib/libply.so.2.1.0 usr/lib/libpng16.so.16.6.0 usr/lib/libreiserfs-0.3.so.0.0.0 usr/lib/libsgutils2.so.2.0.0 usr/lib/libsplashy.so.1.0.0 usr/lib/libsplashycnf.so.1.0.0 usr/lib/libstdc++.so.6.0.18 usr/lib/libsystemd-daemon.so.0.0.10 usr/
lib/libudev.so.1.4.0 usr/lib/libusb-1.0.so.0.1.0 usr/lib/libuuid.so.1.3.0 usr/lib/libwayland-client.so.0.1.0 usr/lib/libwayland-server.so.0.1.0 usr/lib/libxcb-dri2.so.0.0.0 usr/lib/libxcb-glx.so.0.0.0 usr/lib/libxcb-render.so.0.0.0 usr/lib/libxcb-shm.so.0.0.0 usr/lib/libxcb-xfixes.so.0.0.0 usr/lib/libxcb.so.1.1.0 /lib/libnss_dns-2.18.so /lib/libnss_files-2.18.so /lib/libgcc_s.so.1 


Which reports “[MODULES] Unsupported kernel (3.11.6-4-pae)” but is seems to generate initrd.

Now I’m fighting to get grub2 reinstalled … that’s another history

On 2014-01-15 00:36, fperal wrote:
>
> robin_listas;2616092 Wrote:
>> On 2014-01-14 15:36, fperal wrote:
>>
>>> I can boot the system from system rescue with the option “boot an
>>> installed system”
>>
>> What? That feature was removed years ago. You must be using a very old
>> cd/dvd
>>
>
> It’s a pity because it was a good feature.

It was, yes.

> No, I’m not using an old CD, I’m not booting with OpenSuse DVD in rescue
> mode, I’m booting with ‘System Rescue CD’
> (http://www.sysresccd.org/SystemRescueCd_Homepage) which is an awesome
> collection of recovery tools in one CD.

Then don’t. That’s probably the cause of your problems.

Use openSUSE install DVD, or download openSUSE rescue CD, which comes
with XFCE.

> now, I’ve done
>
> Code:
> --------------------
>
> mount /dev/dm-1 /raiz
> mount /dev/md126 /raiz/boot
> mount --bind /dev /mnt/dev
> mount --bind /sys /mnt/sys
> mount --bind /proc /mnt/proc
> chroot /raiz
> mkinitrd
> --------------------

Correct.

Provided it is the correct rescue system. If not… no dice.

> And the result is
>
> Code:
> --------------------
> [MODULES] 61-lvm2.sh: linear

> [MODULES] Unsupported kernel (3.11.6-4-pae)

Wow.

Wait. openSUSE 13.1 has kernel 3.7.10. Where are you getting that 3.11
kernel from?

If you upgrade the kernel by such numbers, you also need to upgrade its
tools… like mkinitrd.

Reading the rest is futile…

Anyway, you are getting warnings, not errors. Not problematic unless
your system really needs those modules.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

On 2014-01-15 01:08, Carlos E. R. wrote:

> Wait. openSUSE 13.1 has kernel 3.7.10. Where are you getting that 3.11
> kernel from?

Oops. Sorry. I have several computers running and I looked at the wrong
one. 13.1 has 3.11.6

Looking again…


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

On 2014-01-15 00:36, fperal wrote:

Ok, still you need to use a rescue system with a kernel matching the
rescued system as close as possible. And the same architecture, of
course (32-32, 64-64)

> And the result is
>
> Code:
> --------------------
>
> Kernel image: /boot/vmlinuz-3.11.6-4-pae
> Initrd image: /boot/initrd-3.11.6-4-pae

kernel-pae? So this is a 32 bit machine.

> [MODULES] 61-lvm2.sh: linear
> [MODULES] Unsupported kernel (3.11.6-4-pae)

Why is it unsupported? It would be if you are using the wrong,
not-matching tool chain, for that kernel.

> modprobe: Module thermal not found.
> WARNING: no dependencies for kernel module ‘thermal’ found.

Well, this should be here:

/lib/modules/3.11.6-4-desktop/kernel/drivers/acpi/thermal.ko

In your case, it will not be -desktop, it will be -pae. Is that file in
there? If it is not, there you have your problem.

> modprobe: Module processor not found.
> WARNING: no dependencies for kernel module ‘processor’ found.

Well, same thing, you have to find those modules.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Yes, I’m using the same archiquetecture and the same version: 13.1-32bits

> And the result is
>
> Code:
> --------------------
>
> Kernel image: /boot/vmlinuz-3.11.6-4-pae
> Initrd image: /boot/initrd-3.11.6-4-pae

kernel-pae? So this is a 32 bit machine.

Yes… wel no, is a 64 bit machine with a 32 bits SO. I’ve copied the OS from a 32 bits machine (OpeenSuse 12.3-32), on a new computer on a LVM over raid partition and then I update to 13.1 thinking that it will make the system bootable, but I’m afraid I was wrong :wink:
Sure it had been easier installing the system from scratch.

> [MODULES] 61-lvm2.sh: linear
> [MODULES] Unsupported kernel (3.11.6-4-pae)

Why is it unsupported? It would be if you are using the wrong,
not-matching tool chain, for that kernel.

> modprobe: Module thermal not found.
> WARNING: no dependencies for kernel module ‘thermal’ found.

Well, this should be here:

/lib/modules/3.11.6-4-desktop/kernel/drivers/acpi/thermal.ko

In your case, it will not be -desktop, it will be -pae. Is that file in
there? If it is not, there you have your problem.

> modprobe: Module processor not found.
> WARNING: no dependencies for kernel module ‘processor’ found.

Well, same thing, you have to find those modules.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

I’m going to do a research…

On 2014-01-15 23:16, fperal wrote:

> Yes, I’m using the same archiquetecture and the same version:
> 13.1-32bits

Ok.

>> kernel-pae? So this is a 32 bit machine.
>>
>>
> Yes… wel no, is a 64 bit machine with a 32 bits SO. I’ve copied the OS
> from a 32 bits machine (OpeenSuse 12.3-32), on a new computer on a LVM
> over raid partition and then I update to 13.1 thinking that it will make
> the system bootable, but I’m afraid I was wrong :wink:
> Sure it had been easier installing the system from scratch.

This paragraph is not clear. You don’t mean you copied the kernel only
from one computer to another, in order to boot it?

Or you copied the entire system from one machine to another?

Because the first one is quite difficult to manage…

>> Well, same thing, you have to find those modules.

> I’m going to do a research…

Yep :-}


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

I’m afraid it’s due to my bad English :wink:

You don’t mean you copied the kernel only
from one computer to another, in order to boot it?

Or you copied the entire system from one machine to another?

Because the first one is quite difficult to manage…

I did all the partitioning and then I copied ( cp -a ) the entire system to the new system.
Then I booted with 13.1 DVD and I did a system upgrade.

On 2014-01-16 00:36, fperal wrote:

> I’m afraid it’s due to my bad English :wink:

:slight_smile:

English is not my first language, either :slight_smile:

>> You don’t mean you copied the kernel only
>> from one computer to another, in order to boot it?
>>
>> Or you copied the entire system from one machine to another?
>>
>> Because the first one is quite difficult to manage…
>>
>
> I did all the partitioning and then I copied ( cp -a ) the entire
> system to the new system.
> Then I booted with 13.1 DVD and I did a system upgrade.

You booted the 13.1 DVD and chose upgrade? But that before you tried
booting the system you just copied?

You should have tried to boot the system first, because otherwise there
could be hidden problems.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

I’m afraid I did. In fact I copied the system, then I tried to boot it and i didn’t boot. I thought It was a problem with initrd so I thought that upgrading the system will install a new initrd with lvm support, but obviously I was wrong.
I’m finding lvm to be a bad idea for a root partition.

On 2014-01-16 16:06, fperal wrote:
>
> robin_listas;2616433 Wrote:

>> You booted the 13.1 DVD and chose upgrade? But that before you tried
>> booting the system you just copied?
>>
>> You should have tried to boot the system first, because otherwise there
>> could be hidden problems.
>>
>
> I’m afraid I did. In fact I copied the system, then I tried to boot it
> and i didn’t boot. I thought It was a problem with initrd so I thought
> that upgrading the system will install a new initrd with lvm support,
> but obviously I was wrong.
> I’m finding lvm to be a bad idea for a root partition.

The reason I don’t use LVM, although it is a good thing in many cases,
is that I don’t really understand it and don’t know how to repair it on
my own in case of problems.

In case of problems, you can upgrade the system with the DVD, as it has
been known to repair many things; but it must be done to the same
version. But grub problems are not always sorted out this way: if there
is an error in grub configuration it will be reinstalled with that same
error.

In this case I think the best route is to copy the system, make it boot
(probably adapt fstab, grub entries (the partition references), and
regenerate initrd (using a live media of the same version). Unless using
full images, grub also needs to be reinstalled.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

I begun the process from the begining. I’ve discarded the idea of installing the root partition an a lvm over raid, so I’m now moving it just to a raid1
I copied the entire / partition from the old computer to the new raid1 partition with cp -a and then I’ve reinstalled grub.
The system is bootable using the Boot an installed system from a system rescue CD and all seems to work fine. But booting with grub stops with an error:

FATAL: module raid456 not found.

OK, fine The old system was not using raid so it’s normal that raid support is not included in initrd, so what I have to do ir generate a new initrd.

I boot with a rescue cd, edit /etc/sysconfig/kernel and add raid456, then run mkinitrd:


Kernel image:   /boot/vmlinuz-3.4.63-2.44-default
Initrd image:   /boot/initrd-3.4.63-2.44-default
WARNING: All config files need .conf: /etc/modprobe.d/ipv6, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/nvidia, it will be ignored in a future release.
KMS drivers:     radeon
Root device:    /dev/md0 (mounted on / as ext4)
modprobe: Module via82cxxx not found.
WARNING: no dependencies for kernel module 'via82cxxx' found.
modprobe: Module ide_pci_generic not found.
WARNING: no dependencies for kernel module 'ide_pci_generic' found.
modprobe: Module hid_generic not found.
WARNING: no dependencies for kernel module 'hid-generic' found.
Kernel Modules:    hwmon thermal_sys thermal processor fan libata sata_via pata_via ata_generic reiserfs edd async_tx async_memcpy xor async_xor raid6_pq async_pq async_raid6_recov raid456 scsi_dh scsi_dh_rdac scsi_dh_emc scsi_dh_alua scsi_dh_hp_sw i2c-core i2c-algo-bit drm drm_kms_helper ttm radeon libahci ahci usb-common usbcore ohci-hcd uhci-hcd ehci-hcd xhci-hcd hid usbhid hid-logitech-dj raid0 raid1 raid10 
Firmware:    radeon/R520_cp.bin radeon/R520_cp.bin radeon/RS600_cp.bin radeon/RS600_cp.bin radeon/RS690_cp.bin radeon/RS690_cp.bin radeon/R420_cp.bin radeon/R420_cp.bin radeon/R300_cp.bin radeon/R300_cp.bin radeon/R200_cp.bin radeon/R200_cp.bin radeon/R100_cp.bin radeon/R100_cp.bin radeon/RV710_me.bin radeon/RV710_me.bin radeon/RV710_pfp.bin radeon/RV710_pfp.bin radeon/RV730_me.bin radeon/RV730_me.bin radeon/RV730_pfp.bin radeon/RV730_pfp.bin radeon/RV770_me.bin radeon/RV770_me.bin radeon/RV770_pfp.bin radeon/RV770_pfp.bin radeon/RS780_me.bin radeon/RS780_me.bin radeon/RS780_pfp.bin radeon/RS780_pfp.bin radeon/RV670_me.bin radeon/RV670_me.bin radeon/RV670_pfp.bin radeon/RV670_pfp.bin radeon/RV635_me.bin radeon/RV635_me.bin radeon/RV635_pfp.bin radeon/RV635_pfp.bin radeon/RV620_me.bin radeon/RV620_me.bin radeon/RV620_pfp.bin radeon/RV620_pfp.bin radeon/RV630_me.bin radeon/RV630_me.bin radeon/RV630_pfp.bin radeon/RV630_pfp.bin radeon/RV610_me.bin radeon/RV610_me.bin radeon/RV610_pfp.bin radeon/RV610_pfp.bin 
radeon/R600_me.bin radeon/R600_me.bin radeon/R600_pfp.bin radeon/R600_pfp.bin radeon/R520_cp.bin radeon/R520_cp.bin radeon/RS600_cp.bin radeon/RS600_cp.bin radeon/RS690_cp.bin radeon/RS690_cp.bin radeon/R420_cp.bin radeon/R420_cp.bin radeon/R300_cp.bin radeon/R300_cp.bin radeon/R200_cp.bin radeon/R200_cp.bin radeon/R100_cp.bin radeon/R100_cp.bin radeon/SUMO2_me.bin radeon/SUMO2_me.bin radeon/SUMO2_pfp.bin radeon/SUMO2_pfp.bin radeon/SUMO_me.bin radeon/SUMO_me.bin radeon/SUMO_pfp.bin radeon/SUMO_pfp.bin radeon/SUMO_rlc.bin radeon/SUMO_rlc.bin radeon/PALM_me.bin radeon/PALM_me.bin radeon/PALM_pfp.bin radeon/PALM_pfp.bin radeon/CYPRESS_rlc.bin radeon/CYPRESS_rlc.bin radeon/CYPRESS_me.bin radeon/CYPRESS_me.bin radeon/CYPRESS_pfp.bin radeon/CYPRESS_pfp.bin radeon/JUNIPER_rlc.bin radeon/JUNIPER_rlc.bin radeon/JUNIPER_me.bin radeon/JUNIPER_me.bin radeon/JUNIPER_pfp.bin radeon/JUNIPER_pfp.bin radeon/REDWOOD_rlc.bin radeon/REDWOOD_rlc.bin radeon/REDWOOD_me.bin radeon/REDWOOD_me.bin radeon/REDWOOD_pfp.bin radeon/
REDWOOD_pfp.bin radeon/CEDAR_rlc.bin radeon/CEDAR_rlc.bin radeon/CEDAR_me.bin radeon/CEDAR_me.bin radeon/CEDAR_pfp.bin radeon/CEDAR_pfp.bin radeon/R700_rlc.bin radeon/R700_rlc.bin radeon/R600_rlc.bin radeon/R600_rlc.bin radeon/RV710_me.bin radeon/RV710_me.bin radeon/RV710_pfp.bin radeon/RV710_pfp.bin radeon/RV730_me.bin radeon/RV730_me.bin radeon/RV730_pfp.bin radeon/RV730_pfp.bin radeon/RV770_me.bin radeon/RV770_me.bin radeon/RV770_pfp.bin radeon/RV770_pfp.bin radeon/RS780_me.bin radeon/RS780_me.bin radeon/RS780_pfp.bin radeon/RS780_pfp.bin radeon/RV670_me.bin radeon/RV670_me.bin radeon/RV670_pfp.bin radeon/RV670_pfp.bin radeon/RV635_me.bin radeon/RV635_me.bin radeon/RV635_pfp.bin radeon/RV635_pfp.bin radeon/RV620_me.bin radeon/RV620_me.bin radeon/RV620_pfp.bin radeon/RV620_pfp.bin radeon/RV630_me.bin radeon/RV630_me.bin radeon/RV630_pfp.bin radeon/RV630_pfp.bin radeon/RV610_me.bin radeon/RV610_me.bin radeon/RV610_pfp.bin radeon/RV610_pfp.bin radeon/R600_me.bin radeon/R600_me.bin radeon/R600_pfp.bin radeon/
R600_pfp.bin radeon/ARUBA_rlc.bin radeon/ARUBA_rlc.bin radeon/ARUBA_me.bin radeon/ARUBA_me.bin radeon/ARUBA_pfp.bin radeon/ARUBA_pfp.bin radeon/CAYMAN_rlc.bin radeon/CAYMAN_rlc.bin radeon/CAYMAN_mc.bin radeon/CAYMAN_mc.bin radeon/CAYMAN_me.bin radeon/CAYMAN_me.bin radeon/CAYMAN_pfp.bin radeon/CAYMAN_pfp.bin radeon/CAICOS_mc.bin radeon/CAICOS_mc.bin radeon/CAICOS_me.bin radeon/CAICOS_me.bin radeon/CAICOS_pfp.bin radeon/CAICOS_pfp.bin radeon/TURKS_mc.bin radeon/TURKS_mc.bin radeon/TURKS_me.bin radeon/TURKS_me.bin radeon/TURKS_pfp.bin radeon/TURKS_pfp.bin radeon/BTC_rlc.bin radeon/BTC_rlc.bin radeon/BARTS_mc.bin radeon/BARTS_mc.bin radeon/BARTS_me.bin radeon/BARTS_me.bin radeon/BARTS_pfp.bin radeon/BARTS_pfp.bin radeon/VERDE_rlc.bin radeon/VERDE_rlc.bin radeon/VERDE_mc.bin radeon/VERDE_mc.bin radeon/VERDE_ce.bin radeon/VERDE_ce.bin radeon/VERDE_me.bin radeon/VERDE_me.bin radeon/VERDE_pfp.bin radeon/VERDE_pfp.bin radeon/PITCAIRN_rlc.bin radeon/PITCAIRN_rlc.bin radeon/PITCAIRN_mc.bin radeon/PITCAIRN_mc.bin radeon/
PITCAIRN_ce.bin radeon/PITCAIRN_ce.bin radeon/PITCAIRN_me.bin radeon/PITCAIRN_me.bin radeon/PITCAIRN_pfp.bin radeon/PITCAIRN_pfp.bin radeon/TAHITI_rlc.bin radeon/TAHITI_rlc.bin radeon/TAHITI_mc.bin radeon/TAHITI_mc.bin radeon/TAHITI_ce.bin radeon/TAHITI_ce.bin radeon/TAHITI_me.bin radeon/TAHITI_me.bin radeon/TAHITI_pfp.bin radeon/TAHITI_pfp.bin 
Features:       acpi kms plymouth block usb md resume.userspace resume.kernel

Kernel image:   /boot/vmlinuz-3.4.63-2.44-pae
Initrd image:   /boot/initrd-3.4.63-2.44-pae
WARNING: All config files need .conf: /etc/modprobe.d/ipv6, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/nvidia, it will be ignored in a future release.
Root device:    /dev/md0 (mounted on / as ext4)
find: `/lib/modules/3.4.63-2.44-pae/kernel/drivers/scsi/device_handler': No such file or directory
modprobe: Module thermal not found.
WARNING: no dependencies for kernel module 'thermal' found.
modprobe: Module processor not found.
WARNING: no dependencies for kernel module 'processor' found.
modprobe: Module fan not found.
WARNING: no dependencies for kernel module 'fan' found.
modprobe: Module sata_via not found.
WARNING: no dependencies for kernel module 'sata_via' found.
modprobe: Module pata_via not found.
WARNING: no dependencies for kernel module 'pata_via' found.
modprobe: Module ata_generic not found.
WARNING: no dependencies for kernel module 'ata_generic' found.
modprobe: Module via82cxxx not found.
WARNING: no dependencies for kernel module 'via82cxxx' found.
modprobe: Module ide_pci_generic not found.
WARNING: no dependencies for kernel module 'ide_pci_generic' found.
modprobe: Module reiserfs not found.
WARNING: no dependencies for kernel module 'reiserfs' found.
modprobe: Module raid456 not found.
WARNING: no dependencies for kernel module 'raid456' found.
modprobe: Module usbhid not found.
WARNING: no dependencies for kernel module 'usbhid' found.
modprobe: Module hid_logitech_dj not found.
WARNING: no dependencies for kernel module 'hid-logitech-dj' found.
modprobe: Module hid_generic not found.
WARNING: no dependencies for kernel module 'hid-generic' found.
modprobe: Module raid0 not found.
WARNING: no dependencies for kernel module 'raid0' found.
modprobe: Module raid1 not found.
WARNING: no dependencies for kernel module 'raid1' found.
modprobe: Module raid10 not found.
WARNING: no dependencies for kernel module 'raid10' found.
Kernel Modules:    edd usb-common usbcore pcmcia_core pcmcia mmc_core ssb ohci-hcd uhci-hcd ehci-hcd xhci-hcd 
Features:       acpi plymouth block usb md resume.userspace resume.kernel

It updates initrd but WHITHOUT raid456.
Does that “Module raid0 not found” mean that the module is not compiled and I have to compile it by hand?

On 2014-01-18 20:36, fperal wrote:

> I begun the process from the begining. I’ve discarded the idea of
> installing the root partition an a lvm over raid, so I’m now moving it
> just to a raid1
> I copied the entire / partition from the old computer to the new raid1
> partition with cp -a and then I’ve reinstalled grub.
> The system is bootable using the Boot an installed system from a ‘system
> rescue CD’ (http://www.sysresccd.org/SystemRescueCd_Homepage) and all
> seems to work fine. But booting with grub stops with an error:
>
> FATAL: module raid456 not found.
>
> OK, fine The old system was not using raid so it’s normal that raid
> support is not included in initrd, so what I have to do ir generate a
> new initrd.
>
> I boot with a rescue cd, edit /etc/sysconfig/kernel and add raid456,
> then run mkinitrd:
>
>
> Code:
> --------------------
>
> Kernel image: /boot/vmlinuz-3.4.63-2.44-default
> Initrd image: /boot/initrd-3.4.63-2.44-default
> WARNING: All config files need .conf: /etc/modprobe.d/ipv6, it will be ignored in a future release.
> WARNING: All config files need .conf: /etc/modprobe.d/nvidia, it will be ignored in a future release.
> KMS drivers: radeon
> Root device: /dev/md0 (mounted on / as ext4)
> modprobe: Module via82cxxx not found.
> WARNING: no dependencies for kernel module ‘via82cxxx’ found.

> modprobe: Module ide_pci_generic not found.
> WARNING: no dependencies for kernel module ‘ide_pci_generic’ found.

> --------------------
>
>
> It updates initrd but WHITHOUT raid456.
> Does that “Module raid0 not found” mean that the module is not compiled
> and I have to compile it by hand?

No, it means you have some problem with your system. The module is
indeed compiled. You have to locate it on your system. If it is there,
then find out why mkinitrd is not using it. Perhaps you have a problem
with kernel paths.

On my 12.3:


/lib/modules/3.7.10-1.16-desktop/kernel/drivers/md/raid456.ko
/lib/modules/3.7.10-1.24-desktop/kernel/drivers/md/raid456.ko

Are you using an opensuse rescue system of the same release?


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

There is only one file in the directory md:


/lib/modules/3.4.63-2.44-pae/kernel/drivers/md/dm-mod.ko


find /lib/modules |grep raid
/lib/modules/3.4.63-2.44-default/kernel/crypto/async_tx/async_raid6_recov.ko
/lib/modules/3.4.63-2.44-default/kernel/crypto/async_tx/raid6test.ko
/lib/modules/3.4.63-2.44-default/kernel/lib/raid6
/lib/modules/3.4.63-2.44-default/kernel/lib/raid6/raid6_pq.ko
/lib/modules/3.4.63-2.44-default/kernel/drivers/md/raid1.ko
/lib/modules/3.4.63-2.44-default/kernel/drivers/md/dm-raid.ko
/lib/modules/3.4.63-2.44-default/kernel/drivers/md/raid10.ko
/lib/modules/3.4.63-2.44-default/kernel/drivers/md/raid0.ko
/lib/modules/3.4.63-2.44-default/kernel/drivers/md/dm-raid45.ko
/lib/modules/3.4.63-2.44-default/kernel/drivers/md/raid456.ko
/lib/modules/3.4.63-2.44-default/kernel/drivers/scsi/pmcraid.ko
/lib/modules/3.4.63-2.44-default/kernel/drivers/scsi/aacraid
/lib/modules/3.4.63-2.44-default/kernel/drivers/scsi/aacraid/aacraid.ko
/lib/modules/3.4.63-2.44-default/kernel/drivers/scsi/megaraid
/lib/modules/3.4.63-2.44-default/kernel/drivers/scsi/megaraid/megaraid_sas.ko
/lib/modules/3.4.63-2.44-default/kernel/drivers/scsi/megaraid/megaraid_mm.ko
/lib/modules/3.4.63-2.44-default/kernel/drivers/scsi/megaraid/megaraid_mbox.ko
/lib/modules/3.4.63-2.44-default/kernel/drivers/scsi/megaraid.ko
/lib/modules/3.4.63-2.44-default/kernel/drivers/scsi/raid_class.ko

They aren’t in kernel pae directory but in kernel default
So I’ve changed from kernel pae to kernel-default, make initrd againg, reinstall grub and it booted.

On 2014-01-18 22:06, fperal wrote:
>
> robin_listas;2617228 Wrote:

> There is only one file in the directory md:
>
>
> Code:
> --------------------
>
> /lib/modules/3.4.63-2.44-pae/kernel/drivers/md/dm-mod.ko
>
> --------------------
>
>
>
>
> Code:
> --------------------
>
> find /lib/modules |grep raid
> /lib/modules/3.4.63-2.44-default/kernel/crypto/async_tx/async_raid6_recov.ko
> /lib/modules/3.4.63-2.44-default/kernel/crypto/async_tx/raid6test.ko

> --------------------

But… but… several messages ago it seemed you had
“vmlinuz-3.11.6-4-pae”. These two other kernels are version 3.4.63!

You are mixing kernel versions in there somehow.

> They aren’t in kernel pae directory but in kernel default
> So I’ve changed from kernel pae to kernel-default, make initrd againg,
> reinstall grub and it booted.

Well, that’s progress. But now you have to find out what openSUSE
release you have really and what kernels, and clear that mess…


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Also AFAIK grub can’t boot to a LVM you must have a separate boot partition.

Well. I know wich distribution I have, I’m afraid It has changued along the thread :frowning:
I’ve cloned a 12.2 i586 kernel 3.4.63 computer.
First I tried to clone it to a lvm over raid1 root partition and as boot didn’t work I did an upgrade to 13.1 release (thats why the 3.11 kernel) But as it result not to be a good idea I went back to the beginig and started again, so now I’ve cloned the 12.2 i586 to a raid1 root partition (no lvm) and I’ve made It work.
The original system were using a 3.4.63-default kernel, but in the cloned one I try to use the pae kernel because I have 4GB of memory.

Now that the system boots


             total       used       free     shared    buffers     cached
Mem:          2.2G       269M       1.9G         0B        18M       169M
-/+ buffers/cache:        82M       2.1G
Swap:           0B         0B         0B

I don’t know if it’s because of the default kernel. I will be not surprise to see 3.5GB, but 2.2GB???