/SDA OF=/DEV/SDB Here, if= ... sets the source and of= ... sets the destination. "dd" doesn ' t care for the contents of the hard disk. It just reads bytes From/dev/sda and writes them into/dev/sdb. It doesn ' t know what is files. So, the hard disk file system and how many partitions it have is not important. For example, IF/DEV/SDA are splitted into three parti
=/xiaohan/test.iso bs=1024m count=1In this case, the speed at which the test is displayed is the speed at which the DD command writes the data to the memory buffer, and only when the data is written to the memory buffer that it starts to flash the data to the hard disk, so this time the data is not able to measure the disk write speed correctly.2.
As a U disk system Startup disk, Ubuntu has a graphical interface tool Startup Disk Creator, simple and easy to use, but the disadvantage is only to make Ubuntu Startup disk, other systems do not support. So what do I want to do about Fedora's system boot disk in Ubuntu? It
1, first familiar with two special equipment:(1)/dev/null: Recycle Bin, bottomless pit.(2)/dev/zero: produces characters.2. Test disk write capabilityCopy the Code code as follows:Time DD If=/dev/zero of=/testw.dbf bs=4k count=100000Because/dev//zero is a pseudo-device, it produces only a stream of empty characters, it does not produce Io, so the IO is concentrated in the of file, the of file is used only f
Http://os.51cto.com/art/201510/494762.htmFirst open the terminal in the Linux system, confirm the USB drive path:sudo fdisk -lUsing the DD command, the format is as follows:sudo dd if=xxx.iso of=U盘路径Complete Example:if=~/images/ubuntu.iso of=/dev/sdbWrite the Ubuntu.iso image file in the ~/images directory to the SDB disk after the above
Disk management, mounting a disk, attaching a disk image file, mounting a USB flash drive, umount command, dd
1 mount
Command Format:
Mount [-t vfstype]-o options device dir
Where:
*-T vfstype specifies the type of the file system, which is usually not required. Mount automatically selects the correct type. Regular
Use
The copy disk can be used to copy the data from the old disk to the new disk, replacing the old disk. For example, your old disk is not big enough, or the old disk has a physical bad, then you can use the "Copy
The copy disk can be used to copy the data from the old disk to the new disk, replacing the old disk. For example, your old disk is not big enough, or the old disk has a physical bad, then you can use the "Copy
specified folder and save it as a cd.iso image file
DD If=/dev/cdrom (HDC) Of=/root/cd.iso
10. Increase Swap partition file size
First step: Create a file size of 256M:
DD If=/dev/zero of=/swapfile bs=1024 count=262144
Step Two: Turn this file into swap swap partition file:
Mkswap/swapfile
Step three: Enable this swap partition file:
Swapon/swapfile
Fourth step: Edit the/etc/fstab file so that the
conv = fdatasync
(1) After the dd command is executed, a "sync" operation will be executed.
(2) The time required to read the M data to the memory and write the data to the disk.
(3) comparison with actual conditions
Actual running result:
4. dd bs = 128 k count = 10 k if =/dev/zero of = test oflag = dsync
(1) dd per
The copy disk can be used to copy the data from the old disk to the new disk, replacing the old disk. For example, your old disk is not big enough, or the old disk has a physical bad, then you can use the "Copy
1, through the ISO to create a bootable U disk system.
1.0, format the U disk for FAT32 format
Linux can use the command
Mkfs.vfat u disk's device path
For example:
Mkfs.vfat/dev/sdb
where the U disk path can be viewed by command DF
1.1, the simplest method (but some cases will fail, and the U disk can not put o
/image.gzBackup/DEV/HDX full data and compress with gzip tool to save to specified pathRecovery:DD If=/path/to/image OF=/DEV/HDXRestore the backup file to the specified diskgzip-dc/path/to/image.gz | DD OF=/DEV/HDXRestores a compressed backup file to a specified disk2.1.2. Using netcat remote BackupDD If=/dev/hda bs=16065b | Netcat Perform this command on the source host backup/dev/hdaNetcat-l-P 1234 |
a disk image file, you perform compression:dd if=/dev/sda | gzip > disk.img.gzdd if=/dev/sda | bzip2 > disk.img.bz2That's good! Ghost has all the features.2. Partition cloningIf we don't want to clone the entire disk and just want to back up some of the partitions that hold the data, you'll need to clone a partition.
not use the default disk volume partition.1,/boot partition2,/root partition3,/home partitionSpecifying these three partitions is sufficientThird, the system is recommended to install the desktop, after the installation is complete, modify the Inittab run level is 3, the default is not open the desktop, want to open on.Insert USB drive, boot from USB stickVim/root/.bashrcAdd a line at the bottom: Bash disk.shSave Exit!vim/root/disk.shCopy the content
Introduction:
Because the SuSE server does not perform raid, the system hard disk needs to be replaced. I plan to perform the hard drive test directly.
Purpose:
Run the DD command to test the SuSE system hard disk to ensure that the new hard disk works normally.
Steps:
1. Connect 2 TB of new hardware to the server
2.
partition data I need into the ghost.img file. The image production is complete! Then, we can plug the USB stick to other systems, start with a USB stick, enter UBUNTULIVECD, open the command line, execute the following command: DD if=/ghost.img OF=/DEV/SDA After the completion, unplug the USB drive, start the computer, you can see our Linux system has been installed! Note: Do not perform a DD comm
Transferred from: http://blog.jobbole.com/90978/Ghost and g4l.Install the operating system, too slow, the whole process is too tedious.During the installation process, several questions need to be answered, and the system needs to install countless software to create and write countless files. Because it involves a lot of file location and read and write, the speed must be not fast up.We often use ghost systems to back up and burn the operating system under Windows. Ghost can
existing partition
We can partition them directly from the existing partitions. The following command creates a copy of the/DEV/SDB1 to/DEV/SDB2.# dd IF=/DEV/SDB1 OF=/DEV/SDB2 Sample output
16064937+0 Records
in 16064937+0 records out
8225247744 bytes (8.2 GB) copied, 221.431, 37.1 MB/s
4: Create an existing hard disk clone
The following command copies the fir
Use Clonezilla to mirror and clone the hard disk
Clonezilla is a partition and disk clone program for Linux, Free-Net-OpenBSD, Mac OS X, Windows, and Minix. It supports all major file systems, including EXT, NTFS, FAT, XFS, JFS, Btrfs, LVM2, and VMWare's enterprise cluster file systems VMFS3 and VMFS5. Clonezilla suppo
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.