LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to alter partition size ? (https://www.linuxquestions.org/questions/linux-software-2/how-to-alter-partition-size-339739/)

minil 07-03-2005 10:51 PM

how to alter partition size ?
 
Hi

This is my partion details.

[root@xyz root]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 9.7G 8.1G 1.2G 88% /
none 122M 0 122M 0% /dev/shm
/dev/hda2 29G 15G 13G 55% /home


i want to increase my root(/) partion. ( get some space from /home). How to do this?

thanks in advance

heema 07-04-2005 04:01 AM

you can first try to reduce its size by deleting the cache for example of yum or any package manager that you use , and maybe delete some programs that you dont use

if u want to resize it then you could use qtparted (a clone for partition magic) which is mainly in any livecd (knoppix)

jhumeston 07-06-2005 10:46 AM

I agree with heema, you have a quite large / partition. You should consider removing unnecessary apps/files first. If you want to resize your existing partitions, you can use the ext2fs utilities to shrink the file system then you can use fdisk to change the partition size. Its tricky because you will need to know the number of blocks on the disk you want to free up etc.


All times are GMT -5. The time now is 06:24 AM.