ML
    • Register
    • Login
    • Search
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

    How Do You See GPT Partitions on XenServer 6.5

    IT Discussion
    3
    13
    2462
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmiller
      scottalanmiller @BRRABill last edited by

      @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.

      BRRABill 1 Reply Last reply Reply Quote 0
      • BRRABill
        BRRABill @scottalanmiller last edited by

        @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.

        scottalanmiller 1 Reply Last reply Reply Quote 0
        • DustinB3403
          DustinB3403 last edited by

           fdisk -l
          

          0_1463166566975_XenCenterMain_2016-05-13_15-09-21.png

          1 Reply Last reply Reply Quote 0
          • scottalanmiller
            scottalanmiller @BRRABill last edited by scottalanmiller

            @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.

            1 Reply Last reply Reply Quote 0
            • BRRABill
              BRRABill last edited by

              Since this is a "DF for Dummies" thread, I didn't feel bad asking that.

              1 Reply Last reply Reply Quote 0
              • BRRABill
                BRRABill last edited by

                For XS specifically....

                It did not like fdisk because of GPT, and say to use parted. Yet, parted does not exist on XS?

                DustinB3403 scottalanmiller 2 Replies Last reply Reply Quote 0
                • DustinB3403
                  DustinB3403 @BRRABill last edited by

                  @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 1 Reply Last reply Reply Quote 0
                  • scottalanmiller
                    scottalanmiller @BRRABill last edited by

                    @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.

                    1 Reply Last reply Reply Quote 0
                    • DustinB3403
                      DustinB3403 last edited by

                      sudo yum -y install parted
                      

                      Should be enough to get it installed.

                      1 Reply Last reply Reply Quote 0
                      • BRRABill
                        BRRABill @DustinB3403 last edited by

                        @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?

                        DustinB3403 1 Reply Last reply Reply Quote 0
                        • scottalanmiller
                          scottalanmiller last edited by

                          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.

                          BRRABill 1 Reply Last reply Reply Quote 0
                          • BRRABill
                            BRRABill @scottalanmiller last edited by

                            @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.

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post