Copy entire disk in FC3


 
Thread Tools Search this Thread
Operating Systems Linux Copy entire disk in FC3
# 1  
Old 08-24-2005
Copy entire disk in FC3

I'm running FC3 and I'd like to copy the entire /dev/hda to /dev/hdc, including all the boot info, so that I can boot off of it in case of failure. This will be a one time thing. I'm doing an app upgrade and I'm very afraid the install will go wrong, so I want to be able to quickly be back up in case of failure.
Any ideas?

Both are 10GB drives, but from different manufacturers. I doubt that makes a difference, but I wanted to include that info.
# 2  
Old 08-25-2005
Quote:
Originally Posted by dangral
I'm running FC3 and I'd like to copy the entire /dev/hda to /dev/hdc, including all the boot info, so that I can boot off of it in case of failure. This will be a one time thing. I'm doing an app upgrade and I'm very afraid the install will go wrong, so I want to be able to quickly be back up in case of failure.
Any ideas?

Both are 10GB drives, but from different manufacturers. I doubt that makes a difference, but I wanted to include that info.
Hi !
I don't think is necesarely to copy the entire disk/partition... a backup will be enough, but if you insist try to do it with dd (man dd). In Linux it should be something like this:

dd if=/dev/hda of=/dev/hdc

I've never done this before, but it should work.
# 3  
Old 08-25-2005
Quote:
Originally Posted by dangral
I'm running FC3 and I'd like to copy the entire /dev/hda to /dev/hdc, including all the boot info, so that I can boot off of it in case of failure. This will be a one time thing. I'm doing an app upgrade and I'm very afraid the install will go wrong, so I want to be able to quickly be back up in case of failure.
Any ideas?

Both are 10GB drives, but from different manufacturers. I doubt that makes a difference, but I wanted to include that info.
Quote:
Originally Posted by Sergiu-IT
Hi !
I don't think is necesarely to copy the entire disk/partition... a backup will be enough, but if you insist try to do it with dd (man dd). In Linux it should be something like this:

dd if=/dev/hda of=/dev/hdc

I've never done this before, but it should work.
I agree with Sergiu-IT, you don't have to clone the entire disk. You can just copy important system files in / /usr or /home by using the tar command. I think you can use "tar cvzf /dev/hdc /usr /boot / /home"; and if your original system fails after an application update, you can just restore these directories back to your /dev/hda.

dd if=/dev/hda of=/dev/hdc should work, but you will have to edit the fstab file in /etc/fstab in order to boot from /dev/hdc properly, Since dd will "clone" the disk content in /dev/hda with fstab using /dev/hda's configuration. Unless of course, you physically reconfigure the drives by changing the cables to make "/dev/hdc" become "/dev/hda". I had this similar problem once with my Red Hat Linux 9.

Important: Make sure your target disk (/dev/hdc) is at least with capacity equal or greater than your /dev/hda, or it'll generate an error on /dev/hdc.
# 4  
Old 08-26-2005
If you really want to clone a disk, you may as well consider third party tools, such as http://www.partimage.org
# 5  
Old 08-26-2005
Thanks everyone for your input. This is for my personal linux box (actually Mythtv is the app that sits there).

I think I'm going to go with the dd solution.
# 6  
Old 09-19-2005
Code:
tar cvpjf backup.tar.bz2 / --exclude /proc /dev /mnt /sys /media

# 7  
Old 09-29-2005
Fc3

Whats FC3? Is it a back-up utility?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Use 'dd' to copy boot disk to larger target disk

Hi, I'm looking to copy a boot disk on an old Solaris 8 system using dd. I'll bring the system down to single user mode and begin from there. I'm copying my source disk to a larger target disk. Do I need to do anything other than the 'dd' command below because the target disk is bigger? ... (2 Replies)
Discussion started by: sparcman
2 Replies

2. OS X (Apple)

Copy entire line in bash (terminal) - keyboard shortcut

how can I do that? I can paste a line with ctrl+p; but I dont know how to copy it? ctrl+y - just deletes etc. (2 Replies)
Discussion started by: c_lady
2 Replies

3. UNIX for Dummies Questions & Answers

Copy entire contents of file to clipboard

Hi, I am trying to figure out how to copy the contents of a file to the clipboard, then paste into a command. i.e copy contents of file /path/filename.txt to <command> <paste text> Hope that makes sense. Basically tryting to copy the text for use in a command without having to open the... (8 Replies)
Discussion started by: JCA70
8 Replies

4. UNIX for Dummies Questions & Answers

How to copy entire file content into another file being in last line mode of vi ?

How to copy entire file content into another file being in last line mode of vi ? ---------- Post updated at 10:07 AM ---------- Previous update was at 09:56 AM ---------- Got it : :1,30w file.txt (1 Reply)
Discussion started by: presul
1 Replies

5. SCO

SCO507 not recognizing entire disk space on install

Hello, I'm trying to install 507 on an HP G5 ML350 server, and I've hit a snag. The installation goes fine until I try to customize the Unix partition on the harddrive--SCO will only see 50 GB of disk space (49852 to be exact). I've installed an HP P400 Smart Array Controller and set up 2... (3 Replies)
Discussion started by: asab
3 Replies

6. UNIX for Dummies Questions & Answers

What is in-core copy and disk-copy of i-node table?

I have found a question from the exercises of my study mat. The question is "Why are there a in-core copy and a disk-copy of i-node block and super block?" If any one know the proper answer then please send me..... (1 Reply)
Discussion started by: dearanik
1 Replies

7. SCO

Make a Copy Entire Hard Disk

Dear All, I have a standalone desktop with SCO Openserver V 5, this is used to control a machine with custom written software. The problem is that the machine manufacturer has closed shop (bankruptcy) and there is no support on software. As a precaution I would want to make a complete backup of... (3 Replies)
Discussion started by: iqbal_siddiqui
3 Replies

8. UNIX for Dummies Questions & Answers

Search for a string and copy the entire line

Hello All, I am after the script or the command which can scan the entire file for a string $PART_ID and when found to extract/copy the corresponding $PART_ID value (e.g THIRE_PTY_SOFTWARE for the 1st occurance of $PART_ID in the attached file) to a file. Appreciate your help. Thanks in... (3 Replies)
Discussion started by: forumthreads
3 Replies

9. UNIX for Dummies Questions & Answers

Copy and entire folder except one

Hi, I have a folder named "A". I want to copy the entire stuff inside it to another location except the folder "B" which is present inside it. How can it be done? (6 Replies)
Discussion started by: vibhor_agarwali
6 Replies

10. UNIX for Dummies Questions & Answers

which cmde recommended to copy an entire dty?

Hi, - i am not unix specialist and i would like to save all the contents of a directory containing symbolic links BUT: + i want to get the links within the copy (to be able to restaor them) + i dont want to copy the directories which are pointed to by theses links some advice? what... (4 Replies)
Discussion started by: JAKEZ
4 Replies
Login or Register to Ask a Question