Rav*_*avi 24 command-line partitioning grub2 gparted parted
我阅读了 gparted 的这个文档,以便在移动分区时从引导问题中恢复。为了grub在 gparted 终端上测试命令,我想打开终端,但没有从我的 Ubuntu 13.04 中找到方法。当我sudo gparted &在 shell 终端上运行时,它会打开 GUI,因此我无法测试命令。如何打开终端?
αғs*_*нιη 33
为什么不?是的,它已经分开了。您可以在终端中使用它。只需按照以下命令安装Gparted,然后通过运行parted在终端中使用它
sudo apt-get install gparted
Run Code Online (Sandbox Code Playgroud)
GParted是 Parted 项目使用的 libparted 库的图形(加)前端。如果要使用命令行,请改用parted(注意:名称前没有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)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
216265 次 |
| 最近记录: |