gdisk更改分区名称
无    2017-02-01 14:06:58    256    0    0
tianwaifeixian

系统自带的Gdisk

之前分区的时候写的名字乱七八糟的 看着越来越不爽

改掉!

# gdisk /dev/sdb
Command (? for help): p
Disk /dev/sdb: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): ABA2BF19-39DD-413D-B667-B38281C7BBA4
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 3437 sectors (1.7 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          401407   195.0 MiB   EF00  EFI_SDB1
   2          401408       210114559   100.0 GiB   0700  Data_sdb2
   3       210114560       314970111   50.0 GiB    0700  VAR_SDB3
   4       314970112       419825663   50.0 GiB    0700  Opt_SDB4
   5       419825664       839251967   200.0 GiB   0700  HOME_SDB5
   6       839251968      1258676223   200.0 GiB   0700  DATA_SDB6
   7      1258676224      1953523711   331.3 GiB   0700  Backup_sdb7

p是查看当前分区

然后输入c之后改那个就选那个磁盘对应的数字

改完之后:

Command (? for help): p
Disk /dev/sdb: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): ABA2BF19-39DD-413D-B667-B38281C7BBA4
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 3437 sectors (1.7 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          401407   195.0 MiB   EF00  WinBoot
   2          401408       210114559   100.0 GiB   0700  WinData
   3       210114560       314970111   50.0 GiB    0700  var
   4       314970112       419825663   50.0 GiB    0700  opt
   5       419825664       839251967   200.0 GiB   0700  home
   6       839251968      1258676223   200.0 GiB   0700  Data
   7      1258676224      1953523711   331.3 GiB   0700  Sutra

最后要输入W来确认退出

Command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/sdb.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.

搞定~

上一篇: git初始化

下一篇: jenkins初体验

256 人读过
立即登录, 发表评论.
没有帐号? 立即注册
0 条评论
文档导航