Results 1 to 5 of 5
Hi, I have Ubuntu installed on my hard drive and I have only one (& swap) partition. Now I would like to repartition the drive and have /, /root and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-01-2011 #1
Hard drive repartitioning
I have Ubuntu installed on my hard drive and I have only one (& swap) partition. Now I would like to repartition the drive and have /, /root and /home partitions without reinstalling the OS.
Is it safe to do it? And how to?
- 06-01-2011 #2
The steps should be something like:-
1. backup critical data (your docs, photos etc).
2. boot from a live CD (Ubuntu will do) and check you can get online incase you need further help part way through the process then
a) resize the existing root partition
b) create the home partition
c) mount both partitions and use cp -a to copy home folder information to the new home partition
d) modify /etc/fstab to mount your home partition
e) check the output of blkid and adjust /etc/fstab if needed for root (if UUID is used this may change with partition resize)
If you want more help with this posting the output of
mount cat /etc/fstab sudo fdisk -l
- 06-02-2011 #3
- Now, can I just delete old /home on the boot partition?
- Does it mean that the new home partition will automatically take over after mounting or is there something else to be done?
- What about making more partitions, e.g. /etc ? As I understand it can help keeping installed software after updating and esp. new installatons of OS.
There are many information on that on the Internet but none is precise enough (for me, that is ).
- 06-02-2011 #4
Don't delete anything until you have everything working !
When you mount your new home partition to /home ... all you see is whats on the new home partition (unless you unmount the home partition). I'd leave everything on there until you get short of hard disc space.
You can create separate partitions, but if it's for a desktop system I'd stick with
think about having separate partition for genuine user data (docs etc), separate /home will do but it also contains config files for each user.
I also have a separate /var partition.
All the systems I have are desktop/laptop with a gui and local users rather than servers for www and files etc. So the above covers all I need.
You should find information on recommended partitioning for each distro ... here for Arch - scroll down to partition scheme information. It's fairly short and explains the sort of thing you can do. I'm running ext4 partitions for root, data, home and reiserfs for var.
- 06-03-2011 #5
- Join Date
- May 2011
If you're moving the swap space you'll have to deactivate the swap.
You can use Gparted to deactivate/activate swap or from the commandline
$ sudo swapoff -a $ sudo swapon -a