Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
> Shrink linux partition
post Mar 27 2017, 04:31 AM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 27-March 17
Member No.: 19,260

Hello to all,
I have problem with shrinking Linux partition.
My hdd is 400Gb and it is only 51% full, so I want to shrink it under 300GB. I have tried to use Gprted but there is not option to shrink it, because it see it as full. I have tried to use resize2fs, but I was unable to unmount partition.

This is what I got with df:

Filesystem 1K-blocks Used Available Use% Mounted on
442747752 213475988 206804396 51% /
tmpfs 16438680 0 16438680 0% /dev/shm
/dev/sda1 487652 106862 355190 24% /boot
Go to the top of the page
+Quote Post
Start new topic
post Mar 27 2017, 11:20 AM
Post #2

Its GNU/

Group: Support Specialist
Posts: 1,807
Joined: 23-January 03
Member No.: 360

Your using LVM which is different from a regular partition so regular tools will not work. You might want to google to find out how it works. First question is what do you want to do with the free space?

It helps to know the distribution/version but we need to know the filesystem type of your root logical volume. Look at the output of the lsblk or mount command but it probably is either xfs or ext4. If it is xfs then there isn't a good or easy way to reduce the size.

Many installers create by default a boot partition and a LVM partition that contains the / filesystem and swap. The LVM partition is just a container for the volume group/logical volumes. Assuming your root LV is ext4 you need to boot a live CD/USB.

Basic steps:
1. resize root LV
2. resize volume group
3. resize LVM partition.
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 21st July 2018 - 08:45 AM