Partitioning on existing system

Dhénin Jean-Jacques dhenin at fnet.fr
Sun Apr 9 04:57:00 UTC 2006


I don't see what the trouble. If you want a /tmp directory on a disk,
just do :

$ cd /foo    # the disk you want, may be /
$ mkdir /tmp

Thats all.

2006/4/9, Wil Hatfield <freebsd at hyperconx.com>:
> 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
>
>
>
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>


--
jjd


More information about the freebsd-questions mailing list