Archive for August, 2019

How to Find a Hard Drive’s SATA Port in Bash

📅 August 2, 2019
Uh, oh! A hard drive is displaying boot errors and needs attention! Which motherboard port is it connected to?

If you have a Linux system with many hard drives installed, such as a data server or RAID array, you will need to know which physical SATA port a problematic hard drive is connected to in order to repair or replace it.

For example, if hard drive /dev/sdg in a RAID array has failed, how can we find out which SATA port it is connected to on the motherboard if many other drives exist? This article shows a few ways to achieve this from the command line.

Read the rest of this entry »

, ,

Leave a comment

Bash Script – Get Random Screenshots from Multiple Video Files

📅 August 1, 2019
Do you have a large set of video files and wish to get a random screenshot from each?

Here is a small Bash script that will grab a single screenshot at a random time point from each video file and store the screenshot as an individual JPEG image.

 

Read the rest of this entry »

, ,

Leave a comment