You are not logged in.

#1 2011-07-22 22:53:43

Oxpoto
Member
Registered: 2011-07-20
Posts: 18

Changing home partition,

this more of a post-install question, but I made a mistake a sizing my home partition. Now I have a working system with lots of time spend on configs. I need to delete home partition and create a new one. I made a tar of my /home and saved it onto / partition. Now I intent to use fdisk to delete the /home partition and create a new home partition, format it manually and... well I don't know what to do next. Which configs I need to tweak to register the new home partition?

Offline

#2 2011-07-22 22:56:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Changing home partition,

Maybe you can use a liveCD to resize your partitions? Shrink one and grow /home?

Offline

#3 2011-07-23 01:06:11

StenM
Member
Registered: 2011-07-03
Posts: 33

Re: Changing home partition,

If I understood well your question, you have already set-up a new partition. Just mount it by something like this:

 mount /dev/sda<partition number> /home

and copy your data there. Then edit /etc/fstab and add something like this or modify existing one pointing to your /home folder:

/dev/sda<partition number> /home ext4 defaults 0 2

How to Identifying your file system in fstab read here:
https://wiki.archlinux.org/index.php/Fs … ilesystems

If you have not finished modification of your partition yet, used live cd as suggest karol.
Good and small one is this:
http://gparted.sourceforge.net/livecd.php
LiveKubuntu 11.04 have also simple GUI partition editor.

If you have not deleted your home partition yet, just backup your data and resize your partitions using liveCD. Or perhaps better liveUSB, because it will take quite a long time and I experienced with my CD sometimes reading problem and live system crash.

Last edited by StenM (2011-07-23 12:03:29)

Offline

Board footer

Powered by FluxBB