Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

making a disc image

  • 23-09-2003 06:06PM
    #1
    Registered Users, Registered Users 2 Posts: 2,518 ✭✭✭


    How would it be possible to make an image of a freebsd partition to restore from later?

    I'm going to give debian a try for a while and I'll have to install it over the partition that my current freebsd installation is on; I don't want to lose this setup because everything works properly on it :)


Comments

  • Registered Users, Registered Users 2 Posts: 2,780 ✭✭✭niallb


    Hi,
    a good approach would be to boot from a linux boot disk/cdrom
    like knoppix and use the 'dd' command to make a block for block copy.

    fdisk -l should show you which partition your freebsd installation is on.
    Lets assume it's /dev/hda3 as seen by linux:
    Find a disk with enough free space to back up the partition
    (might be hard!) and mount it on /mnt/otherpartition

    you would then use,
    dd if=/dev/hda3 of=/mnt/otherpartition/backup-image

    If space is tight, you could compress it through bzip2 or gzip like this:
    dd if=/dev/(yourfreebsdpartition) | bzip2 > /mnt/otherpartition/backup-image.bz2

    NiallB


Advertisement