How to use free space for partition

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-1
down vote

favorite












[root@shine home]# fdisk -l /dev/sda

Disk /dev/sda: 4000.8 GB, 4000787030016 bytes
255 heads, 63 sectors/track, 486401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x3c889e03
Device Boot Start End Blocks Id System
/dev/sda1 1 2089 16777216 82 Linux swap / Solaris
/dev/sda2 2089 2155 524288 83 Linux
/dev/sda3 2155 15209 104857600 83 Linux
/dev/sda4 15209 282558 2147483647+ f W95 Ext'd (LBA)
/dev/sda5 15209 282428 2146435072 83 Linux


I have 4TB hard drive from which I have only used 2TB. How can I create more partition and use full space?



I am not sure what the /dev/sda4 partition is. Can I remove it?







share|improve this question

























    up vote
    -1
    down vote

    favorite












    [root@shine home]# fdisk -l /dev/sda

    Disk /dev/sda: 4000.8 GB, 4000787030016 bytes
    255 heads, 63 sectors/track, 486401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x3c889e03
    Device Boot Start End Blocks Id System
    /dev/sda1 1 2089 16777216 82 Linux swap / Solaris
    /dev/sda2 2089 2155 524288 83 Linux
    /dev/sda3 2155 15209 104857600 83 Linux
    /dev/sda4 15209 282558 2147483647+ f W95 Ext'd (LBA)
    /dev/sda5 15209 282428 2146435072 83 Linux


    I have 4TB hard drive from which I have only used 2TB. How can I create more partition and use full space?



    I am not sure what the /dev/sda4 partition is. Can I remove it?







    share|improve this question























      up vote
      -1
      down vote

      favorite









      up vote
      -1
      down vote

      favorite











      [root@shine home]# fdisk -l /dev/sda

      Disk /dev/sda: 4000.8 GB, 4000787030016 bytes
      255 heads, 63 sectors/track, 486401 cylinders
      Units = cylinders of 16065 * 512 = 8225280 bytes
      Sector size (logical/physical): 512 bytes / 4096 bytes
      I/O size (minimum/optimal): 4096 bytes / 4096 bytes
      Disk identifier: 0x3c889e03
      Device Boot Start End Blocks Id System
      /dev/sda1 1 2089 16777216 82 Linux swap / Solaris
      /dev/sda2 2089 2155 524288 83 Linux
      /dev/sda3 2155 15209 104857600 83 Linux
      /dev/sda4 15209 282558 2147483647+ f W95 Ext'd (LBA)
      /dev/sda5 15209 282428 2146435072 83 Linux


      I have 4TB hard drive from which I have only used 2TB. How can I create more partition and use full space?



      I am not sure what the /dev/sda4 partition is. Can I remove it?







      share|improve this question













      [root@shine home]# fdisk -l /dev/sda

      Disk /dev/sda: 4000.8 GB, 4000787030016 bytes
      255 heads, 63 sectors/track, 486401 cylinders
      Units = cylinders of 16065 * 512 = 8225280 bytes
      Sector size (logical/physical): 512 bytes / 4096 bytes
      I/O size (minimum/optimal): 4096 bytes / 4096 bytes
      Disk identifier: 0x3c889e03
      Device Boot Start End Blocks Id System
      /dev/sda1 1 2089 16777216 82 Linux swap / Solaris
      /dev/sda2 2089 2155 524288 83 Linux
      /dev/sda3 2155 15209 104857600 83 Linux
      /dev/sda4 15209 282558 2147483647+ f W95 Ext'd (LBA)
      /dev/sda5 15209 282428 2146435072 83 Linux


      I have 4TB hard drive from which I have only used 2TB. How can I create more partition and use full space?



      I am not sure what the /dev/sda4 partition is. Can I remove it?









      share|improve this question












      share|improve this question




      share|improve this question








      edited May 17 at 19:35









      Kevin Kruse

      17610




      17610









      asked May 17 at 19:00









      Amruta Gaikwad

      6




      6




















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          2
          down vote













          Although the answer already provided answers your original question, I feel you are looking for another question.




          How can I use all 4 TB of storage on my drive?




          You need to switch from MBR to GPT. gdisk can do the job.

          In your particular case, you will need to remove the swap partition temporarily. It is in the way of the main GPT. You can re-add the swap partition after the conversion to GPT is completed.

          You can then use gparted to either add another partition or to extend sda5.

          All of these steps should not affect your data, but please have a backup in case something goes wrong.



          Chances are, you will also need to re-install your boot-loader. You can switch to EFI style booting or stay with legacy BIOS boot. You need a boot partition in either case. See my answer here for the commands (you do not need the removable flag, though).






          share|improve this answer




























            up vote
            -1
            down vote













            You can only have four partitions in an MBR - unless one (or more? never tried that) of them are "extended partitions" (like your sda4) which are containers that can contain four more. I.e. sda4 is just a directory entry pointing to a new space to hold up to 4 partitions, but you only have one (sda5) in there ...






            share|improve this answer





















            • Thank you. So can I remove sda4 and create new extended partition ?
              – Amruta Gaikwad
              May 17 at 19:36










            • Assuming you don't mind losing sda5 in the process...
              – Sven Geier
              May 17 at 20:29

















            up vote
            -1
            down vote













            It almost looks like you have an extended partition already. And if you do, you should be able to divide that extended partition up into more partitions (Which they call Logical Partitions) and set up Linux in the Logical Partitions, that's how I installed it.



            I had this problem on my laptop, I had all 4 partitions taken up and all of them were being used for something. With a little research though, I found a solution. If you need to make more partitions, you can use an extended partition to hold your other partition. Here's an example (My Computer)



            1. 220GB NTFS Volume for Windows

            2. 15GB NTFS Recovery Partition

            3. 4GB FAT32 Partition for HP Diagnostic Tools

            4. 199MB SYSTEM Partition

            To fix the problem, I got rid of a partition (This was the SYSTEM partition in my case), made changes to my Windows partition to make up for the lost boot partition, booted from the Linux USB (for me it was Kali Linux), and started the installation process.



            While installing, it will ask for a partitioning scheme. This is where you select to manually partition it. You should see the unallocated space you made from the deleted partition before (In my case, I had to shrink one of my volumes to make more unallocated space). While selecting to format the unallocated space, you should be able to make an extended partition. When you make it extended, you will see you have 4 partitions, but you can use the free space in the extended partition you made to make more partitions. For me, I had 1 partition left after deleting SYSTEM. I turned the unallocated space into an extended partition and put my swap, root, and home partitions in that extended partition. I now had 7 partitions and Kali Linux installed.






            share|improve this answer





















              Your Answer







              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "106"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              convertImagesToLinks: false,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );








               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f444455%2fhow-to-use-free-space-for-partition%23new-answer', 'question_page');

              );

              Post as a guest






























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              2
              down vote













              Although the answer already provided answers your original question, I feel you are looking for another question.




              How can I use all 4 TB of storage on my drive?




              You need to switch from MBR to GPT. gdisk can do the job.

              In your particular case, you will need to remove the swap partition temporarily. It is in the way of the main GPT. You can re-add the swap partition after the conversion to GPT is completed.

              You can then use gparted to either add another partition or to extend sda5.

              All of these steps should not affect your data, but please have a backup in case something goes wrong.



              Chances are, you will also need to re-install your boot-loader. You can switch to EFI style booting or stay with legacy BIOS boot. You need a boot partition in either case. See my answer here for the commands (you do not need the removable flag, though).






              share|improve this answer

























                up vote
                2
                down vote













                Although the answer already provided answers your original question, I feel you are looking for another question.




                How can I use all 4 TB of storage on my drive?




                You need to switch from MBR to GPT. gdisk can do the job.

                In your particular case, you will need to remove the swap partition temporarily. It is in the way of the main GPT. You can re-add the swap partition after the conversion to GPT is completed.

                You can then use gparted to either add another partition or to extend sda5.

                All of these steps should not affect your data, but please have a backup in case something goes wrong.



                Chances are, you will also need to re-install your boot-loader. You can switch to EFI style booting or stay with legacy BIOS boot. You need a boot partition in either case. See my answer here for the commands (you do not need the removable flag, though).






                share|improve this answer























                  up vote
                  2
                  down vote










                  up vote
                  2
                  down vote









                  Although the answer already provided answers your original question, I feel you are looking for another question.




                  How can I use all 4 TB of storage on my drive?




                  You need to switch from MBR to GPT. gdisk can do the job.

                  In your particular case, you will need to remove the swap partition temporarily. It is in the way of the main GPT. You can re-add the swap partition after the conversion to GPT is completed.

                  You can then use gparted to either add another partition or to extend sda5.

                  All of these steps should not affect your data, but please have a backup in case something goes wrong.



                  Chances are, you will also need to re-install your boot-loader. You can switch to EFI style booting or stay with legacy BIOS boot. You need a boot partition in either case. See my answer here for the commands (you do not need the removable flag, though).






                  share|improve this answer













                  Although the answer already provided answers your original question, I feel you are looking for another question.




                  How can I use all 4 TB of storage on my drive?




                  You need to switch from MBR to GPT. gdisk can do the job.

                  In your particular case, you will need to remove the swap partition temporarily. It is in the way of the main GPT. You can re-add the swap partition after the conversion to GPT is completed.

                  You can then use gparted to either add another partition or to extend sda5.

                  All of these steps should not affect your data, but please have a backup in case something goes wrong.



                  Chances are, you will also need to re-install your boot-loader. You can switch to EFI style booting or stay with legacy BIOS boot. You need a boot partition in either case. See my answer here for the commands (you do not need the removable flag, though).







                  share|improve this answer













                  share|improve this answer



                  share|improve this answer











                  answered May 17 at 23:36









                  Hermann

                  47428




                  47428






















                      up vote
                      -1
                      down vote













                      You can only have four partitions in an MBR - unless one (or more? never tried that) of them are "extended partitions" (like your sda4) which are containers that can contain four more. I.e. sda4 is just a directory entry pointing to a new space to hold up to 4 partitions, but you only have one (sda5) in there ...






                      share|improve this answer





















                      • Thank you. So can I remove sda4 and create new extended partition ?
                        – Amruta Gaikwad
                        May 17 at 19:36










                      • Assuming you don't mind losing sda5 in the process...
                        – Sven Geier
                        May 17 at 20:29














                      up vote
                      -1
                      down vote













                      You can only have four partitions in an MBR - unless one (or more? never tried that) of them are "extended partitions" (like your sda4) which are containers that can contain four more. I.e. sda4 is just a directory entry pointing to a new space to hold up to 4 partitions, but you only have one (sda5) in there ...






                      share|improve this answer





















                      • Thank you. So can I remove sda4 and create new extended partition ?
                        – Amruta Gaikwad
                        May 17 at 19:36










                      • Assuming you don't mind losing sda5 in the process...
                        – Sven Geier
                        May 17 at 20:29












                      up vote
                      -1
                      down vote










                      up vote
                      -1
                      down vote









                      You can only have four partitions in an MBR - unless one (or more? never tried that) of them are "extended partitions" (like your sda4) which are containers that can contain four more. I.e. sda4 is just a directory entry pointing to a new space to hold up to 4 partitions, but you only have one (sda5) in there ...






                      share|improve this answer













                      You can only have four partitions in an MBR - unless one (or more? never tried that) of them are "extended partitions" (like your sda4) which are containers that can contain four more. I.e. sda4 is just a directory entry pointing to a new space to hold up to 4 partitions, but you only have one (sda5) in there ...







                      share|improve this answer













                      share|improve this answer



                      share|improve this answer











                      answered May 17 at 19:23









                      Sven Geier

                      192




                      192











                      • Thank you. So can I remove sda4 and create new extended partition ?
                        – Amruta Gaikwad
                        May 17 at 19:36










                      • Assuming you don't mind losing sda5 in the process...
                        – Sven Geier
                        May 17 at 20:29
















                      • Thank you. So can I remove sda4 and create new extended partition ?
                        – Amruta Gaikwad
                        May 17 at 19:36










                      • Assuming you don't mind losing sda5 in the process...
                        – Sven Geier
                        May 17 at 20:29















                      Thank you. So can I remove sda4 and create new extended partition ?
                      – Amruta Gaikwad
                      May 17 at 19:36




                      Thank you. So can I remove sda4 and create new extended partition ?
                      – Amruta Gaikwad
                      May 17 at 19:36












                      Assuming you don't mind losing sda5 in the process...
                      – Sven Geier
                      May 17 at 20:29




                      Assuming you don't mind losing sda5 in the process...
                      – Sven Geier
                      May 17 at 20:29










                      up vote
                      -1
                      down vote













                      It almost looks like you have an extended partition already. And if you do, you should be able to divide that extended partition up into more partitions (Which they call Logical Partitions) and set up Linux in the Logical Partitions, that's how I installed it.



                      I had this problem on my laptop, I had all 4 partitions taken up and all of them were being used for something. With a little research though, I found a solution. If you need to make more partitions, you can use an extended partition to hold your other partition. Here's an example (My Computer)



                      1. 220GB NTFS Volume for Windows

                      2. 15GB NTFS Recovery Partition

                      3. 4GB FAT32 Partition for HP Diagnostic Tools

                      4. 199MB SYSTEM Partition

                      To fix the problem, I got rid of a partition (This was the SYSTEM partition in my case), made changes to my Windows partition to make up for the lost boot partition, booted from the Linux USB (for me it was Kali Linux), and started the installation process.



                      While installing, it will ask for a partitioning scheme. This is where you select to manually partition it. You should see the unallocated space you made from the deleted partition before (In my case, I had to shrink one of my volumes to make more unallocated space). While selecting to format the unallocated space, you should be able to make an extended partition. When you make it extended, you will see you have 4 partitions, but you can use the free space in the extended partition you made to make more partitions. For me, I had 1 partition left after deleting SYSTEM. I turned the unallocated space into an extended partition and put my swap, root, and home partitions in that extended partition. I now had 7 partitions and Kali Linux installed.






                      share|improve this answer

























                        up vote
                        -1
                        down vote













                        It almost looks like you have an extended partition already. And if you do, you should be able to divide that extended partition up into more partitions (Which they call Logical Partitions) and set up Linux in the Logical Partitions, that's how I installed it.



                        I had this problem on my laptop, I had all 4 partitions taken up and all of them were being used for something. With a little research though, I found a solution. If you need to make more partitions, you can use an extended partition to hold your other partition. Here's an example (My Computer)



                        1. 220GB NTFS Volume for Windows

                        2. 15GB NTFS Recovery Partition

                        3. 4GB FAT32 Partition for HP Diagnostic Tools

                        4. 199MB SYSTEM Partition

                        To fix the problem, I got rid of a partition (This was the SYSTEM partition in my case), made changes to my Windows partition to make up for the lost boot partition, booted from the Linux USB (for me it was Kali Linux), and started the installation process.



                        While installing, it will ask for a partitioning scheme. This is where you select to manually partition it. You should see the unallocated space you made from the deleted partition before (In my case, I had to shrink one of my volumes to make more unallocated space). While selecting to format the unallocated space, you should be able to make an extended partition. When you make it extended, you will see you have 4 partitions, but you can use the free space in the extended partition you made to make more partitions. For me, I had 1 partition left after deleting SYSTEM. I turned the unallocated space into an extended partition and put my swap, root, and home partitions in that extended partition. I now had 7 partitions and Kali Linux installed.






                        share|improve this answer























                          up vote
                          -1
                          down vote










                          up vote
                          -1
                          down vote









                          It almost looks like you have an extended partition already. And if you do, you should be able to divide that extended partition up into more partitions (Which they call Logical Partitions) and set up Linux in the Logical Partitions, that's how I installed it.



                          I had this problem on my laptop, I had all 4 partitions taken up and all of them were being used for something. With a little research though, I found a solution. If you need to make more partitions, you can use an extended partition to hold your other partition. Here's an example (My Computer)



                          1. 220GB NTFS Volume for Windows

                          2. 15GB NTFS Recovery Partition

                          3. 4GB FAT32 Partition for HP Diagnostic Tools

                          4. 199MB SYSTEM Partition

                          To fix the problem, I got rid of a partition (This was the SYSTEM partition in my case), made changes to my Windows partition to make up for the lost boot partition, booted from the Linux USB (for me it was Kali Linux), and started the installation process.



                          While installing, it will ask for a partitioning scheme. This is where you select to manually partition it. You should see the unallocated space you made from the deleted partition before (In my case, I had to shrink one of my volumes to make more unallocated space). While selecting to format the unallocated space, you should be able to make an extended partition. When you make it extended, you will see you have 4 partitions, but you can use the free space in the extended partition you made to make more partitions. For me, I had 1 partition left after deleting SYSTEM. I turned the unallocated space into an extended partition and put my swap, root, and home partitions in that extended partition. I now had 7 partitions and Kali Linux installed.






                          share|improve this answer













                          It almost looks like you have an extended partition already. And if you do, you should be able to divide that extended partition up into more partitions (Which they call Logical Partitions) and set up Linux in the Logical Partitions, that's how I installed it.



                          I had this problem on my laptop, I had all 4 partitions taken up and all of them were being used for something. With a little research though, I found a solution. If you need to make more partitions, you can use an extended partition to hold your other partition. Here's an example (My Computer)



                          1. 220GB NTFS Volume for Windows

                          2. 15GB NTFS Recovery Partition

                          3. 4GB FAT32 Partition for HP Diagnostic Tools

                          4. 199MB SYSTEM Partition

                          To fix the problem, I got rid of a partition (This was the SYSTEM partition in my case), made changes to my Windows partition to make up for the lost boot partition, booted from the Linux USB (for me it was Kali Linux), and started the installation process.



                          While installing, it will ask for a partitioning scheme. This is where you select to manually partition it. You should see the unallocated space you made from the deleted partition before (In my case, I had to shrink one of my volumes to make more unallocated space). While selecting to format the unallocated space, you should be able to make an extended partition. When you make it extended, you will see you have 4 partitions, but you can use the free space in the extended partition you made to make more partitions. For me, I had 1 partition left after deleting SYSTEM. I turned the unallocated space into an extended partition and put my swap, root, and home partitions in that extended partition. I now had 7 partitions and Kali Linux installed.







                          share|improve this answer













                          share|improve this answer



                          share|improve this answer











                          answered May 18 at 10:11









                          KALI99

                          65




                          65






















                               

                              draft saved


                              draft discarded


























                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f444455%2fhow-to-use-free-space-for-partition%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Popular posts from this blog

                              How to check contact read email or not when send email to Individual?

                              Bahrain

                              Postfix configuration issue with fips on centos 7; mailgun relay