Find the answer to your Linux question:
Results 1 to 2 of 2
Hey guys, I'm trying to compile my own kernel. However, I hit a snag when I try to make an initrd image. sudo -s mkinitrd Kernel image: /boot/vmlinuz-2.6.25.18-0.2-default Initrd image: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2006
    Location
    Toronto, Ontario, Canada
    Posts
    94

    Can't create mkinitrd


    Hey guys,

    I'm trying to compile my own kernel. However, I hit a snag when I try to make an initrd image.

    sudo -s mkinitrd

    Kernel image: /boot/vmlinuz-2.6.25.18-0.2-default
    Initrd image: /boot/initrd-2.6.25.18-0.2-default
    Root device: /dev/sda2 (mounted on / as xfs)
    Resume device: /dev/sda3
    Kernel Modules: processor thermal dock scsi_mod libata pata_atiixp ahci fan xfs edd sd_mod usbcore ohci-hcd uhci-hcd ehci-hcd ff-memless hid usbhid
    Features: block usb resume.userspace resume.kernel
    Bootsplash: openSUSE (1280x1024)
    24549 blocks

    Kernel image: /boot/vmlinuz-2.6.27.4-default
    Initrd image: /boot/initrd-2.6.27.4-default
    Could not find the filesystem module for root device /dev/sda2 (xfs)
    Here's the expanded format:
    mkinitrd -f -k -v

    Kernel image: /boot/vmlinuz-2.6.25.18-0.2-default
    Initrd image: /boot/initrd-2.6.25.18-0.2-default
    Root device: /dev/sda2 (mounted on / as xfs)
    Resume device: /dev/sda3
    [BLOCK] /dev/sda -> ahci
    [BLOCK] /dev/sda -> sd_mod
    [MODULES] 02-start.sh: processor thermal pata_atiixp ahci fan xfs edd
    [MODULES] 11-block.sh: ahci sd_mod
    [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: usbhid
    [MODULES] 84-mount.sh: xfs
    Kernel Modules: processor thermal dock scsi_mod libata pata_atiixp ahci fan xfs edd sd_mod usbcore ohci-hcd uhci-hcd ehci-hcd ff-memless hid usbhid
    [MOUNT] Root: /dev/sda2
    Features: block usb resume.userspace resume.kernel
    Bootsplash: openSUSE (1280x1024)
    Shared libs: lib64/ld-2.8.so lib64/libacl.so.1.1.0 lib64/libattr.so.1.1.0 lib64/libc-2.8.so lib64/libdl-2.8.so lib64/libgcc_s.so.1 lib64/libgcrypt.so.11.4.3 lib64/libgpg-error.so.0.4.0 lib64/libhistory.so.5.2 lib64/libncurses.so.5.6 lib64/libpthread-2.8.so lib64/libreadline.so.5.2 lib64/librt-2.8.so lib64/libutil-2.8.so lib64/libvolume_id.so.0.82.0 lib64/libz.so.1.2.3 usr/lib64/libdirect-1.1.so.0.1.0 usr/lib64/libdirectfb-1.1.so.0.1.0 usr/lib64/libfusion-1.1.so.0.1.0 usr/lib64/libglib-2.0.so.0.1600.3 usr/lib64/liblzo2.so.2.0.0 usr/lib64/libpcre.so.0.0.1 usr/lib64/libsplashycnf.so.1.0.0 usr/lib64/libsplashy.so.1.0.0 lib64/libnss_dns-2.8.so lib64/libnss_dns.so.2 lib64/libnss_files-2.8.so lib64/libnss_files.so.2 lib64/libgcc_s.so.1
    24549 blocks

    Kernel image: /boot/vmlinuz-2.6.27.4-default
    Initrd image: /boot/initrd-2.6.27.4-default
    Could not find the filesystem module for root device /dev/sda2 (xfs)
    The file system section of my kernel configuration.
    #
    # File systems
    #
    CONFIG_EXT2_FS=m
    CONFIG_EXT2_FS_XATTR=y
    CONFIG_EXT2_FS_POSIX_ACL=y
    CONFIG_EXT2_FS_SECURITY=y
    # CONFIG_EXT2_FS_XIP is not set
    CONFIG_EXT3_FS=m
    CONFIG_EXT3_FS_XATTR=y
    CONFIG_EXT3_FS_POSIX_ACL=y
    CONFIG_EXT3_FS_SECURITY=y
    CONFIG_EXT4DEV_FS=m
    CONFIG_EXT4DEV_FS_XATTR=y
    CONFIG_EXT4DEV_FS_POSIX_ACL=y
    CONFIG_EXT4DEV_FS_SECURITY=y
    CONFIG_JBD=m
    CONFIG_JBD_DEBUG=y
    CONFIG_JBD2=m
    CONFIG_JBD2_DEBUG=y
    CONFIG_FS_MBCACHE=m
    CONFIG_REISERFS_FS=m
    # CONFIG_REISERFS_CHECK is not set
    # CONFIG_REISERFS_PROC_INFO is not set
    CONFIG_REISERFS_FS_XATTR=y
    CONFIG_REISERFS_FS_POSIX_ACL=y
    CONFIG_REISERFS_FS_SECURITY=y
    CONFIG_JFS_FS=m
    CONFIG_JFS_POSIX_ACL=y
    CONFIG_JFS_SECURITY=y
    # CONFIG_JFS_DEBUG is not set
    CONFIG_JFS_STATISTICS=y
    CONFIG_FS_POSIX_ACL=y
    CONFIG_XFS_FS=m
    CONFIG_XFS_QUOTA=y
    CONFIG_XFS_POSIX_ACL=y
    CONFIG_XFS_RT=y
    # CONFIG_XFS_DEBUG is not set
    # CONFIG_GFS2_FS is not set
    # CONFIG_OCFS2_FS is not set
    CONFIG_DNOTIFY=y
    CONFIG_INOTIFY=y
    CONFIG_INOTIFY_USER=y
    CONFIG_QUOTA=y
    CONFIG_QUOTA_NETLINK_INTERFACE=y
    CONFIG_PRINT_QUOTA_WARNING=y
    CONFIG_QFMT_V1=m
    CONFIG_QFMT_V2=m
    CONFIG_QUOTACTL=y
    CONFIG_AUTOFS_FS=m
    CONFIG_AUTOFS4_FS=m
    CONFIG_FUSE_FS=m
    CONFIG_GENERIC_ACL=y
    The initrd works for OpenSUSE's kernel, but my custom kernel doesn't work. It's just 2.6.27.4 with some tweaks. Also, it does have xfs compiled into the kernel as a module.

    Please help,
    deltatux

  2. #2
    Just Joined!
    Join Date
    May 2006
    Location
    Toronto, Ontario, Canada
    Posts
    94
    ok, now it's complaining that it can't be booted into sda2 or unknown boot (0,0) or something like that, help?

Posting Permissions

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