View previous topic :: View next topic |
Author |
Message |
Tadeas Tux's lil' helper
Joined: 19 Sep 2008 Posts: 113 Location: Prague
|
Posted: Mon Oct 20, 2008 9:49 am Post subject: Hard drive resize [SOLVED] |
|
|
I have four partitions on my disk:
/dev/sda1 2GB swap
/dev/sda2 20GB unused
/dev/sda3 10GB /
/dev/sda4 160GB /home
I have run out of space on /dev/sda3
Is there any way to join /dev/sda2 and /dev/sda3 without losing all the data on /dev/sda3 as here is the root dir?
Thank you.
Last edited by Tadeas on Mon Oct 20, 2008 11:47 am; edited 1 time in total |
|
Back to top |
|
|
massimo Veteran
Joined: 22 Jun 2003 Posts: 1226
|
Posted: Mon Oct 20, 2008 9:56 am Post subject: |
|
|
I'd boot a Live(CD|DVD|USB) system, create a backup of the current /, use any partition manager to merge (delete sda3, extend sda2 or delete 3 and 2 and create 2) and copy the backup to the new partition. You'll have to change fstab and your grub/lilo config accordingly. _________________ Hello 911? How are you? |
|
Back to top |
|
|
Tadeas Tux's lil' helper
Joined: 19 Sep 2008 Posts: 113 Location: Prague
|
Posted: Mon Oct 20, 2008 10:00 am Post subject: |
|
|
So there is no problem with copying / among disks (partitions)? Ok, thank you, will do that... |
|
Back to top |
|
|
dattaway n00b
Joined: 25 Jan 2003 Posts: 29 Location: Kansas Citeeeee, Missoureeeee
|
Posted: Mon Oct 20, 2008 10:23 am Post subject: |
|
|
Its been a while since I used fdisk to slice and dice partitions, but I'd backup the partitions on another drive first.
A cheap and dirty way is copying root into the home directory and making that root in fstab and your grub.conf...
cp -aR / /home |
|
Back to top |
|
|
Tadeas Tux's lil' helper
Joined: 19 Sep 2008 Posts: 113 Location: Prague
|
Posted: Mon Oct 20, 2008 11:46 am Post subject: |
|
|
Ok, thanks very much! Everything is all-right now.
I copied everything to /dev/sda4, destroyed /dev/sda2+3, created and formated new /dev/sda2 and copied everything here.
Maybe it would be a good idea to stick this or post it in the FAQ for all the beginners like me, if it's not there already
Once again, thank you! |
|
Back to top |
|
|
|