1. 程式人生 > >gparted燒錄到U盤,使其成為live usb,從而實現U盤啟動,並啟動gparted

gparted燒錄到U盤,使其成為live usb,從而實現U盤啟動,並啟動gparted

 

1.把zip包中的檔案解壓縮到U盤中,並且保持原目錄結構不變!也就是說,解壓縮到U盤根目錄中!自己不要增加目錄!

2.執行你U盤中utils/linux/目錄中的makeboot.bat檔案!(特別注意,此檔案一定要在U盤中執行,絕不允許在你的硬碟上執行!)

以上操作完畢後,即可用U盤當啟動盤了!

參考  https://gparted.sourceforge.io/liveusb.php#linux-setup

  • Download the GParted Live zip file.
  • If you already have a FAT16 or FAT32 partition on your USB flash drive then skip to the next step (3).

    Otherwise prepare at least a 300 MB partition formatted with either a FAT16 or FAT32 file system.
    The partition must be large enough to hold the extracted contents of the GParted Live zip file.


    If the USB flash drive or USB hard drive does not have any partition, you can use a partitioning tool (e.g. gparted, parted, fdisk, cfdisk or sfdisk) to create a partition with a size of 300 MB or more.
    Here we assume your USB flash drive or USB hard drive is /dev/sdd (You have to comfirm your device name, since it's _NOT_ always /dev/sdd
    ) on your GNU/Linux, so the partition table is like:
          # fdisk -l /dev/sdd
          Disk /dev/sdd: 12.8 GB, 12884901888 bytes
          15 heads, 63 sectors/track, 26630 cylinders
          Units = cylinders of 945 * 512 = 483840 bytes
          Disk identifier: 0x000c2aa7
    
             Device Boot      Start         End      Blocks   Id  System
             /dev/sdd1   *           1       26630    12582643+   b  W95 FAT32
        
    Then format the partition as FAT with a command such as "mkfs.vfat -F 32 /dev/sdd1"
    WARNING! Executing the mkfs.vfat command on the wrong partition or device could cause your GNU/Linux not to boot. Be sure to confirm the command before you run it.
          # mkfs.vfat -F 32 /dev/sdd1
          mkfs.vfat 2.11 (12 Mar 2005)
        
  • Insert your USB flash drive or USB hard drive into the USB port on your Linux machine and wait a few seconds. Next, run the command "dmesg" to query the device name of the USB flash drive or USB hard drive. Let's say, for example, that you find it is /dev/sdd1. In this example, we assume /dev/sdd1 has FAT filesystem, and it is automatically mounted in dir /media/usb/. If it's not automatically mounted, manually mount it with commands such as "mkdir -p /media/usb; mount /dev/sdd1 /media/usb/".
  • Unzip all the files and copy them into your USB flash drive or USB hard drive. You can do this with a command such as: "unzip gparted-live-0.4.5-2.zip -d /media/usb/"). Keep the directory architecture, for example, file "GPL" should be in the USB flash drive or USB hard drive's top directory (e.g. /media/usb/GPL).
  • To make your USB flash drive bootable, first change the working dir, e.g. "cd /media/usb/utils/linux", then run "bash makeboot.sh /dev/sdd1" (replace /dev/sdd1 with your USB flash drive device name), and follow the prompts.
    WARNING! Executing makeboot.sh with the wrong device name could cause your GNU/Linux not to boot. Be sure to confirm the command before you run it.
  •  
  • u盤內容如下

關機重啟,從u盤啟動(按del或F2進入),進入u盤啟動項,選擇第一個進入

第一項為windows下的c盤,c盤及boot分割槽不可移動,不可以減少只可以增多(為安全考慮,不知是否嚴謹,未曾驗證)。

 

確定分割槽調整完畢,點選apply真正執行分割槽操作,需要等待一段時間,之後出現以下介面,顯示操作正確完成

重啟電腦進入windows會進行磁碟檢查,需要等待十分鐘