2002-Jul-10
Exim was complaining:2002-07-10 06:37:12 17SHea-0005JF-00 failed to open database lock file /var/spoo l/exim/db/wait-remote_smtp.lockfile: Permission denied (euid=8 egid=8 2002-07-10 06:46:00 17SHn6-0005LH-00 failed to open DB file /var/spool/exim/db/wait-remote_smtp: Permission denied (euid=8 egid=8)So I did:
chown mail.mail /var/spool/exim/db/wait-remote_smtp.lockfile chown mail.mail /var/spool/exim/db/wait-remote_smtp
Can use tune2fs to convert ext2 to ext3 by creating journal file with:
tune2fs -j /dev/hdb1Then change "ext2" to "ext3" in /etc/fstab. (For more info, see "EXT3 File System mini-HOWTO".)
(Not done on Red Hat Linux 7.1, its old tune2fs 1.19 doesn't do it.)
e2label(8) can be used to change the label name of a file system.
Made swap partition:
# mkswap -c /dev/hdb2 Setting up swapspace version 1, size = 1052831744 bytesCopied files like:
find /boot | cpio -vpdm /tmp/ROOTBut the following is not good:
cd /home ; find . | cpio -vpdm /tmp/HOME/.Because this creates new directories and new symlinks with new timestamps! So used pax to copy files:
cd /home ; pax -r -w -v -p e . /tmp/HOME/ time pax -r -w -v -p e /etc /.automount /lib /mnt /opt /root /sbin /bin /tftpboot /usr /tmp/ROOT/ 2>&1 | tee /tmp/J # took 9.33 minutes cd /var ; time pax -r -w -v -p e . /tmp/VAR/ 2>&1 | tee /tmp/J2And make directories as needed:
mkdir /tmp/ROOT/tmp mkdir /tmp/ROOT/proc mkdir /tmp/ROOT/var mkdir /tmp/ROOT/home chmod 1777 /tmp/ROOT/tmp
lilo -r /tmp/ROOT -v -t LILO version 21.4-4 (test mode), Copyright (C) 1992-1998 Werner Almesberger 'lba32' extensions Copyright (C) 1999,2000 John Coffman Reading boot sector from /dev/hdb1 Fatal: open /dev/hdb1: No such file or directoryOh, forgot to copy /dev:
time pax -r -w -v -p e /dev /tmp/ROOT/
The reboot didn't work -- stopped at "L". So changed jumper on disk to change from hdb to hda (primary). And booted with CD, mounted /dev/hda1 and chrooted to it and edited lilo.conf to use /dev/hda instead, re-ran lilo and rebooted. All worked!
I sent a bug report to Debian, because I dislike that suexec has docroot set to /var/www. Assigned: Bug#152564.