如何打开 Gparted 终端?

如何打开 Gparted 终端?

我读gparted 的这个文档在移动分区时恢复启动问题。为了grub在 gparted 终端上测试命令,我想打开终端,但无法从我的 Ubuntu 13.04 中找到方法。当我sudo gparted &在 shell 终端上运行时,它会打开 GUI,因此我无法测试命令。如何打开终端?

答案1

为什么不呢?是的,有, 它是分开. 您可以在终端中使用它。只需安装分区按照命令,然后通过运行在终端中使用它分开

sudo apt-get install gparted

分区是 Parted 项目使用的 libparted 库的图形化(加号)前端。如果您想使用命令行,请使用分开相反(注意:不G在名字前面)。

只需用来sudo parted启动它即可。

以下是所有命令的列表parted

$ sudo parted

GNU Parted 2.3
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) help                                                             
  align-check TYPE N                        check partition N for TYPE(min|opt) alignment
  check NUMBER                             do a simple check on the file system
  cp [FROM-DEVICE] FROM-NUMBER TO-NUMBER   copy file system to another partition
  help [COMMAND]                           print general help, or help on COMMAND
  mklabel,mktable LABEL-TYPE               create a new disklabel (partition table)
  mkfs NUMBER FS-TYPE                      make a FS-TYPE file system on partition NUMBER
  mkpart PART-TYPE [FS-TYPE] START END     make a partition
  mkpartfs PART-TYPE FS-TYPE START END     make a partition with a file system
  resizepart NUMBER END                    resize partition NUMBER
  move NUMBER START END                    move partition NUMBER
  name NUMBER NAME                         name partition NUMBER as NAME
  print [devices|free|list,all|NUMBER]     display the partition table, available devices, free space, all found partitions, or a particular partition
  quit                                     exit program
  rescue START END                         rescue a lost partition near START and END
  resize NUMBER START END                  resize partition NUMBER and its file system
  rm NUMBER                                delete partition NUMBER
  select DEVICE                            choose the device to edit
  set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
  toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition NUMBER
  unit UNIT                                set the default unit to UNIT
  version                                  display the version number and copyright information of GNU Parted
(parted) 

答案2

这些说明告诉您打开终端并使用控制台grub

GParted 没有自己的终端或控制台模式。

相关内容