zoukankan      html  css  js  c++  java
  • linux dd命令刻录启动U盘详解

    dd if=xxx.iso of=/dev/sdb bs=1M

    用以上命令前必须卸载u盘,sdb是你的u盘,bs=1M是块的大小,后面的数值大,写的速度相对块一点,但也不是无限的,我一般选2M,注意,执行命令后很块完成,但u盘还在闪,等不闪了,安全移除。

    [root@ok Desktop]# fdisk -l
    
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x000dcf9e
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1          64      512000   83  Linux
    Partition 1 does not end on cylinder boundary.
    /dev/sda2              64       60802   487873536   8e  Linux LVM
    
    Disk /dev/mapper/vg_ok-lv_root: 53.7 GB, 53687091200 bytes
    255 heads, 63 sectors/track, 6527 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000
    
    
    Disk /dev/mapper/vg_ok-lv_swap: 3841 MB, 3841982464 bytes
    255 heads, 63 sectors/track, 467 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000
    
    
    Disk /dev/sdd: 15.5 GB, 15502147584 bytes #这是U盘
    71 heads, 32 sectors/track, 13326 cylinders
    Units = cylinders of 2272 * 512 = 1163264 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x39768880
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdd1   *           1        1011     1148464   17  Hidden HPFS/NTFS
    
    Disk /dev/mapper/vg_ok-lv_home: 442.1 GB, 442050281472 bytes
    255 heads, 63 sectors/track, 53742 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000
    [root@ok Desktop]# /bin/dd if=/home/ISO/CentOS-7-x86_64-Minimal-1511.iso of=/dev/sdb

    上面的这命令注意是/dev/sdb 不是/dev/sdb1

  • 相关阅读:
    spark SQL之 DataFrame和DataSet
    scala之 保留小数
    spark之 避免数据倾斜之 给名字分区(百家姓)
    hive之 'client_protocol' is unset!
    hive之报错:ls:cannot access '/usr/local/spark/lib/spark-assembly-*.jar':No such file or directory
    hive之 Error: Duplicate key name 'PCS_STATS_IDX' (state=42000,code=1061) ----Hive schematool -initSchema
    Maven中需要注意的点
    spark之 Idea操作
    scala之 一句话打印三角形
    scala 之 BaseDao
  • 原文地址:https://www.cnblogs.com/bass6/p/5790365.html
Copyright © 2011-2022 走看看