Results 1 to 6 of 6

Thread: Kernel compile after hdd-install

  1. #1
    Junior Member
    Join Date
    Feb 2003
    Location
    The Netherlands
    Posts
    3

    Kernel compile after hdd-install

    Hi,

    I use knoppix to install debian on my machines.
    On my laptop i wanted to use gatos (gatos.sourceforge.net) to get Xv and DRI working on the internal ATI-mach 64 videocard. However, to be able to insmod the mach64.o module I need cmpxchg in the kernel and the stock knoppix kernel doesn't have it enabled. So I wend about to compile my own kernel. I did the following:

    apt-get install kernel-source-2.4.20
    cd /usr/src
    tar -xjf kernel-sources.2.4.20.tar.bz2
    cd kernel-source-2.4.20
    make xconfig
    changed CPU-architecture to Pentium-III (for cmpxchg)
    make-kpkg clean
    make-kpkg --initrd --revision=custom.1.0 kernel_image
    dpkg -i dpkg -i kernel-image-2.4.20_custom.1.0_i386.deb

    Then I changed /etc/lilo.conf to point to the new kernel.
    I reran lilo and rebooted.

    I chose my new kernel.
    The new kernel can't mount the root partition (reiserfs).
    I've tried about everythin I can think of but I can't seem to get a working kernel that is able to mount the root partition.

    Please help.

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    202
    I´m not sure but knoppix partition is xfs after installing knoppix to hard disk and it may be the problem here.
    is it knoppix kernel source for download at any place? in order to be able recompiling the ´original´ source.
    It is not at /usr/src/

  3. #3
    Junior Member
    Join Date
    Feb 2003
    Location
    The Netherlands
    Posts
    3

    Kernel compile

    When I did a HDD install, I chose for reiserfs, I saw a reiser filesystem being made for the root partition. The new kernel is compiled with reiserfs support.

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    202

    Re: Kernel compile

    Quote Originally Posted by hopman
    When I did a HDD install, I chose for reiserfs, I saw a reiser filesystem being made for the root partition. The new kernel is compiled with reiserfs support.
    yes, but when i did hdd install i chose for ext3 but partition is xfs actually. I have debian in other partition whose kernel is compiled with ext3 support and without xfs support. If i run e2fsck on knoppix i get error 'system file not supported get a e2fsck new version'
    Partition Magic 8 recognizes ext3 parttions but it knows anything about knoppix partition.

  5. #5
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    202

    Re: Kernel compile

    Quote Originally Posted by hopman
    When I did a HDD install, I chose for reiserfs, I saw a reiser filesystem being made for the root partition. The new kernel is compiled with reiserfs support.
    yes, but when i did hdd install i chose for ext3 but partition is xfs actually. I have debian in other partition whose kernel is compiled with ext3 support and without xfs support. If i run e2fsck on knoppix i get error 'system file not supported get a e2fsck new version'
    Partition Magic 8 recognizes ext3 parttions but it knows anything about knoppix partition.

  6. #6
    Junior Member
    Join Date
    Feb 2003
    Location
    The Netherlands
    Posts
    3
    I tried fsck.reiserfs but it can't be run on a read/write mount and I can't remount root (/) because it is busy

    However, I did find this in dmesg (line numbers added by me):

    01. RAMDISK: Compressed image found at block 0
    02. Freeing initrd memory: 166k freed
    03. VFS: Mounted root (ext2 filesystem).
    04. FAT: bogus logical sector size 0
    05. FAT: bogus logical sector size 0
    06. reiserfs: checking transaction log (device 03:02) ...
    07. Using r5 hash to sort names
    08. ReiserFS version 3.6.25
    09. VFS: Mounted root (reiserfs filesystem) readonly.
    10. Trying to move old root to /initrd ... okay


    It looks to like /dev/hda2 (my root partition) is mounted as a reiserfs (lines 06-09), but what happens before that (line 03) ? It looks like something is mounted as root with a ext2 filesystem and then remounted as /initrd. Is initrd.img mounted as root first ? And if so could that be interfering with the new kernel ??

Similar Threads

  1. compile kernel with adeos
    By hasab in forum General Support
    Replies: 1
    Last Post: 09-22-2004, 06:45 AM
  2. Kernel compile 2.6.6 - only once?
    By davros4269 in forum General Support
    Replies: 14
    Last Post: 07-23-2004, 08:49 AM
  3. Upgraded Kernel Won't Compile
    By Max in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 03-10-2004, 06:56 PM
  4. Kernel compile problem - first Knoppix kernel compile
    By Nigel_Tufnel in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 10-20-2003, 01:09 PM
  5. how to compile kernel ?
    By nhoxanh in forum General Support
    Replies: 0
    Last Post: 07-28-2003, 04:23 AM

Posting Permissions

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


Supermicro 4U 36 Bay Storage Server 2.2Ghz 16-C 128GB 1x1280W Rails TrueNAS ZFS picture

Supermicro 4U 36 Bay Storage Server 2.2Ghz 16-C 128GB 1x1280W Rails TrueNAS ZFS

$725.06



H261-Z61 2U 24SFF AMD Server 8x EPYC 7551 256-Cores 256GB RAM 8x25G NIC 2x2200W picture

H261-Z61 2U 24SFF AMD Server 8x EPYC 7551 256-Cores 256GB RAM 8x25G NIC 2x2200W

$2612.18



HP ProLiant DL360 G9 Server | 2 x E5-2660V3 2.6Ghz | 64GB | 2 x 900GB SAS HDD picture

HP ProLiant DL360 G9 Server | 2 x E5-2660V3 2.6Ghz | 64GB | 2 x 900GB SAS HDD

$339.00



CSE-118 Supermicro 1U GPU Server 2.6Ghz 28-C 128GB 2x Nvidia K40 GPU 2x1600W PSU picture

CSE-118 Supermicro 1U GPU Server 2.6Ghz 28-C 128GB 2x Nvidia K40 GPU 2x1600W PSU

$580.03



DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45

$274.00



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD

$389.99



HP Proliant DL360 Gen9 28 Core SFF Server 2X E5-2680 V4 16GB RAM P440ar No HDD picture

HP Proliant DL360 Gen9 28 Core SFF Server 2X E5-2680 V4 16GB RAM P440ar No HDD

$196.95



Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB picture

Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB

$510.00



HP ProLiant DL380 Gen9 16SFF 2x E5-2680v4 2.4GHz =28 Cores 64GB P840 4xRJ45 picture

HP ProLiant DL380 Gen9 16SFF 2x E5-2680v4 2.4GHz =28 Cores 64GB P840 4xRJ45

$353.00



Dell Poweredge R730xd 2.5in 2x E5-2690 v3 2.6ghz 24-Cores  64gb  H730  2x 750w picture

Dell Poweredge R730xd 2.5in 2x E5-2690 v3 2.6ghz 24-Cores 64gb H730 2x 750w

$189.99