Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: How can I modify initrd booting from a live cd?

  1. #1

    Default 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

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,925
    Blog Entries
    14

    Default Re: How can I modify initrd booting from a live cd?

    You need to realy take over the installed system:
    - mount your "/" partition to /mnt
    then
    Code:
    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.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3

    Default Re: How can I modify initrd booting from a live cd?

    Quote Originally Posted by Knurpht View Post
    You need to realy take over the installed system:
    - mount your "/" partition to /mnt
    then
    Code:
    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

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

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

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How can I modify initrd booting from a live cd?

    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)

  5. #5

    Default Re: How can I modify initrd booting from a live cd?

    Quote Originally Posted by robin_listas View Post
    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.
    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
    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

    And the result is
    Code:
    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

  6. #6
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How can I modify initrd booting from a live cd?

    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)

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How can I modify initrd booting from a live cd?

    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)

  8. #8
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How can I modify initrd booting from a live cd?

    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)

  9. #9

    Default Re: How can I modify initrd booting from a live cd?

    Quote Originally Posted by robin_listas View Post
    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)
    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 ;-)
    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.......

  10. #10
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How can I modify initrd booting from a live cd?

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

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •