On Wed, May 4, 2016 at 9:08 AM, John Blinka <john.bli...@gmail.com> wrote:
>
> I had read similar thoughts about booting into a 64 bit environment before
> posting and had gone to some effort to figure out whether the sysrescuecd
> kernel was, in fact, 64 bit.  Its /proc/config.gz seemed to indicate 64 bit,
> as did uname -a.  But I really don't know if there is a definitive way of
> determining whether a running kernel is 64 or 32 bit.

Generally, 'uname -m' should report x86_64 for 64-bit (amd64) and i686
for 32-bit (x86). While it is possible to have a 64-bit kernel and
32-bit userland, the reverse is not possible. So another check can be
'file /sbin/init' which will report as something along the lines of
"/sbin/init: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for
GNU/Linux 2.6.32, stripped"

Regards,
Ron

Reply via email to