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 ...
- 06-16-2010 #1Just 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
- 06-16-2010 #2
uname -m
cat /proc/cpuinfoYou must always face the curtain with a bow.
- 06-16-2010 #3Just 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
- 06-16-2010 #4
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.
- 06-16-2010 #5Just 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
- 06-16-2010 #6
Nothing to be sorry for

Look at the flags.
If there is a "lm" flag, then the CPU is capable of 64bit.
lm = long modeYou must always face the curtain with a bow.
- 06-16-2010 #7Just Joined!
- Join Date
- Feb 2009
- Posts
- 11
Great. Appreciate your quick replies.
Thanks
- 06-16-2010 #8Just Joined!
- Join Date
- Nov 2007
- Posts
- 3
# dmidecode |less
will also provide much more details..


Reply With Quote