-   Linux - Hardware (
-   -   detecting correct machine type/processor (

Martian Gnome 06-04-2010 03:54 PM

detecting correct machine type/processor
So I have been looking at things with the uname command and was wondering if you can install a system with 64/32 bit when it was actually not the one you installed (e.g. you install a 64 bit OS on a 32 bit comp).

I was basically wondering how to tell what type of hardware I actually have instead of what the Debian package installed. (In order to ensure that I am running the hardware the way it was designed.)

At the moment, I am looking at my processor (uname -p returns "unknown") and the machine build (uname -m returns i686).

David the H. 06-04-2010 04:02 PM

uname reports on the OS you're running, not the hardware. So you'll need to look at a hardware information program to learn the exact nature of your processor. The major desktops have information tools, but for cli, check out lshw.

Anyway, if you have a 64bit cpu (assuming the common amd64-compatible type), then it should have a set of 32bit emulation extensions, allowing you to run a 32 bit OS instead if you want. But the reverse is not true. You can't run a 64bit OS or program on a 32 bit processor.

AlucardZero 06-04-2010 06:55 PM

cat /proc/cpuinfo

if "lm" is in the flags, your CPU supports 64-bit mode

Martian Gnome 06-06-2010 06:13 PM

hmm, thanks guys thats interesting to know about the backwards compatibility but not forwards.

I don't got any hardware tools so I gotta go looking for some. :) thanks guys.

All times are GMT -5. The time now is 04:42 PM.