亚洲欧洲国产欧美一区精品,激情五月亚洲色五月,最新精品国偷自产在线婷婷,欧美婷婷丁香五月天社区

      考試首頁 | 考試用書 | 培訓(xùn)課程 | 模擬考場(chǎng) | 考試論壇  
        當(dāng)前位置:Linux認(rèn)證 > 綜合輔導(dǎo) > 文章內(nèi)容
        

      Linux教程:在UbuntuLinux下制作Windows啟動(dòng)安裝USB盤

      來源:Linux社區(qū) [ 2016年1月21日 ] 【

      最近想 ,在Ubuntu上刻錄個(gè)Windows的安裝U盤,在網(wǎng)上看了些資料,不過好多都說的很模糊,于是乎,我走了不少彎路。這里記錄下來,希望了幫到大家。

      首先你的有個(gè)USB吧,這里我們假定USB在ubuntu中為/dev/sdb

      1. 給USB設(shè)備 /dev/sdb 分區(qū),注意,要是主分區(qū),

      sudo fdisk /dev/sdb
      Command (m for help): n
      Partition type:
        p  primary (0 primary, 0 extended, 4 free)
        e  extended
      Select (default p): p
      Partition number (1-4, default 1):
      Using default value 1
      First sector (2048-15564799, default 2048):
      Using default value 2048
      Last sector, +sectors or +size{K,M,G} (2048-15564799, default 15564799):
      Using default value 15564799

      Command (m for help): p


      Disk /dev/sdb: 7969 MB, 7969177600 bytes
      246 heads, 62 sectors/track, 1020 cylinders, total 15564800 sectors
      Units = sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disk identifier: 0x8d55b9cb


        Device Boot      Start        End      Blocks  Id  System
      /dev/sdb1            2048    15564799    7781376  83  Linux

      上面/dev/sdb1就分出來了,全部的空間都給了sdb1

      2. 然后把/dev/sdb1設(shè)置為啟動(dòng)分區(qū)

      Command (m for help): a
      Partition number (1-4): 1

      Command (m for help): p


      Disk /dev/sdb: 7969 MB, 7969177600 bytes
      126 heads, 10 sectors/track, 12353 cylinders, total 15564800 sectors
      Units = sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disk identifier: 0x8d55b9cb

        Device Boot      Start        End      Blocks  Id  System
      /dev/sdb1  *        2048    15564799    7781376  83  Linux

      我們可以看到,sdb1后面,多了個(gè)*

      3. 接下來,把上面做的所有改動(dòng)寫入U(xiǎn)SB

      Command (m for help): w
      The partition table has been altered!

      Calling ioctl() to re-read partition table.

      WARNING: Re-reading the partition table failed with error 22: Invalid argument.
      The kernel still uses the old table. The new table will be used at
      the next reboot or after you run partprobe(8) or kpartx(8)
      Syncing disks.

      然后就是q退出

      4. 將分區(qū)格式化為ntfs的

      sudo mkfs -t ntfs /dev/sdb1

      這個(gè)過程中,會(huì)把分區(qū)中寫入全0,大概會(huì)等幾分鐘

      5. 接下來就是把下載好的iso文件dd到這個(gè)啟動(dòng)分區(qū)了

      # 把下載的iso文件刻錄到usb的分區(qū)中(及得,一定是分區(qū),否則下次用這個(gè)usb是會(huì)出現(xiàn) Operating not found的問題
      sudo dd if=/home/peter/Downloads/WindowsTechnicalPreview-x64-ZH-CN.iso of=/dev/sdb1 bs=4M iflag=direct​

      看到了吧,我在安裝win10

      6. 現(xiàn)在還不可以從usb盤啟動(dòng),還要在usb盤MBR區(qū)信息寫入,這需要一個(gè)工具LILO

      sudo apt-get install lilo
      sudo lilo -M /dev/sdb mbr

      下次啟動(dòng)的時(shí)候,選擇這個(gè)USB啟動(dòng)就會(huì)出現(xiàn)windows的安裝界面了!

      將考試網(wǎng)添加到收藏夾 | 每次上網(wǎng)自動(dòng)訪問考試網(wǎng) | 復(fù)制本頁地址,傳給QQ/MSN上的好友 | 申請(qǐng)鏈接 | 意見留言 TOP
      關(guān)于本站  網(wǎng)站聲明  廣告服務(wù)  聯(lián)系方式  站內(nèi)導(dǎo)航  考試論壇
      Copyright © 2007-2013 中華考試網(wǎng)(Examw.com) All Rights Reserved