Autarchy of the Private Cave

Tiny bits of bioinformatics, [web-]programming etc

    • Archives

    • Recent comments

    How to merge Windows 10 “system reserved” and Recovery partitions

    3rd September 2017

    My initial reason for merging these two partitions was the need to have two more partitions on the disk – and with 3 primary partitions already in place (system reserved, windows 10 itself, and recovery) on the MBR disk that was only possible by adding an extended partition and then adding both new partitions to it – which is not what I wanted.

    An additional reason appeared when I started researching the topic.
    Apparently, Windows 10 no longer even creates the recovery partition during installation!
    The entire WinRE is now stored on that same system reserved partition, which contains your window’s BCD!
    The recovery partitions should only be present on Windows 10 installations which were either upgrades from a previous Windows version, or (as in my case) were installed within about 6 months after Windows 10 became available.

    These instructions are also useful if you wish to increase the size of your system reserved partition – for example, if Windows 10 updates are failing because of that partition’s lack of free space.

    WARNING: changing partition tables on your hard/solid-state disk may easily result in complete data loss!
    Instructions below are provided as-is, to be used at your own risk. See full disclaimer on the About page.

    WARNING: although it is also possible to merge the system reserved partition and windows 10 partition (so that the entire Windows 10 uses only 1 primary partition), I do not (and will not) offer instructions to do so. In fact, I recommend that you don’t merge the system reserved and windows 10 partitions.

    Merging system reserved and recovery partitions, step by step.
    Read the rest of this entry »

    Posted in how-to | No Comments »

    Lenovo P2 vs Honor 6X: Honor wins?

    29th August 2017

    On paper, these two devices are very similar: both have 4GB RAM, both are upgradable to Android 7, both have octacore CPUs.
    It seems as if the only differences are:

    • camera: Honor has an extra low-res “depth” camera, while Lenovo doesn’t
    • frame/body: Lenovo has a metal unibody design and performed ok in the scratch/burn/bend test, while Honor has a plastic body, easy to scratch screen, and did not perform as good as Lenovo in the test
    • Lenovo has a bigger battery

    For about the same price (Lenovo P2 being a bit more expensive) one can buy a 4GB/32GB Lenovo P2 or a 4GB/64GB Honor 6X.

    After using both phones for a while, I feel that Honor is a much better value overall.
    Here’s a brief comparison, based on my use.

    Read the rest of this entry »

    Posted in Comparison, Hardware | No Comments »

    Midnight Commander: panelize or select all files newer than specified date

    3rd February 2017

    If you ever need to select lots (hundreds, thousands) of files by their modification date, and your directory contains many more files (thousands, tens of thousands), then angel_il has the answer for you:

    1. touch -d “Jun 01 00:00 2011″ /tmp/.date1
    2. enter into your BIG dir
    3. press C-x ! (External panelize)
    4. add new command like a “find . -type f \( -newer /tmp/.date1 \) -print”

    I’ve used a slightly different approach, specifying desired date right in the command line of External Panelize:

    1. enter your directory with many files
    2. press C-x ! (External Panelize)
    3. add a command like find . -type f -newermt "2017-02-01 23:55:00" -print (man find for more details)

    In both cases, the created panel will only have files matching your search condition.

    Posted in *nix, Notepad | No Comments »

    How to: enable metadata duplication on an existing btrfs filesystem

    30th December 2016

    Just one command: sudo btrfs balance start -v -mconvert=dup /toplevel/
    where /toplevel/ is your mountpoint of the btrfs root, -v is there for verbosity (not too verbose, don’t worry), and -mconvert=dup literally says act on metadata only, convert data profile to DUP.

    This will duplicate both metadata and btrfs system data.
    Verify with: sudo btrfs fi df /toplevel:

    Data, single: total=10.00GiB, used=3.88GiB
    System, DUP: total=64.00MiB, used=4.00KiB
    Metadata, DUP: total=512.00MiB, used=286.18MiB
    GlobalReserve, single: total=96.00MiB, used=0.00B

    Explanation: on SSDs, mkfs.btrfs creates metadata in single mode (because of widely spread SSD deduplication algorithms negating duplicate entries). However, second copy of metadata increases recovery chances, especially so if your SSD does not deduplicate writes. Hence the desire to add metadata/systemdata duplication after the filesystem is created.

    Posted in *nix, how-to, Notepad, Software | No Comments »

    Raspberry Pi Colocation service

    29th December 2016

    Exactly what the title says: Raspberry Pi colocation service, yay! At only 30 EUR/year as of this writing.

    Posted in Links | No Comments »

    Mail-in-a-box, Sovereign, Modoboa, iRedMail, etc

    28th December 2016

    Preparing to dismantle my physical server (and move different hosted things to one or more VPS),
    I’ve realized that an email server is necessary: to send website-generated emails, and also
    receive a few rare contact requests arriving at the websites.

    My current email server was configured eons ago, it works well,
    but I have no desire to painfully transfer all the configuration…
    Better install something new, shiny and exciting, right? :)

    I had 3 #self-hosted, #mail-server bookmarks:

    (Sovereign, the 4th one, was addded after reading more about Mail-in-a-box.)

    Here are my notes on what seemed important about these 4.
    Read the rest of this entry »

    Posted in *nix, Comparison, Links, Notepad, Software, Web | 3 Comments »

    The sugar conspiracy

    19th June 2016

    A long but interesting read: The Sugar Conspiracy.

    Posted in Links, Misc, Science, Society | No Comments »