Write the iso file to sdcard

Source: Internet
Author: User
Write iso file to sdcardls/media find sdcard name B4CA-9ACAwww.2cto.commount | grepB4CA-9ACA find device node/dev/mmcblk0p1 device copy sudoddifubuntu-12.10-desktop-i386.isoof/dev/mmcblk0...
Write iso file to sdcard ls/media find sdcard name B4CA-9ACA www.2cto.com mount | grep B4CA-9ACA find device node/dev/mmcblk0p1 device copy sudo dd if = ubuntu-12.10-desktop-i386.iso of =/dev/mmcblk0p1 --------------- linux dd command ------------------ name: dd permission: all users dd command in manual is defined as convert and copy a file usage: dd [option] if you want to view manual Online, try: dd -- help www.2cto.com or info dd if you want to see how this version is: dd -- version input or output dd if = [STDIN] Of = [STDOUT] the Size of the forced input or output Bytes bs: dd-ibs = [BYTE]-obs = [SIZE] force only one Bytes cbs = BYTES to skip a section and then output seek = BLOCKS www.2cto.com to skip a section before entering skip = BLOCKS. of course you can use this to conveniently copy a CD (note, your CD can be renewed in the standard iso9660 format !) Dd if =/dev/cdrom of = cdrom. iso where the content after if and after of is adjusted according to your requirements. Then, run the command: cdrecord-v cdrom. iso is not about cdrecord, so the command above is the simplest but may not necessarily meet your hardware environment... function: copies the specified input file to the specified output file, and supports format conversion during the copy process. You can use this command to implement the diskcopy command in DOS. Use the dd command to write the data on the floppy disk as a storage file on the hard disk, and then write the storage file to the second disk to complete the diskcopy function. Note that you should delete the storage file on the hard disk with the rm command. Standard input files and standard output files are used by default. Syntax: dd [option] if = input file (or device name ). Of = output file (or device name ). Ibs = bytes: the number of bytes read from the buffer zone. Skip = blocks skip the ibs * blocks block at the beginning of the read buffer. Obs = bytes: the number of bytes written to the buffer zone. Bs = bytes: set the number of bytes in the read/write buffer at the same time (equal to setting ibs and obs ). Cbs = byte: bytes are converted once. Count = blocks only copies the input blocks block. Conv = ASCII converts the EBCDIC code to the ASCIl code. Conv = ebcdic converts an ASCIl code to an EBCDIC code. Conv = IBM converts an ASCIl code to an alternate EBCDIC code. Conv = block converts a variable bit to a fixed character. Conv = ublock converts a fixed bit to a variable bit. Conv = ucase converts lowercase letters to uppercase letters. Conv = lcase converts uppercase letters to lowercase letters. Conv = notrunc: the output file is not truncated. Conv = swab exchange each pair of input bytes. Conv = do not stop processing when noerror occurs. Conv = sync adjusts the size of each input record to the ibs size (filled with NUL ). Example 1: copy the content of a floppy disk to another floppy disk and use/tmp as the temporary storage area. Insert the source disk into the drive and enter the following command: $ dd if =/dev/fd0 of =/tmp/tmpfile, copy the source disk from the drive, insert the Target Disk and run the following command: $ dd if =/tmp/tmpfile of =/dev/fd0. after copying the floppy disk, delete the temporary file: $ rm/tmp/tmpfile Example 2: Set net. write this file into a floppy disk and set the number of read/write buffers. (Note: the content in the floppy disk will be completely overwritten) $ dd if = net. I of =/dev/fd0 bs = 16384 Example 3: Copy the sfile to the dfile. $ Dd if = sfile of = dfile _____________________________________ dd is a very useful command in Linux/UNIX. it is used to copy an object with a specified size block, and perform the specified conversion while copying. The main option of dd: specify a number. if the following column ends with a number: B = 512, c = 1, k = 1024, w = 2, xm = number m if = file: input file name. The default value is standard input. Of = file output file name. The default value is standard output. Ibs = bytes read bytes at a time (that is, the size of a block is bytes ). Obs = bytes write bytes at a time (that is, the size of a block is bytes ). Bs = bytes both sets the size of the read/write block to bytes, which can replace ibs and obs. Cbs = bytes are converted to bytes at a time, that is, the size of the conversion buffer. Skip = blocks skipping blocks from the beginning of the input file before copying. Seek = blocks skips blocks from the beginning of the output file and then starts copying. (Usually only valid when the output file is a disk or tape) count = blocks only copies blocks, and the block size is equal to the number of bytes specified by ibs. Conv = conversion [, conversion...] use the specified parameter to convert the file. Conversion parameters: convert EBCDIC to ascii. Ebcdic converts ASCII to EBCDIC. IBM converts each line to a cbs record by converting ASCII to alternate EBCDIC. block. the missing part is filled with spaces. Unblock: the length of each row is cbs, and spaces are used to fill the remaining parts. Lcase converts uppercase to lowercase. Ucase converts lowercase to uppercase. Swab exchanges each pair of input bytes. Unlike theUnix dd, this works when an odd number ofbytes are read. if the input file containsan odd number of bytes, the last byte issimply copied (since there is nothing toswap it ). do not stop when noerror occurs. Notrunc does not truncate the output file. Sync fills each input block into ibs bytes, and the missing part is filled with null (NUL) characters. Since the dd command allows binary read/write, it is particularly suitable for input/output on the original physical device. For example, you can use the following command to create an image file for a floppy disk: dd if =/dev/fd0 of = disk. img bs = 1440k it is interesting that this image file can be read by tools such as HD-Copy and Winimage. Another example is to save the first 512 bytes of the first hard disk as a file: dd if =/dev/hda of = disk. mbr bs = 512 count = 1

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.