LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 04-10-2006, 12:08 AM   #1
gsr_kashyap
Member
 
Registered: Jul 2004
Location: india
Distribution: Ubuntu 14.04
Posts: 155

Rep: Reputation: 15
how to identify whether a system is 32 or 64 bit


hi everyone,
can any one tell how to identify a computer whether it is 32 or 64 bit box. any way will do.
 
Old 04-10-2006, 12:28 AM   #2
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
hi,
simple if u have gcc then just type gcc -v and check for --host info
 
Old 04-10-2006, 01:08 AM   #3
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
uname -m

Not sure if that returns the machines arch or the arch the kernel was built for though.
 
Old 04-10-2006, 01:16 AM   #4
gsr_kashyap
Member
 
Registered: Jul 2004
Location: india
Distribution: Ubuntu 14.04
Posts: 155

Original Poster
Rep: Reputation: 15
is there any possible way to know before installing any OS??
 
Old 04-10-2006, 01:38 AM   #5
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
hi,
how can you come to know without checking cd's on any other OS?? about Fedora core and RHEL i can say that just open installation cds and check names of rpm's that will have i386 for 32bit and x86_64 for 64bit
 
Old 04-10-2006, 02:01 AM   #6
jillande
Member
 
Registered: Oct 2003
Location: fargoh eh.
Distribution: slackware
Posts: 94

Rep: Reputation: 15
uname -m, gcc -v and such will return information related to the installed system, not necessarily the hardware.

without an os, or if you suspect a system that reports as 32-bit might actually be 64-bit hardware, the only method i can think of would be to look in bios for information. at the very least, you could see what the processor is (or less /proc/cpuinfo if you have linux installed already) to deduce whether it is 64-bit.
 
Old 04-11-2006, 11:00 AM   #7
mickyg
Member
 
Registered: Oct 2004
Location: UK
Distribution: Ubuntu/Kubuntu
Posts: 249

Rep: Reputation: 30
Surely 'less /proc/cpuinfo' from a liveCD would be easiest way?? No installation would be needed and you wouldn't have to needlessly take the PC apart to see the processor.
 
Old 04-11-2006, 02:29 PM   #8
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
hi,
i dont think /proc/cpuinfo will give info. I check it on my system which is 32 bit OS on 64 bit arch
Quote:
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Pentium(R) 4 CPU 3.20GHz
stepping : 3
cpu MHz : 3192.546
cache size : 2048 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 3
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm pni monitor ds_cpl est cid xtpr
bogomips : 6388.06
 
Old 04-11-2006, 03:45 PM   #9
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
Um Pentium 4 gives it away though. Here's mine

processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 39
model name : AMD Athlon(tm) 64 Processor 3700+
stepping : 1
cpu MHz : 2310.133
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
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 mmxext fxsr_opt lm 3dnowext 3dnow pni lahf_lm
bogomips : 4624.02
 
Old 04-11-2006, 11:56 PM   #10
gsr_kashyap
Member
 
Registered: Jul 2004
Location: india
Distribution: Ubuntu 14.04
Posts: 155

Original Poster
Rep: Reputation: 15
ok guys that was really good effort i would like to know that can we find it in BIOS is that possible ?? i have checked in some of the BIOS but no luck :-(

Last edited by gsr_kashyap; 04-12-2006 at 12:11 AM.
 
Old 04-12-2006, 09:16 PM   #11
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
Maybe, maybe not, Depends on which bios is used.
 
Old 04-13-2006, 02:05 AM   #12
gsr_kashyap
Member
 
Registered: Jul 2004
Location: india
Distribution: Ubuntu 14.04
Posts: 155

Original Poster
Rep: Reputation: 15
so any one can tell which BIOS gives the info??
 
Old 04-17-2006, 12:08 PM   #13
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Isn't it there on the POST screen?
 
Old 04-22-2006, 06:42 PM   #14
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
crack the case and look at the cpu its that simple. ps if there are cryptic numbers a google will help you decipher what you have. btw when you got it how did you not know then?
 
Old 04-24-2006, 01:09 AM   #15
gsr_kashyap
Member
 
Registered: Jul 2004
Location: india
Distribution: Ubuntu 14.04
Posts: 155

Original Poster
Rep: Reputation: 15
hey scheidel21, thats what i want to know where do i get the info and how do i confirm it before loading any OS, how identify whether it's 32 or 64bit box.??
 
  


Reply



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
System not able to Identify Linux at boot time suman_chat Red Hat 5 09-30-2005 09:08 AM
how to determine if system is 32 bit or 64 bit? bkevind Linux - Newbie 3 03-16-2005 04:01 PM
32 bit emulation libs on 64 bit system csfalcon Linux - Software 1 12-23-2004 12:49 AM
Identify system distribution speres Linux - Distributions 6 10-25-2004 09:12 PM
Webmin error - unable to identify operating system LittleAngel Linux - Software 2 05-15-2004 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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

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
Open Source Consulting | Domain Registration