Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Differing output of uname -r and ls -l/lib/modules

    I'm trying to fix my GRUB. And through it, and my DSL internet.

    When I type "uname -r", I get :

    Linux Debian #1........

    But when I type, "ls -l /lib/modules", I get :


    Why are these two outputs different ? (btw I'm using a rescuecd and seems to be a rescuecd version).

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Harrow, UK
    uname -r gives you the version of the kernel you are currently running. If you booted from a CDROM, it will be the kernel on that disc. The directories in /lib/modules correspond to the kernels that are installed on your hard drive partition. If you had been able to boot via GRUB, and had then typed uname -r, it would have returned one of those two kernels.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  3. #3
    OK. So, if I fix my GRUB loader one of these two modules will be displayed. Thanks for that.

  4. $spacer_open
  5. #4
    You can edit boot loader to point the kernel

Posting Permissions

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