How Do You See GPT Partitions on XenServer 6.5
-
How do you see an entire disk, even the used parts?
Akin to what you would see pulling up a disk in Disk Management in Windows?
-
@BRRABill said in Linux: Checking Filesystem Usage with df:
How do you see an entire disk, even the used parts?
Akin to what you would see pulling up a disk in Disk Management in Windows?
Totally different tools. The df tool is a filesystem one, it queries the filesystem for data. What you want is underlying device information, so we need a tool that talks to a device. There are several of these tools for Linux, some are meant to be human interactable, some are meant to be scriptable.
The most standard tool traditionally is fdisk and it is pretty easy to use. But fdisk cannot handle GPT disks, so it is falling from use quickly. It is replaced by parted.
-
@scottalanmiller said
The most standard tool traditionally is fdisk and it is pretty easy to use. But fdisk cannot handle GPT disks, so it is falling from use quickly. It is replaced by parted.
What fdisk parameter(s) would show the entire physical drive, including partitions and also free space.
-
fdisk -l
-
@BRRABill said in Linux: Checking Filesystem Usage with df:
@scottalanmiller said
The most standard tool traditionally is fdisk and it is pretty easy to use. But fdisk cannot handle GPT disks, so it is falling from use quickly. It is replaced by parted.
What fdisk parameter(s) would show the entire physical drive, including partitions and also free space.
Dustin beat me to it.
-
Since this is a "DF for Dummies" thread, I didn't feel bad asking that.
-
For XS specifically....
It did not like fdisk because of GPT, and say to use parted. Yet, parted does not exist on XS?
-
@BRRABill said in Linux: Checking Filesystem Usage with df:
For XS specifically....
It did not like fdisk because of GPT, and say to use parted. Yet, parted does not exist on XS?
Odd that it's not included by default right... lol
-
@BRRABill said in Linux: Checking Filesystem Usage with df:
For XS specifically....
It did not like fdisk because of GPT, and say to use parted. Yet, parted does not exist on XS?
XenServer specifically uses the very poorly known gdisk instead of parted.
-
sudo yum -y install parted
Should be enough to get it installed.
-
@DustinB3403 said
Odd that it's not included by default right... lol
@scottalanmiller and I have been discussing this offline a bit today. A lot of stuff isn't.
For example, lsblk.
And then we tried getting it installed, to no avail. I wonder if parted can be installed. Do you have it installed on your XS setup?
-
Forked us over here as this is totally unrelated to the topic that it was in and a new question was asked in the thread.
-
@scottalanmiller said
Forked us over here as this is totally unrelated to the topic that it was in and a new question was asked in the thread.
My bad.