2020年9月14日 星期一

cannot resize disk by 'Disks' utility from xfce 無法在 xfce 介面中的 'Disks' 工具擴增硬碟空間

Symptoms 徵狀

Nothing happened when you click resize function from disks utility.

使用 Disks 工具的 Resize 功能時,系統沒有任何反應。


Cause 原因

The partition you want to extend is not allocate properly.

預擴增的硬碟沒有先配置好可用空間。


Resolution 解決方案

First, you need to allocate available spaces to the device.

首先必須先修正、配置該硬碟的可用空間。

sudo parted -a optimal /dev/sdb
GNU Parted 3.2
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Warning: Not all of the space available to /dev/sdb appears to be used, you can fix the GPT to use all of the space (an
extra 15623782400 blocks) or continue with the current setting?
Fix/Ignore? F
Model: DELL PERC H730P Adp (scsi)
Disk /dev/sdb: 24.0TB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name  Flags
 1      1049kB  16.0TB  16.0TB  xfs

then you can using resize function from disks utility without problem.

之後再使用 Disks 中的 resize 功能即可正常擴增。

 

Reference參考

https://linuxhint.com/creating-and-resizing-xfs-partitions/