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

Re: linux-image-2.6.18-6-amd64 kernel installed, but am I running a 64-bit system?



On Thu, May 01, 2008 at 09:50:31PM +0100, Neil Stewart wrote:
> Thank you all very much for all of your help. I think you've solved this
> one. I do _seem_ to be running a 32-bit system after foolishly using a
> 32-bit CD. But one small point: How can I get the system to report which
> type it is? uname -a does not seem to work.

dpkg --print-architecture

> > what does uname -a give out?  I suspect on was 32bit and the other was
> > 64bit (amd64)
> 
> On the known 64-bit system uname -a gives:
> 
> Linux stewart 2.6.18-6-amd64 #1 SMP Sun Feb 10 17:50:19 UTC 2008 x86_64
> GNU/Linux

uname tells you the kernel architecture.  amd64 kernels can run i386
binaries, which is what you are doing.

> On the suspected 32-bit system with a amd64 kernel uname -a gives:
> 
> Linux sdell03 2.6.18-6-amd64 #1 SMP Thu Apr 24 10:20:33 UTC 2008 x86_64
> GNU/Linux
> 
> which would seem to suggest that I'm running a 64-bit system. But on the
> same suspected 32-bit system with a k7 kernel uname -a gives:
> 
> Linux sdell03 2.6.18-6-k7 #1 SMP Thu Apr 24 09:09:38 UTC 2008 i686 GNU/Linux
> 
> Note the i686. So uname -a seems to give a kernel-dependent answer and not
> an answer dependent on which installer was used.
> 
> uname -i gives "unknown".
> 
> Which command should I use to report the system type and not the kernel type. I
> think "file" gives useful information. On the known 64-bit system file
> /lib/libc-2.3.6.so gives:
> 
> /lib/libc-2.3.6.so: ELF 64-bit LSB shared object, AMD x86-64, version 1
> (SYSV), for GNU/Linux 2.6.0, stripped
> 
> but on the suspected 32-bit system file /lib/libc-2.3.6.so gives:
> 
> /lib/libc-2.3.6.so: ELF 32-bit LSB shared object, Intel 80386, version 1
> (SYSV), for GNU/Linux 2.4.1, stripped
> 
> Is there another way?

-- 
Len Sorensen


Reply to: