LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
 
Search this Thread
Old 05-03-2014, 11:34 PM   #1
Novatian
Member
 
Registered: Feb 2008
Location: Australia
Distribution: Mint 17.1 MATE 64bit and 32bit, TAILS, Fedora 21, Android, Manjaro.
Posts: 639

Rep: Reputation: 33
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.
 
Old 05-03-2014, 11:51 PM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 1,620

Rep: Reputation: 267Reputation: 267Reputation: 267
$ 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.
 
2 members found this post helpful.
Old 05-04-2014, 11:24 AM   #3
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,857

Rep: Reputation: 450Reputation: 450Reputation: 450Reputation: 450Reputation: 450
Definitely 64-bit compatible.
 
1 members found this post helpful.
Old 05-06-2014, 05:42 PM   #4
DJ Shaji
Member
 
Registered: Dec 2004
Location: India
Distribution: Twenty One on my laptop, Wheezy on my server
Posts: 489
Blog Entries: 15

Rep: Reputation: 95
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
 
Old 05-08-2014, 03:17 PM   #5
tramsch
LQ Newbie
 
Registered: May 2014
Distribution: CentOS, Mint, Debian
Posts: 4

Rep: Reputation: Disabled
Hi Novatian,

on a x86_64 the command:
Code:
$ uname -imp
should give an output like:
Code:
x86_64 x86_64 x86_64
 
Old 05-08-2014, 04:12 PM   #6
DJ Shaji
Member
 
Registered: Dec 2004
Location: India
Distribution: Twenty One on my laptop, Wheezy on my server
Posts: 489
Blog Entries: 15

Rep: Reputation: 95
Quote:
Originally Posted by tramsch View Post
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.
 
Old 05-09-2014, 12:45 AM   #7
tramsch
LQ Newbie
 
Registered: May 2014
Distribution: CentOS, Mint, Debian
Posts: 4

Rep: Reputation: Disabled
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.
 
Old 05-09-2014, 04:02 AM   #8
skimeer
Member
 
Registered: Jun 2007
Posts: 55
Blog Entries: 1

Rep: Reputation: 0
You can check hardware arch using below command
Quote:
/usr/bin/getconf LONG_BIT
 
Old 05-11-2014, 11:05 AM   #9
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 4,072

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
Quote:
Originally Posted by skimeer View Post
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?
 
Old 05-12-2014, 03:53 AM   #10
Novatian
Member
 
Registered: Feb 2008
Location: Australia
Distribution: Mint 17.1 MATE 64bit and 32bit, TAILS, Fedora 21, Android, Manjaro.
Posts: 639

Original Poster
Rep: Reputation: 33
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?

Last edited by Novatian; 05-12-2014 at 04:08 AM.
 
Old 05-12-2014, 07:09 AM   #11
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,249

Rep: Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149Reputation: 1149
Quote:
Originally Posted by skimeer View Post
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.

Last edited by johnsfine; 05-12-2014 at 07:21 AM.
 
Old 05-12-2014, 12:53 PM   #12
DJ Shaji
Member
 
Registered: Dec 2004
Location: India
Distribution: Twenty One on my laptop, Wheezy on my server
Posts: 489
Blog Entries: 15

Rep: Reputation: 95
Quote:
Originally Posted by Novatian View Post
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.
 
Old 05-14-2014, 06:56 AM   #13
Novatian
Member
 
Registered: Feb 2008
Location: Australia
Distribution: Mint 17.1 MATE 64bit and 32bit, TAILS, Fedora 21, Android, Manjaro.
Posts: 639

Original Poster
Rep: Reputation: 33
For example, lspci will give results but where is a resource with all the commands and their purposes?
 
Old 05-14-2014, 07:22 AM   #14
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,995

Rep: Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574Reputation: 1574
what do you mean by all the commands? Do you need something like this: http://linux.die.net/man/ ?
 
Old 05-14-2014, 06:22 PM   #15
DJ Shaji
Member
 
Registered: Dec 2004
Location: India
Distribution: Twenty One on my laptop, Wheezy on my server
Posts: 489
Blog Entries: 15

Rep: Reputation: 95
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
32 bit and 64 bit Hardware difference vainspall Linux - Newbie 17 09-11-2012 10:14 AM
runnig 32-bit software on 64-bit hardware nima0102 Linux - Software 3 03-03-2009 09:04 PM
Installing 64-bit linux distros on 32-bit hardware gizmo24 Linux - Software 3 12-14-2007 08:36 PM


All times are GMT -5. The time now is 06:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration