顯示文章

這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。


文章 - shihyu

頁: [1] 2 3 ... 8
1
Linux 討論版 / vim 工作目錄
« 於: 2011-10-04 03:53 »
vim 裡面 :pwd 查看路徑都一直顯示在 / 路徑下

工作目錄不會切到目前的工作目錄路徑

發現是我用vim plugin 造成無法正確切到工作目錄

cscope_maps.vim 我是看網路修改了裡面

http://blog.chhsu.org/2009/03/multi-projects-of-vim-using-cscope.html


代碼: [選擇]
if has("cscope")

    """"""""""""" Standard cscope/vim boilerplate

    " use both cscope and ctag for 'ctrl-]', ':ta', and 'vim -t'
    set cscopetag

    " check cscope for definition of a symbol before checking ctags: set to 1
    " if you want the reverse search order.
    set csto=0

    " add any cscope database in current directory

    let i = 1
    while i < 20
        if filereadable("cscope.out")
            let db = getcwd() . "/cscope.out"
            "echo db
            let $CSCOPE_DB = db
            cs add $CSCOPE_DB
            let i = 20
        else
            cd ..
            let i += 1
        endif
    endwhile

    " show msg when any other cscope db added
    set cscopeverbose 


    """"""""""""" My cscope/vim key mappings
    "
    " The following maps all invoke one of the following cscope search types:
    "
    "   's'   symbol: find all references to the token under cursor
    "   'g'   global: find global definition(s) of the token under cursor
    "   'c'   calls:  find all calls to the function name under cursor
    "   't'   text:   find all instances of the text under cursor
    "   'e'   egrep:  egrep search for the word under cursor
    "   'f'   file:   open the filename under cursor
    "   'i'   includes: find files that include the filename under cursor
    "   'd'   called: find functions that function under cursor calls
    "
    " Below are three sets of the maps: one set that just jumps to your
    " search result, one that splits the existing vim window horizontally and
    " diplays your search result in the new window, and one that does the same
    " thing, but does a vertical split instead (vim 6 only).
    "
    " I've used CTRL-\ and CTRL-@ as the starting keys for these maps, as it's
    " unlikely that you need their default mappings (CTRL-\'s default use is
    " as part of CTRL-\ CTRL-N typemap, which basically just does the same
    " thing as hitting 'escape': CTRL-@ doesn't seem to have any default use).
    " If you don't like using 'CTRL-@' or CTRL-\, , you can change some or all
    " of these maps to use other keys.  One likely candidate is 'CTRL-_'
    " (which also maps to CTRL-/, which is easier to type).  By default it is
    " used to switch between Hebrew and English keyboard mode.
    "
    " All of the maps involving the <cfile> macro use '^<cfile>$': this is so
    " that searches over '#include <time.h>" return only references to
    " 'time.h', and not 'sys/time.h', etc. (by default cscope will return all
    " files that contain 'time.h' as part of their name).


    " To do the first type of search, hit 'CTRL-\', followed by one of the
    " cscope search types above (s,g,c,t,e,f,i,d).  The result of your cscope
    " search will be displayed in the current window.  You can use CTRL-T to
    " go back to where you were before the search. 
    "

    nmap <C-\>s :cs find s <C-R>=expand("<cword>")<CR><CR>
    nmap <C-\>g :cs find g <C-R>=expand("<cword>")<CR><CR>
    nmap <C-\>c :cs find c <C-R>=expand("<cword>")<CR><CR>
    nmap <C-\>t :cs find t <C-R>=expand("<cword>")<CR><CR>
    nmap <C-\>e :cs find e <C-R>=expand("<cword>")<CR><CR>
    nmap <C-\>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
    nmap <C-\>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
    nmap <C-\>d :cs find d <C-R>=expand("<cword>")<CR><CR>


    " Using 'CTRL-spacebar' (intepreted as CTRL-@ by vim) then a search type
    " makes the vim window split horizontally, with search result displayed in
    " the new window.
    "
    " (Note: earlier versions of vim may not have the :scs command, but it
    " can be simulated roughly via:
    "    nmap <C-@>s <C-W><C-S> :cs find s <C-R>=expand("<cword>")<CR><CR>

    nmap <C-@>s :scs find s <C-R>=expand("<cword>")<CR><CR>
    nmap <C-@>g :scs find g <C-R>=expand("<cword>")<CR><CR>
    nmap <C-@>c :scs find c <C-R>=expand("<cword>")<CR><CR>
    nmap <C-@>t :scs find t <C-R>=expand("<cword>")<CR><CR>
    nmap <C-@>e :scs find e <C-R>=expand("<cword>")<CR><CR>
    nmap <C-@>f :scs find f <C-R>=expand("<cfile>")<CR><CR>
    nmap <C-@>i :scs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
    nmap <C-@>d :scs find d <C-R>=expand("<cword>")<CR><CR>


    " Hitting CTRL-space *twice* before the search type does a vertical
    " split instead of a horizontal one (vim 6 and up only)
    "
    " (Note: you may wish to put a 'set splitright' in your .vimrc
    " if you prefer the new window on the right instead of the left

    nmap <C-@><C-@>s :vert scs find s <C-R>=expand("<cword>")<CR><CR>
    nmap <C-@><C-@>g :vert scs find g <C-R>=expand("<cword>")<CR><CR>
    nmap <C-@><C-@>c :vert scs find c <C-R>=expand("<cword>")<CR><CR>
    nmap <C-@><C-@>t :vert scs find t <C-R>=expand("<cword>")<CR><CR>
    nmap <C-@><C-@>e :vert scs find e <C-R>=expand("<cword>")<CR><CR>
    nmap <C-@><C-@>f :vert scs find f <C-R>=expand("<cfile>")<CR><CR>
    nmap <C-@><C-@>i :vert scs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
    nmap <C-@><C-@>d :vert scs find d <C-R>=expand("<cword>")<CR><CR>


    """"""""""""" key map timeouts
    "
    " By default Vim will only wait 1 second for each keystroke in a mapping.
    " You may find that too short with the above typemaps.  If so, you should
    " either turn off mapping timeouts via 'notimeout'.
    "
    "set notimeout
    "
    " Or, you can keep timeouts, by uncommenting the timeoutlen line below,
    " with your own personal favorite value (in milliseconds):
    "
    "set timeoutlen=4000
    "
    " Either way, since mapping timeout settings by default also set the
    " timeouts for multicharacter 'keys codes' (like <F1>), you should also
    " set ttimeout and ttimeoutlen: otherwise, you will experience strange
    " delays as vim waits for a keystroke after you hit ESC (it will be
    " waiting to see if the ESC is actually part of a key code like <F1>).
    "
    "set ttimeout
    "
    " personally, I find a tenth of a second to work well for key code
    " timeouts. If you experience problems and have a slow terminal or network
    " connection, set it higher.  If you don't set ttimeoutlen, the value for
    " timeoutlent (default: 1000 = 1 second, which is sluggish) is used.
    "
    "set ttimeoutlen=100

endif


let i = 1
while i < 20
if filereadable("cscope.out")
let db = getcwd() . "/cscope.out"
"echo db
let $CSCOPE_DB = db
cs add $CSCOPE_DB
let i = 20
else
cd ..
let i += 1
endif
endwhile

vim 中 :pwd 顯示路徑都在 / 路徑

好像是 else cd .. 造成

請問要如何修改才可以?

謝謝

2
Linux 討論版 / vi 區塊選取問題
« 於: 2011-05-21 11:48 »
我用 vi 區塊模式選取後想再選取地方都用一些字元或是一個字串取代

請問要怎麼辦到?

謝謝

3
Linux 討論版 / cp 指令問題
« 於: 2011-04-27 15:23 »

   
我有個資料夾例如是資料夾名稱是 image

image資料夾裡面有 256個子資料夾裡面有很多 .jpg 圖片


我想把image資料夾裡面子資料夾所有.jpg 圖片都copy 出來放到

tmp資料夾這樣指令要怎麼下才可以?

謝謝

4
Linux 討論版 / 回覆: ssh 遠端登入
« 於: 2011-01-21 03:28 »
代碼: [選擇]
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.35-22-generic (buildd@rothera) (gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu4) ) #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010 (Ubuntu 2.6.35-22.33-generic 2.6.35.4)
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
[    0.000000]  BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
[    0.000000]  BIOS-e820: 00000000000e8000 - 0000000000100000 (reserved)
[    0.000000]  BIOS-e820: 0000000000100000 - 000000007f730000 (usable)
[    0.000000]  BIOS-e820: 000000007f730000 - 000000007f740000 (ACPI data)
[    0.000000]  BIOS-e820: 000000007f740000 - 000000007f7f0000 (ACPI NVS)
[    0.000000]  BIOS-e820: 000000007f7f0000 - 000000007f800000 (reserved)
[    0.000000]  BIOS-e820: 00000000ffb80000 - 0000000100000000 (reserved)
[    0.000000] NX (Execute Disable) protection: approximated by x86 segment limits
[    0.000000] DMI 2.3 present.
[    0.000000] AMI BIOS detected: BIOS may corrupt low RAM, working around it.
[    0.000000] e820 update range: 0000000000000000 - 0000000000010000 (usable) ==> (reserved)
[    0.000000] e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
[    0.000000] e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
[    0.000000] last_pfn = 0x7f730 max_arch_pfn = 0x100000
[    0.000000] MTRR default type: uncachable
[    0.000000] MTRR fixed ranges enabled:
[    0.000000]   00000-9FFFF write-back
[    0.000000]   A0000-DFFFF uncachable
[    0.000000]   E0000-EFFFF write-through
[    0.000000]   F0000-FFFFF write-protect
[    0.000000] MTRR variable ranges enabled:
[    0.000000]   0 base 000000000 mask FC0000000 write-back
[    0.000000]   1 base 040000000 mask FE0000000 write-back
[    0.000000]   2 base 060000000 mask FF0000000 write-back
[    0.000000]   3 base 070000000 mask FF8000000 write-back
[    0.000000]   4 base 078000000 mask FFC000000 write-back
[    0.000000]   5 base 07C000000 mask FFE000000 write-back
[    0.000000]   6 disabled
[    0.000000]   7 disabled
[    0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
[    0.000000] e820 update range: 000000007e000000 - 000000007f730000 (usable) ==> (reserved)
[    0.000000] WARNING: BIOS bug: CPU MTRRs don't cover all of memory, losing 23MB of RAM.
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: at /build/buildd/linux-2.6.35/arch/x86/kernel/cpu/mtrr/cleanup.c:971 mtrr_trim_uncached_memory+0x333/0x355()
[    0.000000] Hardware name: To Be Filled By O.E.M.
[    0.000000] Modules linked in:
[    0.000000] Pid: 0, comm: swapper Not tainted 2.6.35-22-generic #33-Ubuntu
[    0.000000] Call Trace:
[    0.000000]  [<c014ac52>] warn_slowpath_common+0x72/0xa0
[    0.000000]  [<c0822906>] ? mtrr_trim_uncached_memory+0x333/0x355
[    0.000000]  [<c0822906>] ? mtrr_trim_uncached_memory+0x333/0x355
[    0.000000]  [<c014aca2>] warn_slowpath_null+0x22/0x30
[    0.000000]  [<c0822906>] mtrr_trim_uncached_memory+0x333/0x355
[    0.000000]  [<c081d477>] setup_arch+0x483/0x640
[    0.000000]  [<c012ce19>] ? default_spin_lock_flags+0x9/0x10
[    0.000000]  [<c081957b>] start_kernel+0xcf/0x374
[    0.000000]  [<c08190d7>] i386_start_kernel+0xd7/0xdf
[    0.000000] ---[ end trace a7919e7f17c0a725 ]---
[    0.000000] update e820 for mtrr
[    0.000000] modified physical RAM map:
[    0.000000]  modified: 0000000000000000 - 0000000000010000 (reserved)
[    0.000000]  modified: 0000000000010000 - 000000000009fc00 (usable)
[    0.000000]  modified: 000000000009fc00 - 00000000000a0000 (reserved)
[    0.000000]  modified: 00000000000e8000 - 0000000000100000 (reserved)
[    0.000000]  modified: 0000000000100000 - 000000007e000000 (usable)
[    0.000000]  modified: 000000007e000000 - 000000007f730000 (reserved)
[    0.000000]  modified: 000000007f730000 - 000000007f740000 (ACPI data)
[    0.000000]  modified: 000000007f740000 - 000000007f7f0000 (ACPI NVS)
[    0.000000]  modified: 000000007f7f0000 - 000000007f800000 (reserved)
[    0.000000]  modified: 00000000ffb80000 - 0000000100000000 (reserved)
[    0.000000] last_pfn = 0x7e000 max_arch_pfn = 0x100000
[    0.000000] Scanning 0 areas for low memory corruption
[    0.000000] modified physical RAM map:
[    0.000000]  modified: 0000000000000000 - 0000000000010000 (reserved)
[    0.000000]  modified: 0000000000010000 - 000000000009fc00 (usable)
[    0.000000]  modified: 000000000009fc00 - 00000000000a0000 (reserved)
[    0.000000]  modified: 00000000000e8000 - 0000000000100000 (reserved)
[    0.000000]  modified: 0000000000100000 - 000000007e000000 (usable)
[    0.000000]  modified: 000000007e000000 - 000000007f730000 (reserved)
[    0.000000]  modified: 000000007f730000 - 000000007f740000 (ACPI data)
[    0.000000]  modified: 000000007f740000 - 000000007f7f0000 (ACPI NVS)
[    0.000000]  modified: 000000007f7f0000 - 000000007f800000 (reserved)
[    0.000000]  modified: 00000000ffb80000 - 0000000100000000 (reserved)
[    0.000000] initial memory mapped : 0 - 00c00000
[    0.000000] found SMP MP-table at [c00ff780] ff780
[    0.000000] init_memory_mapping: 0000000000000000-00000000377fe000
[    0.000000]  0000000000 - 0000400000 page 4k
[    0.000000]  0000400000 - 0037400000 page 2M
[    0.000000]  0037400000 - 00377fe000 page 4k
[    0.000000] kernel direct mapping tables up to 377fe000 @ 15000-1a000
[    0.000000] RAMDISK: 37082000 - 37ff0000
[    0.000000] Allocated new RAMDISK: 009a5000 - 01912ffc
[    0.000000] Move RAMDISK from 0000000037082000 - 0000000037fefffb to 009a5000 - 01912ffb
[    0.000000] ACPI: RSDP 000fad70 00014 (v00 ACPIAM)
[    0.000000] ACPI: RSDT 7f730000 00030 (v01 A M I  OEMRSDT  05000431 MSFT 00000097)
[    0.000000] ACPI: FACP 7f730200 00081 (v01 A M I  OEMFACP  05000431 MSFT 00000097)
[    0.000000] ACPI: DSDT 7f7303f0 036A7 (v01  PPVM1 PPVM1909 00000909 INTL 02002026)
[    0.000000] ACPI: FACS 7f740000 00040
[    0.000000] ACPI: APIC 7f730390 0005C (v01 A M I  OEMAPIC  05000431 MSFT 00000097)
[    0.000000] ACPI: OEMB 7f740040 0003F (v01 A M I  OEMBIOS  05000431 MSFT 00000097)
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] 1128MB HIGHMEM available.
[    0.000000] 887MB LOWMEM available.
[    0.000000]   mapped low ram: 0 - 377fe000
[    0.000000]   low ram: 0 - 377fe000
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000010 -> 0x00001000
[    0.000000]   Normal   0x00001000 -> 0x000377fe
[    0.000000]   HighMem  0x000377fe -> 0x0007e000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[2] active PFN ranges
[    0.000000]     0: 0x00000010 -> 0x0000009f
[    0.000000]     0: 0x00000100 -> 0x0007e000
[    0.000000] On node 0 totalpages: 515983
[    0.000000] free_area_init_node: node 0, pgdat c07ffd40, node_mem_map c1914200
[    0.000000]   DMA zone: 32 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 3951 pages, LIFO batch:0
[    0.000000]   Normal zone: 1744 pages used for memmap
[    0.000000]   Normal zone: 221486 pages, LIFO batch:31
[    0.000000]   HighMem zone: 2257 pages used for memmap
[    0.000000]   HighMem zone: 286513 pages, LIFO batch:31
[    0.000000] Using APIC driver default
[    0.000000] ACPI: PM-Timer IO Port: 0x808
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled)
[    0.000000] ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
[    0.000000] IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.000000] ACPI: IRQ0 used by override.
[    0.000000] ACPI: IRQ2 used by override.
[    0.000000] ACPI: IRQ9 used by override.
[    0.000000] Using ACPI (MADT) for SMP configuration information
[    0.000000] SMP: Allowing 2 CPUs, 0 hotplug CPUs
[    0.000000] nr_irqs_gsi: 40
[    0.000000] early_res array is doubled to 64 at [16000 - 167ff]
[    0.000000] PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
[    0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000e8000
[    0.000000] PM: Registered nosave memory: 00000000000e8000 - 0000000000100000
[    0.000000] Allocating PCI resources starting at 7f800000 (gap: 7f800000:80380000)
[    0.000000] Booting paravirtualized kernel on bare hardware
[    0.000000] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:2 nr_node_ids:1
[    0.000000] PERCPU: Embedded 14 pages/cpu @c2c00000 s36416 r0 d20928 u2097152
[    0.000000] pcpu-alloc: s36416 r0 d20928 u2097152 alloc=1*4194304
[    0.000000] pcpu-alloc: [0] 0 1
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 511950
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.35-22-generic root=UUID=58e644fe-3b96-4eb2-a890-15c983573d79 ro quiet splash
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Enabling fast FPU save and restore... done.
[    0.000000] Enabling unmasked SIMD FPU exception support... done.
[    0.000000] Initializing CPU#0
[    0.000000] allocated 10321600 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Subtract (46 early reservations)
[    0.000000]   #1 [0000001000 - 0000002000]   EX TRAMPOLINE
[    0.000000]   #2 [0000100000 - 00009a0adc]   TEXT DATA BSS
[    0.000000]   #3 [00009a1000 - 00009a42a8]             BRK
[    0.000000]   #4 [00000ff790 - 0000100000]   BIOS reserved
[    0.000000]   #5 [00000ff780 - 00000ff790]    MP-table mpf
[    0.000000]   #6 [000009fc00 - 00000f1290]   BIOS reserved
[    0.000000]   #7 [00000f13a8 - 00000ff780]   BIOS reserved
[    0.000000]   #8 [00000f1290 - 00000f13a8]    MP-table mpc
[    0.000000]   #9 [0000010000 - 0000011000]      TRAMPOLINE
[    0.000000]   #10 [0000011000 - 0000015000]     ACPI WAKEUP
[    0.000000]   #11 [0000015000 - 0000016000]         PGTABLE
[    0.000000]   #12 [00009a5000 - 0001913000]     NEW RAMDISK
[    0.000000]   #13 [0001913000 - 0001914000]         BOOTMEM
[    0.000000]   #14 [0001914000 - 00028d4000]         BOOTMEM
[    0.000000]   #15 [00028d4000 - 00028d4004]         BOOTMEM
[    0.000000]   #16 [00028d4040 - 00028d4100]         BOOTMEM
[    0.000000]   #17 [00028d4100 - 00028d4154]         BOOTMEM
[    0.000000]   #18 [00028d4180 - 00028d7180]         BOOTMEM
[    0.000000]   #19 [00028d7180 - 00028d71ec]         BOOTMEM
[    0.000000]   #20 [00028d7200 - 00028dd200]         BOOTMEM
[    0.000000]   #21 [00028dd200 - 00028dd227]         BOOTMEM
[    0.000000]   #22 [00028dd240 - 00028dd358]         BOOTMEM
[    0.000000]   #23 [00028dd380 - 00028dd3c0]         BOOTMEM
[    0.000000]   #24 [00028dd3c0 - 00028dd400]         BOOTMEM
[    0.000000]   #25 [00028dd400 - 00028dd440]         BOOTMEM
[    0.000000]   #26 [00028dd440 - 00028dd480]         BOOTMEM
[    0.000000]   #27 [00028dd480 - 00028dd4c0]         BOOTMEM
[    0.000000]   #28 [00028dd4c0 - 00028dd500]         BOOTMEM
[    0.000000]   #29 [00028dd500 - 00028dd540]         BOOTMEM
[    0.000000]   #30 [00028dd540 - 00028dd580]         BOOTMEM
[    0.000000]   #31 [00028dd580 - 00028dd590]         BOOTMEM
[    0.000000]   #32 [00028dd5c0 - 00028dd62a]         BOOTMEM
[    0.000000]   #33 [00028dd640 - 00028dd6aa]         BOOTMEM
[    0.000000]   #34 [0002c00000 - 0002c0e000]         BOOTMEM
[    0.000000]   #35 [0002e00000 - 0002e0e000]         BOOTMEM
[    0.000000]   #36 [00028df6c0 - 00028df6c4]         BOOTMEM
[    0.000000]   #37 [00028df700 - 00028df704]         BOOTMEM
[    0.000000]   #38 [00028df740 - 00028df748]         BOOTMEM
[    0.000000]   #39 [00028df780 - 00028df788]         BOOTMEM
[    0.000000]   #40 [00028df7c0 - 00028df868]         BOOTMEM
[    0.000000]   #41 [00028df880 - 00028df8e8]         BOOTMEM
[    0.000000]   #42 [00028df900 - 00028e3900]         BOOTMEM
[    0.000000]   #43 [00028e3900 - 0002963900]         BOOTMEM
[    0.000000]   #44 [0002963900 - 00029a3900]         BOOTMEM
[    0.000000]   #45 [0002e0e000 - 00037e5ec0]         BOOTMEM
[    0.000000] Initializing HighMem for node 0 (000377fe:0007e000)
[    0.000000] Memory: 2012104k/2064384k available (4928k kernel code, 51828k reserved, 2336k data, 684k init, 1155080k highmem)
[    0.000000] virtual kernel memory layout:
[    0.000000]     fixmap  : 0xfff16000 - 0xfffff000   ( 932 kB)
[    0.000000]     pkmap   : 0xff800000 - 0xffc00000   (4096 kB)
[    0.000000]     vmalloc : 0xf7ffe000 - 0xff7fe000   ( 120 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf77fe000   ( 887 MB)
[    0.000000]       .init : 0xc0819000 - 0xc08c4000   ( 684 kB)
[    0.000000]       .data : 0xc05d029e - 0xc0818668   (2336 kB)
[    0.000000]       .text : 0xc0100000 - 0xc05d029e   (4928 kB)
[    0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[    0.000000] SLUB: Genslabs=13, HWalign=128, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] RCU dyntick-idle grace-period acceleration is enabled.
[    0.000000] RCU-based detection of stalled CPUs is disabled.
[    0.000000] Verbose stalled-CPUs detection is disabled.
[    0.000000] NR_IRQS:2304 nr_irqs:512
[    0.000000] Console: colour VGA+ 80x25
[    0.000000] console [tty0] enabled
[    0.000000] Fast TSC calibration using PIT
[    0.000000] Detected 2792.647 MHz processor.
[    0.004007] Calibrating delay loop (skipped), value calculated using timer frequency.. 5585.29 BogoMIPS (lpj=11170588)
[    0.004014] pid_max: default: 32768 minimum: 301
[    0.004040] Security Framework initialized
[    0.004068] AppArmor: AppArmor initialized
[    0.004071] Yama: becoming mindful.
[    0.004146] Mount-cache hash table entries: 512
[    0.004346] Initializing cgroup subsys ns
[    0.004352] Initializing cgroup subsys cpuacct
[    0.004358] Initializing cgroup subsys memory
[    0.004371] Initializing cgroup subsys devices
[    0.004375] Initializing cgroup subsys freezer
[    0.004378] Initializing cgroup subsys net_cls
[    0.004420] CPU: Physical Processor ID: 0
[    0.004423] CPU: Processor Core ID: 0
[    0.004427] mce: CPU supports 4 MCE banks
[    0.004440] CPU0: Thermal monitoring enabled (TM1)
[    0.004453] Performance Events: Netburst events, Netburst P4/Xeon PMU driver.
[    0.004467] ... version:                0
[    0.004470] ... bit width:              40
[    0.004472] ... generic registers:      18
[    0.004475] ... value mask:             000000ffffffffff
[    0.004478] ... max period:             0000007fffffffff
[    0.004481] ... fixed-purpose events:   0
[    0.004484] ... event mask:             000000000003ffff
[    0.008943] ACPI: Core revision 20100428
[    0.015924] ftrace: converting mcount calls to 0f 1f 44 00 00
[    0.015931] ftrace: allocating 21758 entries in 43 pages
[    0.020098] Enabling APIC mode:  Flat.  Using 1 I/O APICs
[    0.020404] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[    0.061899] CPU0: Intel(R) Pentium(R) 4 CPU 2.80GHz stepping 09
[    0.064000] Booting Node   0, Processors  #1 Ok.
[    0.008000] Initializing CPU#1
[    0.152027] Brought up 2 CPUs
[    0.152034] Total of 2 processors activated (11171.64 BogoMIPS).
[    0.152372] devtmpfs: initialized
[    0.153443] regulator: core version 0.5
[    0.153471] Time: 11:02:39  Date: 01/20/11
[    0.153536] NET: Registered protocol family 16
[    0.153590] Trying to unpack rootfs image as initramfs...
[    0.153829] EISA bus registered
[    0.153848] ACPI: bus type pci registered
[    0.154049] PCI: PCI BIOS revision 2.10 entry at 0xf0031, last bus=1
[    0.154054] PCI: Using configuration type 1 for base access
[    0.157571] bio: create slab <bio-0> at 0
[    0.160009] ACPI: EC: Look up EC in DSDT
[    0.162956] ACPI: Executed 1 blocks of module-level executable AML code
[    0.170425] ACPI: Interpreter enabled
[    0.170436] ACPI: (supports S0 S1 S3 S4 S5)
[    0.170494] ACPI: Using IOAPIC for interrupt routing
[    0.187349] ACPI Warning: Incorrect checksum in table [OEMB] - 0x30, should be 0x21 (20100428/tbutils-314)
[    0.187596] ACPI: No dock devices found.
[    0.187607] PCI: Ignoring host bridge windows from ACPI; if necessary, use "pci=use_crs" and report a bug
[    0.187887] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[    0.188419] pci_root PNP0A03:00: host bridge window [io  0x0000-0x0cf7] (ignored)
[    0.188426] pci_root PNP0A03:00: host bridge window [io  0x0d00-0xffff] (ignored)
[    0.188431] pci_root PNP0A03:00: host bridge window [mem 0x000a0000-0x000bffff] (ignored)
[    0.188437] pci_root PNP0A03:00: host bridge window [mem 0x7f800000-0xffefffff] (ignored)
[    0.188462] pci 0000:00:00.0: Enabling MCH 'Overflow' Device
[    0.188476] pci 0000:00:00.0: reg 10: [mem 0xfe800000-0xfebfffff pref]
[    0.188560] pci 0000:00:02.0: reg 10: [mem 0xf0000000-0xf7ffffff pref]
[    0.188570] pci 0000:00:02.0: reg 14: [mem 0xfe780000-0xfe7fffff]
[    0.188580] pci 0000:00:02.0: reg 18: [io  0xefe0-0xefe7]
[    0.188644] pci 0000:00:06.0: reg 10: [mem 0xfecf0000-0xfecf0fff]
[    0.188780] pci 0000:00:1d.0: reg 20: [io  0xef00-0xef1f]
[    0.188849] pci 0000:00:1d.1: reg 20: [io  0xef20-0xef3f]
[    0.188917] pci 0000:00:1d.2: reg 20: [io  0xef40-0xef5f]
[    0.188985] pci 0000:00:1d.3: reg 20: [io  0xef80-0xef9f]
[    0.189054] pci 0000:00:1d.7: reg 10: [mem 0xfe77bc00-0xfe77bfff]
[    0.189127] pci 0000:00:1d.7: PME# supported from D0 D3hot D3cold
[    0.189135] pci 0000:00:1d.7: PME# disabled
[    0.189244] pci 0000:00:1f.0: Force enabled HPET at 0xfed00000
[    0.189255] pci 0000:00:1f.0: quirk: [io  0x0800-0x087f] claimed by ICH4 ACPI/GPIO/TCO
[    0.189263] pci 0000:00:1f.0: quirk: [io  0x0480-0x04bf] claimed by ICH4 GPIO
[    0.189309] pci 0000:00:1f.1: reg 10: [io  0x0000-0x0007]
[    0.189326] pci 0000:00:1f.1: reg 14: [io  0x0000-0x0003]
[    0.189336] pci 0000:00:1f.1: reg 18: [io  0x0000-0x0007]
[    0.189346] pci 0000:00:1f.1: reg 1c: [io  0x0000-0x0003]
[    0.189357] pci 0000:00:1f.1: reg 20: [io  0xfc00-0xfc0f]
[    0.189367] pci 0000:00:1f.1: reg 24: [mem 0x00000000-0x000003ff]
[    0.189434] pci 0000:00:1f.3: reg 20: [io  0x0400-0x041f]
[    0.189487] pci 0000:00:1f.5: reg 10: [io  0xe800-0xe8ff]
[    0.189497] pci 0000:00:1f.5: reg 14: [io  0xee80-0xeebf]
[    0.189508] pci 0000:00:1f.5: reg 18: [mem 0xfe77b800-0xfe77b9ff]
[    0.189518] pci 0000:00:1f.5: reg 1c: [mem 0xfe77b400-0xfe77b4ff]
[    0.189557] pci 0000:00:1f.5: PME# supported from D0 D3hot D3cold
[    0.189564] pci 0000:00:1f.5: PME# disabled
[    0.189634] pci 0000:01:0b.0: reg 10: [io  0xd800-0xd8ff]
[    0.189645] pci 0000:01:0b.0: reg 14: [mem 0xfe5fec00-0xfe5fecff]
[    0.189696] pci 0000:01:0b.0: supports D1 D2
[    0.189701] pci 0000:01:0b.0: PME# supported from D1 D2 D3hot D3cold
[    0.189708] pci 0000:01:0b.0: PME# disabled
[    0.189749] pci 0000:00:1e.0: PCI bridge to [bus 01-01] (subtractive decode)
[    0.189757] pci 0000:00:1e.0:   bridge window [io  0xd000-0xdfff]
[    0.189765] pci 0000:00:1e.0:   bridge window [mem 0xfe500000-0xfe5fffff]
[    0.189774] pci 0000:00:1e.0:   bridge window [mem 0xfff00000-0x000fffff pref] (disabled)
[    0.189779] pci 0000:00:1e.0:   bridge window [io  0x0000-0xffff] (subtractive decode)
[    0.189785] pci 0000:00:1e.0:   bridge window [mem 0x00000000-0xffffffff] (subtractive decode)
[    0.189799] pci_bus 0000:00: on NUMA node 0
[    0.189809] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
[    0.190019] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P4._PRT]
[    0.203063] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 *10 11 12 14 15)
[    0.203262] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 10 *11 12 14 15)
[    0.203441] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 *5 6 7 10 11 12 14 15)
[    0.203618] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 *5 6 7 10 11 12 14 15)
[    0.203817] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
[    0.204016] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
[    0.204199] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 10 *11 12 14 15)
[    0.204405] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 10 *11 12 14 15)
[    0.204494] HEST: Table is not found!
[    0.204661] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
[    0.204688] vgaarb: loaded
[    0.205053] SCSI subsystem initialized
[    0.205216] libata version 3.00 loaded.
[    0.205332] usbcore: registered new interface driver usbfs
[    0.205368] usbcore: registered new interface driver hub
[    0.205434] usbcore: registered new device driver usb
[    0.205718] ACPI: WMI: Mapper loaded
[    0.205723] PCI: Using ACPI for IRQ routing
[    0.205731] PCI: pci_cache_line_size set to 64 bytes
[    0.205839] reserve RAM buffer: 000000000009fc00 - 000000000009ffff
[    0.205846] reserve RAM buffer: 000000007e000000 - 000000007fffffff
[    0.206071] NetLabel: Initializing
[    0.206077] NetLabel:  domain hash size = 128
[    0.206082] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.206109] NetLabel:  unlabeled traffic allowed by default
[    0.206283] hpet clockevent registered
[    0.206290] HPET: 3 timers in total, 0 timers will be used for per-cpu timer
[    0.206298] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[    0.206309] hpet0: 3 comparators, 64-bit 14.318180 MHz counter
[    0.216074] Switching to clocksource tsc
[    0.239809] AppArmor: AppArmor Filesystem Enabled
[    0.239840] pnp: PnP ACPI init
[    0.239877] ACPI: bus type pnp registered
[    0.248914] pnp: PnP ACPI: found 15 devices
[    0.248920] ACPI: ACPI bus type pnp unregistered
[    0.248928] PnPBIOS: Disabled by ACPI PNP
[    0.248962] system 00:0b: [io  0x0680-0x06ff] has been reserved
[    0.248969] system 00:0b: [io  0x0290-0x0297] has been reserved
[    0.248985] system 00:0c: [io  0x04d0-0x04d1] has been reserved
[    0.248992] system 00:0c: [io  0x0800-0x087f] has been reserved
[    0.248999] system 00:0c: [io  0x0480-0x04bf] has been reserved
[    0.249008] system 00:0c: [mem 0xfed20000-0xfed8ffff] has been reserved
[    0.249017] system 00:0c: [mem 0xffb00000-0xffbfffff] could not be reserved
[    0.249031] system 00:0d: [mem 0xfec00000-0xfec00fff] could not be reserved
[    0.249039] system 00:0d: [mem 0xfee00000-0xfee00fff] has been reserved
[    0.249054] system 00:0e: [mem 0x00000000-0x0009ffff] could not be reserved
[    0.249061] system 00:0e: [mem 0x000c0000-0x000dffff] could not be reserved
[    0.249069] system 00:0e: [mem 0x000e0000-0x000fffff] could not be reserved
[    0.249077] system 00:0e: [mem 0x00100000-0x7f7effff] could not be reserved
[    0.249085] system 00:0e: [mem 0xfff00000-0xffffffff] has been reserved
[    0.287180] pci 0000:00:1f.1: BAR 5: assigned [mem 0x80000000-0x800003ff]
[    0.287194] pci 0000:00:1f.1: BAR 5: set to [mem 0x80000000-0x800003ff] (PCI address [0x80000000-0x800003ff]
[    0.287203] pci 0000:00:1e.0: PCI bridge to [bus 01-01]
[    0.287210] pci 0000:00:1e.0:   bridge window [io  0xd000-0xdfff]
[    0.287220] pci 0000:00:1e.0:   bridge window [mem 0xfe500000-0xfe5fffff]
[    0.287229] pci 0000:00:1e.0:   bridge window [mem pref disabled]
[    0.287257] pci 0000:00:1e.0: setting latency timer to 64
[    0.287265] pci_bus 0000:00: resource 0 [io  0x0000-0xffff]
[    0.287271] pci_bus 0000:00: resource 1 [mem 0x00000000-0xffffffff]
[    0.287277] pci_bus 0000:01: resource 0 [io  0xd000-0xdfff]
[    0.287284] pci_bus 0000:01: resource 1 [mem 0xfe500000-0xfe5fffff]
[    0.287290] pci_bus 0000:01: resource 4 [io  0x0000-0xffff]
[    0.287296] pci_bus 0000:01: resource 5 [mem 0x00000000-0xffffffff]
[    0.287387] NET: Registered protocol family 2
[    0.287529] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.288131] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.289083] TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
[    0.289703] TCP: Hash tables configured (established 131072 bind 65536)
[    0.289714] TCP reno registered
[    0.289729] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.289754] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.290005] NET: Registered protocol family 1
[    0.290040] pci 0000:00:02.0: Boot video device
[    0.290179] PCI: CLS 0 bytes, default 64
[    0.290452] cpufreq-nforce2: No nForce2 chipset.
[    0.290520] Scanning for low memory corruption every 60 seconds
[    0.290751] audit: initializing netlink socket (disabled)
[    0.290772] type=2000 audit(1295521359.284:1): initialized
[    0.304055] highmem bounce pool size: 64 pages
[    0.304067] HugeTLB registered 4 MB page size, pre-allocated 0 pages
[    0.307404] VFS: Disk quotas dquot_6.5.2
[    0.307555] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.308966] fuse init (API version 7.14)
[    0.309175] msgmni has been set to 1673
[    0.309831] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.309838] io scheduler noop registered
[    0.309842] io scheduler deadline registered
[    0.309872] io scheduler cfq registered (default)
[    0.310145] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    0.310194] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[    0.310606] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
[    0.310621] ACPI: Power Button [PWRB]
[    0.310727] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
[    0.310735] ACPI: Power Button [PWRF]
[    0.311009] ACPI: acpi_idle registered with cpuidle
[    0.316853] ERST: Table is not found!
[    0.317145] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.317281] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.317505] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[    0.318044] 00:07: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.318274] 00:08: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[    0.321124] brd: module loaded
[    0.322389] loop: module loaded
[    0.322828] ata_piix 0000:00:1f.1: version 2.13
[    0.322850] ata_piix 0000:00:1f.1: enabling device (0005 -> 0007)
[    0.322864]   alloc irq_desc for 18 on node -1
[    0.322869]   alloc kstat_irqs on node -1
[    0.322884] ata_piix 0000:00:1f.1: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[    0.322956] ata_piix 0000:00:1f.1: setting latency timer to 64
[    0.323114] scsi0 : ata_piix
[    0.323323] scsi1 : ata_piix
[    0.323814] isapnp: Scanning for PnP cards...
[    0.326754] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xfc00 irq 14
[    0.326760] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xfc08 irq 15
[    0.327461] Fixed MDIO Bus: probed
[    0.327531] PPP generic driver version 2.4.2
[    0.327635] tun: Universal TUN/TAP device driver, 1.6
[    0.327638] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    0.327843] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.327884]   alloc irq_desc for 23 on node -1
[    0.327888]   alloc kstat_irqs on node -1
[    0.327899] ehci_hcd 0000:00:1d.7: PCI INT D -> GSI 23 (level, low) -> IRQ 23
[    0.327925] ehci_hcd 0000:00:1d.7: setting latency timer to 64
[    0.327931] ehci_hcd 0000:00:1d.7: EHCI Host Controller
[    0.327995] ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 1
[    0.328035] ehci_hcd 0000:00:1d.7: debug port 1
[    0.331936] ehci_hcd 0000:00:1d.7: cache line size of 64 is not supported
[    0.332035] ehci_hcd 0000:00:1d.7: irq 23, io mem 0xfe77bc00
[    0.348105] ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00
[    0.348384] hub 1-0:1.0: USB hub found
[    0.348394] hub 1-0:1.0: 8 ports detected
[    0.348551] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.348582] uhci_hcd: USB Universal Host Controller Interface driver
[    0.348650]   alloc irq_desc for 16 on node -1
[    0.348654]   alloc kstat_irqs on node -1
[    0.348666] uhci_hcd 0000:00:1d.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    0.348679] uhci_hcd 0000:00:1d.0: setting latency timer to 64
[    0.348686] uhci_hcd 0000:00:1d.0: UHCI Host Controller
[    0.348762] uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
[    0.348815] uhci_hcd 0000:00:1d.0: irq 16, io base 0x0000ef00
[    0.349035] hub 2-0:1.0: USB hub found
[    0.349043] hub 2-0:1.0: 2 ports detected
[    0.349147]   alloc irq_desc for 19 on node -1
[    0.349151]   alloc kstat_irqs on node -1
[    0.349159] uhci_hcd 0000:00:1d.1: PCI INT B -> GSI 19 (level, low) -> IRQ 19
[    0.349169] uhci_hcd 0000:00:1d.1: setting latency timer to 64
[    0.349174] uhci_hcd 0000:00:1d.1: UHCI Host Controller
[    0.349246] uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 3
[    0.349286] uhci_hcd 0000:00:1d.1: irq 19, io base 0x0000ef20
[    0.349503] hub 3-0:1.0: USB hub found
[    0.349511] hub 3-0:1.0: 2 ports detected
[    0.349616] uhci_hcd 0000:00:1d.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18
[    0.349626] uhci_hcd 0000:00:1d.2: setting latency timer to 64
[    0.349632] uhci_hcd 0000:00:1d.2: UHCI Host Controller
[    0.349697] uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 4
[    0.349737] uhci_hcd 0000:00:1d.2: irq 18, io base 0x0000ef40
[    0.349954] hub 4-0:1.0: USB hub found
[    0.349962] hub 4-0:1.0: 2 ports detected
[    0.350079] uhci_hcd 0000:00:1d.3: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    0.350088] uhci_hcd 0000:00:1d.3: setting latency timer to 64
[    0.350094] uhci_hcd 0000:00:1d.3: UHCI Host Controller
[    0.350155] uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 5
[    0.350182] uhci_hcd 0000:00:1d.3: irq 16, io base 0x0000ef80
[    0.350404] hub 5-0:1.0: USB hub found
[    0.350412] hub 5-0:1.0: 2 ports detected
[    0.350632] PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12
[    0.353468] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.353481] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.353696] mice: PS/2 mouse device common for all mice
[    0.353920] rtc_cmos 00:02: RTC can wake from S4
[    0.353992] rtc_cmos 00:02: rtc core: registered rtc_cmos as rtc0
[    0.354022] rtc0: alarms up to one month, 114 bytes nvram, hpet irqs
[    0.354250] device-mapper: uevent: version 1.0.3
[    0.380103] device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
[    0.396174] device-mapper: multipath: version 1.1.1 loaded
[    0.396181] device-mapper: multipath round-robin: version 1.0.0 loaded
[    0.396451] EISA: Probing bus 0 at eisa.0
[    0.396501] EISA: Detected 0 cards.
[    0.401146] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
[    0.420242] cpuidle: using governor ladder
[    0.420248] cpuidle: using governor menu
[    0.420922] TCP cubic registered
[    0.421183] NET: Registered protocol family 10
[    0.421919] lo: Disabled Privacy Extensions
[    0.422420] NET: Registered protocol family 17
[    0.422521] Using IPI No-Shortcut mode
[    0.422701] PM: Resume from disk failed.
[    0.422722] registered taskstats version 1
[    0.422954]   Magic number: 11:597:24
[    0.422960] misc cpu_dma_latency: hash matches
[    0.423069] rtc_cmos 00:02: setting system clock to 2011-01-20 11:02:40 UTC (1295521360)
[    0.423075] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[    0.423078] EDD information not available.
[    0.500628] ata2.01: ATAPI: ASUS DVD-ROM DVD-E616P              0104, E1.04, max UDMA/66
[    0.500675] ata2.01: limited to UDMA/33 due to 40-wire cable
[    0.516586] ata2.01: configured for UDMA/33
[    0.524731] ata1.00: ATA-5: ST340016A, 3.19, max UDMA/100
[    0.524738] ata1.00: 78165360 sectors, multi 16: LBA
[    0.525209] ata1.01: ATA-5: ST380021A, 3.10, max UDMA/100
[    0.525214] ata1.01: 156301488 sectors, multi 16: LBA
[    0.532371] ata1.00: configured for UDMA/100
[    0.548339] ata1.01: configured for UDMA/100
[    0.684855] isapnp: No Plug & Play device found
[    0.685105] scsi 0:0:0:0: Direct-Access     ATA      ST340016A        3.19 PQ: 0 ANSI: 5
[    0.685441] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    0.685699] scsi 0:0:1:0: Direct-Access     ATA      ST380021A        3.10 PQ: 0 ANSI: 5
[    0.685971] sd 0:0:1:0: Attached scsi generic sg1 type 0
[    0.686137] sd 0:0:0:0: [sda] 78165360 512-byte logical blocks: (40.0 GB/37.2 GiB)
[    0.686281] sd 0:0:0:0: [sda] Write Protect is off
[    0.686287] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    0.686336] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    0.686650]  sda:
[    0.688235] scsi 1:0:1:0: CD-ROM            ASUS     DVD-E616P        1.04 PQ: 0 ANSI: 5
[    0.692449] sr0: scsi3-mmc drive: 48x/48x cd/rw xa/form2 cdda tray
[    0.692460] Uniform CD-ROM driver Revision: 3.20
[    0.692696] sr 1:0:1:0: Attached scsi CD-ROM sr0
[    0.692820] sr 1:0:1:0: Attached scsi generic sg2 type 5
[    0.707941]  sda1
[    0.708490] sd 0:0:0:0: [sda] Attached SCSI disk
[    0.708539] sd 0:0:1:0: [sdb] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
[    0.708655] sd 0:0:1:0: [sdb] Write Protect is off
[    0.708662] sd 0:0:1:0: [sdb] Mode Sense: 00 3a 00 00
[    0.708707] sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    0.708987]  sdb: sdb1
[    0.728535] sd 0:0:1:0: [sdb] Attached SCSI disk
[    0.770912] Freeing initrd memory: 15800k freed
[    0.789374] Freeing unused kernel memory: 684k freed
[    0.790375] Write protecting the kernel text: 4932k
[    0.790453] Write protecting the kernel read-only data: 1976k
[    0.827206] udev[81]: starting version 163
[    1.126814] Floppy drive(s): fd0 is 1.44M
[    1.144221] FDC 0 is a post-1991 82077
[    1.149151] Linux agpgart interface v0.103
[    1.163927] agpgart-intel 0000:00:00.0: Intel 865 Chipset
[    1.164359] agpgart-intel 0000:00:00.0: detected 8060K stolen memory
[    1.167734] agpgart-intel 0000:00:00.0: AGP aperture is 128M @ 0xf0000000
[    1.170125] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
[    1.170182] 8139cp 0000:01:0b.0: This (id 10ec:8139 rev 10) is not an 8139C+ compatible chip, use 8139too
[    1.181776] 8139too: 8139too Fast Ethernet driver 0.9.28
[    1.181853]   alloc irq_desc for 22 on node -1
[    1.181859]   alloc kstat_irqs on node -1
[    1.181872] 8139too 0000:01:0b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
[    1.183650] 8139too 0000:01:0b.0: eth0: RealTek RTL8139 at 0xd800, 00:40:f4:22:58:12, IRQ 22
[    1.210034] [drm] Initialized drm 1.1.0 20060810
[    1.248785] i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    1.248794] i915 0000:00:02.0: setting latency timer to 64
[    1.265133] [drm] set up 7M of stolen space
[    1.289418] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
[    1.289822] [drm] initialized overlay support
[    1.947697] Console: switching to colour frame buffer device 128x48
[    1.950662] fb0: inteldrmfb frame buffer device
[    1.950665] drm: registered panic notifier
[    1.950670] Slow work thread pool: Starting up
[    1.950779] Slow work thread pool: Ready
[    1.950796] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
[    2.315098] Btrfs loaded
[    2.325440] xor: automatically using best checksumming function: pIII_sse
[    2.345016]    pIII_sse  :  3562.000 MB/sec
[    2.345022] xor: using function: pIII_sse (3562.000 MB/sec)
[    2.349272] device-mapper: dm-raid45: initialized v0.2594b
[   15.116307] end_request: I/O error, dev fd0, sector 0
[   15.263482] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   22.297170] udev[370]: starting version 163
[   22.413201] lp: driver loaded but no devices found
[   22.479756] intel_rng: FWH not detected
[   22.522325] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[   22.689707] udev[384]: renamed network interface eth0 to eth1
[   22.846947] parport_pc 00:0a: reported by Plug and Play ACPI
[   22.847053] parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,EPP,ECP,DMA]
[   22.926300] psmouse serio1: ID: 90 02 3c
[   22.934020] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   22.945424] lp0: using parport0 (interrupt-driven).
[   23.029622] ppdev: user-space parallel port driver
[   23.151663] type=1400 audit(1295521383.222:2): apparmor="STATUS" operation="profile_load" name="/sbin/dhclient3" pid=620 comm="apparmor_parser"
[   23.152544] type=1400 audit(1295521383.226:3): apparmor="STATUS" operation="profile_load" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=620 comm="apparmor_parser"
[   23.152978] type=1400 audit(1295521383.226:4): apparmor="STATUS" operation="profile_load" name="/usr/lib/connman/scripts/dhclient-script" pid=620 comm="apparmor_parser"
[   23.272400]   alloc irq_desc for 17 on node -1
[   23.272407]   alloc kstat_irqs on node -1
[   23.272424] Intel ICH 0000:00:1f.5: PCI INT B -> GSI 17 (level, low) -> IRQ 17
[   23.272582] Intel ICH 0000:00:1f.5: setting latency timer to 64
[   23.427091] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[   23.673815] input: PS/2 Logitech Mouse as /devices/platform/i8042/serio1/input/input3
[   23.697080] intel8x0_measure_ac97_clock: measured 53935 usecs (2598 samples)
[   23.697087] intel8x0: clocking to 48000
[   23.945424] type=1400 audit(1295521384.018:5): apparmor="STATUS" operation="profile_replace" name="/sbin/dhclient3" pid=907 comm="apparmor_parser"
[   23.946188] type=1400 audit(1295521384.018:6): apparmor="STATUS" operation="profile_replace" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=907 comm="apparmor_parser"
[   23.946628] type=1400 audit(1295521384.018:7): apparmor="STATUS" operation="profile_replace" name="/usr/lib/connman/scripts/dhclient-script" pid=907 comm="apparmor_parser"
[   23.952805] type=1400 audit(1295521384.022:8): apparmor="STATUS" operation="profile_load" name="/usr/share/gdm/guest-session/Xsession" pid=906 comm="apparmor_parser"
[   23.973982] type=1400 audit(1295521384.046:9): apparmor="STATUS" operation="profile_load" name="/usr/bin/evince" pid=910 comm="apparmor_parser"
[   23.983425] type=1400 audit(1295521384.054:10): apparmor="STATUS" operation="profile_load" name="/usr/lib/cups/backend/cups-pdf" pid=915 comm="apparmor_parser"
[   23.984383] type=1400 audit(1295521384.054:11): apparmor="STATUS" operation="profile_load" name="/usr/sbin/cupsd" pid=915 comm="apparmor_parser"
[   24.018638] eth1: link up, 100Mbps, full-duplex, lpa 0x45E1

我目前情況變成網路時好時壞

有時候ping到主機但putty連不上 , 有時候也ping不到完全斷, 有時候都正常

我同一個IP分享器其他兩台電腦網路都正常

我是網卡是有綁mac 對應IP

主機上有兩張網卡一張是主機板晶片網卡,  一張是PCI 介面網卡

目前linux 主機板晶片網卡是eth0 , PCI介面網卡eth1

那我目前是PCI網卡linux 偵測這卡是eth1 ,  那主機板晶片網卡eth0 沒用到所以我在BIOS關掉它

還是跟順序有關係我現在是用eth1

目前情況要怎麼檢查是什麼原因造成網路時好時壞?

謝謝

5
Linux 討論版 / ssh 遠端登入
« 於: 2011-01-20 02:33 »
主機是 ubuntu

我用putty 有時候可以連上, 有時候又連不上

但我ping 主機都是一直通的

請問有人知道原因嗎?

謝謝

6
Linux 討論版 / 回覆: 程式背景常駐去執行
« 於: 2010-10-14 12:32 »
還有個問題請問,我用nohup 一陣子 , 執行 python 的程式會自動掛掉需要再重新啟動那支程式這可能是什麼原因?

應該不是python 程式寫的有問題, 因為我在windows 下開機一直再跑都沒掛掉

謝謝

7
Linux 討論版 / 回覆: 程式背景常駐去執行
« 於: 2010-10-14 03:16 »
用你說的方法 abc.out 還是空的~@@

test.py 是程式會show 出來這樣 > abc.out 可以嗎?

8
Linux 討論版 / 程式背景常駐去執行
« 於: 2010-10-13 20:10 »
我丟一支程式到背景常駐去執行

但我想看這支程式show 的訊息

程式身本有丟出一些訊息 , 請問要怎麼在背景下也丟出訊息?

用 | 加上 >>可以嗎?

我目前是 sudo nohup python test.py &  要再加上什麼才可以看到程式的訊息?

謝謝

9
Linux 討論版 / vimgdb 使用
« 於: 2010-09-18 12:38 »
http://chenkaie.blogspot.com/2009/11/vimgdb-vim-gdb-build-vim-from-source.html


我原本已經有安裝vim , 需要先移除嗎?

我現在已經編譯好在 /home/shihyu/usr 裡面 , 之後怎麼啟動 vimgdb?


謝謝

10
Linux 討論版 / debian 5 系統怪怪的
« 於: 2010-09-18 03:53 »
透過 ssh 登入整個系統頓頓下指令都會卡住

apache 架設的網頁也是卡住有時候會開不出來會是很久很久才能開出來

但在本機開網頁都很順 , 操作也很順

請問要怎麼檢查才能判斷出什麼原因造成的?

謝謝

11
application/x-httpd-php <--- 出現這

請問為什麼我網站為什麼突然首頁掛了~ 開啟首頁變成下載網頁程式碼?

請問這是什麼原因造成的?

謝謝

12
Linux 討論版 / postfix + mutt 問題備份資料庫
« 於: 2010-07-14 08:43 »
代碼: [選擇]
#!/bin/sh
# mysql_backup.sh: backup mysql databases at day
#updated: 5 Aug 2009
# ----------------------------------------------------------------------
# This is a free shell script under GNU GPL version 2.0 or above
# Copyright (C) 2009 Woff Lin
# Feedback/comment/suggestions : http://www.tshopping.com.tw
#--------------------------------------------------------

# your mysql login information
# db_user is mysql username
# db_passwd is mysql password
# db_host is mysql host
# -----------------------------
db_user="root"
db_passwd="xxxxx"
db_host="localhost"

# the directory for story your backup file.
backup_dir="/home/shihyu/mysql_backup"

# mysql, mysqldump and some other bin's path
MYSQL="$(which mysql)"
MYSQLDUMP="$(which mysqldump)"
MKDIR="$(which mkdir)"
RM="$(which rm)"
MV="$(which mv)"
GZIP="$(which gzip)"

# check the directory for store backup is writeable
test ! -w $backup_dir && echo "Error: $backup_dir is un-writeable." && exit 0

# the directory for story the newest backup
test ! -d "$backup_dir/" && $MKDIR "$backup_dir/"

# get all databases
all_db="$($MYSQL -u $db_user -h $db_host -p$db_passwd -Bse 'show databases')"

for db in $all_db
do
$MYSQLDUMP -u $db_user -h $db_host -p$db_passwd $db --skip-lock-tables | $GZIP -9 > "$backup_dir/mgtsql.$db.`date +%Y%m%d`.gz"
mutt -s "mgtsql.$db.`date +%Y%m%d`" xxxxxx@gmail.com  -a "$backup_dir/mgtsql.$db.`date +%Y%m%d`.gz" < /home/shihyu/mysql_backup/test1
done
exit 0;


上面是我備份用的 shell srcipt code  , 我在有兩台主機 , 都用上面同樣的程式去備份, 上面程式會幫我備份三個檔案 , 在寄到我mail 給我
但是其中一台常常備份寄到我信箱都只有2個檔案, 有一個檔案沒寄給我 , 但有時候三個檔案都會寄到信箱

但另一台主機都正常 , 請問這可能是什麼原因造成?

mutt -s "mgtsql.$db.`date +%Y%m%d`" xxxxxx@gmail.com  -a "$backup_dir/mgtsql.$db.`date +%Y%m%d`.gz" < /home/shihyu/mysql_backup/test1  這行是我自己加上的原本這程式碼沒有~ 我是懷疑這邊有問題 ,  因為我單純用  mutt 指令發送檔案都正常不會說有漏收

謝謝

13
Linux 討論版 / shell 問題
« 於: 2010-07-03 06:23 »
dos2unix  *.c  && *.h

indent -bap -nbc -br -brs -c33 -cd33 -ncdb -ce -ci4 -cli0 -d0 -di1 -nfc1 -i4 -ip0 -l75 -lp -npcs -npsl -nsc -nsob -nut -bad  *.c && *.h


我想把上面兩個動作弄成一個 .sh   把資料夾裡面所有.c & .h 都做上面兩個動作  請問要怎麼寫?

謝謝

14
C/C++程式設計討論區 / 回覆: gdb 使用問題
« 於: 2010-04-04 17:44 »
我想用 gdb 去看 ImageMagick

http://www.imagemagick.org/script/download.php


代碼: [選擇]
(gdb) r convert -resize 50% lena.bmp lenas.bmp
Starting program: /home/shihyu/ImageMagick-6.6.0-10/utilities/.libs/convert
convert -resize 50% lena.bmp lenas.bmp
/home/shihyu/ImageMagick-6.6.0-10/utilities/.libs/convert: error while
loading shared libraries: libMagickCore.so.3: cannot open shared object file:
No such file or directory

Program exited with code 0177.

出現 error while loading shared libraries:
libMagickCore.so.3: cannot open shared object file: No such file or directory


代碼: [選擇]
我找到 libMagickCore.so.3 路徑在

 /home/shihyu/ImageMagick-6.6.0-10/magick/.libs/libMagickCore.so.3

在 gdb 下 set solib-search-path /home/shihyu/ImageMagick-6.6.0-10/magick/.libs/

加完後用  (gdb) info shared 查詢還是出現下面訊息
No shared libraries loaded at this time.

去run 也是出現下面訊息

(gdb) r convert -resize 50% lena.bmp lenas.bmp
Starting program: /home/shihyu/ImageMagick-6.6.0-10/utilities/.libs/convert
conv
    ert -resize 50% lena.bmp lenas.bmp
/home/shihyu/ImageMagick-6.6.0-10/utilities/.libs/convert: error while
loading s
        hared libraries: libMagickCore.so.3: cannot open shared object file:
No such fil
          e or directory

Program exited with code 0177.


15
C/C++程式設計討論區 / 回覆: gdb 使用問題
« 於: 2010-04-02 01:45 »
假設我程式寫

#include <stdio.h>

int main(int argc, char *args[])
{
     printf("%d\n",argc);
}

可以在gdb 讀到 argc 值 & args 字串

但我拿掉 printf("%d\n",argc); 在gdb 中就讀不到 argc 值 & args 字串

請問是什麼原因?

謝謝

16
C/C++程式設計討論區 / gdb 使用問題
« 於: 2010-04-01 09:17 »
例如 我想讀入一張圖之後跑處理的演算法

那我用gdb 怎麼做? 因為我要先把圖讀入才可以跑後面的演算法

在用 gdb 時候要怎麼把圖讀入?

謝謝

17
Python程式設計討論區 / python 正規
« 於: 2010-03-17 13:19 »


我現在已經可以處理第一筆號碼

請問要怎麼讓往下再處理其他筆號碼? 程式碼要怎麼改?


謝謝

18
那個我當然有加密碼加進阿 , 那錯誤訊息就不是因為我密碼沒寫  :(

我找到解決方法加上 --skip-lock-tables 就可以

19
代碼: [選擇]
#!/bin/sh
# mysql_backup.sh: backup mysql databases and keep newest 5 days backup.
#
# Last updated: 20 March 2006
# ----------------------------------------------------------------------
# This is a free shell script under GNU GPL version 2.0 or above
# Copyright (C) 2006 Sam Tang
# Feedback/comment/suggestions : http://www.real-blog.com/
# ----------------------------------------------------------------------

# your mysql login information
# db_user is mysql username
# db_passwd is mysql password
# db_host is mysql host
# -----------------------------
db_user="root"
db_passwd=""
db_host="localhost"

# the directory for story your backup file.
backup_dir=""

# date format for backup file (dd-mm-yyyy)
time="$(date +"%d-%m-%Y")"

# mysql, mysqldump and some other bin's path
MYSQL="$(which mysql)"
MYSQLDUMP="$(which mysqldump)"
MKDIR="$(which mkdir)"
RM="$(which rm)"
MV="$(which mv)"
GZIP="$(which gzip)"

# check the directory for store backup is writeable
test ! -w $backup_dir && echo "Error: $backup_dir is un-writeable." && exit 0

# the directory for story the newest backup
test ! -d "$backup_dir/backup.0/" && $MKDIR "$backup_dir/backup.0/"

# get all databases
all_db="$($MYSQL -u $db_user -h $db_host -p$db_passwd -Bse 'show databases')"

for db in $all_db
do
$MYSQLDUMP -u $db_user -h $db_host -p$db_passwd $db | $GZIP -9 > "$backup_dir/backup.0/$time.$db.gz"
done

# delete the oldest backup
test -d "$backup_dir/backup.5/" && $RM -rf "$backup_dir/backup.5"

# rotate backup directory
for int in 4 3 2 1 0
do
if(test -d "$backup_dir"/backup."$int")
then
next_int=`expr $int + 1`
$MV "$backup_dir"/backup."$int" "$backup_dir"/backup."$next_int"
fi
done

exit 0;


我系統是 debian 用上面程式備份 mysql 資料 , 用root

mysqldump: Got error: 1044: Access denied for user 'root'@'localhost' to database 'information_schema' when using LOCK TABLES

20
我nat沒做什麼特別設定

不過如果再新增一張虛擬卡設Bridged  , 會讓nat 掛掉不知道是不是 Bridged  設定會去覆蓋 nat ?

謝謝

21
TyroneYeh 

你說的轉Port Forwarding方法可以用在  Bridged 模式下嗎? 我知道NAT 可以

因為我現在用 Bridged 照 dark 說的用 Bridged 模式 可以上網 & 連上開發板

但就是在xp 用 putty 連不上 vmware 的 linux

謝謝

22
dark我照你第一個方法

ifconfig eth0:0 192.168.1.101 netmask 255.255.255.0 就可以上網 也可以連上板子了

不過從host 用 putty 連不上 linux ? 請問是什麼問題?

ip route add default via 192.168.1.1 // 設這用意在哪? 我好像不能用這指令設定


謝謝  

23
Virtualization 虛擬化技術 / vmware NAT 問題
« 於: 2010-02-08 02:49 »
我遇到一個問題

就是我在嵌入式發開板192.168.10.230 的IP

我用vmware linux 用 Bridged 可以連上開發板

不過用Bridged 我linux 會無法連上網 , 必須用NAT才可以上網 , 我想我用Bridged 不能上網是因為我租房這是用虛擬IP關係吧

要怎麼用NAT 又可以用設跟板子同一個網段連上開發板?

謝謝

24
Linux 討論版 / 裝mysql4 問題
« 於: 2010-01-19 03:34 »
環境是 ubuntu

想裝想裝mysql-server4.0

但我用 apt-cache search mysql-server 只找到 mysql-server-5.0

請問要裝舊版要怎麼弄?

謝謝


25
雜七雜八 / msn 常常斷
« 於: 2010-01-12 04:42 »
我租房地方msn 或是 即時通 這些通訊軟體常常斷線但一下就連上線

但 skype 很穩 , 請問是什麼原因有誰知道嗎?


謝謝

26
Linux 討論版 / smaba 設定問題
« 於: 2010-01-09 16:47 »


那如果我也想把 /home 也分享要怎麼設定?

還有我這樣設定有什麼samba不好嗎?

謝謝

27
Linux 討論版 / 刪除指令用法
« 於: 2010-01-07 23:26 »
請問怎麼對一個資料夾下所有的非 .c 刪除~

資料夾下面還有子目錄~所以要遞迴

我只要保留 .c 檔

請問指令要怎麼下

謝謝

28
雜七雜八 / 回覆: 筆電無法上網
« 於: 2010-01-07 20:59 »
可以抓到IP
ping 168.95.1.1 -t  有時候會通有時候不通
只要一開網頁馬上ping 就掛了

抱歉我不太懂你說得方法如何用桌機抓到的 ip 設定指定到 NB 上呢 ?

因為我這邊是DHCP  你意思是桌機抓到IP~ 筆電不用要DHCP 方式改成手動設定IP嗎?

謝謝

29
雜七雜八 / 回覆: 筆電無法上網
« 於: 2010-01-07 20:48 »
你說的方法我試過了~  我這租房是DHCP 不需要設定

詭異問題@@

30
雜七雜八 / 回覆: 筆電無法上網
« 於: 2010-01-07 17:16 »
租房是DHCP  虛擬IP

不過詭異的地方是桌上型電腦可以上網筆電不行

但我今天去asus皇家想維修結果去在他那邊就可以上網


頁: [1] 2 3 ... 8