Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27

Thread: Re: What version am I running?

  1. #11
    Join Date
    Nov 2007
    Location
    Atlanta, Georgia
    Beans
    494
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: What version am I running?

    Quote Originally Posted by drs305 View Post
    On my 64-bit system, it returns:
    Code:
    ~: cat /boot/config-`uname -r` | grep X86_64
    CONFIG_CRYPTO_AES_X86_64=m
    CONFIG_CRYPTO_TWOFISH_X86_64=m
    CONFIG_X86_64=y
    CONFIG_X86_64_ACPI_NUMA=y
    I'd refine ilrudie's command a bit further, and make it:
    Code:
    ~: cat /boot/config-`uname -r` | grep CONFIG_X86_64=
    which would return:
    Code:
    CONFIG_X86_64=y
    Now the final test would be to see the output from a 64-bit user who has installed 32-bit ubuntu...
    Thanks for the backup. Don't have my 64-bit box handy. I would be interested in what someone with a 64-bit chip and a 32-bit kernel would say. I imagine its going to say the same thing mine did though.
    GNU/Linux>Windows

  2. #12
    Join Date
    Nov 2007
    Location
    Atlanta, Georgia
    Beans
    494
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: What version am I running?

    Also
    Code:
    file /boot/vmlinuz-`uname -r`
    is an option. I get
    Code:
     Linux kernel x86 boot executable
    along with some other junk on ubuntu and
    Code:
     ELF 32-bit LSB shared object
    on centos. Both are 32-bit. Any one on a 64-bit box care to weigh in?
    As a side note I think this is a pretty interesting question. It seems like it should be super simple but the answer doesn't seem to be.
    GNU/Linux>Windows

  3. #13
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: What version am I running?

    Quote Originally Posted by ilrudie View Post
    Also
    Code:
    file /boot/vmlinuz-`uname -r`
    is an option. I get
    Code:
     Linux kernel x86 boot executable
    along with some other junk on ubuntu and
    Code:
     ELF 32-bit LSB shared object
    on centos. Both are 32-bit. Any one on a 64-bit box care to weigh in?
    As a side note I think this is a pretty interesting question. It seems like it should be super simple but the answer doesn't seem to be.
    64-bit system/machine:
    Code:
    /boot/vmlinuz-2.6.24-19-generic: Linux kernel x86 boot executable RO-rootFS, root_dev 0x801, swap_dev 0x1, Normal VGA
    It doesn't look like this sheds much light. I PM'd you about posting a request on the 64-bit forum for the results of the previous command on a 64-bit machine running 32-bit ubuntu.

    Maybe there should be a warning halfway down this thread with a warning:
    Code:
    Caution: Geeks only from this point forward.

  4. #14
    Join Date
    Dec 2005
    Location
    Western Australia
    Beans
    11,480
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: What version am I running?

    Quote Originally Posted by drs305 View Post
    I'd refine ilrudie's command a bit further, and make it:
    Code:
    ~: cat /boot/config-`uname -r` | grep CONFIG_X86_64=
    which would return:
    Code:
    CONFIG_X86_64=y
    Now the final test would be to see the output from a 64-bit user who has installed 32-bit ubuntu...
    There is no output when you are running a 32-bit Ubuntu on a 64-bit machine.
    I try to treat the cause, not the symptom. I avoid the terminal in instructions, unless it's easier or necessary. My instructions will work within the Ubuntu system, instead of breaking or subverting it. Those are the three guarantees to the helpee.

  5. #15
    Join Date
    Nov 2007
    Location
    Atlanta, Georgia
    Beans
    494
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: What version am I running?

    Hmmm... I was thinking that it may work better than the original post I made and you tweaked. Unfortunate that Ubuntu doesn't seem to differentiate 64 and 32 bit binaries with file. Probably has something to do with the magic file uses but I really don't feel like mucking with it right now. A friend of mine confirmed it works for Power PC under fedora though. I agree with your assertion that the question has pretty much been answered and the search for the best answer is really just a geek quest at this point.

    Also the presence of /proc/sys/kernel/vsyscall64 indicates an X86_64 kernel.
    GNU/Linux>Windows

  6. #16
    Join Date
    Nov 2007
    Location
    Atlanta, Georgia
    Beans
    494
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: What version am I running?

    Quote Originally Posted by 3rdalbum View Post
    There is no output when you are running a 32-bit Ubuntu on a 64-bit machine.
    Yeah. Thats what I would have guessed. It should say
    # CONFIG_X86_64 is not set in the config file but the grep pattern won't match that because of the '='
    GNU/Linux>Windows

  7. #17

    Re: What version am I running?

    Try uname -a

  8. #18
    Join Date
    Nov 2007
    Location
    Atlanta, Georgia
    Beans
    494
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: What version am I running?

    Quote Originally Posted by nikloleta View Post
    Try uname -a
    returns the type of hardware the kernel is running on (among a myriad of other things) but not what type of kernel is running*. This has been discussed above already.

    *unless the name/revision of the kernel happens to include if its 64bit or not which some kernels may include but Ubuntu's doesn't seem to.
    GNU/Linux>Windows

  9. #19
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: What version am I running?

    Quote Originally Posted by ilrudie View Post
    returns the type of hardware the kernel is running on (among a myriad of other things) but not what type of kernel is running*. This has been discussed above already.

    *unless the name/revision of the kernel happens to include if its 64bit or not which some kernels may include but Ubuntu's doesn't seem to.
    uname -a shows the arch of the current running kernel.

    i686 = 32 bit

    x86_64 = 64 bit

    cat /proc/cpuinfo shows cpu info
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  10. #20
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: What version am I running?

    Quote Originally Posted by bodhi.zazen View Post
    uname -a shows the arch of the current running kernel.

    i686 = 32 bit

    x86_64 = 64 bit

    cat /proc/cpuinfo shows cpu info
    That's what I always thought but Sef brought up a good point. If you look at the man page for uname it says:

    Code:
     
    -m, --machine
        print the machine hardware name
    The -m switch would be the part of -a that prints out the "x86_64", which it would seem is the machine architecture - or is the man page just poorly worded...


Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

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