Re: restore mit fixit

From: Udo Erdelhoff <ue(at)nathan.ruhr.de>
Date: Mon, 17 Jul 2000 16:43:10 +0200

On Mon, Jul 17, 2000 at 03:11:48PM +0200, Harald Neuffer wrote:
> Ich denke restore braucht temporär Platz auf /, und da ist die Diskette
> einfach zu klein ;-(

Aus restore(8):
FILES
     /dev/rsa0 the default tape drive
     /tmp/rstdir* file containing directories on the tape.
     /tmp/rstmode* owner, mode, and time stamps for directories.

Aus src/sbin/restore/dirs.c:
 (void) sprintf(dirfile, "%srstdir%d", _PATH_TMP, dumpdate);
         (void) sprintf(modefile, "%srstmode%d", _PATH_TMP, dumpdate);
         (void) sprintf(modefile, "%srstmode%d", _PATH_TMP, dumpdate);

_PATH_TMP ist allerdings keine Environment-Variable, sondern ein #define
der C-Sourcen. Und die steht ausnahmsweise mal da, wo man sie suchen
würde, nämlich in src/include/paths.h:

#define _PATH_TMP "/tmp/"

> Vielleicht gibt es einfach eine Environment-Variabel, die ich setzen kann,
> damit restore nicht das /-FS nimmt.

Nö, die gibt es nicht. Hier hilft nur die harte Methode. Lies:

fixit# cd /
fixit# mkdir /irgendeine/Platte/tmp
fixit# mv tmp tmp.old
fixit# ln -s /irgendeine/Platte/tmp /tmp
fixit# was-immer-Du-fürs-restore-tun-mußt ...
fixit# cd /
fixit# rm tmp
fixit# mv tmp.old tmp

Das rootfs sollte natürlich schreibbar sein.

/s/Udo

-- 
Q:  What do you get when you cross James Dean with Ronald Reagan?
A:  A rebel without a clue.
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Mon 17 Jul 2000 - 16:45:20 CEST

search this site