When reading/writing a disk image using Linux tool ‘dd’ launch as follows:
dd if=/dev/sdb of=filename.img & pid=$!
this will run ‘dd’ in the background.
To see the progress:
kill -USR1 $pid
(it will not kill the dd)
- If you are doing it as a non-root user you’ll need to prefix those commands with sudo
- If you do that do ‘
sudo ls‘ first, otherwise the ‘
sudo dd‘ will fail waiting on the password which it’ll never get as its backgrounded.
Thanks to Cian.
Thanks to Rory McCann for pointing this one out.
It is possible to convert (resize, rotate etc) an image without creating a new file. mogrify takes the same options as convert but operates on the existing image. Both are tools included in imagemagick.
Thanks to the kind people in #asterisk (irc.freenode.net) I found: Checkinstall
This is a very quick and easy was to make your own RPM and Deb packages. When compiling your package, instead of running “make install” run: “checkinstall”
To build for most distributions, the configure script should be executed with the following options:
./configure –prefix=/usr –sysconfdir=/etc
so that executables, libraries and configuration files are installed to the expected locations.