<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: check if 32 or 64-bit system using live CD in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767485#M59697</link>
    <description>Thx, but howto run these programs from the live CD?</description>
    <pubDate>Mon, 21 Mar 2011 18:42:24 GMT</pubDate>
    <dc:creator>'chris'</dc:creator>
    <dc:date>2011-03-21T18:42:24Z</dc:date>
    <item>
      <title>check if 32 or 64-bit system using live CD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767476#M59688</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;Howto check if if 32 or 64-bit system using live CD? &lt;BR /&gt;</description>
      <pubDate>Sun, 20 Mar 2011 18:14:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767476#M59688</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2011-03-20T18:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: check if 32 or 64-bit system using live CD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767477#M59689</link>
      <description>Hi!&lt;BR /&gt;  Not sure, if i understand you correctly, but you cat check /etc/cpuinfo - it will show you the processor information and you'll see if it is x86-64.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Philipp.</description>
      <pubDate>Sun, 20 Mar 2011 18:17:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767477#M59689</guid>
      <dc:creator>Prokopets</dc:creator>
      <dc:date>2011-03-20T18:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: check if 32 or 64-bit system using live CD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767478#M59690</link>
      <description># cat /proc/cpuinfo&lt;BR /&gt;&lt;BR /&gt;processor       : 0&lt;BR /&gt;vendor_id       : GenuineIntel&lt;BR /&gt;cpu family      : 6&lt;BR /&gt;model           : 15&lt;BR /&gt;model name      : Intel(R) Xeon(R) CPU            3050  @ 2.13GHz&lt;BR /&gt;stepping        : 6&lt;BR /&gt;cpu MHz         : 2133.443&lt;BR /&gt;cache size      : 2048 KB&lt;BR /&gt;physical id     : 0&lt;BR /&gt;siblings        : 2&lt;BR /&gt;core id         : 0&lt;BR /&gt;cpu cores       : 2&lt;BR /&gt;apicid          : 0&lt;BR /&gt;initial apicid  : 0&lt;BR /&gt;fdiv_bug        : no&lt;BR /&gt;hlt_bug         : no&lt;BR /&gt;f00f_bug        : no&lt;BR /&gt;coma_bug        : no&lt;BR /&gt;fpu             : yes&lt;BR /&gt;fpu_exception   : yes&lt;BR /&gt;cpuid level     : 10&lt;BR /&gt;wp              : yes&lt;BR /&gt;flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm tpr_shadow&lt;BR /&gt;bogomips        : 4266.88&lt;BR /&gt;clflush size    : 64&lt;BR /&gt;cache_alignment : 64&lt;BR /&gt;address sizes   : 36 bits physical, 48 bits virtual&lt;BR /&gt;power management:&lt;BR /&gt;&lt;BR /&gt;processor       : 1&lt;BR /&gt;vendor_id       : GenuineIntel&lt;BR /&gt;cpu family      : 6&lt;BR /&gt;model           : 15&lt;BR /&gt;model name      : Intel(R) Xeon(R) CPU            3050  @ 2.13GHz&lt;BR /&gt;stepping        : 6&lt;BR /&gt;cpu MHz         : 2133.443&lt;BR /&gt;cache size      : 2048 KB&lt;BR /&gt;physical id     : 0&lt;BR /&gt;siblings        : 2&lt;BR /&gt;core id         : 1&lt;BR /&gt;cpu cores       : 2&lt;BR /&gt;apicid          : 1&lt;BR /&gt;initial apicid  : 1&lt;BR /&gt;fdiv_bug        : no&lt;BR /&gt;hlt_bug         : no&lt;BR /&gt;f00f_bug        : no&lt;BR /&gt;coma_bug        : no&lt;BR /&gt;fpu             : yes&lt;BR /&gt;fpu_exception   : yes&lt;BR /&gt;cpuid level     : 10&lt;BR /&gt;wp              : yes&lt;BR /&gt;flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm tpr_shadow&lt;BR /&gt;bogomips        : 4266.82&lt;BR /&gt;clflush size    : 64&lt;BR /&gt;cache_alignment : 64&lt;BR /&gt;address sizes   : 36 bits physical, 48 bits virtual&lt;BR /&gt;power management:&lt;BR /&gt;&lt;BR /&gt;root@squeeze:/proc# cat /proc/cpuinfo&lt;BR /&gt;processor       : 0&lt;BR /&gt;vendor_id       : GenuineIntel&lt;BR /&gt;cpu family      : 6&lt;BR /&gt;model           : 15&lt;BR /&gt;model name      : Intel(R) Xeon(R) CPU            3050  @ 2.13GHz&lt;BR /&gt;stepping        : 6&lt;BR /&gt;cpu MHz         : 2133.443&lt;BR /&gt;cache size      : 2048 KB&lt;BR /&gt;physical id     : 0&lt;BR /&gt;siblings        : 2&lt;BR /&gt;core id         : 0&lt;BR /&gt;cpu cores       : 2&lt;BR /&gt;apicid          : 0&lt;BR /&gt;initial apicid  : 0&lt;BR /&gt;fdiv_bug        : no&lt;BR /&gt;hlt_bug         : no&lt;BR /&gt;f00f_bug        : no&lt;BR /&gt;coma_bug        : no&lt;BR /&gt;fpu             : yes&lt;BR /&gt;fpu_exception   : yes&lt;BR /&gt;cpuid level     : 10&lt;BR /&gt;wp              : yes&lt;BR /&gt;flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm tpr_shadow&lt;BR /&gt;bogomips        : 4266.88&lt;BR /&gt;clflush size    : 64&lt;BR /&gt;cache_alignment : 64&lt;BR /&gt;address sizes   : 36 bits physical, 48 bits virtual&lt;BR /&gt;power management:&lt;BR /&gt;&lt;BR /&gt;processor       : 1&lt;BR /&gt;vendor_id       : GenuineIntel&lt;BR /&gt;cpu family      : 6&lt;BR /&gt;model           : 15&lt;BR /&gt;model name      : Intel(R) Xeon(R) CPU            3050  @ 2.13GHz&lt;BR /&gt;stepping        : 6&lt;BR /&gt;cpu MHz         : 2133.443&lt;BR /&gt;cache size      : 2048 KB&lt;BR /&gt;physical id     : 0&lt;BR /&gt;siblings        : 2&lt;BR /&gt;core id         : 1&lt;BR /&gt;cpu cores       : 2&lt;BR /&gt;apicid          : 1&lt;BR /&gt;initial apicid  : 1&lt;BR /&gt;fdiv_bug        : no&lt;BR /&gt;hlt_bug         : no&lt;BR /&gt;f00f_bug        : no&lt;BR /&gt;coma_bug        : no&lt;BR /&gt;fpu             : yes&lt;BR /&gt;fpu_exception   : yes&lt;BR /&gt;cpuid level     : 10&lt;BR /&gt;wp              : yes&lt;BR /&gt;flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm tpr_shadow&lt;BR /&gt;bogomips        : 4266.82&lt;BR /&gt;clflush size    : 64&lt;BR /&gt;cache_alignment : 64&lt;BR /&gt;address sizes   : 36 bits physical, 48 bits virtual&lt;BR /&gt;power management:&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 20 Mar 2011 18:52:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767478#M59690</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2011-03-20T18:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: check if 32 or 64-bit system using live CD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767479#M59691</link>
      <description>Actually, you can find more information about your CPU here: &lt;A href="http://ark.intel.com/Product.aspx?id=27204&amp;amp;code=Xeon+3050" target="_blank"&gt;http://ark.intel.com/Product.aspx?id=27204&amp;amp;code=Xeon+3050&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Philipp.</description>
      <pubDate>Sun, 20 Mar 2011 19:08:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767479#M59691</guid>
      <dc:creator>Prokopets</dc:creator>
      <dc:date>2011-03-20T19:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: check if 32 or 64-bit system using live CD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767480#M59692</link>
      <description>&lt;!--!*#--&gt;using the info provided from the output of "cat /proc/cpuinfo" look at the "flags" listing. The flag "lm" denotes x86_64 capable.&lt;BR /&gt;&lt;BR /&gt;From the kernel sources&lt;BR /&gt;&lt;BR /&gt;#define X86_FEATURE_LM (1*32+29) /* Long Mode (x86-64) */&lt;BR /&gt;</description>
      <pubDate>Sun, 20 Mar 2011 22:44:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767480#M59692</guid>
      <dc:creator>Jimmy Vance</dc:creator>
      <dc:date>2011-03-20T22:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: check if 32 or 64-bit system using live CD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767481#M59693</link>
      <description>Thx, but have you looked my /proc/cpuinfo?</description>
      <pubDate>Sun, 20 Mar 2011 23:04:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767481#M59693</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2011-03-20T23:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: check if 32 or 64-bit system using live CD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767482#M59694</link>
      <description>&amp;gt;&amp;gt;Thx, but have you looked my /proc/cpuinfo? &lt;BR /&gt;&lt;BR /&gt;Yes, and I provided the answer to your question.&lt;BR /&gt;&lt;BR /&gt;look at where it shows "flags" if it shows "lm" that denotes the CPU is x86_64 capable</description>
      <pubDate>Mon, 21 Mar 2011 01:36:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767482#M59694</guid>
      <dc:creator>Jimmy Vance</dc:creator>
      <dc:date>2011-03-21T01:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: check if 32 or 64-bit system using live CD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767483#M59695</link>
      <description>Hi Chris,&lt;BR /&gt;&lt;BR /&gt;Get flat assmebler or nasm  (Netwide assembler )write a simple program than uses uses the rax register. rax register is not present in 32 bits so the program should fault in 32 bits system and will work fine of 64 bit system.&lt;BR /&gt;&lt;BR /&gt;--Lucifer</description>
      <pubDate>Mon, 21 Mar 2011 16:25:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767483#M59695</guid>
      <dc:creator>Lucifer Megacruel</dc:creator>
      <dc:date>2011-03-21T16:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: check if 32 or 64-bit system using live CD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767484#M59696</link>
      <description>Hello chris,&lt;BR /&gt;&lt;BR /&gt;In case you have difficulty writing x86 assembly language , I am writing a simple program for you here , compile with flat assembler and see that it works.&lt;BR /&gt;&lt;BR /&gt;&amp;lt;--------------------------------------&amp;gt;&lt;BR /&gt;format ELF64 executable at 0000000100000000h&lt;BR /&gt;segment readable executable&lt;BR /&gt;entry $&lt;BR /&gt;        xor     rax,rax&lt;BR /&gt;        mov     edx,char_count&lt;BR /&gt;        lea     rsi,[print_str]&lt;BR /&gt;        mov     edi,1&lt;BR /&gt;        mov     eax,1&lt;BR /&gt;        syscall&lt;BR /&gt;        xor     rax,rax&lt;BR /&gt;        xor     edi,edi&lt;BR /&gt;        mov     eax,60&lt;BR /&gt;        syscall&lt;BR /&gt;&lt;BR /&gt;segment readable writeable&lt;BR /&gt;print_str db '64 bit program!',0xA&lt;BR /&gt;char_count = $-print_str   .&lt;BR /&gt;&lt;BR /&gt;Another sure shot way is to make use of the cpuid instruction and get the CPU identification. Just showing an example here , not really tested &lt;BR /&gt;&lt;BR /&gt;macro ccall proc,[arg]&lt;BR /&gt;  { common&lt;BR /&gt;     local size&lt;BR /&gt;     size = 0&lt;BR /&gt;     mov ebp,esp&lt;BR /&gt;     if ~ arg eq&lt;BR /&gt;    forward&lt;BR /&gt;     size = size + 4&lt;BR /&gt;    common&lt;BR /&gt;     sub esp,size&lt;BR /&gt;     end if&lt;BR /&gt;     and esp,-16&lt;BR /&gt;     if ~ arg eq&lt;BR /&gt;     add esp,size&lt;BR /&gt;    reverse&lt;BR /&gt;     pushd arg&lt;BR /&gt;    common&lt;BR /&gt;     end if&lt;BR /&gt;     call proc&lt;BR /&gt;     mov esp,ebp }&lt;BR /&gt;&lt;BR /&gt;format elf&lt;BR /&gt;section '.text' executable&lt;BR /&gt;public main&lt;BR /&gt;extrn printf&lt;BR /&gt;main:&lt;BR /&gt;     xor eax , eax&lt;BR /&gt;     cpuid&lt;BR /&gt;     ccall printf,cpuid_str,ebx,edx,ecx&lt;BR /&gt;     ret&lt;BR /&gt;&lt;BR /&gt;section '.data' writable&lt;BR /&gt;cpuid_str db "Curr ID %.12s",0x0a,0   &lt;BR /&gt;&lt;BR /&gt;--Lucifer&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Mar 2011 17:14:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767484#M59696</guid>
      <dc:creator>Lucifer Megacruel</dc:creator>
      <dc:date>2011-03-21T17:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: check if 32 or 64-bit system using live CD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767485#M59697</link>
      <description>Thx, but howto run these programs from the live CD?</description>
      <pubDate>Mon, 21 Mar 2011 18:42:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767485#M59697</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2011-03-21T18:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: check if 32 or 64-bit system using live CD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767486#M59698</link>
      <description>Just as you would normally :) . &lt;BR /&gt;&lt;BR /&gt;If you have internet connection get fasm from the net, else put it in a usb drive and mount it or prepare a live CD with the above program in it. Search the internet for remastering or ( knoppix remastering ). &lt;BR /&gt;&lt;BR /&gt;Or else you can use the .as assembler that comes with most of the Linux distributions. I am more familiar with intel syntax than at &amp;amp; t syntax and fasm is the assembler i have been using lately :). &lt;BR /&gt;&lt;BR /&gt;With as assembler you need to reverse the operands , add a suffix to indicate size , replace [] with () , use % for registers etc , etc.. .pain IMHO. &lt;BR /&gt;&lt;BR /&gt;Another thing you can do is make use of GCC inline assembly . I am not a big fan of inline assembly, I prefer writing .asm modules in assembly itself and later linking separately. That way you keep architecture specific code out from your C code .  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;GNU as is more or less written as a compiler back end where  the compiler always feeds it with correct code , not really suitable for hand coding.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;--Lucifer</description>
      <pubDate>Tue, 22 Mar 2011 01:31:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/check-if-32-or-64-bit-system-using-live-cd/m-p/4767486#M59698</guid>
      <dc:creator>Lucifer Megacruel</dc:creator>
      <dc:date>2011-03-22T01:31:41Z</dc:date>
    </item>
  </channel>
</rss>

