# Shrink partition & add new partition without removing HDD

**URL:** https://dietpi.com/forum/t/shrink-partition-add-new-partition-without-removing-hdd/4134
**Category:** General Discussion
**Created:** [22 May 2020 15:22 UTC](https://dietpi.com/forum/t/shrink-partition-add-new-partition-without-removing-hdd/4134 "2020-05-22T15:22:07Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![mail2rst](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mail2rst](https://dietpi.com/forum/u/mail2rst)
#### Post date: [22 May 2020 15:22 UTC](https://dietpi.com/forum/t/shrink-partition-add-new-partition-without-removing-hdd/4134/1 "2020-05-22T15:22:07Z")

</div>

I have installed dietpi on my NUC/mini pc. For installing dietpi I had removed HDD & put into usb encloser & flash the image on HDD. Everything work perfectly. Thanks for Dietpi administrators for making this perfect operating system.

After I reviewing the storage consumption in HDD (it is about 4GB this time). I think I overkill my 400GB HDD. Now I am thinking to make a two partition.One 50 GB for operating system & 350 GB for data storage. I do not want to remove HDD from NUC (as physically removing means more possibility of hardware failure) . Is there any way we can shrink the main partition & then allocated unalotted memory to new data partition . both partitions in linux EXT4 format.  
Please guide me how this thing possible without removing HDD from NUC.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [22 May 2020 22:14 UTC](https://dietpi.com/forum/t/shrink-partition-add-new-partition-without-removing-hdd/4134/2 "2020-05-22T22:14:24Z")

</div>

Hi,

many thanks for your request. Maybe you can have a look to the following guide. It will explain how to use GParted incl small video 🕶

[https://averagelinuxuser.com/shrink-linux-partition-without-losing-data/](https://averagelinuxuser.com/shrink-linux-partition-without-losing-data/)

---

<div class="post-metadata">

### Author: ![mail2rst](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mail2rst](https://dietpi.com/forum/u/mail2rst)
#### Post date: [23 May 2020 04:42 UTC](https://dietpi.com/forum/t/shrink-partition-add-new-partition-without-removing-hdd/4134/3 "2020-05-23T04:42:16Z")

</div>

But the etcher delete all partitions & use complete hdd for its installation. i try this many time but etcher ruined all partitions.

is i can install only dietpi-software on my ubantu server.

i am familiar with ubantu installation. please guide me towards if i will install ubantu. and after that i will install dietpi-software. with this way i can utilize my familiarity toward ubantu & dietpi-software.

thanks

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [23 May 2020 09:26 UTC](https://dietpi.com/forum/t/shrink-partition-add-new-partition-without-removing-hdd/4134/4 "2020-05-23T09:26:40Z")

</div>

Hi,

probably there is a misunderstanding. Did you checked the link I provided? It describe how to create a bootable live usb stick that can be used to run GParted tool from that usb stick.

Next to that, DietPi needs a Debian base image. It’s not able to run on an Ubuntu based system.

---

<div class="post-metadata">

### Author: ![mail2rst](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mail2rst](https://dietpi.com/forum/u/mail2rst)
#### Post date: [23 May 2020 16:44 UTC](https://dietpi.com/forum/t/shrink-partition-add-new-partition-without-removing-hdd/4134/5 "2020-05-23T16:44:42Z")

</div>

Thanks for guidance. i will do experimentation with both methodology & will utilize best in usage. thanks

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [23 May 2020 22:52 UTC](https://dietpi.com/forum/t/shrink-partition-add-new-partition-without-removing-hdd/4134/6 "2020-05-23T22:52:42Z")

</div>

using GParted is pretty straightforward. Just create a bootable usb stick and do your changes on a graphical interface.
