Category: Tips

  • Can’t initialize disk (cyclic redundancy check)

    I recently added an old 1TB disk in a tray of my PC and was prompted by Windows to initialize it. Proceeding with this initialization, I got an error message: Can’t initialize disk (cyclic redundancy check). The problem was that, in the past, this disk was part of a RAID array.

    Click to Read More

    The problem was not solved by using GPT versus MBR, or by installing HDSentinel, or using third party tools such as HDDScan, SeaTools, …

    I did first open the “Computer Management” interface ( :win: + E > This PC > Manage) and went into the “Disk Management” pane. But couldn’t initialize the disk from there either, nor do anything else on it.

    I did next start my SATA Controller management software: Intel Rapid Storage Technology. Once in there, I saw that the disk was recognized as the only available member of a Raid Array. I remember that it was indeed used in a physical RAID 1 array a long time ago. I should have guess it as the Disk Management interface was pretending that the disk was 2TB (recognized as an RAID 1 array of 2x 1TB) although it was a 1TB…

    So, I simply deleted that array (still via Intel RST) and was finally able to initialize the disk.

    Et voilà.

    Loading

  • Convert CodePlex’s HTML Markup into GitHub’s Markdown

    As you probably know if using CodePlex, it will shutdown by the end of 2017. The option suggested by CodePlex is to move to GitHub.

    Click to Read More

    The move is facilitated by an automated “import” procedure. But HTML pages created on CodePlex are not automatically converted into Markdow.

    This can fortunately be done using Pandoc.
    For demo purpose, pick From = “HTML” and To = “Markdown (GitHub)”.

    Loading

  • ‘Add Mirror…’ option is grayed out in Windows’ Disk Management

    How to ‘Add Mirror’ on a disk containing data when the option is grayed-out although you have another very similar disk available and empty? Check that your two disks are “Dynamic” and shrink the volume on the disk with data!

    Click to Read More

    I had a 2 TB disk with a unique volume (on one single partition), containing data.

    I did add a new 2 TB disk to be used as a mirror of the existing one. I went into the Disk Management tool to “add Mirror” but found that this option was not available. The menu was disabled:

    Add Mirror Grayed Out
    Add Mirror Grayed Out

    First thing to check: the two disks to be used must be “Dynamic”. Right-click on “Disk x” to “Convert to Dynamic Disk …”.

    Next, to be able to create a mirror, the system needs some free space to create its own reserved partition on the disk. So, right-click on the Volume of the disk with data to “Shrink Volume…” (Try first with 1 Mb). Once the disk has been shrunk, the menu “Add Mirror…” becomes accessible.

    Add Mirror Enabled
    Add Mirror Enabled

    Et voilà.

    NB.:

    • It does not matter if the disks are MBR or GPT.
    • Once the volume shrunk, you will possibly have to reboot.
    • If you encounter an issue while adding a mirror, do a “Check Disk” (Properties > Tools > Check).
    • If you can really not get rid of the error “DiskPart has referenced an object which is not up-to-date.” although rebooting, do an “Extend Volume” of 1 MB! (Sound silly, I know…) and then “Add Mirror”.
    • In my case, while the disks were re-syncing, I did remove the mirror, did an “Extend Volume” to reuse the whole free space, and was still able to do an “Add Mirror”.
    • MS Partition & Volume Info here.

    Mirror using DiskPart

    • Run DiskPart in a cmd prompt started as Administrator
    • list disk
    • select disk x [x=disk containing the volume to be mirrored]
    • list volume
    • select volume x [x=volume to be mirrored]
    • add disk x [x=disk to be used for mirroring]

    Loading

  • Check if Samsung Smart TV is alive with Php Server Monitor

    Samsung Smart TVs have two http ports that can be queried from Php Server Monitor: 8000 and 8001.

    Click to Read More

    If the TV is on, querying on http://IP:8000, you get the response:

    Server is running...

    If the TV is on, querying on http://IP:8001/ms/1.0/, you get a response like:

    {
      "DUID": "08f0d181-0096-1000-82d5-c4576e33a21d",
      "Model": "14_X14_BT",
      "ModelName": "UE48H6500",
      "ModelDescription": "Samsung TV RCR",
      "NetworkType": "wired",
      "SSID": "",
      "IP": "192.168.0.180",
      "FirmwareVersion": "Unknown",
      "DeviceName": "[TV]Samsung LED48",
      "DeviceID": "08f0d181-0096-1000-82d5-c4576e33a21d",
      "UDN": "08f0d181-0096-1000-82d5-c4576e33a21d",
      "Resolution": "1920x1080",
      "CountryCode": "BE",
      "SmartHubAgreement": "true",
      "ServiceURI": "http://192.168.0.180:8001/ms/1.0/",
      "DialURI": "http://192.168.0.180:8001/ws/apps/",
      "Capabilities": [
        {
          "name": "samsung:multiscreen:1",
          "port": "8001",
          "location": "/ms/1.0/"
        }
      ]
    }

    When the TV is Off (powered off or in standby mode), you won’t get any response from those ports but:

    ERR_CONNECTION_TIMED_OUT

    Loading

  • PC waking up in sleep mode

    Recently, I noticed that my PC was waking up from sleep mode without me explicitly clicking the mouse, pressing a key on the keyboard or sending a magic packet…

    I found this problem was due to an update of the Ethernet drivers which allowed any packet to wake up the computer…

    Click to Read More

    This is a problem which comes back regularly when updating drivers. Each time, I wonder what’s wrong again. So, here are some tricks to find the cause.

    First:

    • Put the computer at sleep and wait until it wakes up.

    Next, look for the last device which turned on the PC:

    • Execute in a Dos prompt : powercfg -lastwake
    C:\WINDOWS\system32>powercfg -lastwake
    Wake History Count - 1
    Wake History [0]
     Wake Source Count - 1
     Wake Source [0]
     Type: Device
     Instance Path: USB\VID_046D&PID_C52B&2b3c7d9c&0&3
     Friendly Name:
     Description: USB Composite Device
     Manufacturer: (Standard USB Host Controller)
    Device 0xC52B is a USB Receiver for Wireless Mouse 
    Vendor 0x046D is Logitech Inc.
    • Go into the Device Manager, find that device and open its properties. In its “Power Management” tab, disallow the device to turn on the computer. If the option is not available, this device is not causing your issue.
      • If your PC has been waked up by the Ethernet Controller, it can be because any packet can wake it up. In the Power Management tab, tick the option “Only allow a magic packet to wake the computer”.

    If this does not help:

    • Open the “Event Viewer” (eventvwr) > “Windows Logs” > “System”.
    • “Filter Current Log” on “Event Source” = Power-Troubleshooter to find which device did wake up your PC:
    The system has returned from a low power state.
    Sleep Time: ‎2016‎-‎12‎-‎24T09:40:11.549148000Z
    Wake Time: ‎2016‎-‎12‎-‎24T09:41:07.347715900Z
    Wake Source: Device -Intel(R) Ethernet Connection (2) I219-V

    You can also look for the list of devices able to wake up the PC:

    • Type in a Dos Prompt: powercfg -devicequery wake_armed
    C:\WINDOWS\system32>powercfg -devicequery wake_armed
    Logitech HID-compliant Unifying keyboard
    HID-compliant mouse
    HID Keyboard Device
    HID Keyboard Device (001)
    Logitech HID-compliant Unifying Mouse
    Intel(R) Ethernet Connection (2) I219-V
    Logitech HID-compliant Unifying Mouse (001)

    The PC can also be waked up by Timers (Scheduled Tasks):

    • Type in a Dos Prompt: powercfg -waketimers
    • Open the “Task Scheduler” and find the task mentioned by the command above.
    • In the tab “Conditions” of that task, disable the option “Wake the computer to run this task”

    You call also disable all tasks that could wake up the PC at once:

    • Open the “Power Options” > “Change plan settings” > “Change advanced power settings”. Under “Sleep”, disable “Allow wake Timers”

    Finally, you could also have to disable the Automatic Maintenance:

    • Open “Change Automatic Maintenance settings” and disable “Allow scheduled maintenance to wake up my computer at the scheduled time”

    Loading

  • Cannot access my NAS from Internet Since I have enabled Wifi on my modem

    I just discovered that I was not able to access my NAS anymore from internet. The problem was that I did re-enabled the Wifi by accident on my Vdsl modem.

    Click to Read More

    Tthe DHCP server gave unfortunately the first free IP of the IPv4 pool to “an unknown Wifi device” instead of assigning this IP to my router as it used to be the case in the past. Port Forwarding from internet to my router, defined using that first IP, couldn’t work anymore.

    I just did assign a static IP to my router in the Vdsl modem’s DHCP server settings (and re-disabled the WiFi). I did reboot next the router.

    Loading

  • Use an Azerty Bluetooth Keyboard on a NVidia Shield TV

    A real pain in: out of the box, it is impossible to use an Azerty physical keyboard with a NVidia Shield TV console… You need an app for that! I am personally using the “External Keyboard Helper Pro”.

    Click to Read More

    You can get it on Google Play

    Loading

  • Synology’s Could Sync Consuming Internet Quota With Google Drive

    I noticed that between 50GB and 100Gb of my Internet Quota was consumed per day since two weeks. After investigation, I found it was due to the Cloud Sync service of my Synology Nas “looping” infinitely.

    Click to Read More

    The first step was to identify the device downloading some many Gb per day.

    I did enable the logging service on my router and turn on the logging of its firewall for all outgoing connections.

    I did export the log of the firewall into notepad++, cleaned up a bit the log to keep the source and destination IP only.

    I did copy that into Excel and created a pivot table to see which source was doing many connection and onto which external IP (eliminating known destinations as the DNS of google 8.8.8.8 and 8.8.4.4, the Synology’s KeepAlive service 118.163.30.162, Broadcast 192.168.0.255, …) I saw that most connections were onto 172.217.16.193, 172.217.21.202, 172.217.22.42, … from my NAS.

    Using a IP who IS service, I found that 172.217 belongs to Google. Why was my NAS connection to Google ? I did look all the packages installed on my NAS and “tilt”: Cloud Sync was configured to sync two google accounts… Having a quick look into the current status of Cloud Sync, I noticed it was “syncing” 1 file… apparently for ever.

    I did connect on my NAS via Telnet and looked into /var/log/cloudsync/daemon.log

    In there, I found that cloud sync was logging, in a loop, errors like:

    Dec 10 11:19:26 [ERROR] gd-pull-event-by-list-handler.cpp(89): ListDirectory: ListRemoteSubitems failed (retrying) [-1000] User rate limit exceeded
    Dec 10 11:19:26 [ERROR] gd-transport.cpp(2195): error reason: [rateLimitExceeded].
    Dec 10 11:19:26 [ERROR] gd-transport.cpp(2196): error message: [Rate Limit Exceeded].
    Dec 10 11:19:26 [ERROR] gd-transport.cpp(2238): Hit rate limitation.
    Dec 10 11:19:26 [ERROR] gd-transport.cpp(3082): [-1000] User rate limit exceeded. URL=’https://www.googleapis.com/drive/v2/files?fields=nextLink%2Citems%28id%2Ctitle%2CmimeType%2CfileSize%2CmodifiedDate%2Cmd5Checksum%2CdownloadUrl%2CalternateLink%2Cparents%28id%29%2Clabels%28trashed%29%29&q=trashed%20%3D%20false%20and%20%271QmcGFz7PI0P_0TUlaAJkNfzWRw%27%20in%20parents’

    I will look into a solution to this issue and temporarily unlinked the Google Drive account from Coud Sync…

    voilà voilà.

    Loading

    ,
  • Root And Install Cyanogen OS 13 On OnePlus One

    Just to keep track of this on my blog: a great tutorial to install a new image on my OnePlus One and root it…

    Click to Read More

    Loading

  • Add AC3 support within MX Player on Samsung Galaxy S7 

    By default, MX player doesn’t support ac3 audio due to licensing issue. Using a custom codec solves this.

    Click to Read More

    Don’t download  and install the «NEON Codec 1.8.9 for Android 6+» usually suggested for MX player in order to support AC3 (available on Google play as «MX Player Codec for ARMv7 NEON CPUs»).

    Instead, download the custom codec for arm v7 neon 1.8.6 (available here). Unzip that file, open MX Player, click on the menu …, go to  settings > decoder. Scroll down to the very bottom and select Custom Codec.  There, pick the file libffmpeg.mx.so.neon.1.8.6 you have just unzipped.

    MX Player will next restart. You can now try a video with ac3 codec. Ex.: download a sample from here.

    Et voilà.

    Loading