Find the answer to your Linux question:
Results 1 to 8 of 8
Hi, How do I get arch/processor type at a particular root? On Solaris, I can get it by running "pkgparam -R "$alt_root" SUNWcsu" (SUNWcsr) Wonder if something similar for Linux ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    11

    How to get processor type on Linux at a particular root

    Hi,

    How do I get arch/processor type at a particular root?

    On Solaris, I can get it by running "pkgparam -R "$alt_root" SUNWcsu" (SUNWcsr)

    Wonder if something similar for Linux exists?

    I know that 'uname -p' works for the current system, but I am looking to find arch for a system mounted at some root.

    Thanks

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,097
    uname -m
    cat /proc/cpuinfo
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Feb 2009
    Posts
    11
    Thanks Irithori for your reply. On my system 'uname -m' returns "i686" but I don't find such info in /proc/cpuinfo. Any idea how to figure out if the arch is "i686" from the /proc/cpuinfo file?

    Thanks

  4. #4
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,097
    The problem is:
    You cannot reliable conclude from the CPU capabilities to the arch used.

    A 64bit CPU can run a i386, i486, i686 architecture perfectly fine

    So you need two commands to figure out cpu and arch.
    You must always face the curtain with a bow.

  5. #5
    Just Joined!
    Join Date
    Feb 2009
    Posts
    11
    Thanks for your reply. One last question (sorry, I am a newbie)

    From the /proc/cpuinfo output, how to see if the cpu is 64bit or 32 bit?

    Thanks

  6. #6
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,097
    Nothing to be sorry for

    Look at the flags.
    If there is a "lm" flag, then the CPU is capable of 64bit.
    lm = long mode
    You must always face the curtain with a bow.

  7. #7
    Just Joined!
    Join Date
    Feb 2009
    Posts
    11
    Great. Appreciate your quick replies.

    Thanks

  8. #8
    Just Joined!
    Join Date
    Nov 2007
    Posts
    3
    # dmidecode |less

    will also provide much more details..

Posting Permissions

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