----- Original Message -----
From: "Bob Williams"
On Mon, Jun 23, 2008 at 6:35 PM, Bob Williams
wrote: On Monday 23 June 2008 13:55:47 Florian Schäfer wrote:
On Mon, Jun 23, 2008 at 2:44 PM, Bob Williams
wrote: I have both /tmp and /var/tmp here. /var/tmp is much bigger than /tmp. How can make sure all temporary files end up in /var/tmp?
Because of your problem and some other problems, people often link /var/tmp in /tmp or the other way around.
That's what I want to do. When I installed this system, I partitioned the drive into / for 'the system' 2GB /var for variable files 15GB /usr 10GB /home already exists on another drive. I want to give plenty of space for temporary files, so I thought it would be better to put the in /var/tmp. I know how to do ln -s /var/tmp /tmp but I'm not sure where it should go. Inside /tmp or replacing it in / ? Thanks for everyone's help. ----------- If /tmp is currently a directory in /, not a mount point (say to a ramdisk). Then you should: mv /tmp /tmpx ln -s /var/tmp /tmp Then, boot to single user mode and: umount /var (if it was even mounted in single-user mode) mkdir -p /var/tmp chmod 1777 /var/tmp reboot Then reboot back to normal mode. That way, when booting into single user or when /var is busted or for whatever reason /var isn't mounted some time, /tmp is still a functional /tmp. When /var is mounted, /tmp is a symlink to a dir in the /var filesystem. When /var is not mounted, /tmp is a symlink to a dir in the / filesystem. Either way, the system is sane. You don't want to have /tmp be just a broken symlink some time because /var isn't mounted. Too many things just assume /tmp is always there, always a directory, always writeable by all users. If /var can't be unmounted even in single-user mode, then boot a live cd and mount the "/" partition manually to a temp directory, like: mkdir /hd mount /dev/sda1 /hd (whatever partition is usually "/") mkdir -p /hd/var/tmp chmod 1777 /hd/var/tmp umount /hd reboot It may be that /var is already somewhat populated in / even when not mounted for just this reason. If /var/tmp already exists when /var isn't mounted, then of course don't worry about creating it. -- Brian K. White brian@aljex.com http://www.myspace.com/KEYofR +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++. filePro BBx Linux SCO FreeBSD #callahans Satriani Filk! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org