RealTechTalk (RTT) - Linux/Server Administration/Related

We have years of knowledge with technology, especially in the IT (Information Technology) industry. 

realtechtalk.com will always have fresh and useful information on a variety of subjects from Graphic Design, Server Administration, Web  Hosting Industry and much more.

This site will specialize in unique topics and problems faced by web hosts, Unix/Linux administrators, web developers, computer technicians, hardware, networking, scripting, web design and much more. The aim of this site is to explain common problems and solutions in a simple way. Forums are ineffective because they have a lot of talk, but it's hard to find the answer you're looking for, and as we know, the answer is usually not there. No one has time to scour the net for forums and read pages of irrelevant information on different forums/threads. RTT just gives you what you're looking for.

  • grub> setup (hd1) Checking if "/boot/grub/stage1" exists...


    It freezes on "grub> setup (hd1)
    Checking if "/boot/grub/stage1" exists..."

    Basically it looks like the partiion table is corrupt or the data/files are not there.


  • Centos installing grub problems suspect gpt problem


    grub> root (hd0,0)
    root (hd0,0)
     Filesystem type is ext2fs, partition type 0xfd
    grub> setup (hd0)
    setup (hd0)


    But if you do:
    root (hd1,0)
    setup (hd1)

    it does work, I think hd0/sda had a GPT partition that was not removed properly (what I did was just dd bs=512 count=1 the partition table from another drive since the partition table should be identical).

     Checking if "/boot/grub/stage1" exists... no
     Checking if "/grub/stage1" exists... yes
     Checking if "/grub/stage2" exists... yes
     Checking if "/grub/e2fs_stage1_5" exists... yes
     Running "embed /grub/e2fs_stage1_5 (hd1)"...  27 sectors are embedded.
    succeeded
     Running "install /grub/stage1 (hd1) (hd1)1+27 p (hd1,0)/grub/stage2 /grub/grub.conf"... succeeded
    Done.

    ==============
    Checking for gpt with gdisk:

    GPT fdisk (gdisk) version 0.8.10

    Partition table scan:
      MBR: MBR only
      BSD: not present
      APM: not present
      GPT: not present


    ***************************************************************
    Found invalid GPT and valid MBR; converting MBR to GPT format
    in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
    typing 'q' if you don't want to convert your MBR partitions
    to GPT format!
    ***************************************************************


    ===========

    gdisk /dev/sda
    GPT fdisk (gdisk) version 0.8.10

    Partition table scan:
      MBR: MBR only
      BSD: not present
      APM: not present
      GPT: not present


    ***************************************************************
    Found invalid GPT and valid MBR; converting MBR to GPT format
    in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
    typing 'q' if you don't want to convert your MBR partitions
    to GPT format!
    ***************************************************************


    Command (? for help): p
    Disk /dev/sda: 976773168 sectors, 465.8 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): 4DE51E1D-DC93-43EC-B670-44A0A9FEE114
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 976773134
    Partitions will be aligned on 8-sector boundaries
    Total free space is 5099 sectors (2.5 MiB)

    Number  Start (sector)    End (sector)  Size       Code  Name
       1              63         2120575   1.0 GiB     FD00  Linux RAID
       2         2120576        44066295   20.0 GiB    FD00  Linux RAID
       3        44066296       976768064   444.7 GiB   FD00  Linux RAID

    Command (? for help): g
    b    back up GPT data to a file
    c    change a partition's name
    d    delete a partition
    i    show detailed information on a partition
    l    list known partition types
    n    add a new partition
    o    create a new empty GUID partition table (GPT)
    p    print the partition table
    q    quit without saving changes
    r    recovery and transformation options (experts only)
    s    sort partitions
    t    change a partition's type code
    v    verify disk
    w    write table to disk and exit
    x    extra functionality (experts only)
    ?    print this menu

    Command (? for help): r

    Recovery/transformation command (? for help): p
    Disk /dev/sda: 976773168 sectors, 465.8 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): 4DE51E1D-DC93-43EC-B670-44A0A9FEE114
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 976773134
    Partitions will be aligned on 8-sector boundaries
    Total free space is 5099 sectors (2.5 MiB)

    Number  Start (sector)    End (sector)  Size       Code  Name
       1              63         2120575   1.0 GiB     FD00  Linux RAID
       2         2120576        44066295   20.0 GiB    FD00  Linux RAID
       3        44066296       976768064   444.7 GiB   FD00  Linux RAID

    Recovery/transformation command (? for help): ?
    b    use backup GPT header (rebuilding main)
    c    load backup partition table from disk (rebuilding main)
    d    use main GPT header (rebuilding backup)
    e    load main partition table from disk (rebuilding backup)
    f    load MBR and build fresh GPT from it
    g    convert GPT into MBR and exit
    h    make hybrid MBR
    i    show detailed information on a partition
    l    load partition data from a backup file
    m    return to main menu
    o    print protective MBR data
    p    print the partition table
    q    quit without saving changes
    t    transform BSD disklabel partition
    v    verify disk
    w    write table to disk and exit
    x    extra functionality (experts only)
    ?    print this menu

    Recovery/transformation command (? for help): g

    MBR command (? for help): g
    a    toggle the active/boot flag
    c    recompute all CHS values
    l    set partition as logical
    o    omit partition
    p    print the MBR partition table
    q    quit without saving changes
    r    set partition as primary
    s    sort MBR partitions
    t    change partition type code
    w    write the MBR partition table to disk and exit

    MBR command (? for help): g
    a    toggle the active/boot flag
    c    recompute all CHS values
    l    set partition as logical
    o    omit partition
    p    print the MBR partition table
    q    quit without saving changes
    r    set partition as primary
    s    sort MBR partitions
    t    change partition type code
    w    write the MBR partition table to disk and exit

    MBR command (? for help): w

    Converted 3 partitions. Finalize and exit? (Y/N): y
    Warning: The kernel is still using the old partition table.
    The new table will be used at the next reboot.
    GPT data structures destroyed! You may now partition the disk using fdisk or
    other utilities.

    ===========
    I can even do
    root (hd1,0)
    setup (hd0) and it will work.........but not hd0,0 even though both are in the same RAID array on the same partition


  • bash scripting for loop set number of iterations


    A handy trick in bash that can be adapted to many useful tasks:

    for i in {1..99}; do

    echo $i

    done

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99


  • linux bash mass rename tool Centos/Debian/Ubuntu


    Say you have a bunch of files like this:

    file-01.jpg

    file-02.jpg

    ...............

    What if you want to mass rename them?

    the rename tool can work just like sed

    For Debian based distros:

    Note "file" is what we search for and "newname" is what we replace it with, so substitute according to your requirements.

    rename s/file/newname/ name-file-*.jpg

    For RHEL Centos:

    rename file newname file-*
     


  • Cannot get mono to work properly on Linux Mint


     

    mono/wine not working in Ubuntu/Linux Mint/Debian:



    The assembly mscorlib.dll was not found or could not be loaded.
    It should have been installed in the `/usr/lib/mono/2.0/mscorlib.dll' directory.

     

    solution:

    sudo apt-get install mono-complete
     

     

     Problems:

    mono does not work well for even simple things like a Winrar self extracting .exe file:

    File does not contain a valid CIL image.

    Try wine (you can never get it to work or install)



    sudo apt-get install wine1.6-amd64
    Reading package lists... Done
    Building dependency tree      
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help resolve the situation:

    The following packages have unmet dependencies:
     wine1.6-amd64 : Depends: libopencl-1.1-1
                     Depends: wine1.6:any (= 1:1.6.2-0ubuntu4)
    E: Unable to correct problems, you have held broken packages.
    user@box:~$

    sudo apt-add-repository ppa:ubuntu-wine/ppa
    sudo apt-get update

    sudo apt-get install wine1.8-amd64
    Reading package lists... Done
    Building dependency tree      
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help resolve the situation:

    The following packages have unmet dependencies:
     wine1.8-amd64 : Depends: libopencl-1.1-1
                     Depends: wine1.8:any (= 1:1.8.0-0ubuntu1)
    E: Unable to correct problems, you have held broken packages.


    nvidia-libopencl1-346-updates


  • CPanel SNI error


    Your server does not support SNI, so all of your SSL websites must use the same SSL certificate. An update to the certificate on an existing SSL website will affect all of your SSL websites, and new SSL websites must use the currently installed certificate.


  • Bing/Microsoft Ads flex.atdmt.com causing problems for ad tracking and site loading


    I was asked to troubleshoot why a site wasn't loaded or responding properly, it turned out they were using some old javascript tracker from Bing/Microsoft that is no longer valid or working.  You have to wait forever for it to time out but it really did disrupt the functionality of a very important site:

    flex.atdmt.com

    If you have the above code in javascript on your site remove or comment it out.


  • imagemagick converting jpg images to pdf file size too large


    If the file size is too large you need to resize them on the fly:

    convert -resize 25% *.jpg output.pdf

    The resize flag takes a % I have tried without and it seems to take it as pixels and becomes way too small.

    You can also play with the "-quality 25" flag to decrease file size even more.


  • convert imagemagick pdf to jpg is too small when converting solution


    It is a common issue and here is the solution (increase the density/dpi):

    convert -density 120 some.pdf output.jpg

    You will need to play with the density setting to get the perfect file size and resolution.

    If you want a smaller file you can always use the "-quality" switch and eg. -quality 25 would be 25%/100 quality


  • How To Record Your Screen with Linux




    Istanbul:


    At least in Linux Mint the latest 17.2 version Istanbul freezes when "In process of saving to Disk" even with the workaround of not having Sound recording enabled.  It looks like a great app but bugs like this seem to have plague it for over 8 years!

    Kazam:

    This little app works great, its only bug is that when you try to tell it to record a window or area it puts a gray cover over the whole screen so you have to guess where the window is and hope you clicked right.  It seems again like another bug but is a minor issue since it actually records and works quite well otherwise.

     


  • Virtualbox Error


    In plain English this happens after you upgrade VBOX and it rebuilds kernel modules based on a newer kernel than you are running (eg. you upgraded your kernel but haven't booted into it).

    It is too bad there is not a standard work around that would allow it to realize this and keep old kernel modules and use them if it detects your current kernel is older than the most recently build modules.

    ===============

    RTR3InitEx failed with rc=-1912 (rc=-1912)

    The VirtualBox kernel modules do not match this version of VirtualBox. The installation of VirtualBox was apparently not successful. Executing

    '/etc/init.d/vboxdrv setup'

    may correct this. Make sure that you do not mix the OSE version and the PUEL version of VirtualBox.


    Result Code:
    NS_ERROR_FAILURE (0x80004005)
    Component:
    Machine
    Interface:
    IMachine {480cf695-2d8d-4256-9c7c-cce4184fa048}
     


  • How to get/display full path to file in Linux/Unix


    It is just the readlink command with the -f switch and it will display the full path, very handy to save time when you want to copy and paste the location of a file or script etc..

     readlink -f updatehtaccess.sh
    /var/lib/updatehtaccess.sh

     


  • kernel:[14277.697049] EDAC MC0: UE row 4, channel-a= 0 channel-b= 1 labels "-": (Branch=0 DRAM-Bank=0 RDWR=Read RAS=7048 CAS=0 FATAL Err=0x4 (>Tmid Thermal event with intelligent throttling disabled))


    I am getting this error:

     kernel:[14277.697049] EDAC MC0: UE row 4, channel-a= 0 channel-b= 1 labels "-": (Branch=0 DRAM-Bank=0 RDWR=Read RAS=7048 CAS=0 FATAL Err=0x4 (>Tmid Thermal event with intelligent throttling disabled))
     

    But many people believe this is a bug/false message and the server is running stably.


  • CPanel Cannot Login HTTP error 401 You do not have permission to access this page.


    HTTP error 401

    You do not have permission to access this page.

    It was actually a bad hosts entry or where your IP was somehow added to /etc/hosts.deny this is what you will see from CPanel


  • Failed to open a session for the virtual machine XPCB. Implementation of the USB 2.0 controller not found! Because the USB 2.0 controller state is part of the saved VM state, the VM cannot be started. To fix this problem, either install the 'Oracle V


    I have guest extensions installed but still getting the error:


    Failed to open a session for the virtual machine XPCB.
    Implementation of the USB 2.0 controller not found!
    Because the USB 2.0 controller state is part of the saved VM state, the VM cannot be started. To fix this problem, either install the 'Oracle VM VirtualBox Extension Pack' or disable USB 2.0 support in the VM settings (VERR_NOT_FOUND).

    This seems to stem more from moving an old VM from an older VBOX to a newer version (because freshly installed VMs could use USB just fine).  The only way I got it working was to remove guest additions, reboot, reinstall guest additions and then re-enable USB and it worked just fine after.  If you have migrated your VM to a newer version of VBOX host machine, then don't believe anyone who says "just install guest additions" especially if they are already installed.


  • OpenVZ how to enable FUSE in the container


    vzctl set 2 --devnodes fuse:rw --save

    Where "2" is the ctid


  • How to manually mount Linux disk image partition without using losetup


    In this case we want to mount partition #2

    fdisk -lu Centos-6.6-x86_64.img
    You must set cylinders.
    You can do this from the extra functions menu.

    Disk Centos-6.6-x86_64.img: 0 MB, 0 bytes
    255 heads, 63 sectors/track, 0 cylinders, total 0 sectors
    Units = sectors of 1 * 512 = 512 bytes

                    Device Boot      Start         End      Blocks   Id  System
    Centos-6.6-x86_64.img1            2048     1026047      512000   82  Linux swap / Solaris
    Partition 1 does not end on cylinder boundary.
    Centos-6.6-x86_64.img2   *     1026048    10485759     4729856   83  Linux
    Partition 2 does not end on cylinder boundary.


    I want to mount partition 2 which starts at 1026048.

    Specify offset as: 1026048 * 512 = 525336576

    How to mount partition number 2

    mount -t ext4 -o loop,offset=525336576 Centos-6.6-x86_64.img /mnt


  • Debian 8 Jessie in Linux OpenVZ Container does not work on Centos host


    It sounds like this is corrected in later versions of the OpenVZ kernel but I am not sure, it may also be that a much newer kernel is needed and Centos may not have a recent enough kernel.

    *Debain 7.0 however does work fine as a temporary fix or work around.

    Debian 8 OpenVZ no IP and networking not working:

    lo        Link encap:Local Loopback 
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
              BROADCAST POINTOPOINT NOARP  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)



    service networking restart
    Failed to get D-Bus connection: No such file or directory


  • bash script Get Model and Serial Number of All Hard Disks in Server on Linux


    for disk in `fdisk -l|grep "Disk /dev"|awk '{print $2}'|sed s/://g`; do
    echo "$disk" && smartctl -d ata -a "$disk" -T permissive|grep -iE 'Device Model:|Serial Number:'
    echo "---------------"
    done

    *Make sure you have smartctl from smartmon tools installed


      Sample output:

    /dev/sdc
    Device Model:     ST3750640NS
    Serial Number:    5QD3MZBP
    ---------------
    /dev/sdb
    Device Model:     ST3750640NS
    Serial Number:    5QD3RCTL
    ---------------
    /dev/md0
    Device Model:     [No Information Found]
    Serial Number:    [No Information Found]
    ---------------
    /dev/md2
    Device Model:     [No Information Found]
    Serial Number:    [No Information Found]
    ---------------
    /dev/md1
    Device Model:     [No Information Found]
    Serial Number:    [No Information Found]


  • How to scp transfer a file in Linux with spaces


    Say you have a path like this "/some/path/here with spaces/".  If you try to transfer it you will get a message along the lines of:

    scp -rp 192.168.0.12:"/some/path/here space/" .

    scp: /some/path/here: No such file or directory
    scp: space: No such file or directory

    You can escape each space but what a pain that is especially if you have multiple spaces in the path.

    The simplest way is to use the following instead:


    scp -rp 192.168.0.12:'"/some/path/here space/"' .

    or


    scp -rp 192.168.0.12:'"/some/path/here space/"' .

    As you can see we are basically padding it with a '" or "' on either side to make the shell interpret it as a literal instead of thinking the space is where the path name ends.


  • unfortunately lg keyboard has stopped - LG Phone Keyboard Issue


    This seems to effect many other LG phones , specifically their keyboard app and basically makes your phone unusable where you cannot use the keyboard because that message keeps popping up and the keyboard will not load.

    unfortunately lg keyboard has stopped solution:

    1. Go to your settings and manage apps and find the LG Keyboard app:

    2. Stop it from running, delete all data and clear all cache.

    After the above you will probably find that your keyboard responds better and more quickly too.


  • Location of cPanel apache access logs


    It is very handy to remember this and nice that the logs for all domains are in a central location:

    /usr/local/apache/domlogs


  • Windows showing wrong drive size after resizing the VPS/image or cloning howto fix


    1, Enter the command prompt

    Start -> cmd

    2. Start diskpart

    diskpart

    3. Find the drive that has the wrong size

    list volume

    4. Select the volume (in this example we use volume 2)

    select volume 2

    5. Extend the volume

    extend

    result:

    Diskpart successfully extended the volume

    failure:

    Virtual Disk Service error:

    The size of the extent is less than the minimum

    *I don't know why the above error happens,normally it is if the partition cannot extend that far because the next partition or volume is next but this is not the case on this system.


  • How to manually save bash history


    This is useful in the case you are not properly logged in via an OpenVZ session or even a normal SSH session that you fear may go down (if the connection is broken the history is not saved).

    Save your bash_history like this:

    history -w ~/.bash_history

    You can always change the above to another file eg /tmp/somefile.txt or ~/someotherfile.txt


  • Linux how to combine images into a single one using convert from ImageMagick


    convert -append file1.jpg file2.jpg output.jpg

    The above is all there is to it.

    file1.jpg and file2.jpg are the ones to combine (the order is used) and output.jpg is the combined image.


  • Mysql how to backup/copy row from one table to another


    INSERT INTO articles_backup
    SELECT * FROM articles WHERE articleID="118"

    It is so simple we always recommend people do this when updating their database so you always have a backup.

    The above inserts the copy into the table "articles_backup" which has an identical structure.

    It selects the entry from "articles" where the articleID is "118" but of course you can adapter yours to whatever the situation is.


  • mdadm real example of recovery and rebuilding of the array on Centos 6


    In this example we have 2 drives in a RAID array and /dev/sdb is the one that failed.  /dev/sda1 is also the /boot partition which we tell grub to install on /dev/sdb eg install root (hd0,0) /dev/sda1 on the new drive /dev/sdb (hd1)
     

    First copy the partition table from /dev/sda to /dev/sdb

    dd if=/dev/sda of=/dev/sdb bs=512 count=1

    Run partprobe to detect the new partition table
    partprobe

    Add the partitions of the replacement drive /dev/sdb back to the array


    mdadm --manage /dev/md0 -a /dev/sdb1
    mdadm --manage /dev/md1 -a /dev/sdb2
    mdadm --manage /dev/md2 -a /dev/sdb3

     

    Install grub on the new drive
    grub
    root (hd0,0)
    setup (hd1)


  • Microsoft Access .mdb files how to view them on Linux Ubuntu/Debian


    The package "mdbtools-gmdb" works very well but I was not able to get the forms working that were part of the .mdb but you can at least view all of the rows and Export to CSV


  • Centos 6 how to guide convert LVM non-RAID into mdadm 1/10 RAID array live without reinstalling


    Here is the scenario you or a client have a remote machine that was installed as a standard/default minimal Centos 6.x machine on a single disk with LVM for whatever reason.  Often many people do not know how to install it to a RAID array so it is common to have this problem and why reinstall if you don't need to?  In some cases on a remote system you can't easily reinstall without physical or KVM access.

    So in this case you add a second physical or disk or already have one and want to make it a RAID array but don't want much downtime, dataloss etc...

    In this tutorial we will show you how to turn this default install into a mdadm ARRAY with RAID10 on the / and a RAID 1 /boot and RAID 1 SWAP all without any downtime or other intervention (assuming all goes well and all steps are followed) :)

    Install rsync:

    yum -y install rsync

    #disable selinux! otherwise you won't be able to login (it will logout #instantly and show this in the logs

    sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config

    centos cannot login session closed immediately


    login: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
    login: ROOT LOGIN ON tty1
    pam_unix(login:session): session closed for user root

    Step 1.)
    Create your partitions on the second disc (I assume your second disc is /dev/sdb).
    md0=/dev/sdb1 is a 500M /boot partition
    md1=/dev/sdb2 is a 1024M swap partition
    md2=/dev/sdb3 is the / partition

    fdisk /dev/sdb

    WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
             switch off the mode (command 'c') and change display units to
             sectors (command 'u').

    Command (m for help): n
    Command action
       e   extended
       p   primary partition (1-4)
    p
    Partition number (1-4): 1
    First cylinder (1-652, default 1):
    Using default value 1
    Last cylinder, +cylinders or +size{K,M,G} (1-652, default 652): +500M

    Command (m for help): n
    Command action
       e   extended
       p   primary partition (1-4)
    p
    Partition number (1-4): 2
    First cylinder (66-652, default 66):
    Using default value 66
    Last cylinder, +cylinders or +size{K,M,G} (66-652, default 652): +1024M

    Command (m for help): n
    Command action
       e   extended
       p   primary partition (1-4)
    p
    Partition number (1-4):
    Value out of range.
    Partition number (1-4): 3
    First cylinder (198-652, default 198):
    Using default value 198
    Last cylinder, +cylinders or +size{K,M,G} (198-652, default 652):
    Using default value 652

    Command (m for help): t
    Partition number (1-4):
    Value out of range.
    Partition number (1-4): 1
    Hex code (type L to list codes): fd
    Changed system type of partition 1 to fd (Linux raid autodetect)

    Command (m for help): t
    Partition number (1-4): 2
    Hex code (type L to list codes): fd
    Changed system type of partition 2 to fd (Linux raid autodetect)

    Command (m for help): t
    Partition number (1-4): 3
    Hex code (type L to list codes): fd
    Changed system type of partition 3 to fd (Linux raid autodetect)

    Command (m for help): p

    Disk /dev/sdb: 5368 MB, 5368709120 bytes
    255 heads, 63 sectors/track, 652 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0008b7d9

       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1               1          65      522081   fd  Linux raid autodetect
    /dev/sdb2              66         197     1060290   fd  Linux raid autodetect
    /dev/sdb3             198         652     3654787+  fd  Linux raid autodetect

    Command (m for help): w
    The partition table has been altered!

    Calling ioctl() to re-read partition table.
    Syncing disks.

    ====================

    Step 2.) Create RAID arrays
    md0=/dev/sdb1 is a 500M /boot partition
    md1=/dev/sdb2 is a 1024M swap partition
    md2=/dev/sdb3 is the / partition

    mdadm --create /dev/md0 --metadata=0.90 --level=1 --raid-devices=2 /dev/sdb1 missing
    mdadm --create /dev/md1 --level=10 --raid-devices=2 --layout=f2 /dev/sdb2 missing
    mdadm --create /dev/md2 --level=10 --raid-devices=2 --layout=f2 /dev/sdb3 missing


    [root@localhost ~]# mdadm --create /dev/md0 --metadata=0.90 --level=1 --raid-devices=2 /dev/sdb1 missing
    mdadm: array /dev/md0 started.
    [root@localhost ~]# mdadm --create /dev/md1 --level=10 --raid-devices=2 --layout=f2 /dev/sdb2 missing
    mdadm: Defaulting to version 1.2 metadata
    mdadm: array /dev/md1 started.
    [root@localhost ~]# mdadm --create /dev/md2 --level=10 --raid-devices=2 --layout=f2 /dev/sdb3 missing
    mdadm: Defaulting to version 1.2 metadata
    mdadm: array /dev/md2 started.

    [root@localhost ~]# cat /proc/mdstat
    Personalities : [raid1] [raid10]
    md2 : active raid10 sdb3[0]
          3652608 blocks super 1.2 512K chunks 2 far-copies [2/1] [U_]
         
    md1 : active raid10 sdb2[0]
          1058816 blocks super 1.2 512K chunks 2 far-copies [2/1] [U_]
         
    md0 : active raid1 sdb1[0]
          521984 blocks [2/1] [U_]

    Step 3.) Make filesystems on RAID arrays
    md0=/dev/sdb1 is a 500M /boot partition
    md1=/dev/sdb2 is a 1024M swap partition
    md2=/dev/sdb3 is the / partition
         

    mkfs.ext4 /dev/md0
    mke2fs 1.41.12 (17-May-2010)
    Filesystem label=
    OS type: Linux
    Block size=1024 (log=0)
    Fragment size=1024 (log=0)
    Stride=0 blocks, Stripe width=0 blocks
    130560 inodes, 521984 blocks
    26099 blocks (5.00%) reserved for the super user
    First data block=1
    Maximum filesystem blocks=67633152
    64 block groups
    8192 blocks per group, 8192 fragments per group
    2040 inodes per group
    Superblock backups stored on blocks:
        8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409

    Writing inode tables: done                           
    Creating journal (8192 blocks): done
    Writing superblocks and filesystem accounting information: done

    This filesystem will be automatically checked every 31 mounts or
    180 days, whichever comes first.  Use tune2fs -c or -i to override.
    [root@localhost ~]# mkswap /dev/md1
    mkswap: /dev/md1: warning: don't erase bootbits sectors
            on whole disk. Use -f to force.
    Setting up swapspace version 1, size = 1058812 KiB
    no label, UUID=821efb1f-95cd-4aab-803b-e26d9fa6a920
    [root@localhost ~]# mkfs.ext4
    mkfs.ext4     mkfs.ext4dev 
    [root@localhost ~]# mkfs.ext4 /dev/md2
    mke2fs 1.41.12 (17-May-2010)
    Filesystem label=
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    Stride=128 blocks, Stripe width=256 blocks
    228480 inodes, 913152 blocks
    45657 blocks (5.00%) reserved for the super user
    First data block=0
    Maximum filesystem blocks=935329792
    28 block groups
    32768 blocks per group, 32768 fragments per group
    8160 inodes per group
    Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736

    Writing inode tables: done                           
    Creating journal (16384 blocks): done
    Writing superblocks and filesystem accounting information: done

    This filesystem will be automatically checked every 37 mounts or
    180 days, whichever comes first.  Use tune2fs -c or -i to override.



    Step 4.) Create chroot environment/mount RAID arrays

    md0=/dev/sdb1 is a 500M /boot partition
    md1=/dev/sdb2 is a 1024M swap partition
    md2=/dev/sdb3 is the / partition


    mount /dev/md2 /mnt
    mkdir /mnt/boot
    mount /dev/md0 /mnt/boot/

    #time to rsync all your files
    rsync -Phaz / --exclude=/mnt --exclude=/sys/* --exclude=/proc/* /mnt

    sent 243.20M bytes  received 377.68K bytes  1.87M bytes/sec
    total size is 635.16M  speedup is 2.61


    #setup chroot environment

    for mount in dev sys proc; do
    mount -o bind /$mount /mnt/$mount
    done

    #chroot
    chroot /mnt

    #setup mdadm.conf
    for md in 0 1 2; do
    mdadm --detail --brief /dev/md$md >> /etc/mdadm.conf
    done

    #create new initrd with correct mdadm info
    dracut -f

    #get UUID of / for the next steps
    blkid /dev/md2
    /dev/md2: UUID="0e68a84d-cb61-4856-b23b-c2e2aa8294fb" TYPE="ext4"

    #backup grub menu.lst
    cp /boot/grub/menu.lst /boot/grub/menu.lst-before-raid

    #disable selinux just in case
    sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config

    #change this:
    default=0
    timeout=5
    splashimage=(hd0,0)/grub/splash.xpm.gz
    hiddenmenu
    title CentOS (2.6.32-431.el6.x86_64)
            root (hd0,0)
            kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=VolGroup/lv_root  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
            initrd /initramfs-2.6.32-431.el6.x86_64.img

    #

    #to:
    default=0
    timeout=5
    #splashimage=(hd0,0)/grub/splash.xpm.gz
    hiddenmenu
    title CentOS (2.6.32-431.el6.x86_64)
            root (hd1,0)
            kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=UUID=0e68a84d-cb61-4856-b23b-c2e2aa8294fb KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
            initrd /initramfs-2.6.32-431.el6.x86_64.img

    #

    #install grub on second drive


    [root@localhost /]# grub
    Probing devices to guess BIOS drives. This may take a long time.


        GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

     [ Minimal BASH-like line editing is supported.  For the first word, TAB
       lists possible command completions.  Anywhere else TAB lists the possible
       completions of a device/filename.]
    grub> root (hd1,0)
    root (hd1,0)
     Filesystem type is ext2fs, partition type 0xfd
    grub> setup (hd1)
    setup (hd1)
     Checking if "/boot/grub/stage1" exists... no
     Checking if "/grub/stage1" exists... yes
     Checking if "/grub/stage2" exists... yes
     Checking if "/grub/e2fs_stage1_5" exists... yes
     Running "embed /grub/e2fs_stage1_5 (hd1)"...  27 sectors are embedded.
    succeeded
     Running "install /grub/stage1 (hd1) (hd1)1+27 p (hd1,0)/grub/stage2 /grub/grub.conf"... succeeded
    Done.
    grub>


    #edit fstab
    #change
    /dev/mapper/VolGroup-lv_root /                       ext4    defaults        1 1
    UUID=ed0608b8-271a-47e9-b0ee-88060a006b0d /boot                   ext4    defaults        1 2
    /dev/mapper/VolGroup-lv_swap swap                    swap    defaults        0 0
    tmpfs                   /dev/shm                tmpfs   defaults        0 0
    devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
    sysfs                   /sys                    sysfs   defaults        0 0
    proc                    /proc                   proc    defaults        0 0
                                                                                              
    #

    #get /boot ID
    blkid /dev/md0
    /dev/md0: UUID="4bcf5b66-9d0c-4f5b-a9d8-2d524fbf1ccf" TYPE="ext4"

    # swap ID
    blkid /dev/md1
    /dev/md1: UUID="821efb1f-95cd-4aab-803b-e26d9fa6a920" TYPE="swap"

    #backup /etc/fstab
    cp /etc/fstab /etc/fstab-beforeraid

    #to
    UUID=0e68a84d-cb61-4856-b23b-c2e2aa8294fb /                       ext4    defaults        1 1
    UUID=4bcf5b66-9d0c-4f5b-a9d8-2d524fbf1ccf /boot                   ext4    defaults        1 2
    UUID=821efb1f-95cd-4aab-803b-e26d9fa6a920 swap                    swap    defaults        0 0
    tmpfs                   /dev/shm                tmpfs   defaults        0 0
    devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
    sysfs                   /sys                    sysfs   defaults        0 0
    proc                    /proc                   proc    defaults        0 0
                                                                                             
    #




    #final and crucial grub setup, we need to tell grub that the root is on hd1,0 (or sdb1) and to install it to the first hard drive (which is what will boot and will enter the old environment if we don't do this):
        GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

     [ Minimal BASH-like line editing is supported.  For the first word, TAB
       lists possible command completions.  Anywhere else TAB lists the possible
       completions of a device/filename.]
    grub> root (hd1,0)
    root (hd1,0)
     Filesystem type is ext2fs, partition type 0xfd
    grub> setup (hd0)
    setup (hd0)
     Checking if "/boot/grub/stage1" exists... no
     Checking if "/grub/stage1" exists... yes
     Checking if "/grub/stage2" exists... yes
     Checking if "/grub/e2fs_stage1_5" exists... yes
     Running "embed /grub/e2fs_stage1_5 (hd0)"...  27 sectors are embedded.
    succeeded
     Running "install /grub/stage1 d (hd0) (hd0)1+27 p (hd1,0)/grub/stage2 /grub/grub.conf"... succeeded
    Done.
     


  • Centos cannot login by console or ssh session closed immediately


    In my case I could login with the initial install but I rsync'd everything over while preserving ownership and permissions to another RAID partition and booted from that.was fine before. The problem is that you are kicked out the second you login and the problem was SELINUX for some reason (perhaps it noticed something strange when it was moved to the new partition)


    login: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
    login: ROOT LOGIN ON tty1
    pam_unix(login:session): session closed for user root

    #in my case the issue was selinux so disable it

    How to disable SELinux

     

    Here were the error/denied messages in /var/log/audit/audit.log

     

    type=AVC msg=audit(1445614919.831:12): avc:  denied  { entrypoint } for  pid=1072 comm="login" path="/bin/bash" dev=md2 ino=632 scontext=unconfined_u:system_r:abrt_helper_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:file_t:s0 tclass=file
    type=AVC msg=audit(1445614924.074:22): avc:  denied  { entrypoint } for  pid=1077 comm="login" path="/bin/bash" dev=md2 ino=632 scontext=unconfined_u:system_r:abrt_helper_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:file_t:s0 tclass=file
    type=AVC msg=audit(1445614943.809:38): avc:  denied  { entrypoint } for  pid=1088 comm="login" path="/bin/bash" dev=md2 ino=632 scontext=unconfined_u:system_r:abrt_helper_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:file_t:s0 tclass=file
    type=AVC msg=audit(1445614969.449:48): avc:  denied  { entrypoint } for  pid=1093 comm="login" path="/bin/bash" dev=md2 ino=632 scontext=unconfined_u:system_r:abrt_helper_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:file_t:s0 tclass=file
     


  • openvz yum problem Centos 6.5 cannot find file on mirror:



    #solution

    Edit /etc/yum.repos.d/openvz.repo
    For the first two entries comment out #mirrorlist and uncomment #baseurl and then it worked

    openvz yum problem Centos 6.5 cannot find file on mirror:

    yum update
    Loaded plugins: fastestmirror
    Determining fastest mirrors
     * openvz-kernel-rhel6: mirrors.ustc.edu.cn
     * openvz-utils: mirrors.ustc.edu.cn
    base                                                     | 3.7 kB     00:00    
    base/primary_db                                          | 4.6 MB     00:13    
    centosplus                                               | 3.4 kB     00:00    
    centosplus/primary_db                                    | 1.1 MB     00:03    
    contrib                                                  | 2.9 kB     00:00    
    contrib/primary_db                                       | 1.2 kB     00:00    
    extras                                                   | 3.4 kB     00:00    
    extras/primary_db                                        |  32 kB     00:00    
    openvz-kernel-rhel6                                      | 2.8 kB     00:00    
    http://mirrors.ustc.edu.cn/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://ftp.cuhk.edu.hk/pub/Linux/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://ftp.riken.jp/Linux/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://ftp.iij.ad.jp/pub/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://www.ftp.ne.jp/Linux/MISC/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.secureax.com/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] Downloaded more than max size for http://www.secureax.com/: 10950 > 9305
    Trying other mirror.
    http://ftp.yz.yamagata-u.ac.jp/pub/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.wanxp.id/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirrors.digipower.vn/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.supremebytes.com/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror2.scalabledns.com/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://kartolo.sby.datautama.net.id/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://download.openvz.org/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.lon.cenexo.com/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://openvz.mirrors.ovh.net/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.ubiquityservers.com/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.hdcore.eu/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirrors.vinahost.vn/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.fdcservers.net/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirrors.sphere.ly/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 12] Timeout on http://mirrors.sphere.ly/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: (28, 'connect() timed out!')
    Trying other mirror.
    http://mirror.h1host.ru/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.tocici.com/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://openvz.mirrors.skynet.be/pub/openvz.org/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.serverbeheren.nl/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 7 - "Failed to connect to 2001:67c:16b4:b010::1: Network is unreachable"
    Trying other mirror.
    http://mirror.trouble-free.net/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://openvz.webdesk.ru/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://ftp.yzu.edu.tw/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://ftp.heanet.ie/mirrors/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://ftp.linux.cz/pub/linux/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.jmu.edu/pub/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.vpsfree.cz/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.cogentco.com/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.bytemark.co.uk/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://ftp.fi.muni.cz/pub/linux/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirrors.nic.cz/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirrors.bangmodhosting.com/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.duomenucentras.lt/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://openvz.slaskdatacenter.com/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://openvz.mirror.serveriai.lt/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirrors.bestthaihost.com/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirrors.thzhost.com/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"
    Trying other mirror.
    http://ftp.ticklers.org/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.as24220.net/pub/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://ftp.fsn.hu/pub/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.zetup.net/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.nexcess.net/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.logol.ru/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.lagoon.nc/pub/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://ftp.nluug.nl/pub/os/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirrors.gigenet.com/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://openvz.hitme.net.pl/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://ftp.wicks.co.nz/pub/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://ftp-stud.hs-esslingen.de/pub/Mirrors/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.23media.de/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.ukhost4u.com/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://openvz.copahost.com/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://openvz.rinet.ru/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.checkdomain.de/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirrors.sonic.net/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirrors.neterra.net/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://openvz.just-hosting.ru/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.maeh.org/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.softaculous.com/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.optusnet.com.au/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://artfiles.org/openvz.org/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://linux.nsu.ru/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.vutbr.cz/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.mirohost.net/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://openvz.tsukuba.wide.ad.jp/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.yandex.ru/mirrors/download.openvz.org/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.netinch.com/pub/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://ftp.lip6.fr/pub/linux/distributions/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.ihc.ru/download.openvz.org/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirrors.syringanetworks.net/OpenVZ/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirrors.netix.net/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.steadfast.net/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://openvz.spd.co.il/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://ftp.colocall.net/pub/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirrors.xservers.ro/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://ftp.hawo.net/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://ftp.hawo.stw.uni-erlangen.de/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://ftp.acc.umu.se/mirror/openvz.org/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://openvz.mirror.garr.it/mirrors/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://openvz.proserve.nl/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://ftp.fau.de/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.satellite-service.ru/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.datacenter.by/pub/download.openvz.org/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirror.as43289.net/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://openvz.uberglobalmirror.com/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://ftp.cc.uoc.gr/mirrors/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://mirrors.ircam.fr/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://openvz.mindstudios.com/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 12] Timeout on http://openvz.mindstudios.com/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: (28, 'connect() timed out!')
    Trying other mirror.
    http://linorg.usp.br/openvz/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://openvz.mirror.triple-it.nl/kernel/branches/rhel6-2.6.32/current/repodata/8670e12519a6cccfe7ede0226dd94ce1956005df-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
     


  • mount -o bind permanent in /etc/fstab howto


    mount -o bind /somedir /anotherdir

    In /etc/fstab

    /somedir /anotherdir none bind 0 0


  • Virtualbox errors on Ubuntu/Debian/Mint


     

    The solution was to reinstall the vbox dkms package and do a manual modprobe of the modules it makes.

    I never sorted out the unable to start due to the USB issue, I did have the guest additions installed but the only way to boot was to change the pointing device from USB to PS2 and then to disable the USB controller (if your pointing device is set as USB, disabling USB will not work because it will re-enable by default when it sees your pointing device is USB, this is why you must set it to PS2 before disabling USB).

    ===========

    Failed to open a session for the virtual machine XPCB.
    The virtual machine 'XPCB' has terminated unexpectedly during startup with exit code 1.


    Kernel driver not installed (rc=-1908)

    The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

    '/etc/init.d/vboxdrv setup'

    as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

    =========

    sudo apt-get install virtualbox-dkms
    [sudo] password for one:
    Reading package lists... Done
    Building dependency tree      
    Reading state information... Done
    The following NEW packages will be installed:
      virtualbox-dkms
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 538 kB of archives.
    After this operation, 4,321 kB of additional disk space will be used.
    Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/multiverse virtualbox-dkms all 4.3.10-dfsg-1ubuntu5 [538 kB]
    Fetched 538 kB in 1s (447 kB/s)         
    Selecting previously unselected package virtualbox-dkms.
    (Reading database ... 188970 files and directories currently installed.)
    Preparing to unpack .../virtualbox-dkms_4.3.10-dfsg-1ubuntu5_all.deb ...
    Unpacking virtualbox-dkms (4.3.10-dfsg-1ubuntu5) ...
    Setting up virtualbox-dkms (4.3.10-dfsg-1ubuntu5) ...
    Loading new virtualbox-4.3.10 DKMS files...
    First Installation: checking all kernels...
    Building only for 3.16.0-38-generic
    Building initial module for 3.16.0-38-generic
    Done.

    vboxdrv:
    Running module version sanity check.
     - Original module
       - No original module exists within this kernel
     - Installation
       - Installing to /lib/modules/3.16.0-38-generic/updates/

    vboxnetadp.ko:
    Running module version sanity check.
     - Original module
       - No original module exists within this kernel
     - Installation
       - Installing to /lib/modules/3.16.0-38-generic/updates/

    vboxnetflt.ko:
    Running module version sanity check.
     - Original module
       - No original module exists within this kernel
     - Installation
       - Installing to /lib/modules/3.16.0-38-generic/updates/

    vboxpci.ko:
    Running module version sanity check.
     - Original module
       - No original module exists within this kernel
     - Installation
       - Installing to /lib/modules/3.16.0-38-generic/updates/

    depmod.......

    DKMS: install completed.

    =========

    sudo modprobe vboxdrv
    one@Opteron2419:~$ sudo modprobe vboxnetadp
    one@Opteron2419:~$ sudo modprobe vboxpci
    one@Opteron2419:~$ sudo modprobe vboxnetflt
    one@Opteron2419:~$ sudo modprobe vboxnetsf
    modprobe: FATAL: Module vboxnetsf not found.
    one@Opteron2419:~$ sudo modprobe vboxsf
    modprobe: ERROR: could not insert 'vboxsf': No such device
    one@Opteron2419:~$ sudo modprobe vboxsf
    modprobe: ERROR: could not insert 'vboxsf': No such device
    one@Opteron2419:~$ sudo modprobe vboxguest
    modprobe: ERROR: could not insert 'vboxguest': No such device
    one@Opteron2419:~$ sudo modprobe vboxvideo


    ===============

    Failed to open a session for the virtual machine XPCB.
    Implementation of the USB 2.0 controller not found!
    Because the USB 2.0 controller state is part of the saved VM state, the VM cannot be started. To fix this problem, either install the 'Oracle VM VirtualBox Extension Pack' or disable USB 2.0 support in the VM settings (VERR_NOT_FOUND).


  • How To Install Linux Mint 17.2 on mdadm RAID with a separate boot partition


    I was surprised to see that Linux Mint at the latest 17.2 version still has NO mdadm installer option, and worse the installer will not be able to create a proper booting environment even when you do install it.

    How to setup mdadm in Linux mint LiveCD

    sudo su

    apt-get install mdadm

    # partition as you need and then create your mdadm devices

    # create your SWAP md0

    mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1

    # create your boot md1 (remember to use the --metadata=0.90 or it will not be bootable and it must be RAID 1 as RAID 10 cannot be booted

    mdadm --create /dev/md1 --level=1 --metadata=0.90 --raid-devices=2 /dev/sda2 /dev/sdb2

    # create root mdadm md2

    mdadm -create /dev/md2 --level=10 --layout=f2 --raid-devices=2 /dev/sdb3 /dev/sdb3

    Run the installer

    Double click each mdadm array to create the appropriate partition (eg. md0 is swap, md1 is /boot and md2 is /)

    Choose to install the boot loader on sda (it doesn't really matter because it will not succeed or work even if Linux Mint says it did).

     

    The Most Crucial Part, to chroot and install the necessary utilities

    I admit I spent a few days sorting this out because I have never had a problem in the past normally installing grub 0.97 by using the old manual way.  Linux mint uses the newer grub2 and is more complex/picky but also does it all for you as long as you do it as below.

    mount /dev/md2p1 /mnt

    # do not forget to mount your /boot or grub-install will NEVER work

    mount /dev/md1p1 /mnt/boot

    mount=/mnt

    for bind in dev sys proc; do

    mount -o bind /$bind /$mount/$bind

    chroot /mnt

    apt-get -y install mdadm grub2

    grub-install /dev/sda

    grub-install /dev/sdb

    #change the grub-install portion to match the physical devices that make up your boot partition and make sure you just point to the raw disk and not a specific partition

    #the above last command should do it and get you booting

     

     


  • Linux sudo config sudoers to run command without a password howto


    Before reading on remember to put the line at the bottom of /etc/sudoers as from experience what happen is that other rules cancel out what you have added.

    If your sudoers setup is correct it will work immediately upon saving without requiring a reboot.

    Edit /etc/sudoers

    yourusername    ALL = NOPASSWD: /path/to/command

    *Once again remember the above should be on the bottom of the sudoers file or it may not work.


  • ONVIF Linux Security Camera Setup


    First of all this seems to apply to many ONVIF devices
    Hard coded IP: 192.168.1.10 (yes not kidding no DHCP!)
    00:12:12:9C:C2:00

    To view RTSP stream use VLC, or openRTSP or other RTSP capable software:


    rtsp://192.168.1.10/user=admin_password=tlJwpbo6_channel=1_stream=0.sdp

    user: admin
    password: blank
    http://ip/Login.htm
    Uses Quicktime and is a poor quality picture and slow
    Cannot change password

    There is also port 8899 open that an Android app found
    Video In: 1
    Alarm In: 2
    Alarm Output: 1
    Audio In: 1
    Build Date:2014/10/23 16:54:2
    System: V4.02.R12.00006510.10010.1303
    Serial ID: e2ae8546ba493897


    Starting Nmap 5.21 ( http://nmap.org ) at 2015-10-13 17:05 PDT
    Nmap scan report for 192.168.1.10
    Host is up (0.0050s latency).
    Not shown: 996 closed ports
    PORT     STATE SERVICE
    23/tcp   open  telnet
    80/tcp   open  http
    554/tcp  open  rtsp
    8899/tcp open  unknown



     


  • clamav freshclam out of date won't update solution


     freshclam
    ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
    ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).


    Tue Oct 13 13:49:35 2015 -> WARNING: Incremental update failed, trying to download daily.cvd
    Tue Oct 13 13:49:35 2015 -> WARNING: Can't download daily.cvd from db.local.clamav.net
    Tue Oct 13 13:49:35 2015 -> Trying again in 5 secs...


    cd /var/lib/clamav/

    sudo rm daily.cld

    After deleting the above it will actually succeed and update


  • Installing zoneminder on Ubuntu/Debian Linux Howto




    sudo apt-get install zoneminder
    [sudo] password for one:
    Reading package lists... Done
    Building dependency tree      
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      libuser-perl python-evince kdebase-apps kwrite unixodbc
      libgnomeprint2.2-data python-soappy vgabios python-metacity hddtemp
      python-mediaprofiles libwww-search-perl libfile-slurp-perl python-bugbuddy
      python-totem-plparser python-fpconst libgnomeprint2.2-0 libgnomeprintui2.2-0
      libgnomeprintui2.2-common acroread-common python-gtop libgnomecups1.0-1
    Use 'apt-get autoremove' to remove them.
    The following extra packages will be installed:
      javascript-common libarchive-zip-perl libconvert-binhex-perl
      libdevice-serialport-perl libemail-date-format-perl libio-stringy-perl
      libjs-mootools libmime-lite-perl libmime-tools-perl libmime-types-perl
      libphp-serialization-perl php5-mysql wwwconfig-common
    Suggested packages:
      postgresql-client apache apache-ssl
    The following NEW packages will be installed:
      javascript-common libarchive-zip-perl libconvert-binhex-perl
      libdevice-serialport-perl libemail-date-format-perl libio-stringy-perl
      libjs-mootools libmime-lite-perl libmime-tools-perl libmime-types-perl
      libphp-serialization-perl php5-mysql wwwconfig-common zoneminder
    0 upgraded, 14 newly installed, 0 to remove and 3 not upgraded.
    Need to get 2,474kB of archives.
    After this operation, 10.1MB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Get:1 http://old-releases.ubuntu.com/ubuntu/ maverick/universe wwwconfig-common all 0.2.1 [22.8kB]
    Get:2 http://old-releases.ubuntu.com/ubuntu/ maverick/universe javascript-common all 7 [3,854B]
    Get:3 http://old-releases.ubuntu.com/ubuntu/ maverick/main libarchive-zip-perl all 1.30-2 [95.9kB]
    Get:4 http://old-releases.ubuntu.com/ubuntu/ maverick/main libconvert-binhex-perl all 1.119+pristine-3 [30.9kB]
    Get:5 http://old-releases.ubuntu.com/ubuntu/ maverick/universe libemail-date-format-perl all 1.002-1 [6,354B]
    Get:6 http://old-releases.ubuntu.com/ubuntu/ maverick/main libio-stringy-perl all 2.110-4 [94.7kB]
    Get:7 http://old-releases.ubuntu.com/ubuntu/ maverick/universe libjs-mootools all 1.2.4.0~debian1-1 [248kB]
    Get:8 http://old-releases.ubuntu.com/ubuntu/ maverick/universe libmime-lite-perl all 3.027-1 [76.6kB]
    Get:9 http://old-releases.ubuntu.com/ubuntu/ maverick/main libmime-tools-perl all 5.427-2 [238kB]
    Get:10 http://old-releases.ubuntu.com/ubuntu/ maverick/main libmime-types-perl all 1.30-1 [33.9kB]
    Get:11 http://old-releases.ubuntu.com/ubuntu/ maverick/universe libphp-serialization-perl all 0.34-1 [11.1kB]
    Get:12 http://old-releases.ubuntu.com/ubuntu/ maverick-updates/main php5-mysql i386 5.3.3-1ubuntu9.10 [65.7kB]
    Get:13 http://old-releases.ubuntu.com/ubuntu/ maverick/universe libdevice-serialport-perl i386 1.04-2 [79.4kB]
    Get:14 http://old-releases.ubuntu.com/ubuntu/ maverick/universe zoneminder i386 1.24.2-7ubuntu1 [1,466kB]
    Fetched 2,474kB in 3s (664kB/s)     
    Selecting previously deselected package wwwconfig-common.
    (Reading database ... 339187 files and directories currently installed.)
    Unpacking wwwconfig-common (from .../wwwconfig-common_0.2.1_all.deb) ...
    Selecting previously deselected package javascript-common.
    Unpacking javascript-common (from .../javascript-common_7_all.deb) ...
    Selecting previously deselected package libarchive-zip-perl.
    Unpacking libarchive-zip-perl (from .../libarchive-zip-perl_1.30-2_all.deb) ...
    Selecting previously deselected package libconvert-binhex-perl.
    Unpacking libconvert-binhex-perl (from .../libconvert-binhex-perl_1.119+pristine-3_all.deb) ...
    Selecting previously deselected package libemail-date-format-perl.
    Unpacking libemail-date-format-perl (from .../libemail-date-format-perl_1.002-1_all.deb) ...
    Selecting previously deselected package libio-stringy-perl.
    Unpacking libio-stringy-perl (from .../libio-stringy-perl_2.110-4_all.deb) ...
    Selecting previously deselected package libjs-mootools.
    Unpacking libjs-mootools (from .../libjs-mootools_1.2.4.0~debian1-1_all.deb) ...
    Selecting previously deselected package libmime-lite-perl.
    Unpacking libmime-lite-perl (from .../libmime-lite-perl_3.027-1_all.deb) ...
    Selecting previously deselected package libmime-tools-perl.
    Unpacking libmime-tools-perl (from .../libmime-tools-perl_5.427-2_all.deb) ...
    Selecting previously deselected package libmime-types-perl.
    Unpacking libmime-types-perl (from .../libmime-types-perl_1.30-1_all.deb) ...
    Selecting previously deselected package libphp-serialization-perl.
    Unpacking libphp-serialization-perl (from .../libphp-serialization-perl_0.34-1_all.deb) ...
    Selecting previously deselected package php5-mysql.
    Unpacking php5-mysql (from .../php5-mysql_5.3.3-1ubuntu9.10_i386.deb) ...
    Selecting previously deselected package libdevice-serialport-perl.
    Unpacking libdevice-serialport-perl (from .../libdevice-serialport-perl_1.04-2_i386.deb) ...
    Selecting previously deselected package zoneminder.
    Unpacking zoneminder (from .../zoneminder_1.24.2-7ubuntu1_i386.deb) ...
    Processing triggers for man-db ...
    Processing triggers for doc-base ...
    Processing 1 added doc-base file(s)...
    Registering documents with scrollkeeper...
    Processing triggers for libapache2-mod-php5 ...
     * Reloading web server config apache2                                   [ OK ]
    Processing triggers for ureadahead ...
    ureadahead will be reprofiled on next reboot
    Setting up wwwconfig-common (0.2.1) ...
    Setting up javascript-common (7) ...
    Setting up libarchive-zip-perl (1.30-2) ...
    Setting up libconvert-binhex-perl (1.119+pristine-3) ...
    Setting up libemail-date-format-perl (1.002-1) ...
    Setting up libio-stringy-perl (2.110-4) ...
    Setting up libjs-mootools (1.2.4.0~debian1-1) ...
    Setting up libmime-lite-perl (3.027-1) ...
    Setting up libmime-tools-perl (5.427-2) ...
    Setting up libmime-types-perl (1.30-1) ...
    Setting up libphp-serialization-perl (0.34-1) ...
    Setting up php5-mysql (5.3.3-1ubuntu9.10) ...
    Setting up libdevice-serialport-perl (1.04-2) ...
    Setting up zoneminder (1.24.2-7ubuntu1) ...
    Starting ZoneMinder: success

    userme@AM2:~$ ln -s /etc/zm/
    apache.conf  zm.conf     
    userme@AM2:~$ ln -s /etc/zm/apache.conf /etc/apache2/
    apache2.conf     httpd.conf       mods-enabled/    sites-enabled/
    conf.d/          magic            ports.conf      
    envvars          mods-available/  sites-available/
    userme@AM2:~$ ln -s /etc/zm/apache.conf /etc/apache2/conf.d/
    charset                  localized-error-pages    security
    javascript-common.conf   other-vhosts-access-log 
    userme@AM2:~$ ln -s /etc/zm/apache.conf /etc/apache2/conf.d/^C
    userme@AM2:~$ sudo su
    root@AM2:/home/one# cd /etc/apache2/
    root@AM2:/etc/apache2# ls
    apache2.conf  envvars     magic           mods-enabled  sites-available
    conf.d        httpd.conf  mods-available  ports.conf    sites-enabled
    root@AM2:/etc/apache2# cd conf.d/
    root@AM2:/etc/apache2/conf.d# ls
    charset                 localized-error-pages    security
    javascript-common.conf  other-vhosts-access-log
    root@AM2:/etc/apache2/conf.d# cd ..
    root@AM2:/etc/apache2# mkdir conf-enabled
    root@AM2:/etc/apache2# cp /etc/zm/apache.conf /etc/apache2/conf-enabled/zoneminder.conf
    root@AM2:/etc/apache2# sudo adduser www-data video
    Adding user `www-data' to group `video' ...
    Adding user www-data to group video
    Done.
    root@AM2:/etc/apache2# sudo a2enmod cgi
    Module cgi already enabled
    root@AM2:/etc/apache2# /etc/init.d/zoneminder
    Usage: /etc/init.d/zoneminder { start | stop | restart | status }
    root@AM2:/etc/apache2# /etc/init.d/zoneminder restart
    Stopping ZoneMinder: sudo service apache2 restart
    success

    Starting ZoneMinder: success

    root@AM2:/etc/apache2# sudo service apache2 restart
     * Restarting web server apache2                                                 ... waiting                                                             [ OK ]
    root@AM2:/etc/apache2# vi
    apache2.conf     envvars          mods-available/  sites-available/
    conf.d/          httpd.conf       mods-enabled/    sites-enabled/
    conf-enabled/    magic            ports.conf      
    root@AM2:/etc/apache2# vi httpd.conf
    root@AM2:/etc/apache2# ls -al
    total 96
    drwxr-xr-x   8 root root  4096 2015-10-02 22:00 .
    drwxr-xr-x 192 root root 12288 2015-10-02 21:59 ..
    -rw-r--r--   1 root root  7994 2011-11-02 19:36 apache2.conf
    drwxr-xr-x   2 root root  4096 2015-10-02 21:53 conf.d
    drwxr-xr-x   2 root root  4096 2015-10-02 21:59 conf-enabled
    -rw-r--r--   1 root root  1169 2011-11-02 19:36 envvars
    -rw-r--r--   1 root root     0 2010-09-08 21:44 httpd.conf
    -rw-r--r--   1 root root 31063 2010-04-13 12:27 magic
    drwxr-xr-x   2 root root 12288 2012-02-20 09:30 mods-available
    drwxr-xr-x   2 root root  4096 2010-12-05 14:36 mods-enabled
    -rw-r--r--   1 root root   750 2010-04-13 12:27 ports.conf
    drwxr-xr-x   2 root root  4096 2012-08-29 12:08 sites-available
    drwxr-xr-x   2 root root  4096 2010-09-08 21:44 sites-enabled
    root@AM2:/etc/apache2# vi /var/www/
    dbinfo.txt      html            speedtest.zip  
    Desktop/        index.html-     .ssh/          
    .gnome-desktop/ index.php       test.php       
    root@AM2:/etc/apache2# vi /var/www/html
    apache2.conf     envvars          mods-available/  sites-available/
    conf.d/          httpd.conf       mods-enabled/    sites-enabled/
    conf-enabled/    magic            ports.conf      
    root@AM2:/etc/apache2# vi /var/www/
    dbinfo.txt      html            speedtest.zip  
    Desktop/        index.html-     .ssh/          
    .gnome-desktop/ index.php       test.php       
    root@AM2:/etc/apache2# vi /var/www/index.php
    root@AM2:/etc/apache2# ls
    apache2.conf  envvars     mods-available  sites-available
    conf.d        httpd.conf  mods-enabled    sites-enabled
    conf-enabled  magic       ports.conf


    root@AM2:/etc/apache2# cat conf-enabled/zoneminder.conf >> ^C
    root@AM2:/etc/apache2# vi apache2.conf
    root@AM2:/etc/apache2# cat conf-enabled/zoneminder.conf >> apache2.conf root@AM2:/etc/apache2# sudo service apache2 restar
     * Usage: /etc/init.d/apache2 {start|stop|graceful-stop|restart|reload|force-reload|start-htcacheclean|stop-htcacheclean|status}
    root@AM2:/etc/apache2# sudo service apache2 restart
     * Restarting web server apache2                                                 ... waiting                                                             [ OK ]
    root@AM2:/etc/apache2#
     


  • status: { DRDY ERR } error: { ICRC ABRT } failed command: WRITE FPDMA QUEUED MCP55 Linux Errors


    [ 2868.041375] ata1: EH in SWNCQ mode,QC:qc_active 0x40 sactive 0x40
    [ 2868.041554] ata1: SWNCQ:qc_active 0x40 defer_bits 0x0 last_issue_tag 0x6
    [ 2868.041556]   dhfis 0x40 dmafis 0x40 sdbfis 0x20
    [ 2868.041874] ata1: ATA_REG 0x41 ERR_REG 0x84
    [ 2868.042013] ata1: tag : dhfis dmafis sdbfis sactive
    [ 2868.042163] ata1: tag 0x6: 1 1 0 1 
    [ 2868.042301] ata1.00: exception Emask 0x1 SAct 0x40 SErr 0x400000 action 0x6 frozen
    [ 2868.042490] ata1.00: Ata error. fis:0x21
    [ 2868.042624] ata1: SError: { Handshk }
    [ 2868.042756] ata1.00: failed command: WRITE FPDMA QUEUED
    [ 2868.042917] ata1.00: cmd 61/b8:30:4f:0c:7c/03:00:53:00:00/40 tag 6 ncq 487424 out
    [ 2868.042918]          res 41/84:30:4f:0c:7c/84:00:53:00:00/40 Emask 0x10 (ATA bus error)
    [ 2868.043299] ata1.00: status: { DRDY ERR }
    [ 2868.043437] ata1.00: error: { ICRC ABRT }
    [ 2868.043576] ata1: hard resetting link
    [ 2868.043705] ata1: nv: skipping hardreset on occupied port
    [ 2868.508050] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    [ 2868.620254] ata1.00: configured for UDMA/133
    [ 2868.620414] ata1: EH complete


    0000:00:05.0 IDE interface: NVIDIA Corporation MCP55 SATA Controller (rev a3)
    0000:00:05.1 IDE interface: NVIDIA Corporation MCP55 SATA Controller (rev a3)
    0000:00:05.2 IDE interface: NVIDIA Corporation MCP55 SATA Controller (rev a3)
     

    Some people have reported disabling NCQ has fixed the errors .  This happens even in very recent kernels.

    To disable NCQ pass the following to your kernel boot line:

    libata.force=noncq

    It is reported on many motherboards or virtually any using the MCP55 SATA chipset.


  • bash script get directory location and path of script howto tutorial


    So the situaton is this, you depend on things being relevant to where your bash script is and to be safe you want it to be dynamic (eg. do not hard code that we switch to /abc/dir but rather detect where script.sh is located).

    scriptlocation="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

    The path is then contained the the variable "scriptlocation" so you can cd to it in your script etc....


  • initial Main Mode message received on 192.168.5.94:500 but no connection has been authorized with policy=PSK


    If you are getting this error from Pluto/IPSEC it is almost always due to a routing or NAT issue.


  • Firefox errors Unable to generate public/private key pair. (Error code: sec_error_keygen_fail)


    Your firefox is out of date if you get errors like below:

     

    Secure Connection Failed

         

         
         
         

         
           
           

             

    An error occurred during a connection to www.torproject.org.

    Unable to generate public/private key pair.

    (Error code: sec_error_keygen_fail)

           


           
           


        *   The page you are trying to view can not be shown because the authenticity of the received data could not be verified.

        *   Please contact the web site owners to inform them of this problem. Alternatively, use the command found in the help menu to report this broken site.

     


  • Centos/obfsproxy errors


    I never did get it working, it is too bad as obfsproxy should really be an option and integrated into the OpenVPN client and server or something similar:

     

    yum -y install python-pip python-devel

    No package python-pip available.
    #install the EPEL repo

    python-pip install obfsproxy

    python-pip install obfsproxy
    -bash: python-pip: command not found

    pip install obfsproxy

          File "/tmp/pip-build-6GFFBz/PyCrypto/setup.py", line 278, in run
            raise RuntimeError("autoconf error")
        RuntimeError: autoconf error

        ----------------------------------------
    Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-6GFFBz/PyCrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --record /tmp/pip-mdOoVA-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-6GFFBz/PyCrypto

    yum -y install python-crypto

        gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.6 -c twisted/test/raiser.c -o build/temp.linux-x86_64-2.6/twisted/test/raiser.o
        unable to execute gcc: No such file or directory
        error: command 'gcc' failed with exit status 1


    yum -y install gcc make

    pip install obfsproxy

    Installing collected packages: Twisted, argparse, pyptlib, pyyaml, obfsproxy
      Running setup.py install for Twisted
      Running setup.py install for pyptlib
      Running setup.py install for pyyaml
      Running setup.py install for obfsproxy
    Successfully installed Twisted-15.4.0 argparse-1.4.0 obfsproxy-0.2.13 pyptlib-0.0.6 pyyaml-3.11


     obfsproxy
    Traceback (most recent call last):
      File "/usr/bin/obfsproxy", line 5, in <module>
        from pkg_resources import load_entry_point
      File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in <module>
        working_set.require(__requires__)
      File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
        needed = self.resolve(parse_requirements(requirements))
      File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
        raise DistributionNotFound(req)
    pkg_resources.DistributionNotFound: argparse


    pip install -U setuptools

     obfsproxy      
    Traceback (most recent call last):
      File "/usr/bin/obfsproxy", line 9, in <module>
        load_entry_point('obfsproxy==0.2.13', 'console_scripts', 'obfsproxy')()
      File "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 558, in load_entry_point
        return get_distribution(dist).load_entry_point(group, name)
      File "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 2682, in load_entry_point
        return ep.load()
      File "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 2355, in load
        return self.resolve()
      File "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 2361, in resolve
        module = __import__(self.module_name, fromlist=['__name__'], level=0)
      File "/usr/lib/python2.6/site-packages/obfsproxy/pyobfsproxy.py", line 12, in <module>
        import obfsproxy.network.launch_transport as launch_transport
      File "/usr/lib/python2.6/site-packages/obfsproxy/network/launch_transport.py", line 2, in <module>
        import obfsproxy.transports.transports as transports
      File "/usr/lib/python2.6/site-packages/obfsproxy/transports/transports.py", line 4, in <module>
        import obfsproxy.transports.obfs2 as obfs2
      File "/usr/lib/python2.6/site-packages/obfsproxy/transports/obfs2.py", line 13, in <module>
        import obfsproxy.common.aes as aes
      File "/usr/lib/python2.6/site-packages/obfsproxy/common/aes.py", line 7, in <module>
        from Crypto.Util import Counter
    ImportError: cannot import name Counter
     


  • rsync backup entire system properly


    rsync -Phaz --exclude=/dev/* --exclude=/sys/* --exclude=/proc/* --exclude=/mnt/md126 / /mnt/md126


  • OpenVZ Install Guide Again / Quick Setup


    yum -y install wget

    wget -P /etc/yum.repos.d/ http://ftp.openvz.org/openvz.repo
    rpm --import http://ftp.openvz.org/RPM-GPG-Key-OpenVZ
    yum -y install vzkernel vzctl

    #enable ip_forward
    sed -i s/'net.ipv4.ip_forward = 0'/'net.ipv4.ip_forward = 1'/g /etc/sysctl.conf

    #all interfaces should not send redirects
    echo "net.ipv4.conf.default.send_redirects = 1" >> /etc/sysctl.conf
    echo "net.ipv4.conf.all.send_redirects = 0" >> /etc/sysctl.conf

    #disable SELinux
    sed -i s/'SELINUX=enabled'/'SELINUX=disabled'/g /etc/selinux/config
    echo 0 > /selinux/enforce


  • flypro EEPROM PLCC32 programmer software error "The device ID does not match, whether to continue operating"


    If you get that message it means you have inserted the adapter or device incorrectly.  In my case the adapter needed to be at the rear end of the pins and it caused this message.

    Do not ignore this message as it may appear to work but you will get errors and in reality your chip will not be erased or programmed even if it appears like it is working.


  • grub cannot install or boot from mdadm RAID 10 array


    root (hd2,1)
     Filesystem type unknown, partition type 0x83
    grub> root (hd2,2)
    root (hd2,2)
     Filesystem type is ext2fs, partition type 0x83
    grub> setup (hd2)
    setup (hd2)
     Checking if "/boot/grub/stage1" exists... no
     Checking if "/grub/stage1" exists... no


    #weird thing about grub is that the drive you enter is considered hd0
    For example when booted fully my drive was sdc and I would install grub referencing hd2,2
    But when booting from this same drive third/sdc it says it cannot find the disk or partition.
    Changing the root to:
    root (hd0,2) makes it boot interestingly enough

    The Solution

    Use a /boot partition and make it RAID 1


  • mdadm create raid10 array with only 2 drives


    mdadm --create /dev/md1 --level 10 --raid-devices=2 /dev/sdb2 /dev/sdc2 --layout=f2 --metadata=0.90

    Note that layout=f2 or layout=n2 is very important as without it you'll get a complaint like this:

    mdadm --create /dev/md0 --level 10 --raid-devices /dev/sdb1 /dev/sdc1 missing missing
    mdadm: invalid number of raid devices: /dev/sdb1

    It is basically more like a proper/hardware based RAID 1 where you see read speeds of both drives as one.

    Eg. 90MB/s drives will yield about 180-190MB/s read speeds.

     


  • Openvz Enable netadmin


    vzctl set $CTID --devnodes net/tun:rw --capability net_admin:on --save


  • Centos yum mirror problem error "[Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found""


    [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

    The above happened when for some reason all the mirrors in my cache didn't have the files (some mirrors only keep the latest version of Centos).

    I tried to block them all but that didn't help because it seemed the mirrors were all hardcoded no matter what I tried.

    Here is how to fix it and reset your mirror list in Centos

    cd /var/cache/yum/x86_64/6/

    for mirror in `find .|grep mirror`; do
     echo y|rm $mirror
     done


  • ssh session and port forward or reverse port matching or assocation howto


    Use netstat with the -anpe option.  The e option shows the inodes and I do not know if it will always work or if it was by fluke but I was dealing with dozens of SSH sessions and needed to know which session was related to which forward (the PIDs of the SSH and SSHD did not match etc...)

    Notice the "59560675" and "59560762" those are almost identical, if you find two sets that are nearly identical except for the last 3 digits they may match (in my case they need and all the other sessions seemed to be like this too, close by inode number)

    netstat  -anpe

    tcp        0      0 ::ffff:92.15.15.5:443    ::ffff:50.14.16.19:33356 ESTABLISHED 0          59560675   10198/sshd: audi
    tcp        0      0 127.0.0.1:50003             0.0.0.0:*                   LISTEN      500        59560762   11767/sshd: audi

     

    Obvously the above way is cumbersome and maybe was a fluke or won't work but it worked in my case.  I would still like to know if there is a better or proper way of tracking/mapping SSH sessions to port forwards.


  • yum how to blacklist and exclude mirrors


    vi /etc/yum/pluginconf.d/fastestmirror.conf

    exclude=.hk,.cn

    You could also use specific domains but as you can see above we are blacklisting all Hong Kong and Chinese mirrors in this example.


  • ECC Errors in action


    Message from syslogd@server at Sep 14 11:35:59 ...
     kernel:[Hardware Error]: MC4 Error (node 1): DRAM ECC error detected on the NB.

    Message from syslogd@server at Sep 14 11:35:59 ...
     kernel:[Hardware Error]: Error Status: Corrected error, no action required.

    Message from syslogd@server at Sep 14 11:35:59 ...
     kernel:[Hardware Error]: CPU:6 (10:8:0) MC4_STATUS[Over|CE|MiscV|-|AddrV|CECC]: 0xdc00400021080813

    Message from syslogd@server at Sep 14 11:35:59 ...
     kernel:[Hardware Error]: MC4_ADDR: 0x000000082b185760

    Message from syslogd@server at Sep 14 11:35:59 ...
     kernel:[Hardware Error]: cache level: L3/GEN, mem/io: MEM, mem-tx: RD, part-proc: SRC (no timeout)

    We just wish we could know what module caused it.  This may not even be an issue as sometimes incorrect timings are what cause issues like this.


  • Avocent Unable to load resource avctVideo.jar


    Avocent Unable to load resource avctVideo.jar
     

    Avocent requires port 80 and 443 to be forwarded or you will get a message like above if it's on a NAT network and you are accessing it from the outside (internet).


  • iptables port forwarding multiple ports to another IP


    iptables -t nat -A PREROUTING -p tcp -m multiport --dports 80,443,2068,8192 -j DNAT --to-destination 192.168.1.175

    Just adjust the "--dports" to the ports you need and the --to-destination to the destination IP (note it must be on the same network as the server running iptables


  • Dell CS24 NV5/NV7 Gigabyte GA-3CESL-RH Motherboard ROM Chip info


    If you remove the white label on the chip (near the CMOS battery) you will find the following details about it:

    SST 49LF080A 33-4C-NHE

    It is the PLCC32 type and can be pried and removed safely (but be very careful) with an eye glass flat head screw driver. 

    If you just have a bad flash you may be able to reprogram your original or just buy another one with the part# above and reprogram it.

    This is great news for people who have bricked their motherboard after doing a BIOS update.  You may be able to just get a programmer and reflash the ROM and reinstall or worst case just buy a new ROM chip, program and install the chip back.


  • phlash Cannot flash when memory managers ( e.g. HIMEM) are present Phoenix BIOS


    Phoenix phlash error
    Cannot flash when memory managers ( e.g. HIMEM) are present.
    press any key to exit.

    Use the "/x" option to get past the above
     


  • Weird Ubuntu Issues with NVIDIA driver/Compiz




    1.) My screensaver would take a long time to disable after hitting a key.
    2.) Usually errors like below will follow.
    3.) Compiz sometimes uses 100% or high CPU
    4.) My window controls will disable (eg. the minimize, maximize and close buttons).
    It seems like Compiz or appearance/effects disable themselves.  Re-enabling Desktop Effects under Appearance temporarily fixes it.
    5.) high load in general from things like "Migration" processes.

    [14914517.172422] NVRM: Xid (0000:01:00): 8, Channel 00000008
    [14914525.180416] NVRM: Xid (0000:01:00): 8, Channel 00000008
    [14914559.188394] NVRM: Xid (0000:01:00): 8, Channel 00000001
    [14914559.205677] NVRM: Xid (0000:01:00): 13, 0001 00000000 00009297 00001614 00000000 0000000d
    [14914574.197931] NVRM: Xid (0000:01:00): 8, Channel 00000004
    [14914602.204407] NVRM: Xid (0000:01:00): 8, Channel 00000004
    [14914784.216389] NVRM: Xid (0000:01:00): 8, Channel 00000001
    [14914815.220069] NVRM: Xid (0000:01:00): 8, Channel 00000004
    [14914875.228395] NVRM: Xid (0000:01:00): 8, Channel 00000001
    [14914883.232411] NVRM: Xid (0000:01:00): 8, Channel 00000004
    [14914891.240427] NVRM: Xid (0000:01:00): 8, Channel 00000004
    [14914899.248402] NVRM: Xid (0000:01:00): 8, Channel 00000004
    [14914907.256411] NVRM: Xid (0000:01:00): 8, Channel 00000004
    [14914916.264418] NVRM: Xid (0000:01:00): 8, Channel 00000004
    [14914924.272415] NVRM: Xid (0000:01:00): 8, Channel 00000004
    [14914932.280429] NVRM: Xid (0000:01:00): 8, Channel 00000004
    [14914941.288081] NVRM: Xid (0000:01:00): 8, Channel 00000004
    [14914949.300074] NVRM: Xid (0000:01:00): 8, Channel 00000004
    [14914957.308411] NVRM: Xid (0000:01:00): 8, Channel 00000004
    [14914966.316070] NVRM: Xid (0000:01:00): 8, Channel 00000004
    [14914974.324081] NVRM: Xid (0000:01:00): 8, Channel 00000004
    [14914982.332406] NVRM: Xid (0000:01:00): 8, Channel 00000004
     


  • HP Switch 2824 CLI Telnet Experience , Guide and Tutorial


    telnet 192.168.1.54
    -------------------------------------
    ProCurve J4903A Switch 2824
    Software revision I.10.77

    Copyright (C) 1991-2009 Hewlett-Packard Co.  All Rights Reserved.

                               RESTRICTED RIGHTS LEGEND

     Use, duplication, or disclosure by the Government is subject to restrictions
     as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and
     Computer Software clause at 52.227-7013.

             HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303

    We\\\'d like to keep you up to date about:
      * Software feature updates
      * New product announcements
      * Special events

    Please register your products now at:  www.ProCurve.com




    Press any key to continue
    -------------------------------------------

     

    Show What Port MAC Address Belongs To

    show mac 00:1F:D0:00:13:CC

     Status and Counters - Address Table - 001fd0-0013cc

      MAC Address : 001fd0-0013cc
      Located on Port : 8  

    Show All MAC Addresses By Port

    show mac all

    If no MAC is displayed it means no device is connected or the device is not active or the port on the switch may be bad or disabled.

     Status and Counters - Port Address Table - 17

      MAC Address 
      -------------
     

     Status and Counters - Port Address Table - 18

      MAC Address 
      -------------
     

     Status and Counters - Port Address Table - 19

      MAC Address 
      -------------
     

     Status and Counters - Port Address Table - 20

      MAC Address 
      -------------
     

     Status and Counters - Port Address Table - 21

      MAC Address 
      -------------
     

     Status and Counters - Port Address Table - 22

      MAC Address 
      -------------
     

     Status and Counters - Port Address Table - 23

      MAC Address 
      -------------
     

     Status and Counters - Port Address Table - 24

      MAC Address 
      -------------
     

    show specific port mac

    show mac 10

     

    show interfaces is very useful for counting traffic and also identifying network issues

    Notice Port 7 showing 203 "Errors Rx".  It was because of a bad cable and we wondered why that server had spotty connectivity.

     Status and Counters - Port Counters

                                                                Flow  Bcast
      Port  Total Bytes  Total Frames Errors Rx    Drops Rx     Ctrl  Limit
      ----- ------------ ------------ ------------ ------------ ----- ------
      1     2,356,149... 9,808,404    0            0            off   0    
      2     495,026,003  1,093,514    0            0            off   0    
      3     387,360,407  821,639      0            0            off   0    
      4     392,131,205  832,888      0            0            off   0    
      5     393,902,278  838,343      0            0            off   0    
      6     392,868,410  838,035      0            0            off   0    
      7     295,759,425  704,804      203          0            off   0    
      8     306,230,431  838,082      0            0            off   0    
      9     308,140,462  845,705      0            0            off   0    
      10    501,875,653  1,143,872    0            0            off   0    
     


  • rm how to delete a file with -- 2 leading dashes


    rm -- --filename

    Ironically if the solution is two leading dashes as shown above but this applies for other stubborn file names.


  • Linux check NIC ethernet port network card speed


    ethtool eth0
    Settings for eth0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000033 (51)
        Link detected: yes
     


  • HP XW9400 Motherboard In Desktop Issues


    Fortunately the format is EATX so an EATX case will work and the screw layout is standard.

    You will need to remove the HEX/TORX screws that are connecting the stock HP standoffs (meant to slide into an HP case).

    XW9400 Motherboard Issues
    Size: 12" x 13"
    Proprietary Power Connector
    Proprietary CPU Power Connector
    Proprietary Memory Power Connector
    Fan connectors are 4 pin so you will need some kind of adapter.

    One very nice feature is that it has 6 SATA ports and a whopping 8 SAS ports as well (which of course can be used for SATA) if you really think you can use or fit 14 drives.


    Case LED/Power/Reset Connections are not specified or mapped (can be done with trial and error)

    The biggest dilemma is which way to go?

    I could buy an HP Case but it is not clear which ones will fit (although most of the XW8 to XW9 series seem to appear the same).  No matter what you do you will need an HP Power Supply unless you can hack your own adapter (for some servers like Z800 there is such an adapter but I have not found one for this board).

    Power Supply Part#'s (not verified)

    Delta DPS1050CB 1050W HP P/N 440860-001 (SPARE) 442038-001

     

    There also seems to be a lower wattage model from the XW8400 that is supposed to work.

    Delta DPS-825AB B 800W Power Supply 405351-003

     

    Link to HP Manual:

    http://h50146.www5.hp.com/lib/doc/manual/workstation/xw9400/xw9400strg_e_c00774787.pdf


  • tar list files


    tar -ztvf flashrom.tar.gz

    the "z" is for gzip, if it is not gzip remove the z.  If it is bzip then use "j" instead of "z" etc..


  • tar do not overwrite files


    It is as simple as using the "-k" option for:

     

     -k, --keep-old-files       don't replace existing files when extracting
          --keep-newer-files     don't replace existing files that are newer than
                                 their archive copies
     

    eg.

    tar zxvfk sometar.tar.gz


  • Dell CS24-NV7 lspci dmidecode info


    0000:00:00.0 RAM memory: NVIDIA Corporation MCP55 Memory Controller (rev a2)
    0000:00:01.0 ISA bridge: NVIDIA Corporation MCP55 LPC Bridge (rev a3)
    0000:00:01.1 SMBus: NVIDIA Corporation MCP55 SMBus (rev a3)
    0000:00:02.0 USB controller: NVIDIA Corporation MCP55 USB Controller (rev a1)
    0000:00:02.1 USB controller: NVIDIA Corporation MCP55 USB Controller (rev a2)
    0000:00:05.0 IDE interface: NVIDIA Corporation MCP55 SATA Controller (rev a3)
    0000:00:05.1 IDE interface: NVIDIA Corporation MCP55 SATA Controller (rev a3)
    0000:00:05.2 IDE interface: NVIDIA Corporation MCP55 SATA Controller (rev a3)
    0000:00:06.0 PCI bridge: NVIDIA Corporation MCP55 PCI bridge (rev a2)
    0000:00:08.0 Bridge: NVIDIA Corporation MCP55 Ethernet (rev a3)
    0000:00:09.0 Bridge: NVIDIA Corporation MCP55 Ethernet (rev a3)
    0000:00:0f.0 PCI bridge: NVIDIA Corporation MCP55 PCI Express bridge (rev a3)
    0000:00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
    0000:00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map
    0000:00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
    0000:00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control
    0000:00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control
    0000:00:19.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
    0000:00:19.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map
    0000:00:19.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
    0000:00:19.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control
    0000:00:19.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control
    0000:01:03.0 VGA compatible controller: XGI Technology Inc. (eXtreme Graphics Innovation) Z9s/Z9m (XG21 core)

     

     

    BIOS Information
            Vendor: Phoenix Technologies Ltd.
            Version: 1.89a
            Release Date: 06/21/2010
            Address: 0xE3040
            Runtime Size: 118720 bytes
            ROM Size: 1024 kB
            Characteristics:
                    PCI is supported
                    PNP is supported
                    BIOS is upgradeable
                    BIOS shadowing is allowed
                    ESCD support is available
                    Boot from CD is supported
                    Selectable boot is supported
                    EDD is supported
                    5.25"/360 KB floppy services are supported (int 13h)
                    5.25"/1.2 MB floppy services are supported (int 13h)
                    3.5"/720 KB floppy services are supported (int 13h)
                    3.5"/2.88 MB floppy services are supported (int 13h)
                    Print screen service is supported (int 5h)
                    8042 keyboard services are supported (int 9h)
                    Serial services are supported (int 14h)
                    Printer services are supported (int 17h)
                    CGA/mono video services are supported (int 10h)
                    ACPI is supported
                    USB legacy is supported
                    Targeted content distribution is supported

    Handle 0x0001, DMI type 1, 27 bytes
    System Information
            Manufacturer: Dell
            Product Name: DCS CS24-NV7
            Version: Revision A0
            Serial Number: JRSRB
            UUID: D853A049-F06C-0000-0000-000000000000
            Wake-up Type: Power Switch
            SKU Number: Not Specified
            Family: Not Specified

    Handle 0x0002, DMI type 2, 8 bytes
    Base Board Information
            Manufacturer: Dell
            Product Name: 3CESL1
            Version: A00
            Serial Number: CN0408P9744

    Handle 0x0003, DMI type 3, 13 bytes
    Chassis Information
            Manufacturer: Dell
            Type: Rack Mount Chassis
            Lock: Not Present
            Version: Not Specified
            Serial Number: JRSRB
     


  • Debian sources.list examples


    Based on this from Debian
    
    

    The 'distribution' can be either the release code name / alias (wheezy, jessie, stretch, sid) or the release class (oldstable, stable, testing, unstable) respectively. If you mean to be tracking a release class then use the class name, if you want to track a Debian point release, use the code name.

    For example, if you have a system running Debian 8.1 "jessie" and don't want to upgrade when Debian stretch releases, use 'jessie' instead of 'stable' for the distribution. If you always want to help test the testing release, use 'testing'. If you are tracking stretch and want to stay with it from testing to end of life, use 'stretch'.

    
    
    deb http://httpredir.debian.org/debian jessie main deb-src http://httpredir.debian.org/debian jessie main  deb http://httpredir.debian.org/debian jessie-updates main deb-src http://httpredir.debian.org/debian jessie-updates main  deb http://security.debian.org/ jessie/updates main deb-src http://security.debian.org/ jessie/updates main

  • bash check size of file using stat


    stat -c %s testfile.zip
    10000000

    The output is shown above in bytes.
     


  • Dell CS24,FS12 NV5 and NV7 1U Server Information & Parts


     

    Motherboard: Gigabyte GA-3CESL: http://b2b.gigabyte.com/products/product-page.aspx?pid=2658#dl

    Dell Part Numbers for the motherboard:  R1232 R1232L R2232S SERVER MOTHERBOARD GENUINE 408P9 CN-0408P9

    GA-3CESL Manual Download here

    RAM Slots: 16 (8 controlled by each CPU)

    RAM Type: DDR2 ECC 5300P

    CPU Slots: 2 Socket F/1207

    HDD Tray Type: 4x3.5" SATA Hotswap (generally any CS24 drive trays will fit and work even if they look different because the chassis is basically identical through all the series).

    SATA Backplane: GC-BS14-E1-RH

    or GC-BS14-E2-RH

    GC-BS14-E3-RH

    8g4p63

    *The above seem to be wrong the part# of universal to other parts on this server.

    The backplane seems impossible to remove and is held in by 1 screw on the far right but there are some kind of standoffs that seem to lock it in even when trying to push the board off it (to the left).

    Power Supply: 500W A/C Bell FS7015


  • bash script check if string contains text


    if [[ $variable = *windows* ]]; then

    echo "Our variable has windows"

    fi

     

     


  • sed linux bash how to remove non-ASCII english characters


    sed -i 's/[d128-d255]//g' file.txt

  • Linux CLI command to rip audio CD and encode convert to MP3s


    This command rips the audio tracks to .wav files

    *I recommend making a new directory with the name of the audio disc first and executing everything from within that directory below.

    cdparanoia -B

    Use the lame mp3 encoder to encode each one with this script:

    *Note that this will encode any other files ending in "cdda.wav"

    for track in `ls *cdda.wav`; do lame -b 192 $track; done


  • bash string substitution


    so in this case we have files named like this: 

    track01.cdda.wav.mp3  track06.cdda.wav.mp3  track11.cdda.wav.mp3
    track02.cdda.wav.mp3  track07.cdda.wav.mp3  track12.cdda.wav.mp3
    track03.cdda.wav.mp3  track08.cdda.wav.mp3  track13.cdda.wav.mp3
    track04.cdda.wav.mp3  track09.cdda.wav.mp3
    track05.cdda.wav.mp3  track10.cdda.wav.mp3

    but we want to rename them so they are like "05.mp3"

    #the first "track" is actually a variable name but does not need $ because it is already referenced by the ${track
    for track in `ls *.mp3`; do name=${track/track/}; name=${name/.cdda.wav/}; mv $track $name; done

    The main part of the code above is the following:

    name=${track/track/}

    name=${name/.cdda.wav/}

    ${track is the name of the variable that has the string you want to substitute

    /track/ means search for the string "track" in that variable and replace with nothing.

    If we had wanted to change it to something else:

    name=${track/track/somethingelse}
     


  • sed print specific line number


    sed is the easiest way and you just specifiy the line number with the "-n #p" file.txt

    So for example below 2p means print the second line of names.txt

    sed -n 2p  names.txt

    What Are you Looking At, Mr. Bear?


  • Unable to configure RSA server private key SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch


    [Tue Jun 23 02:05:52 2015] [error] Unable to configure RSA server private key
    [Tue Jun 23 02:05:52 2015] [error] SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch

    The above is an accurate description of what is wrong.

    In our case the client made a simple mistake of thinking the localhost.crt and localhost.key (default key locations for Apache SSL in Centos) were in the same directory but they were not.  This meant that the .crt and .key did not match and this will never work for those who know how PKI (Public Key Infrastructure) works.  It is like using the wrong key that does not match the door, it will never work.

    So the solution is to Verify the stated paths and locations of the key and certificate (make sure it is what you expect and where the files really are.


  • Error code: ssl_error_rx_record_too_long



    An error occurred during a connection to site.com. SSL received a record that exceeded the maximum permissible length. (Error code: ssl_error_rx_record_too_long)

        The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
        Please contact the website owners to inform them of this problem.

    When the above happens in our experience it is a misconfiguration of your web server, in our case usually it would be Apache and the port you are connecting to is meant for non-SSL. 


  • Centos OpenDKIM & Postfix Setup Guidel


    #from epel repo
    yum -y install opendkim

    chkconfig opendkim on

    cd /etc/opendkim/keys

    opendkim-genkey -vd mail.server.com

    opendkim-genkey: generating private key
    opendkim-genkey: private key written to default.private
    opendkim-genkey: extracting public key
    opendkim-genkey: DNS TXT record written to default.txt

     


  • The redirect URI in the request: urn:ietf:wg:oauth:2.0:oob can only be used by a Client ID for native application. It is not allowed for the 'WEB' client type.


    You need to set your application type as "Desktop" even though this would sound counterintuitive.


  • dir2slideshow Centos rpm requirements


    yum -y install dvdauthor ffmpeg mjpegtools sox bc

     

    rpm -ivh dvd-slideshow-0.8.4-2.noarch.rpm
    Preparing...                ########################################### [100%]
       1:dvd-slideshow          ########################################### [100%]

    /usr/bin/dir2slideshow: line 553: bc: command not found
    [dir2slideshow] WARNING: No slideshow name specified using -n <name>
    [dir2slideshow] Using slideshow name= prep
    [dir2slideshow] Input directory = prep
    [dir2slideshow] Slideshow name = prep
    [dir2slideshow] Output file = ./prep.txt
    [dir2slideshow] subtitle=
    [dir2slideshow] subtitle2=
    [dir2slideshow] background=
    [dir2slideshow] title_background=
    [dir2slideshow] title=1
    [dir2slideshow] kenburns=0
    [dir2slideshow] pal=0
    [dir2slideshow] output_dir=.
    [dir2slideshow] slide_duration=5
    [dir2slideshow] sortmethod=name
    [dir2slideshow] crossfade=0
    [dir2slideshow] wipe=0
    [dir2slideshow] title_type=title
    [dir2slideshow] themefile=
    [dir2slideshow] audio_list=
    /usr/bin/dir2slideshow: line 661: bc: command not found
    [dir2slideshow] Total pictures found = 3
    [dir2slideshow] Total audio files found = 0
    [dir2slideshow] Total video files found = 0
    /usr/bin/dir2slideshow: line 674: [: : integer expression expected
    [dir2slideshow] Sorting pictures...
    #########################################
     


  • bash script delete all non-English characters


    #remove non english characters from file:
    sed -i 's/[d128-d255]//g' file.txt


  • Lost connection to MySQL server during query [2013]


    This happened while trying to delete several thousand users from phpBB and basically corrupted the innoDB tables.

    InnoDB: Page lsn 3 881164362, low 4 bytes of lsn at page end 881164362
    InnoDB: Page number (if stored to page already) 86920,
    InnoDB: space id (if created with >= MySQL-4.1.1 and stored already) 0
    InnoDB: Page may be an index page where index id is 700
    InnoDB: (index "tid_post_time" of table "phpBBdb2005"."phpbb3_posts")
    InnoDB: Database page corruption on disk or a failed
    InnoDB: file read of page 86920.
    InnoDB: You may have to recover from a backup.
    InnoDB: It is also possible that your operating
    InnoDB: system has corrupted its own file cache
    InnoDB: and rebooting your computer removes the
    InnoDB: error.

    Got error -1 from storage engine [1030]


    InnoDB: A new raw disk partition was initialized or
    InnoDB: innodb_force_recovery is on: we do not allow
    InnoDB: database modifications by the user. Shut down
    InnoDB: mysqld and edit my.cnf so that newraw is replaced
    InnoDB: with raw, and innodb_force_... is removed.
    InnoDB: A new raw disk partition was initialized or
    InnoDB: innodb_force_recovery is on: we do not allow
    InnoDB: database modifications by the user. Shut down
    InnoDB: mysqld and edit my.cnf so that newraw is replaced
    InnoDB: with raw, and innodb_force_... is removed.

    Solution

    edit #/etc/my.cnf and disable force innodb recovery

    innodb_force_recovery = 1
     


  • No package fuse-encfs available. yum


    It looks like newer versions of Centos no longer have encfs so you have to compile it, only it does not work and fails so those wanting encfs should probably use any other OS which supports it better.


  • Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again


    Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

    You have to upgrade the ca-certs for epel but need to disable it before that can happen.

    yum upgrade ca-certificates --disablerepo=epel


  • No response from subprocess (whostmgr (whostmgr)): The subprocess exited with status 12 (ENOMEM).


    No response from subprocess (whostmgr (whostmgr)): The subprocess exited with status 12 (ENOMEM).

    This happened on a client's VPS which ran out of memory.


  • ResourceManager[31705]: CRIT: Resource STOP failure. Reboot required!


    ResourceManager[31705]: CRIT: Resource STOP failure. Reboot required!

    This happened on a cluster I am running with heartbeat for no particular reason that I can figure out.

    The box ended up rebooting itself for some reason.  It was not a big deal in the sense that the other servers in the cluster kept running but it would be nice to find the cause of this.


  • htaccess modrewrite query string to another URL howto


    This example is based on Wordpress but applies to any other query string eg.

    http://wordpress.com/?p=55

    If you want to manually redirect that p=55 to /some/other/url how do you do it?

    RewriteCond %{QUERY_STRING} p=55 [NC]
    RewriteRule .* /new-url/? [R=301,L]

    You can change the p=55 to whatever your query string looks like.

    Remember to keep the "?" at the end of the new URL unless you really want the query string to stay alive, but this will cause problems for many websites including and especially Wordpress.


  • bash script how to do wildcard string comparisons or matching


    This is a feature that works very well in bash and is easy to do:

    *Remember you need the double brackets for this specific test even though a normal if would not require them

    variable="hi there"

    if [[ "$variable" = hi* ]]; then

    echo "yes it contains hi"

    fi


  • bash script test if directory exists


    It's very simple test to see if the directory exists or not.  See the directory test in bash below:

    if [ -d /home/mydir ]; then

    echo "my directory exists"

    fi


  • bash script check if file exists


    It is very simple and like this to test for the existence of file using bash scripting:

    if [ -f /etc/somefile ]; then

    echo "yes it exists"

    fi


  • bash script linux how to do a wildcard string comparison


    if [[ "$templatesource" == *windows* ]]; then
     partition=/dev/sda2
    fi

     

    The * before and after * windows will match this "Ihavelotsofwindowshere"

    Of we could have used "windows*" and anything that starts with "windows" will be matched etc...


  • Windows 2012 Server R2 Install Error "windows cannot find the microsoft license terms windows 2012 server install"


    windows cannot find the microsoft license terms windows 2012 server install

    This is actually because you are using less than 576MB of RAM.  In my case I was installing on a KVM VPS with 512MB of RAM.  This issue would apply to any physical or virtual server with less than 576MB of RAM.  This includes Virtualized VPS Servers with XEN HVM, KVM, VBOX, VMWare etc.. or Dedicated Servers with such little RAM.

    It's very misleading of course since it has nothing to do with license terms.

    The Solution

    Add enough RAM, your server needs at least 576MB of RAM to continue the install without the above error.


  • cPanel how to force reinstall rpms and fix packages and other problems caused by updates or duplicate rpms


    <p>If a service is not working and resetting it to defaults is not working and you get bizarre error messages it is probably a broken update and possibly duplicate package.</p> <p>Take in this case &quot;exim&quot; not working even after resetting to defaults.</p> <p><strong>Check for duplicates:</strong><code><br /> </code></p> <p><code>rpm -aq|grep exim<br /> </code></p> <p><code>exim-4.82-5.cp1136 exim-4.82-4.cp1136 </code></p> <p><strong>Remove the duplicates</strong><code><br /> </code><code>rpm -e --nodeps --justdb exim-4.82-5.cp1136 <br /> rpm -e --nodeps --justdb exim-4.82-4.cp1136 </code></p> <pre wrap=""><strong>Force cPanel to reinstall exim (it will find exim is now missing and reinstall it):</strong> </pre> <pre wrap=""><code>/scripts/check_cpanel_rpms --fix</code> </pre> <pre wrap=""><strong>Autofixer/duplicate remover</strong> (not recommended unless all else fails) </pre> <pre wrap=""><code>/scripts/autorepair fix_duplicate_cpanel_rpms</code></pre>
  • kvm how to add secondary cdrom drive


    This is useful if you are installing Windows and need virtio but of course Windows needs the virtio driver which is on a second iso.

    This is the line of code you would add to your kvm startup script and then you get this iso as  second cdrom you can browse to for your Windows install of virtio driver's or whatever other use you need it for.

    -drive file=/kvmtemplates/virtio-win-0.1-94.iso,media=cdrom


  • Dell CS24SC Server Info


    Dell CS24SC Info
    0000:00:00.0 Host bridge: Intel Corporation 5100 Chipset Memory Controller Hub (rev 90)
    0000:00:02.0 PCI bridge: Intel Corporation 5100 Chipset PCI Express x8 Port 2-3 (rev 90)
    0000:00:03.0 PCI bridge: Intel Corporation 5100 Chipset PCI Express x4 Port 3 (rev 90)
    0000:00:04.0 PCI bridge: Intel Corporation 5100 Chipset PCI Express x16 Port 4-7 (rev 90)
    0000:00:05.0 PCI bridge: Intel Corporation 5100 Chipset PCI Express x4 Port 5 (rev 90)
    0000:00:06.0 PCI bridge: Intel Corporation 5100 Chipset PCI Express x4 Port 6 (rev 90)
    0000:00:07.0 PCI bridge: Intel Corporation 5100 Chipset PCI Express x4 Port 7 (rev 90)
    0000:00:10.0 Host bridge: Intel Corporation 5100 Chipset FSB Registers (rev 90)
    0000:00:10.1 Host bridge: Intel Corporation 5100 Chipset FSB Registers (rev 90)
    0000:00:10.2 Host bridge: Intel Corporation 5100 Chipset FSB Registers (rev 90)
    0000:00:11.0 Host bridge: Intel Corporation 5100 Chipset Reserved Registers (rev 90)
    0000:00:13.0 Host bridge: Intel Corporation 5100 Chipset Reserved Registers (rev 90)
    0000:00:15.0 Host bridge: Intel Corporation 5100 Chipset DDR Channel 0 Registers (rev 90)
    0000:00:16.0 Host bridge: Intel Corporation 5100 Chipset DDR Channel 1 Registers (rev 90)
    0000:00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)
    0000:00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
    0000:00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
    0000:00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
    0000:00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 02)
    0000:00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
    0000:00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
    0000:00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
    0000:00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
    0000:00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
    0000:00:1f.0 ISA bridge: Intel Corporation 82801IR (ICH9R) LPC Interface Controller (rev 02)
    0000:00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA Controller [IDE mode] (rev 02)
    0000:00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 02)
    0000:07:00.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1064ET PCI-Express Fusion-MPT SAS (rev 02)
    0000:08:00.0 Ethernet controller: Intel Corporation 82573V Gigabit Ethernet Controller (Copper) (rev 03)
    0000:09:03.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family

     


  • Dell CS10-F1D Server Info lspci Linux specs




    0000:00:00.0 Host bridge: Intel Corporation 5000P Chipset Memory Controller Hub (rev b1)
    0000:00:02.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8 Port 2-3 (rev b1)
    0000:00:03.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 3 (rev b1)
    0000:00:04.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8 Port 4-5 (rev b1)
    0000:00:05.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 5 (rev b1)
    0000:00:06.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8 Port 6-7 (rev b1)
    0000:00:07.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 7 (rev b1)
    0000:00:10.0 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev b1)
    0000:00:10.1 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev b1)
    0000:00:10.2 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev b1)
    0000:00:11.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev b1)
    0000:00:13.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev b1)
    0000:00:15.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev b1)
    0000:00:16.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev b1)
    0000:00:1d.0 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #1 (rev 09)
    0000:00:1d.1 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #2 (rev 09)
    0000:00:1d.2 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #3 (rev 09)
    0000:00:1d.3 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #4 (rev 09)
    0000:00:1d.7 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset EHCI USB2 Controller (rev 09)
    0000:00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d9)
    0000:00:1f.0 ISA bridge: Intel Corporation 631xESB/632xESB/3100 Chipset LPC Interface Controller (rev 09)
    0000:00:1f.1 IDE interface: Intel Corporation 631xESB/632xESB IDE Controller (rev 09)
    0000:00:1f.2 IDE interface: Intel Corporation 631xESB/632xESB/3100 Chipset SATA IDE Controller (rev 09)
    0000:00:1f.3 SMBus: Intel Corporation 631xESB/632xESB/3100 Chipset SMBus Controller (rev 09)
    0000:01:0b.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family
    0000:07:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Upstream Port (rev 01)
    0000:07:00.3 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express to PCI-X Bridge (rev 01)
    0000:08:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E1 (rev 01)
    0000:08:01.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E2 (rev 01)
    0000:08:02.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E3 (rev 01)
    0000:09:00.0 Ethernet controller: Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper) (rev 01)
    0000:09:00.1 Ethernet controller: Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper) (rev 01)
    0000:0a:00.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1064ET PCI-Express Fusion-MPT SAS (rev 02)
     


  • Linux Kernel EDAC errors EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))


    I'm not sure why I'm getting these but all memory modules are the exact same and all passed memtest successfully although they are ECC.  I've heard that ECC RAM can't be tested as well and the kernel seems to indicate they are non-fatl recoverable errors.  I wonder if the BIOS has aggressive RAM timing or maybe the controller or motherboard is bad.

     

    [   12.716515] EDAC MC: Ver: 2.1.0
    [   12.717771] EDAC MC0: Giving out device to 'i5400_edac.c' 'I5400': DEV 0000:00:10.0
    [   12.718204] EDAC PCI0: Giving out device to module 'i5400_edac' controller 'EDAC PCI controller': DEV '0000:00:10.0' (POLLED)
    [   13.716030] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   14.716018] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   15.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   31.716018] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   32.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   42.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   43.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   44.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   45.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   46.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   47.716018] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   48.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   49.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   54.716019] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   59.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   60.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   61.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   63.716019] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   64.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   65.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   66.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   67.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   69.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   70.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   71.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   72.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   73.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   76.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   77.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   78.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   79.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   80.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   83.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   84.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   85.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   86.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   87.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   88.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   90.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   91.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [   99.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  100.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  101.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  102.716018] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  103.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  104.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  105.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  106.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  107.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  108.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  123.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  142.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  143.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  149.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  151.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  152.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  153.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  156.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  157.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  161.716020] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  162.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  163.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  164.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  165.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  166.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  167.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  171.716018] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  172.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  174.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  181.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  183.716019] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  184.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  186.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  187.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  188.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  189.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  190.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  191.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  192.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  193.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  194.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  211.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  212.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  241.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  242.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  244.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  245.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  246.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  247.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  248.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  249.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  250.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  252.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  253.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  254.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  255.716020] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  256.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  257.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  258.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  259.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  260.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  268.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  269.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  270.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  271.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  272.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  298.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  299.716017] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  301.716019] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  304.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  305.716017] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  306.716018] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  307.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  313.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  314.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  322.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  331.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  332.716017] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  362.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  377.716019] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  378.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  381.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  382.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  383.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  384.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  391.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  435.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  436.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  437.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  438.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  439.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  443.716017] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  444.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  445.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  446.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  447.716019] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  448.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  449.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  450.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  451.716018] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  452.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  453.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  454.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  455.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  456.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  457.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  488.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  489.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  490.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  493.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  494.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  495.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  501.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  511.716017] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  557.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  571.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  572.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  574.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  575.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  579.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  631.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  635.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  652.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  663.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  664.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  674.716019] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  675.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  676.716012] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  691.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  751.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  752.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  753.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  798.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  800.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  811.716016] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  813.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  848.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  849.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  858.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  864.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  871.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  874.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  883.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  884.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  888.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  889.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  893.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  904.716013] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  924.716014] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  926.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))
    [  927.716015] EDAC MC0: UE row 0, channel-a= 0 channel-b= 1 labels "-": NON-FATAL recoverable (Branch=0 DRAM-Bank=0 Buffer ID = 0 RDWR=Read RAS=0 CAS=0 NON-FATAL recoverable Err=0x800 (Non-Aliased Uncorrectable Patrol Data ECC))


  • Linux disable firmware prevents NIC/Ethernet from working phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.


    [   17.208336] tg3 0000:08:00.0: eth0: Link is up at 1000 Mbps, full duplex
    [   17.210194] tg3 0000:08:00.0: eth0: Flow control is on for TX and on for RX
    [   76.000065] phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.
    [   76.002332] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [   86.736004] eth0: no IPv6 routers present
    [  148.960038] phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.
    [  254.748035] phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.

    I can into a server that for some reason was running a kernel that wanted to load non-existent firmware files onto it before it would actually let it work.

    The only work around solution I could find was the following:

    echo 1 > /sys/class/firmware/timeout

    That option just let's the device work as normal even if it can't load the firmware for any reason (which I think should be the default especially for critical device drivers like the NIC).


  • VPN Account Buyers Guide and General Info


    <p><strong>What does VPN stand for?</strong></p> <p>VPN stands for Virtual Private Network and is a secure way of connecting networks and devices.</p> <p>In the context we're talking about it will usually be a client-server solution and not connecting whole networks or businesses.</p> <p>The assumption is that most people reading this are trying to secure their internet connection, privacy and hide or change their IP&nbsp;address.</p> <p><strong>Why use a VPN?</strong></p> <p>There are many reasons especially now that the average person realizes there is no internet privacy (there never was) with the PRISM and other systems around the world collecting and intercepting all communications.</p> <p>A VPN&nbsp;makes it much harder for them to spy on you and is a legitimate and legal way of protecting yourself for many valid reasons.</p> <p>A VPN protects your identity, communications and also anonymizes you while changing and hiding your IP&nbsp;address.</p> <p><strong>What types of VPNs are there?</strong></p> <p>The most common ones are L2TP, PPTP&nbsp;and OpenVPN.</p> <p>Most providers and people use OpenVPN and/or PPTP and some offer L2TP&nbsp;though it tends to be more unreliable in our experience.&nbsp; It is wise to have access to both because sometimes one works better than another and sometimes one is blocked (VPN&nbsp;can be blocked easily from most routers and is sometimes blocked by default so you may have trouble even if you're in a country that isn't known to block it).</p> <p><strong>How can I&nbsp;get a VPN?</strong></p> <p>There are literally dozens of companies if not more out there but we will try and cover, compare and review the top ones.</p> <p><strong>What should I&nbsp;look for in a VPN provider?</strong></p> <p>Since they become your ISP when connecting to them you want to make sure they are trustworthy, have a reliable network and server setup and are a established provider.&nbsp; For this reason we don't recommend &quot;free or cheap VPNs&quot; and some have surmised that the free ones may be honeypots for government agencies or are being used for other nefarious purposes to spy on people.</p> <p><strong>Privacy Guarantee &amp; Server Logs</strong></p> <p>Why should you care about privacy even when you're not doing anything wrong (eg. maybe just watching Hulu or going to Facebook)?&nbsp; Because a situation could arise where you are accidentally identified for someone else's behvaior or perhaps you posted on a sensitive topic or something politcally unpopular.&nbsp; Think of it as insurance or like saying &quot;why should I&nbsp;get insurance on my house or car unless I'm careless?&quot;. &nbsp;</p> <p>Most companies <strong>DO&nbsp;NOT</strong> have any privacy guarantee or state how they will protect you if a government or law enforcement agency asks to reveal your identity. &nbsp; In fact many like HMA (Hide My Ass) have had scandals for freely and without any process or even challenge, have turned over customer information so it's important to be aware of the history and policy in effect.</p> <p>Now it may be hard to identify you specifically because of how many people use a certain server which is good.&nbsp; But in some cases you may be identifiable by your provider and the question becomes what does the provider do?&nbsp;&nbsp; Do they simply turn over your information without proof of wrongdoing</p> <p>Most companies don't keep server logs for long and should declare this or you can ask them.</p> <h3><strong>VPN Provider Comparison</strong></h3> <p><strong>Privacy</strong> means the provider will not release your details without a court order but will not fight it or notify you.</p> <p><strong>Extreme Privacy</strong> means the provider will not release your details and will notify you and attempt to fight any court-order to release your details.&nbsp;</p> <p>We've ommitted unnecessary comparisons that others use such as platform since virtually all providers support every OS by the nature of the VPN.&nbsp; We're focusing on factors that show the company is long-term (not a fly-by-night) and not a free or cheap provider without any privacy protection.</p> <table width="463" height="207" cellspacing="10" cellpadding="1" border="1" style="border-style:solid;border-width:1px"> <tbody> <tr> <td>Name</td> <td>Years in Business</td> <td>Privacy</td> <td><strong>Extreme Privacy</strong></td> <td>Bandwidth Limit</td> <td>Network Speed</td> <td>Bandwidth Limit</td> </tr> <tr> <td>&nbsp;<a href="http://provpnaccounts.com">Pro VPN Accounts</a></td> <td>5</td> <td>Y</td> <td><strong>&nbsp;Y</strong></td> <td>No</td> <td>1000M</td> <td>Unlimited</td> </tr> <tr> <td>&nbsp;<a href="http://goldenfrog.com">VyprVPN</a></td> <td>4</td> <td>Y</td> <td>N</td> <td>N</td> <td>Unknown</td> <td>Unlimited</td> </tr> <tr> <td><a href="http://strongvpn.com">StrongVPN</a></td> <td>8</td> <td>Y</td> <td>N</td> <td>N</td> <td>Unknown</td> <td>Unlimited</td> </tr> <tr> <td><a href="http://hidemyass.com">HMA HideMyAss</a></td> <td>5</td> <td>N</td> <td>N</td> <td>N</td> <td>Unknown</td> <td>Unlimited</td> </tr> <tr> <td><a href="http://earthvpn.com">EarthVPN</a></td> <td>1</td> <td>Y</td> <td><strong>Y</strong></td> <td>N</td> <td>Unknown</td> <td>Unlimited</td> </tr> <tr> <td><a href="http://expressvpn.com">Express VPN</a></td> <td>3</td> <td>N</td> <td>N</td> <td>Unknown</td> <td>Unknown</td> <td>Unknown</td> </tr> <tr> <td><a href="http://hotspotshield.com">Hotspot Shield</a></td> <td>8</td> <td>N</td> <td>N</td> <td>Unknown</td> <td>Unknown</td> <td>Unknown</td> </tr> <tr> <td><a href="http://privateinternetaccess.com">Private Internet Access</a></td> <td>4</td> <td>Y</td> <td>N</td> <td>N</td> <td>Unknown</td> <td>Unlimited</td> </tr> <tr> <td><a href="http://safervpn.com">SaferVPN</a></td> <td>2</td> <td>N</td> <td>N</td> <td>No</td> <td>Unknown</td> <td>Unlimited</td> </tr> <tr> <td><a href="http://ipvanish.com">IPVanish</a></td> <td>3</td> <td>N</td> <td>N</td> <td>Unknown</td> <td>Unknown</td> <td>Unknown</td> </tr> </tbody> </table> <p>&nbsp;</p>
  • KVM/QEMU how to boot from direct kernel vmlinuz and initrd with networking


    Thsi is very handy when doing your own kernel development.

    -m specifies how much ram (in the example it is 768MB)

    -kernel specifies the path to the kernel file

    -net tap,ifname=tap1,script=no (the ifname=tap1 is what you need to change and setup manually).

    *Run "tunctl -b" to create a tap device and use the one it gives you for ifname=

    Enable networking to the outside like this:

    *Note we assume that your bridge is br0 in this example (you need to setup as a bridge for KVM to have direct network access)

    tap=`tap -b`; brctl addif br0 $tap; ifconfig $tap up; /usr/libexec/qemu-kvm -m 768 -kernel /tftpboot/images/kernelfs-3.2.55 -net nic -net tap,ifname=$tap,script=no append "initrd=/initrd/location"

     


  • Flash slowing down your Firefox browser? Install Flashblock plugin


    Install the "Flashblock" plugin because we all know most unwanted high CPU usage situations come from the browser usually because of a looping Flash ad taking up 100% CPU.

    The solution is to install the "Flashblock" plugin that doesn't allow any Flash to load and play unless you click on the placeholder.


  • Centos scp or sftp program missing solution/what rpm provides them


    You need the "openssh-clients" package which contains sftp and scp.


    yum -y install openssh-clients