From owner-freebsd-questions Fri Sep 18 08:45:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA11484 for freebsd-questions-outgoing; Fri, 18 Sep 1998 08:45:48 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from drmemory.fnal.gov (drmemory.fnal.gov [131.225.105.170]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA11479 for ; Fri, 18 Sep 1998 08:45:46 -0700 (PDT) (envelope-from rneswold@drmemory.fnal.gov) Received: (from rneswold@localhost) by drmemory.fnal.gov (8.8.8/8.8.6) id KAA04833; Fri, 18 Sep 1998 10:45:06 -0500 (CDT) Message-ID: <19980918104506.A4800@drmemory.fnal.gov> Date: Fri, 18 Sep 1998 10:45:06 -0500 From: "Richard M. Neswold" To: dorseb@hol.fr Cc: FreeBSD-Questions List Subject: Re: Where to put /var and /tmp Reply-To: rneswold@mcs.net References: <199809181416.QAA22690@mail2.hol.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <199809181416.QAA22690@mail2.hol.fr>; from dorseb on Fri, Sep 18, 1998 at 04:16:23PM +0200 X-PGP-RSAfprint: 0A C8 A5 76 DF 8E E1 B3 F3 97 BE 73 DA CD 4B C9 X-PGP-RSAkey: http://www.mcs.net/~rneswold/www/pub.key X-Spambot-Food: abuse@localhost postmaster@localhost abuse@fbi.gov Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG If memory serves, didn't dorseb say: > I have the complete FreeBSD 2.2.6 book. On the chapter 4 section Where to > put /var and /tmp. They said to make kind of housekeeping in order to avoid > root file system fill up. If you used auto-disklabelling (when you installed FreeBSD), then /var is in its own partition and you don't have to worry about it filling /. > Well I did it, and I can't even run vi on my machine. Here are the stuff > that I did from the book: [...snipped steps taken to mess system...] > It would be great if I could remove the /var in order to make the correct > link at /. I tried to rename /var but it say that I can't rename a mounted > file and even umount it. This indicates that /var was in its own partition. You didn't need to move /var in this case. Only /tmp needed to be moved from the root filesystem. > I decided to boot my computer and then I can't do anything. > Well the only stuff that I can do is to restart the installation from the > CD. If someomeone can help me it would very kind. Boot your system. When you see the boot prompt, type "-s" (without the quotes). This will boot the system in single-user mode. When you get to a shell prompt, only / will have been mounted. You'll have to do something along the lines of: mount -uo rw / # this remounts / so it's writable mv /var /var.bak # we'll deal with current /var later ln -s /usr/var /var # make the link mount /usr # attach /usr (and /var via the link) You should be able to run 'vi' now. If this is so, edit /etc/fstab and comment out the /var entry. Now if you hit Ctrl-D, to log out, the system will come up in multiuser mode. If you correctly copied your /var to /usr/var (as your message suggests) the system should be fine. You can now take care of /var.bak (i.e. delete it). Hope this helps... -- Rich ------------------------------------------------------------------------ Rich Neswold | PGP: 0A C8 A5 76 DF 8E E1 B3 rneswold@mcs.net | F3 97 BE 73 DA CD 4B C9 http://www.mcs.net/~rneswold | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message