Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I set up ccd on a partition without losing the data on it?

CCD Data losing partition
0
Posted

Can I set up ccd on a partition without losing the data on it?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123