Category: Guides

Mount: can’t read superblock

We recently had a power outage in the building, which lasted longer than my UPS could handle. When I booted up my server, I could no longer mount my drive, getting the following error: After fiddling about with mdadm as that’s what I used to create my /dev/md0 raid, I realized that everything was correct

HTTP redirect to HTTPS from .htaccess

Here’s another quick guide! This time on how to redirect HTTP traffic to HTTPS from your .htaccess file. It’ll cover how to: Redirect all traffic from HTTP to HTTPS Redirect specific domain from HTTP to HTTPS Redirect specific folder from HTTP to HTTPS Redirect all traffic, except certain file(s), from HTTP to HTTPS Before we

Setting up DDNS with bash script Linux

Dynamic DNS, Y dis? Setting up Dynamic DNS from eg your home or small business office can come in very handy if your ISP changes your IP often. Some ISPs either don’t offer static IPs, or they simply charge too much for it. You may also run a game server and if you already own

Log host up- or downtime bash script

I recently had the need to troubleshoot a server that kept losing connection. It was important to log the date and time, as well as the host I was pinging. At the same time I wanted to log it to a file, to easily check up on when the server had lost connection. Of course

Surface not charging more than ~47-50%

If you’re looking for find out what Battery Limit means, or if you’re simply not sure why your Surface device is not charging more than ~47-50% – Well, keep reading… What even is Battery Limit? The Battery Limit feature, that can be found in the BIOS of your Microsoft Surface device, is a feature made to

Laptop Battery Health Report

If you feel that your battery is not what it used to be on your laptop, but not sure about the actual state. You can generate a report directly from your laptop in command prompt. Press and hold Windows button + R Type cmd and hit Enter When the command prompt opens, type in powercfg /batteryreport

VirtualBox (failed to open a session for the virtual machine)

I was trying to boot up a VM on VirtualBox, testing Ubuntu 19.02 but was faced with the error below. The VirtualBox error reads (in clear search-able text): Call to WHvSetupPartition failed: ERROR_SUCCESS (Last=0xc000000d/87) (VERR_NEM_VM_CREATE_FAILED). Result Code: E_FAIL (0x80004005) Component: ConsoleWrap Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}   The issue has got to do with Hyper-V (Microsoft’s version

Google Chrome – top turns black

You may have experienced that the top of Google Chrome becomes black like displayed in the picture below, when you maximize the window – the black box covers the URL and bookmarks.   At first I believed it was only a Google Chrome issue, until I read that people had the problem with Firefox as

Extend Linux drive (XenServer)

Here’s a quick look up guide to extend a drive on Linux, hosted on XenServer. Pre-steps From XenServer, do the following: Take server offline. Select the VM you need to change. Click Storage. Right-Click the hard drive you want to extend, and click Properties. Click Size and Location. Resize to the desired size. Take 1