Can I set up ccd on a partition without losing the data on it?
The short answer is no. To create a ccd device, you need to dedicate a partition to it and create a disklabel on that partition. This last step alters what’s on the partition and will cause your data to be lost. One way to get a ccd device that has the same data on it as your partition is to first make a dump of that data, then restore it after you’ve created the ccd device. For example, assuming that /home on wd0k is the partition you want to turn into a ccd device, and /mnt/scratch contains a filesystem with enough space on it to hold the dump, you could take these steps: • Mount /home read-only, so that you get a consistent dump: # mount -u -o ro /home • Dump /home: # dump -a -f /mnt/scratch/home.dump /home • Create the ccd device, initialize it, and mount it on /home. • Change directory to /home: # cd /home • Restore the dump: # restore -r -f /mnt/scratch/home.