Partitioning on existing system

Wil Hatfield freebsd at
Sun Apr 9 03:59:30 UTC 2006

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

More information about the freebsd-questions mailing list