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会进行磁盘检查,需要等待十分钟

猜你喜欢

转载自blog.csdn.net/danmeng8068/article/details/83830309
今日推荐