Tag Archives: linux

Linux: mount.cifs failed with host is down

Hi,

due to some security issues (Wannacry) Windows administrators are going to disable the unsecure smb1 protocol.

mount.cifs is using smb1 by default. So when you tried to connect to a Windows machine where smb1 is disabled you get an error: mount error(112): Host is down.
Continue reading Linux: mount.cifs failed with host is down

Advertisment to support michlstechblog.info

Linux: Rescan for new and changes of devices

Hi,

with virtualization it simply possible to change systems within a few mouse clicks. For example adding new disks or increasing the disk size of a hard disk without a reboot.
Continue reading Linux: Rescan for new and changes of devices

Linux: Connection timed out, cannot reboot systemd based system

Hi,

sometimes it occours that a systemd based Linux cannot rebooted.
Continue reading Linux: Connection timed out, cannot reboot systemd based system

Debian: Shutdown when pressing power button

Hi,

when you install Debian with just the Standard minium System utilities a power off by pressing the power button is not possible.

Continue reading Debian: Shutdown when pressing power button

Linux: HEX edit and diff in a shell

Hi,

let us assume you want to edit a binary file /tmp/binfile and you want to replace all strings matches to “sda” by “hda”.

gnu sed can edit bin files by the \xnn hex notation. The option –in-place changes the original file and makes a backup copy with a file extension .org

michael@devdeb ~#  sed -e 's/\x73\x64\x61/\x68\x64\x61/g' /tmp/binfile --in-place=.org

Continue reading Linux: HEX edit and diff in a shell