Find the answer to your Linux question:
Results 1 to 4 of 4
I'm trying to fix my GRUB. And through it, and my DSL internet. When I type "uname -r", I get : Linux Debian 2.6.29.06-std122 #1........ But when I type, "ls ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2012
    Posts
    20

    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 2.6.29.06-std122 #1........

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

    drwxr-xr-x.................2.6.24-etchnhalf.1-686
    drwxr-xr-x.................2.6.32.5-686

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

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,281
    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!"
    www.hrussman.entadsl.com

  3. #3
    Just Joined!
    Join Date
    Jun 2012
    Posts
    20
    OK. So, if I fix my GRUB loader one of these two modules will be displayed. Thanks for that.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Aug 2012
    Posts
    5
    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
  •