Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Hi, I'm trying to recompile my kernel and have gone thru some old instructions from linux format mag (july 2000) and it mentions running linuxconf which does not appear to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2003
    Posts
    39

    rh9 and linuxconf?


    Hi, I'm trying to recompile my kernel and have gone thru some old instructions from linux format mag (july 2000) and it mentions running linuxconf which does not appear to be shipped with RH9. I gave done some other looking around and found that they replaced it with redhat-config. I have looked up which ones I have and there does not appear to be a boot config.
    I have ones such as: redhat-config-date/-keyboard/-language/-printer etc etc
    I am using lilo and I know I can edit the lilo.conf but am not sure how to do this. The new boot image is in /boot and called bzImage
    thanks for any help

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    That's right - linuxconf was considered obsolete several years ago. You should be able to fix it by adding something like this to your /etc/lilo.conf (the exact options depend on your setup, so you may need to adapt it slightly, especially the root option):
    Code:
    image=/boot/bzImage
        label=new-linux
        read-only
        append="root=/dev/hda5"
    Then, run /sbin/lilo to recompile the boot sector.

  3. #3
    Just Joined!
    Join Date
    Dec 2003
    Posts
    39
    thanks for the help.
    My existing entry in lilo.conf is:
    image=/boot/vmlinuz-2.4.20-8
    label=linux
    initrd=/boot/initrd-2.4.20-8.img
    read-only
    append="root=LABEL=/"

    I've added new lines:
    image=/boot/bzImage
    label=linux2
    read-only

    Do I just copy the rest of it? The boot=/dev/hda
    thanks

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Hmmm... I see that the existing root option uses disk labels. That usually doesn't work with new kernels, so you'll need to specify it manually instead. What partition did use for your root partition?

  6. #5
    Just Joined!
    Join Date
    Dec 2003
    Posts
    39
    hi there
    btw, thanks for all your help!
    I should mention also that this is a dual boot system with W98 which is on /dev/hda1
    Root partition is on hda. There is some other text at the top of the file:

    prompt
    timeout=50
    default=linux
    boot=/dev/hda
    map=/boot/map
    install=/boot/boot.b
    message=/boot/message
    linear

  7. #6
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    I guessed that your root partition would be on /dev/hda, but you'll need to know exactly which partition. You can probably find it out with "fdisk -l /dev/hda". If that doesn't help you, check what the "stat /" command says. Post here what it says under the Device heading (it should be a number like "305h/773d" or similar), and I'll tell you what device name it corresponds to.

    Your dual booting won't be affected - adding a boot entry doesn't affect the existing ones.

  8. #7
    Just Joined!
    Join Date
    Dec 2003
    Posts
    39
    ok, output from stat as follows:

    device 341h/833d

  9. #8
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Are you sure that you installed Linux on /dev/hda? 341 is /dev/hdb1. In any case, if you really do have your root partition on /dev/hdb1, use this LILO segment:
    Code:
    image=/boot/bzImage
        label=new-linux
        read-only
        append="root=/dev/hdb1"

  10. #9
    Just Joined!
    Join Date
    Dec 2003
    Posts
    39
    I guess not! Can't remember to be honest
    I've logged in succesfully tho into this kernel so thanks for your help.
    For some reason at 1st login, I have a message saying I have mail?!

  11. #10
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Then you probably have mail. ;-)
    Run the mail command to see what has been sent to you (it's probably a logwatch report or something like that).

Page 1 of 2 1 2 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
  •