[Sunhelp] Relocating partitions
Dale Ghent
daleg at elemental.org
Fri Apr 21 17:56:17 CDT 2000
On Fri, 21 Apr 2000, Kevin Stevens wrote:
| I need to swap out a disk drive, and hence relocate the partitions/mount points
| on it temporarily. For example, /var/mail is currently on this device, I want
| to relocate it to the system drive which has space free within /var, but no free
| partitions. Several days later I'll want to move it back to the replacement
| drive.
|
| It looks like this can be done with some combination of cp, ln, and swearing;
| but also seems as though it happens often enough that there might be a recipe.
| Can someone point me at a FAQ or howto?
|
use tar. It will get files and symlinks, which cp -r wont. When I need to
do this, I typically do:
cd /old/partition ; tar cf - . | ( cd /new/destination ; tar xfp - )
| Tangentially, where and how are Solaris 8 partitions managed, anyway? I get
| lost when I can't find an fstab. ;)
in /etc/vfstab
/dale
More information about the SunHELP
mailing list