Alsois an option. I getCode:file /boot/vmlinuz-`uname -r`along with some other junk on ubuntu andCode:Linux kernel x86 boot executableon centos. Both are 32-bit. Any one on a 64-bit box care to weigh in?Code:ELF 32-bit LSB shared object
As a side note I think this is a pretty interesting question. It seems like it should be super simple but the answer doesn't seem to be.
GNU/Linux>Windows
64-bit system/machine:
It doesn't look like this sheds much light. I PM'd you about posting a request on the 64-bit forum for the results of the previous command on a 64-bit machine running 32-bit ubuntu.Code:/boot/vmlinuz-2.6.24-19-generic: Linux kernel x86 boot executable RO-rootFS, root_dev 0x801, swap_dev 0x1, Normal VGA
Maybe there should be a warning halfway down this thread with a warning:
Code:Caution: Geeks only from this point forward.
I try to treat the cause, not the symptom. I avoid the terminal in instructions, unless it's easier or necessary. My instructions will work within the Ubuntu system, instead of breaking or subverting it. Those are the three guarantees to the helpee.
Hmmm... I was thinking that it may work better than the original post I made and you tweaked. Unfortunate that Ubuntu doesn't seem to differentiate 64 and 32 bit binaries with file. Probably has something to do with the magic file uses but I really don't feel like mucking with it right now. A friend of mine confirmed it works for Power PC under fedora though. I agree with your assertion that the question has pretty much been answered and the search for the best answer is really just a geek quest at this point.
Also the presence of /proc/sys/kernel/vsyscall64 indicates an X86_64 kernel.
GNU/Linux>Windows
Try uname -a
returns the type of hardware the kernel is running on (among a myriad of other things) but not what type of kernel is running*. This has been discussed above already.
*unless the name/revision of the kernel happens to include if its 64bit or not which some kernels may include but Ubuntu's doesn't seem to.
GNU/Linux>Windows
There are two mistakes one can make along the road to truth...not going all the way, and not starting.
--Prince Gautama Siddharta
#ubuntuforums web interface
That's what I always thought but Sef brought up a good point. If you look at the man page for uname it says:
The -m switch would be the part of -a that prints out the "x86_64", which it would seem is the machine architecture - or is the man page just poorly worded...Code:-m, --machine print the machine hardware name
Bookmarks