02-07-2002
You can use dd for that. Lets say you want to create an image file of hda you would use : dd if=/dev/hda of=/tmp/hdaimage.
If you got 2 identical disks you could mirror them like this :
dd if=/dev/hda of=/dev/hdb
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 LINUX
mkfs.minix
MKFS.MINIX(8) Linux System Administrator's Manual MKFS.MINIX(8)
NAME
mkfs.minix - make a Linux MINIX filesystem
SYNOPSIS
mkfs.minix [-c|-l filename] [-n namelength] [-i inodecount] [-v] device [size-in-blocks]
DESCRIPTION
mkfs.minix creates a Linux MINIX file-system 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 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 the device for bad blocks before creating the file system. If any are found, the count is printed.
-n namelength
Specify the maximum length of filenames. Currently, the only allowable values are 14 and 30. The default is 30. Note that kernels
older than 0.99p7 only accept namelength 14.
-i inodecount
Specify the number of inodes for the filesystem.
-l filename
Read the bad blocks list from filename. The file has one bad block number per line. The count of bad blocks read is printed.
-v Make a Minix version 2 filesystem.
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
mkfs(8), fsck(8), reboot(8)
AVAILABILITY
The mkfs.minix command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
Util-linux 2.6 2 July 1996 MKFS.MINIX(8)