在之前的文章中,我们讨论了在Linux中使用“dd”命令的不同方法。“dd”命令对于许多不同的任务很有用,例如创建磁盘映像、备份分区以及将磁盘映像写入便携式闪存驱动器。当然,“dd”只能通过终端(Terminal)使用,并且如果您混淆了输入和输出源,它还能够在没有警告的情况下覆盖整个硬盘驱动器。所以很高兴看到为那些想要更友好、更宽容地使用“dd”命令的Linux用户提供了一个(Linux)GUI 。
这个名为 gdiskdump 的程序使用起来很简单,虽然对于熟悉终端(Terminal)的人来说使用起来不会那么快,但它绝对是一种更简单的方式来访问“dd”必须提供的一些功能。
要下载 gdiskdump,您需要访问其Gtk-apps.org 条目(Gtk-apps.org entry),或访问其Launchpad 页面(Launchpad page),您可以在其中下载Debian/Ubuntu安装程序或源代码。在本例中,我们将在Ubuntu中安装 gdiskdump 。
下载安装程序后,您只需右键单击它并选择您喜欢的安装方法。对于DEB文件,我们使用GDebi。
打开后,点击安装(Install)。您可能需要输入密码。
任何需要的库都将自动下载并安装,完成后,您将看到此确认信息。
您现在可以打开 gdiskdump,它应该在您的应用程序菜单中的附件下找到。
您可能需要输入密码(除非您最近出于其他原因完成输入),因为“dd”命令始终需要以 root 身份运行。
完成后,您将看到第一个 gdiskdump 屏幕,要求您选择输入格式。您可以选择分区、硬盘驱动器或文件作为输入格式。选择文件就是这样,而分区将是硬盘驱动器的完整分区,而硬盘驱动器选项包括everyting(所有分区)。
选择输入格式和设备/文件后,点击前进按钮移动到下一个屏幕,您将在其中选择输出格式。
再一次,您可以选择输出到文件、分区或硬盘驱动器。您需要先选择类型,然后选择保存备份的物理位置。
您可能会看到一条警告,通知您目标目录没有足够的空间来保存备份。
假设您选择了一个有足够空间的驱动器,您可以单击“确定”按钮开始该过程。或者,如果您想要更多控制(类似于从命令行使用 'dd' 获得的控制),您可以选择查看Advanced Settings。
再次,当你准备好时,点击 OK 按钮;以下警告将始终出现。
此警告首先告诉您备份将覆盖您选择作为目标位置的分区或硬盘驱动器,并且在复制分区或硬盘驱动器(但不是单个文件)时,不应安装该设备。这实际上意味着您无法备份引导驱动器。为此,您需要从闪存驱动器运行“dd”或 gdiskdump。
根据您的文件、分区或硬盘驱动器的大小,该过程可能需要一些时间,虽然没有弹出窗口通知您工作已完成,但屏幕顶部的进度条会在备份完成时向您显示完全的。
这就是它。从终端(Terminal)使用 'dd'既快速又强大,但对于那些想要更加用户友好的人来说,gdiskdump 是一个不错的选择。
Use the Linux ‘dd’ Command With A Simple GUI
In a previous article, we talked about dіfferent wayѕ to usе the ‘dd’ command in Linux. The ‘dd’ command is useful for many different taskѕ, such as creating disk images, backing up partitions, and writing dіsk images to portable flash drives. Of coυrse, ‘dd’ is only available vіa the Terminal, and is also capable of overwriting your entire hard drive without warning, should уou mix up your input and output sources. So it was nice to see thаt a GUI exists for those Linux usеrs wanting a more user-friendly, and more forgiving method of using thе ‘dd’ command.
The program, called gdiskdump, is simple to use, and while using it won’t be nearly as quick for someone comfortable to the Terminal, it is definitely a simpler way to access some of the power ‘dd’ has to offer.
To download gdiskdump, you’ll need to go to either its Gtk-apps.org entry, or to its Launchpad page, where you can download a Debian/Ubuntu installer or the source code. In this example, we’ll be installing gdiskdump in Ubuntu.
Once you’ve downloaded the installer, you can simply right-click it and choose your prefered method of installation. For DEB files, we’re use GDebi.
Once open, click to Install. You’ll likely need to enter your password.
Any required libraries will automatically be downloaded and installed, and when you’re finished, you’ll see this confirmation.
You can now open gdiskdump, which should be found in your Applications menu, under Accessories.
You’ll likely need to enter your password (unless you’ve recently finished entering it for another reason), as the ‘dd’ command always needs to be run as root.
Once this is finished, you’ll see the first gdiskdump screen, which asks you to choose the input format. You can choose either a partition, hard drive or a file as your input format. Choosing a file will be just that, while a partition will be the full partition of a hard drive and the hard drive option includes everyting (all partitions).
Once you’ve selected your input format and device/file, hit the forward button to move to the next screen, where you will choose your output format.
Once again, you have the choice of outputting to a file, partition or hard drive. You’ll need to first select the type, and then the physical location where your backup will be saved.
You may see a warning, informing you that your target directory does not have enough space to hold your backup.
Assuming you’ve selected a drive with enough space, you can click the OK button to begin the process. Or, if you want a bit more control (similar to what you’d get using ‘dd’ from the command line), you can choose to view the Advanced Settings.
Again, when you’re ready, hit the OK button; the following warning will always appear.
This warning first tells you that your backup will overwrite the partition or hard drive you’ve selected as your target location, and that while copying a partition or hard drive (but not a single file), the divice should not be mounted. What this means in practice is that you can’t back up your boot drive. To do so, you’d need to run ‘dd’ or gdiskdump from a flash drive.
Depending on how large your file, partition or hard drive is, the process can take some time, and while there’s no pop-up informing you the job is done, the progress bar at the top of the screen will show you when the backup is complete.
And that’s pretty much to it. Using ‘dd’ from the Terminal is fast and powerful, but for those wanting something a bit more user friendly, gdiskdump is a nice choice.