LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   My hardware is 32 or 64 bit? (https://www.linuxquestions.org/questions/linux-hardware-18/my-hardware-is-32-or-64-bit-4175503859/)

Novatian 05-03-2014 11:34 PM

My hardware is 32 or 64 bit?
 
Hi, how can I discern if my hardware is 32 or 64 bit?

Running Mint Olivia and my hardware is a Dell Inspirion Zino HD.

Shadow_7 05-03-2014 11:51 PM

$ cat /proc/cpuinfo

If you have a " lm " in the output, then you are on 64 bit hardware. At least as far as x86 hardware goes.

metaschima 05-04-2014 11:24 AM

Definitely 64-bit compatible.

DJ Shaji 05-06-2014 05:42 PM

Look in dmesg | less. there'd be a bunch of stuff in there about things being 64 bit:

Code:

....
[    1.635718] pci 0000:00:14.0: reg 10: [mem 0xc3600000-0xc360ffff 64bit]
....
[    2.352647] ahci 0000:00:1f.2: flags: 64bit ncq pm led clo pio slum part ems apst


tramsch 05-08-2014 03:17 PM

Hi Novatian,

on a x86_64 the command:
Code:

$ uname -imp
should give an output like:
Code:

x86_64 x86_64 x86_64

DJ Shaji 05-08-2014 04:12 PM

Quote:

Originally Posted by tramsch (Post 5167224)
Hi Novatian,

on a x86_64 the command:
Code:

$ uname -imp
should give an output like:
Code:

x86_64 x86_64 x86_64

But that presupposes that OP is running a 64 bit distro, which might not be the case. The best solution is lscpu which will give detailed info about the processor.

tramsch 05-09-2014 12:45 AM

DJ Shari, you're right. A 32-bit iso (grml.org in this case) booted on a 64-bit machine actually gives:
Code:

# uname -imp
i686 unknown unknown

I am sorry for misleading. The uname man-page does not state that it is only asking the kernel, which I assume it is doing.

So as already stated, looking for the lm flag in "cat /proc/cpuinfo" is the way to go.
on 64-bit:
Code:

flags          : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx rdtscp lm constant_tsc pni monitor ssse3 lahf_lm
on 32-bit:
Code:

flags          : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 nx rdtscp constant_tsc pni monitor ssse3
Both examples come from a virtual environment, but I don't think that it matters here.

skimeer 05-09-2014 04:02 AM

You can check hardware arch using below command
Quote:

/usr/bin/getconf LONG_BIT

273 05-11-2014 11:05 AM

Quote:

Originally Posted by skimeer (Post 5167562)
You can check hardware arch using below command

What does that return for a 32 bit OS running on 64 bit hardware though? I don't have a 32 bit VM to confirm but I would expect it to return 32 on a 32 bit OS?

Novatian 05-12-2014 03:53 AM

bm@bm-Inspiron-410 ~ $ lscpu
Architecture: i686
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2

Thanks, so 64 bit, and where can I find these command lines you fellows pull?

johnsfine 05-12-2014 07:09 AM

Quote:

Originally Posted by skimeer (Post 5167562)
You can check hardware arch using below command
Code:

/usr/bin/getconf LONG_BIT

That is an unreliable way to check whether the kernel is 32 bit or 64 bit. It does not check the hardware. So as an answer in this thread, it is a bad answer to the wrong question.

DJ Shaji 05-12-2014 12:53 PM

Quote:

Originally Posted by Novatian (Post 5169177)
where can I find these command lines you fellows pull?

Most (all?) of these are standard on any linux system and should in all probability be installed by default.

Novatian 05-14-2014 06:56 AM

For example, lspci will give results but where is a resource with all the commands and their purposes?

pan64 05-14-2014 07:22 AM

what do you mean by all the commands? Do you need something like this: http://linux.die.net/man/ ?

DJ Shaji 05-14-2014 06:22 PM

One way to browse through a list of available commands is to see the info pages. Just type
Code:

info
and you will see a list of available commands. The pages are hyperlinked, so clicking on the name of a program will give you it's description, which will be in a similar linked fashion. Press 'u' to go back.

I think what you are looking for is this, though.


All times are GMT -5. The time now is 08:32 PM.