Filesystem

dump and restore a filesystem in one shot

You can dump and restore a filesystem in one shot using the pipe with one commandline:

dump -0 -b 512 -f - / | restore -r -b 512 -f -

nofail option in /et/fstab

You can specify even external USB disk drives or samba shares in /etc/fstab. Nevertheless you have to take care to specify the proper options because if the partition is not available duing boot the system will boot to rescue mode and you need to remove the filesystem from /etc/fstab.

Specify directory with spaces in /etc/fstab

If you want to add a filesystem to mount in /etc/fstab you need to use the octal ASCII value which is \040. In my case I have created a separate filesystem for VMware virtual machines:

Wrong keyboard layout when entering boot crypto password

There is a bug in Fedora 10 when setting up encrypted filesystem which is pretty annoying if you have a non-US keyboard layout and use special characters as keyphrase:
See http://fedoraproject.org/wiki/Bugs/Common#Wrong_keyboard_layout_when_ent...

Change password for encrypted filesystem

If you have created encrypted partitions using cryptsetup you might change the password from time to time.
This can be achieved with following procedure:

Check which key slot is occupied (probably slot 0 if you have never done this)

cryptsetup luksDump /dev/sda#