Partitioning on existing system

Chad Leigh -- Shire.Net LLC chad at
Sun Apr 9 05:26:34 UTC 2006

On Apr 8, 2006, at 9:57 PM, Wil Hatfield wrote:

> 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

this appears that you want a file backed image file mounted as your / 
tmp.  This should be easy to do.  Read the handbook for file-backed md 
(4) devices.

I don't use them for /tmp but I run them with jails...  I have about  
60 such image files mounted now for example

Read the handbook on md(4) devices and look up mdconfig(8) in the man  


> Any help is greatly appreciated.
> --
> Wil Hatfield
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions- 
> unsubscribe at"

Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at

More information about the freebsd-questions mailing list