06-09-2004
Hello,
First, I apologize in advance for bringing up a question that probably has been answer somewhere in the forum (I've been searching for hours and I finllay decided to post, I'm definitely a noob to UNIX, again sorry).
I am trying to do the same as the original poster, copy/mirror a drive (entire contents) for purpose of backup. Basically duplicate contents of an existing SCSI HardDrive running UNIX SCO Ver.5.0.6 to a new HD, then boot it with a newly backed-up drive to make sure that it works properly.
Reason for this exercise is to make sure that I have a working backup copy before I could setting up RAID or do other potentially stupid things.
I have been reading and sounds like "dd" or "cpio" would do the trick, but I like the simplicity of "dd" unless I misunderstood its functions. I'm a complete newb to UNIX so this could easily happen.
So, is this the path once the backup HD is installed and detected?
dd if=/dev/hda of=/dev/hdb
(where, hda = current drive, hdb = new drive)
If so, any risks or cautions of what not to do?? thank you!!!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
has any body put freebsd on a drive smaller than 80megs? (4 Replies)
Discussion started by: silverraindog
4 Replies
2. UNIX for Dummies Questions & Answers
I am trying to install a tape drive on this system (Unix 7.1.1)
where will I start?
1. Do I need to load the driver on the on board scsi? How?
2. Is there a driver for the tape drive itself?
Things done:
1. Terminated the device on the controller board. (4 Replies)
Discussion started by: a4tech
4 Replies
3. UNIX for Dummies Questions & Answers
I don't know if this can be done, otherwise, my project will come to
a screeching halt.
I have a SCO 5.0.5 machine connected to the internet with a static
IP address.
I need to be able to share a drive : /shareddrive
I need to map to it from a windows machine:
hence, what i'd like to... (3 Replies)
Discussion started by: gseyforth
3 Replies
4. UNIX for Advanced & Expert Users
Hello,
I will be processing 47000 zip files each of size 5.5 MB.
Following operation will be performed for each zip file:
1. Unzip the file.
2. Read each text and binary file.
3. Preprocess the files.
4. Store the files in different tables in Oracle.
5. Delete the extracted... (7 Replies)
Discussion started by: joshivaibhav
7 Replies
5. UNIX for Dummies Questions & Answers
hi :)
I need to delete partial duplicate lines
I have this in a file
sihp8027,/opt/cf20,1980182
sihp8027,/opt/oracle/10gRelIIcd,155200016
sihp8027,/opt/oracle/10gRelIIcd,155200176
sihp8027,/var/opt/ERP,10376312
and need to leave it like this:
sihp8027,/opt/cf20,1980182... (2 Replies)
Discussion started by: C|KiLLeR|S
2 Replies
6. UNIX for Dummies Questions & Answers
One of our production systems has a slice called "oldslice" that periodically runs low on space during normal operation. We have minimum requirements for online data retention, and whoever sized this slice didn't give it much wiggle room, so it periodically runs low on space. I'm getting tired of... (1 Reply)
Discussion started by: the.gooch
1 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I have a fixed width unix file with 2 columns containing the following data
ZTXX_CTBR1-ZBRAN1 ZTXX_CTBR1-ZBRAN_DESC
01 CASH & CARRY
02 DRUGSTORE - RX
04 ... (4 Replies)
Discussion started by: chumsky
4 Replies
8. UNIX for Dummies Questions & Answers
Hi Guys,
Can any one help me on this.
I need help to move .csv/.xls file from unix path to windows shared drive or c:\ drive?
Regards,
LKR (1 Reply)
Discussion started by: lakshmanraok117
1 Replies
9. Shell Programming and Scripting
Ultimately, I'm looking to create a script that allows me to plug in a usb drive with lots of jpegs on it & copy them over to a folder on my hard drive. So in the process of copying I am looking to hash check them, record dupes to a file, copy only 1 of the identical files (if it doesn't exsist... (1 Reply)
Discussion started by: JonaQuinn
1 Replies
10. UNIX for Beginners Questions & Answers
Dear team , thanks for your support. I am trying to not to duplicate a thread if one is already there for what I am looking, which I am not able to figure out. Is it OK if I post the post the following question in new thread.
--- What follows was in blue.. we are to avoid using colours as we want... (4 Replies)
Discussion started by: ar103081
4 Replies
LEARN ABOUT NETBSD
mlxctl
MLXCTL(8) BSD System Manager's Manual MLXCTL(8)
NAME
mlxctl -- Mylex DAC960 family management utility
SYNOPSIS
mlxctl [-f dev] [-v] [-a] status [drive] [...]
mlxctl [-f dev] [-a] detach [drive] [...]
mlxctl [-f dev] [-a] check [drive] [...]
mlxctl [-f dev] rebuild channel:target
mlxctl [-f dev] cstatus
mlxctl [-f dev] rescan
mlxctl [-f dev] config
DESCRIPTION
The mlxctl utility performs status monitoring and management functions for Mylex DAC960 RAID controllers and attached devices.
The following options are available:
-a Apply the action to all drives attached to the controller.
-f dev Specify the control device to use. The default is /dev/mlx0.
-v Increased verbosity.
The following commands are available:
cstatus Display the controller's current status.
status Display the status of the specified drives. This command returns 0 if all drives tested are online, 1 if one or more drives are
critical and 2 if one or more are offline.
rescan Re-scan the logical drive table, and attach or detach devices from the system as necessary.
detach Detach the specified drives. Drives must be unmounted and unopened for this command to succeed.
check Initiate a consistency check and repair pass on a drive that provides redundancy (e.g., RAID1 or RAID5). This command returns imme-
diately. The status command can be used to monitor the progress of the check.
rebuild Rebuild onto the specified physical drive. Note that there can be only one running rebuild operation per controller at any given
time. This command returns immediately. The cstatus command can be used to monitor the progress of the rebuild.
config Write the current system drive configuration to stdout.
EXAMPLES
Display the status of drive ld3 attached to the controller mlx1:
mlxctl -f /dev/mlx1 -v status ld3
SEE ALSO
ld(4), mlx(4)
HISTORY
The mlxctl command first appeared in NetBSD 1.5.3, and was based on the mlxcontrol utility found in FreeBSD.
BUGS
Modifying drive configuration is not yet supported.
Some commands do not work with older firmware revisions.
Error log extraction is not yet supported.
BSD
April 10, 2000 BSD