Categories
Tech Tutorials

How to use dd (Linux copy tool) with progress indicator

dd, the ubiquitous copy tool of Unix/Linux, now comes in with a decent built-in progress indicator. You can run it by the command-line option: status=progress Example: dd status=progress if=/dev/sda of=/dev/sdb Notice how I didn’t add the bs option and used the default. In my experiences the default works best. Tested on: Ubuntu

Categories
Tech

Ubuntu: How to Change Host name and Propagate to DHCP Server

How to change Hostname on Ubuntu First find your current host name by typing: hostname Open /etc/hostname and change the host name specified there to the new host name. sudo vi /etc/hostname Now open /etc/hosts and locate the old host name in the file and change it to the new host name. sudo vi /etc/hosts […]

Categories
Tech

Mini-Story: Deathly Silence of Linux (after rm -rf /*)

Silence of Linux (after rm -rf /* ) To be fair, rm -rf /* was taking way too long with several millions of files in deep hierarchy. So I ran Delete (Java based recursive File & Directory Delete Tool). Finally all data that could be deleted was deleted. I could’ve run shred, I could’ve run […]

Categories
Tech

What I learned and how I recovered from Partition Table corruption due to Power failure and fsck

Had an interesting experience. Our power blinked (rapid off and on) few times. Not only did SuKam UPS pass that through the power fluctuations but continued after power has stabilized. By the time I switched off the computer, the damage was done. It would only boot to Grub prompt. Used a SSD drive from another […]