Infos zu Linux und die Unterlagen zu den Linux-Kursen am Wifi Wien.

Help, ssh is eating up all my standard input!

If you're running ssh inside a shell script that's reading from standard input (stdin), beware that the ssh execution will drain stdin unless you use the -n option.

GRUB 2 and extending a LVM volume group

While installing security updates in a seldomly used virtual machine, the latest kernel package was ready to be configured when I got the following error:

Setting up linux-image-2.6.32-5-amd64 (2.6.32-31) ...
Running depmod.
Running update-initramfs.
update-initramfs: Generating /boot/initrd.img-2.6.32-5-amd64
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.32-5-amd64 /boot/vmlinuz-2.6.32-5-amd64
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.32-5-amd64 /boot/vmlinuz-2.6.32-5-amd64
Generating grub.cfg ...
/usr/sbin/grub-probe: error: Couldn't find PV pv1. Check your device.map.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.32-5-amd64.postinst line 799.
dpkg: error processing linux-image-2.6.32-5-amd64 (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 linux-image-2.6.32-5-amd64

First I didn't quite get the line about "Couldn't find PV pv1. Check your device.map", but after some time it dawned on me that "PV" might mean "physical volume", a term used by LVM. I also remembered that I extended the LVM volume group with an additional block device that I attached to the virtual machine.

dpkg 1.16.0 and upwards nagging about version numbers

After upgrading to dpkg 1.16.0 the other day I got messages like

dpkg-deb: error: parsing file '/var/lib/dpkg/available' near line xxx package 'yyyyyy': error in Version string 'zzzzzzz': version number does not start with digit

every time I used apt-get or aptitude.

Botched Debian upgrades, converting a Cyrus IMAP mail spool to Maildir format

Remember: you should always try to use Debian codenames (i.e. etch, lenny, squeeze) and not "stable" in your /etc/apt/sources.list file (see also the hint in the Debian release notes). Cause if you don't new Debian releases are nothing to look forward to...

Syndicate content