Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Apr 2006 20:57:24 -0700
From:      "Wil Hatfield" <freebsd@hyperconx.com>
To:        <freebsd-questions@freebsd.org>
Subject:   Partitioning on existing system
Message-ID:  <NGBBKBOMKLFOJCCDHPEOIECMPPAA.freebsd@hyperconx.com>
In-Reply-To: <200604061808.26586.list-freebsd-2004@morbius.sent.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Ok I screwed up on one of my machines and forgot to put the /tmp directory
on its own slice. How can I do this on an existing system? Linux has this
procedure. Anything like it for FreeBSD?

dd if=/dev/zero of=tmpMnt bs=1024 count=100000
/sbin/mke2fs /dev/tmpMnt
cd /
cp -R /tmp /tmp_backup
mount -o loop,noexec,nosuid,rw /dev/tmpMnt /tmp
chmod 1777 /tmp
cp -R /tmp_backup/* /tmp/
rm -rf /tmp_backup

Any help is greatly appreciated.

--
Wil Hatfield







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