Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 11-18-2005, 01:13 PM   #1
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
Complete Hard-Disk & Root Filesystem Backup

There's been lots of grinding and clunking sounds coming from the hard-disk bays of my computer; I believe I have a dying disk. Before it fails and I lose all the hard-won data and configurations on my FreeBSD machine, I'm looking at getting a second SATA HD (or maybe an external USB or FireWire drive... do those work well under FreeBSD 6?) to use as the new primary-master disk. I'd like to do a raw copy of everything in the old disk's filesystems, onto the new one. Other than the MBR (which I can replace, of course), I want it to be as if I'd never replaced the disk at all; everything would be exactly the same. By looking through the FreeBSD Handbook, it looks like dump(8) would be the best command to do that, and I could just copy everything block-by-block from the old UFS2 filesystems onto the new disk (after creating the appropriate filesystems on the new disk, of course). But I wanted some other opinions first, from people who probably know more about this than I do. So what do you think? Is dump(8) a good way to make an exact copy of a filesystem? Or is there a better way? Or do I have the wrong idea altogether?
Old 11-18-2005, 03:20 PM   #2
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Original Poster
Rep: Reputation: 43
Another Mirror Idea

I had another idea of how to do this raw copy:
dd if=/dev/olddisk of=/dev/newdisk
This might do what I want, with all the devices unmounted and from single user mode, of course. But will this command create an exact copy of "olddisk" including MBR, partition table, and superblocks? Any input is appreciated. Thanks!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
hard disk issues RH9- complete beginner orangenick Linux - Newbie 12 11-14-2004 06:30 PM
can I backup a root disk and boot from the new backup disk linuxbkp Linux - Enterprise 3 10-15-2004 07:42 PM
howto boot root filesystem from SATA disk? david.skinner Linux - Hardware 4 06-17-2004 01:51 AM
Hard disk backup/copy.... Irf Linux - General 26 05-27-2004 06:26 PM
Knoppix to hard disk: complete steps jfchui Linux - Newbie 2 04-17-2004 05:20 PM

All times are GMT -5. The time now is 03:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration