Ask Your Question
1

[Solved] How do I resize/shift my partitions?

asked 2011-12-29 13:31:53 -0500

joe74 gravatar image

updated 2011-12-30 02:49:24 -0500

FranciscoD_ gravatar image

This is my set of partitions in a 160Gb HDD for Fedora:

|----- / ----|-- swap --|------------- /home -------------|

Is it safe to shrink my /home partition so I can enlarge my swap partition to recursively enlarge my /? I ran out of space in / so I need more space on it. If I accomplish this, would there be no problem later? Do I have to configure anything after this? Would grub init as usual (supposing there'll be no changes in partition order)? Would swap be mounted automatic after being moved?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2011-12-29 17:21:21 -0500

ztank1013 gravatar image

I am assuming you don't have your disk partitions under LVM (Linux Volume Manager) control, in such a case in fact you may change your partitions size very easily.

To do what you are asking I would use parted (or its graphical brother gparted) but probably the best idea would be to use the live image of gparted to make all the changes (http://gparted.sourceforge.net/livecd.php).

You will need to shrink /home first, then move swap and finally grow /.

Whenever playing with partitions it is always recommended to make a backup copy of your data before starting any operation.

In your case swap and GRUB will not need any additional configuration after partitions have been modified.

edit flag offensive delete link more

Comments

1

backup ++ !

FranciscoD_ gravatar imageFranciscoD_ ( 2011-12-29 21:25:17 -0500 )edit

I've marked the answer as correct since it worked for you. Please do not forget to do this in your other questions @joe74 :)

FranciscoD_ gravatar imageFranciscoD_ ( 2011-12-30 02:49:07 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2011-12-29 13:31:53 -0500

Seen: 35,992 times

Last updated: Dec 30 '11