Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Sep 1998 10:45:06 -0500
From:      "Richard M. Neswold" <rneswold@drmemory.fnal.gov>
To:        dorseb@hol.fr
Cc:        FreeBSD-Questions List <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Where to put /var and /tmp
Message-ID:  <19980918104506.A4800@drmemory.fnal.gov>
In-Reply-To: <199809181416.QAA22690@mail2.hol.fr>; from dorseb on Fri, Sep 18, 1998 at 04:16:23PM %2B0200
References:  <199809181416.QAA22690@mail2.hol.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980918104506.A4800>