Sponsored Content
Full Discussion: Copy entire disk in FC3
Operating Systems Linux Copy entire disk in FC3 Post 81976 by nexxist on Thursday 25th of August 2005 07:45:40 PM
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.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
installgrub(1M)                                                                                                                    installgrub(1M)

NAME
installgrub - install GRUB in a disk partition or a floppy SYNOPSIS
/sbin/installgrub [-fm] stage1 stage2 raw-device The installgrub command is an -only program. GRUB stands for GRand Unified Bootloader. installgrub installs GRUB stage 1 and stage 2 files on the boot area of a disk partition. If you specify the -m option, installgrub installs the stage 1 file on the master boot sector of the disk. The installgrub command accepts the following options: -f Suppresses interaction when overwriting the master boot sector. -m Installs GRUB stage1 on the master boot sector interactively. The installgrub command accepts the following operands: stage1 The name of the GRUB stage 1 file. stage2 The name of the GRUB stage 2 file. raw-device The name of the device onto which GRUB code is to be installed. It must be a character device that is readable and writable. For disk devices, specify the slice where the GRUB menu file is located. (For Solaris it is the root slice.) For a floppy disk, it is /dev/rdiskette. Example 1: Installing GRUB on a Hard Disk Slice The following command installs GRUB on a system where the root slice is c0d0s0: example# /sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c0d0s0 Example 2: Installing GRUB on a Floppy The following command installs GRUB on a formatted floppy: example# mount -F pcfs /dev/diskette /mnt # mkdir -p /mnt/boot/grub # cp /boot/grub/* /mnt/boot/grub # umount /mnt # cd /boot/grub # /sbin/installgrub stage1 stage2 /dev/rdiskette /boot/grub Directory where GRUB files reside. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ boot(1M), fdisk(1M), fmthard(1M), kernel(1M), attributes(5) Installing GRUB on the master boot sector (-m option) overrides any boot manager currently installed on the machine. The system will always boot the GRUB in the Solaris partition regardless of which fdisk partition is active. 24 May 2005 installgrub(1M)
All times are GMT -4. The time now is 01:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy