Sponsored Content
Full Discussion: Automated disk cloning
Special Forums Hardware Filesystems, Disks and Memory Automated disk cloning Post 302378271 by uvaio on Monday 7th of December 2009 11:43:27 AM
Old 12-07-2009
Well I'm trying to prove the Idea first in virtual environment, I don't want to screw up actually backed up data on real external disk and also it would take 2 hours each try on real drives to copy 100GB.
So I installed 2 different small linux distributions on 2 virtual disks in virtual machine simulating the stuff with much less data, so I have a sandbox to play with.

I want the external disk to be bootable. So I can boot directly from it and it will handle copying data from live OS disk to external disk itself.
I prepared external disk with small partition in the end of disk and made disk bootable from it. Linux starts up and runs shell script with steps I described.
I'm copying the data from lsource disk to external disk from position 0 which overwrites MBR on external disk with MBR of source disk, so I back up MBR of external and then restore it.
I coudl possibly do copy of data from position 513 which possible is the same thing as backing up and restoring later isn't it?

I just want to copy data from source disk to external but keeping external in its actual state, bootable and booting from partition at the end of the disk.
What I assumed was that if I keep external disk MBR including partition table created for one partition at the end, it would not matter on other data copied to the disk after MBR and not touching partition at the end of the disk.
I'm I completely wrong here?
 

10 More Discussions You Might Find Interesting

1. SCO

Disk cloning

Hello everybody, :confused: I have to change the system disk on an old PC running SCO 5.0.5. The disk is up and running, this is a preventive action. My experience on UNIX is very limited and I look for the easyest solution to clone this unit. Is it possible with commands or through a clone... (2 Replies)
Discussion started by: mhachez
2 Replies

2. UNIX for Dummies Questions & Answers

HP10.20 Cloning

Good day all. So, here's the situation. I have (7x) B180L VISUALIZE WORKSTATION's with Transtec 5100 RAID (RAID 5, 9.1 GB HDD's) towers running of UNIX HP10.20. It's time to replace the RAID's with new ones, them being Fibrenetix FX606 5 bay SATA RAID, 5 bay SATA-SCSI desktop RAID including 80Gb... (1 Reply)
Discussion started by: Tony_dw
1 Replies

3. HP-UX

Hpux Disk Cloning

hello, Anybody that has already running script or command that can disk clone the hpux machine thanks (2 Replies)
Discussion started by: eykyn17
2 Replies

4. Solaris

Disk cloning using ufsrestore

I am using ufsdump and ufsrestore to clone the root disk on one of my servers. I would like to automate this as much as possible, but have run into a problem where it prompts for changing the owner/mode when it is complete. Any ideas for running this in the background and not being prompted? ... (4 Replies)
Discussion started by: patricko0317
4 Replies

5. Solaris

Problem by cloning boot disk.

Hello guys! I use the Solaris 10 x86 machine. I need to clone the boot disk. Why, when I copy slice 1 - there is a following: # ufsdump 0f - /dev/rdsk/c0d0s1 | (cd /mnt && ufsrestore rf - ) DUMP: Warning - super-block on device `/dev/rdsk/c0d01` is corrupt - run fsck Dump: The Entire... (6 Replies)
Discussion started by: wolfgang
6 Replies

6. AIX

Automated Disk space recovery script

Hi, I have to write a shell script for disk space recovery - We have been facing disk space shortage issues very often. d=`df -k |awk '{print $5}' | egrep "" | cut -c-2` if then echo "DISK SPACE STATUS :NOT OK" >> /backup/stats/healthcheck/SCP1_BLU_HCsummary_$dt.txt else echo "DISK... (3 Replies)
Discussion started by: vasukv
3 Replies

7. Shell Programming and Scripting

Cloning

Hi, Is there disadvantages if we do AIX Serevr cloning to the new AIX server. Thanks in advance (0 Replies)
Discussion started by: kmsekhar
0 Replies

8. HP-UX

HP-UX server cloning

Hello Friends, Am in requirement to clone a Live HP-UX server here's details OS: HpUX B-11.11 with mirrored LVM disks . S/ws: Remedy, XML engine, Annoysystem, Oracle All Oracle, XMl and Remedy data is on SAM LUN which is used for clustering . My requirement to create a clone server and... (10 Replies)
Discussion started by: Shirishlnx
10 Replies

9. Ubuntu

dd cloning of whole disk

I am using 'dd' to clone an entire hard drive which only has Ubuntu 11.10 and some data with no special options. The disks are both 1Tb, However, I did re-partition the target disk with gparted successfully. The new partions are not the same size as the source disk. When starting 'dd' no partitions... (24 Replies)
Discussion started by: Royalist
24 Replies

10. Linux

Disk cloning ?

Dear All I needed to clone my disk to another hard drive . I did it as the following : #dd if=/dev/sdb of=/dev/sdc But after a while, the procedure ended with the "writing to /dev/sdc input/output error" message. Can you please let me know how can I overcome this as the fdisk now returns as "... (1 Reply)
Discussion started by: hadimotamedi
1 Replies
PC-SYSINSTALL(8)					    BSD System Manager's Manual 					  PC-SYSINSTALL(8)

NAME
pc-sysinstall -- System installer backend SYNOPSIS
pc-sysinstall [-c file] [command] DESCRIPTION
The pc-sysinstall utility is a hybrid backend for installing FreeBSD. When run in install mode it takes a configuration file and performs an installation according to the parameters specified in the configuration file. When called with one of the system query commands it provides information about the system to aid a front end in building an appropriate configuration file. The following options are available: -c file Perform an installation as directed by file. COMMANDS
The command can be any one of the following: help Display a list of all commands. help command Display the help data for the specified command. disk-list Provide a listing of the storage devices detected on this system. disk-part disk Queries the specified storage device and returns information about its partitions. disk-info disk Returns information about a storage device's size, cylinders, heads, and sectors. detect-laptop Tests to see if this system is a laptop or desktop. detect-emulation Tests to see if this system is running in an emulator detect-nics Returns a listing of the detected network cards on this system. list-components Returns a listing of the available components which can be installed. list-rsync-backups user host port Returns a listing of available rsync-backups on the target server in the life-preserver/ directory. list-tzones Returns a listing of available timezones. query-langs Returns a list of languages that the installer supports. sys-mem Returns the size of installed system RAM in MegaBytes. test-netup test if an internet connection is available. update-part-list Returns a list of PC-BSD and FreeBSD installs on this system for updates. xkeyboard-layouts Returns a list of keyboard layouts that xorg supports. xkeyboard-models Returns a list of keyboard models that xorg supports. xkeyboard-variants Returns a list of keyboard variants that xorg supports. create-part disk size Create a new MBR primary slice on the target disk using size MB. delete-part partition Delete the disk partition specified. If this is the last partition, the disk partition layout will also be scrubbed, leaving a clean disk ready for MBR or GPT file system layouts. start-autoinstall file Start an automated installation with the specified file. Normally only used by automated install scripts. setup-ssh-keys user host port Setup SSH without a password for the target host, user, and port. Used to prompt the user to log into a server before doing a rsync + ssh restore. HISTORY
This version of pc-sysinstall first appeared in FreeBSD 9.0. AUTHORS
Kris Moore <kmoore@FreeBSD.org> BUGS
This utility was written to install PC-BSD and has seen limited use as an installer for FreeBSD. It's likely that usage to install FreeBSD will expose edge cases that PC-BSD doesn't, as well as generate feature requests based on unforeseen needs. BSD
June 24, 2010 BSD
All times are GMT -4. The time now is 07:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy