LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Thread Tools
Old 11-18-2005, 01:13 PM   #1
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD
Posts: 896
Thanked: 17
Complete Hard-Disk & Root Filesystem Backup


[Log in to get rid of this advertisement]
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?
taylor_venable is offline     Reply With Quote
Old 11-18-2005, 03:20 PM   #2
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD
Posts: 896
Thanked: 17

Original Poster
Another Mirror Idea

I had another idea of how to do this raw copy:
Code:
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!
taylor_venable is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 08:06 AM.

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