Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Unix System Total Replication Post 168 by Neo on Friday 3rd of November 2000 09:45:06 AM
Old 11-03-2000
We have used dd many times and it works fine. Many linux vendors also use dd to duplicate entire disk sets for linux boxes they are selling. That is how they can get a lot of linux boxes out the door quickly. If they had to do the standard install on each platform, it would take forever!

When you run dd between hard disks with the same geometry, the two disks have a mirror copy of each other. If you mount the copied disk in place of the original disk, it will work fine. If I'm not mistaken dd also copies all the boot sector and MBR boot information as well. Here is plain example:

(not counting blocks, other flags, etc.)

dd if=/dev/hda of=/dev/hdb

where /dev/hda is the original and /dev/hdb is the new one. Of course, your hard drives might be on different device drivers depending on your configuration, boot sequence, etc.

Then you must replace /dev/hda with /dev/hdb.

This should work. But I've not done if for some time, so please check the man pages for dd.

[Edited by Neo on 11-03-2000 at 09:51 PM]
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

is this the UNIX operating system board? TOTAL NEWBIE

I'm trying to find information to help me switch to UNIX os from Windows98. Is this where I should be? If so, can someone get me started? I have a Compaq Presario 5030 with a USR 56k modem and other peripherials. Sound card is integrated onto the motherboard (I think). So, I need drivers, etc. Any... (2 Replies)
Discussion started by: leohutt
2 Replies

2. HP-UX

HP Unix replication solution

Hi, I looking to setup HP Unix to HP Unix replication as plan of business continuity. The setup can be active passive or active active. Anyone can give me some idea what solution able to perform that? Thanks (3 Replies)
Discussion started by: ufo_999
3 Replies

3. HP-UX

How should I know the total RAM available on UNIX

Hi How Should I know the Total RAM available on HP-UX box? (7 Replies)
Discussion started by: skull123
7 Replies

4. UNIX for Dummies Questions & Answers

folder replication between windows and unix

1. How do i replicate folders between windows and unix. if i create a subfolder under NDC in windows, it should automatically create a subfolder in unix as well. windows nt /NDC/SUBFOLDERS hp ux /NDC/SUBFOLDERS 2. How do i ftp a file from windows to unix using automated... (0 Replies)
Discussion started by: systemsb
0 Replies

5. UNIX for Dummies Questions & Answers

df+du=Total space allocated(for a file system)

Hi All, Will df+du=Total space allocted for a file system?? Is the above correct. Please correct me If iam wrong. In one my programs the above is not happening. Please help me out. Many thanks. Regards, Manas (2 Replies)
Discussion started by: manas6
2 Replies

6. Shell Programming and Scripting

Calculate total space, total used space and total free space in filesystem names matching keyword

Good afternoon! Im new at scripting and Im trying to write a script to calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies

7. Shell Programming and Scripting

Recursive Replication of Unix folders to Windows

Requirements: ftp files recursively from unix to windows. Replicate directory paths on unix (source) to windows (destination) and place files in their respective folders. There are no set number of files per directory nor fix number of dirA or dirB etc.... Source OS: Solaris... (5 Replies)
Discussion started by: mlv_99
5 Replies

8. Linux

Increasing total data size per file system request for block drivers

Hi All, I am writing a block driver for a 2GB SD card where i get the total amount of data per request as follows: struct request *req; uint card_addr,total_bytes; struct request_queue *rq = BlkDev->queue; req = elv_next_request(rq); .. .. card_addr = req->sector*512;... (1 Reply)
Discussion started by: amio
1 Replies

9. UNIX for Dummies Questions & Answers

Is total CPU usage for sar %user+%system+%iowait?

Hi all Can anyone advise/confirm whether total CPU usage when running sar is %user+%system+%iowait or is it %user+%system only? I want to confirm whether I am having a CPU-bound problem or not. This is a single-CPU VMware machine. $ sar 5 20 Linux 2.6.18-238.5.1.el5... (7 Replies)
Discussion started by: newbie_01
7 Replies
MKFS.MINIX(8)                                                  System Administration                                                 MKFS.MINIX(8)

NAME
mkfs.minix - make a Minix filesystem SYNOPSIS
mkfs.minix [options] device [size-in-blocks] DESCRIPTION
mkfs.minix creates a Linux MINIX filesystem on a device (usually a disk partition). The device is usually of the following form: /dev/hda[1-8] (IDE disk 1) /dev/hdb[1-8] (IDE disk 2) /dev/sda[1-8] (SCSI disk 1) /dev/sdb[1-8] (SCSI disk 2) The device may be a block device or a image file of one, but this is not enforced. Expect not much fun on a character device :-). The size-in-blocks parameter is the desired size of the file system, in blocks. It is present only for backwards compatibility. If omit- ted the size will be determined automatically. Only block counts strictly greater than 10 and strictly less than 65536 are allowed. OPTIONS
-c, --check Check the device for bad blocks before creating the filesystem. If any are found, the count is printed. -n, --namelength length Specify the maximum length of filenames. Currently, the only allowable values are 14 and 30 for file system versions 1 and 2. Ver- sion 3 allows only value 60. The default is 30. -i, --inodes number Specify the number of inodes for the filesystem. -l, --badblocks filename Read the list of bad blocks from filename. The file has one bad-block number per line. The count of bad blocks read is printed. -1 Make a Minix version 1 filesystem. This is the default. -2, -v Make a Minix version 2 filesystem. -3 Make a Minix version 3 filesystem. -V, --version Display version information and exit. The long option cannot be combined with other options. -h, --help Display help text and exit. EXIT CODES
The exit code returned by mkfs.minix is one of the following: 0 No errors 8 Operational error 16 Usage or syntax error SEE ALSO
fsck(8), mkfs(8), reboot(8) AVAILABILITY
The mkfs.minix command is part of the util-linux package and is available from https://www.kernel.org/pub/linux/utils/util-linux/. util-linux June 2015 MKFS.MINIX(8)
All times are GMT -4. The time now is 06:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy