Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Apr 2006 23:26:32 -0600
From:      "Chad Leigh -- Shire.Net LLC" <chad@shire.net>
To:        Wil Hatfield <freebsd@hyperconx.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Partitioning on existing system
Message-ID:  <DF73B7F3-5CE8-4C67-840A-F3BA1C0DFCC0@shire.net>
In-Reply-To: <NGBBKBOMKLFOJCCDHPEOIECMPPAA.freebsd@hyperconx.com>
References:  <NGBBKBOMKLFOJCCDHPEOIECMPPAA.freebsd@hyperconx.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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  
pages

Chad

>
> Any help is greatly appreciated.
>
> --
> Wil Hatfield
>
>
>
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions- 
> unsubscribe@freebsd.org"

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






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DF73B7F3-5CE8-4C67-840A-F3BA1C0DFCC0>