Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jan 2000 20:58:37 -0800
From:      Chip Wiegand <chip@wiegand.org>
To:        questions@FreeBSD.org
Subject:   Link problem - /var to /usr/var - now X won't load
Message-ID:  <388BDBFC.E517B01C@wiegand.org>

next in thread | raw e-mail | index | archive | help
I bought the FreeBSD Powerpak and got it installed without any problems.
During the partitioning section I set up a /var partition of 100 megs, a
root partition of 100 megs, and left a couple gigs for /usr, and
entering df on the command line also shows a /proc partition of 4 1-k
blocks.
Here is the output of df -
/dev/wd1s1a        99183        46987        44262        51%        /
/dev/wd1s1f        2749566    515006      2014595    20%        /usr
/dev/wd1s1e        99183        101111        -101       104%
/var         <-- (these are apr, I didn't write down
procfs                            4                4
0     100%        /proc                the exact numbers)

Then I started getting a message about running out of room for sendmail
-
sendmail: NOQUEUE: low on space (have 0, SMTP-DAEMON need 101 in
/var/spool/mqueue)
this message gets repeated alot, to say the least.
So I enter df at prompt and see the partition /var is at 104%.
Then I open the book The Complete FreeBSD, chapter 5 page 87, Where to
put /var and /tmp section.
I followed the instructions to link /var to /usr/var because that would
allow more room for /var. All went well till I tried rm -rf /var when I
get a message that the device is busy. So I rebooted and tried that last
one again and got the same response. Then I rebooted into single user
mode (I believe), and got the same message again. So I tried ln -s
/usr/var /var anyway, and it seems to have worked, I didn't get any
messages. The directory /usr/var appears to contain all the directories
and files that were in the original /var.
I reboot again just for the heck of it, and get the following messages
(and in the last couple reboots above) -

/etc/rc: cannot create /var/run/dmesg.boot: directory nonexistent
cd: can't cd to /var/run
/etc/rc: cannot create /var/run/clean_var: directory nonexistent
Enter full pathname of shell or RETURN for /bin/sh:<I hit enter>

I get a # sign prompt and enter login
I then login as a user, not root, and enter startx.
It appears to start but then quits to the command prompt again with the
following messages -

The XKEYBOARD Keymap compiler (xkbcomp) reports:
>error: cannot open "/var/tmp/server-0-xkm" to write keyboard
description.
>exiting
Couldn't load XKB Keymap, falling back to pre-XKB Keymap
              (Note: the portion above only shows when I boot: -s, not
when I boot with defaults)
              (Note: the portion below shows everytime I try startx or
startkde)
setenv: not found
/usr/libexec/ld-elf.so.1: shared object "libX11.so.6" not found
(repeated 5 more times)
/usr/libexec/ld-elf.so.1:shared object "libjpeg.so.9" not found
/usr/libexec/ld-elf.so.1:shared object "libX11.so.6" not found (3 more
times)
waiting for X server to shut down

Once again, this only started after trying to link /var to /usr/var
according to the directions in the above mentioned book.
Now when I do df I show /var at 0%, which is correct since that is
empty, and I can't get rid of it the way the book says I should be able
to.

So, did I screw up big time? Hopefully I can just fix this without any
major problems, like reinstalling from scratch.

Please help.
Chip Wiegand
chip@wiegand.org




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?388BDBFC.E517B01C>