Shrink partition & add new partition without removing HDD Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
mail2rst
Posts: 61
Joined: Fri Apr 13, 2018 4:53 pm

Shrink partition & add new partition without removing HDD

Post by mail2rst »

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.
User avatar
Joulinar
Posts: 2572
Joined: Sat Nov 16, 2019 12:49 am

Re: Shrink partition & add new partition without removing HDD

Post by Joulinar »

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 8)

https://averagelinuxuser.com/shrink-lin ... sing-data/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
mail2rst
Posts: 61
Joined: Fri Apr 13, 2018 4:53 pm

Re: Shrink partition & add new partition without removing HDD

Post by mail2rst »

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
User avatar
Joulinar
Posts: 2572
Joined: Sat Nov 16, 2019 12:49 am

Re: Shrink partition & add new partition without removing HDD

Post by Joulinar »

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.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
mail2rst
Posts: 61
Joined: Fri Apr 13, 2018 4:53 pm

Re: Shrink partition & add new partition without removing HDD

Post by mail2rst »

Thanks for guidance. i will do experimentation with both methodology & will utilize best in usage. thanks
User avatar
Joulinar
Posts: 2572
Joined: Sat Nov 16, 2019 12:49 am

Re: Shrink partition & add new partition without removing HDD

Post by Joulinar »

using GParted is pretty straightforward. Just create a bootable usb stick and do your changes on a graphical interface.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply