[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Identifying CPU and current OS



Richard Owlett composed on 2025-09-28 07:00 (UTC-0500):

> I may resurrect an former desktop machine as a trouble shooting aid.
> I need to know the data bus width.
 
> I know the Debian version number is stored in /etc/debian_version .
 
> How do I find if the installed OS is 32 or 64 bit?
> How do I discover the CPU's bus width?
 
If it's an IBM compatible PC or laptop, boot into BIOS setup. Odds are, if
you see EFI mentioned anywhere, the CPU is 64bit, but somewhere at least
there will be some indicator of bus width.


# inxi -Sz
System:
  Kernel: 6.12.43+deb13-amd64 arch: x86_64 bits: 64
  ... Distro: Debian GNU/Linux 13 (trixie)
# grep RETT /etc/os-release
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
# lscpu | grep mode
CPU op-mode(s):                          32-bit, 64-bit
# file /bin/ls
/bin/ls: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=0243f2a3ad64d635299a574bbc8ef951ddde9b21, for GNU/Linux 3.2.0, stripped
# file /bin/true
/bin/true: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=97b6cb54883633ece766a29e7c3ecd37adfe567b, for GNU/Linux 3.2.0, stripped
# ls -gGd /lib*
lrwxrwxrwx 1 7 Oct 16  2022 /lib -> usr/lib
lrwxrwxrwx 1 9 Oct 16  2022 /lib64 -> usr/lib64
# ls -gGd /usr/lib*
drwxr-xr-x 58 3072 Sep  1 09:48 /usr/lib
drwxr-xr-x  2 1024 Aug 12 18:35 /usr/lib64
drwxr-xr-x 13 1024 Apr 20 05:05 /usr/libexec
#
Examining (/usr)/lib* is possible even when the installed OS isn't itself
bootable. I don't think I've ever found /lib64/ or /usr/lib64/ on a 32bit
installation. Their presence indicates 64bit capable CPU, but their absence
does not preclude the CPU being 64bit capable.
-- 
Evolution as taught in public schools is, like religion,
	based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata


Reply to: