Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hard drive resize [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Tadeas
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2008
Posts: 113
Location: Prague

PostPosted: Mon Oct 20, 2008 9:49 am    Post subject: Hard drive resize [SOLVED] Reply with quote

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
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Mon Oct 20, 2008 9:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Tadeas
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2008
Posts: 113
Location: Prague

PostPosted: Mon Oct 20, 2008 10:00 am    Post subject: Reply with quote

So there is no problem with copying / among disks (partitions)? Ok, thank you, will do that...
Back to top
View user's profile Send private message
dattaway
n00b
n00b


Joined: 25 Jan 2003
Posts: 29
Location: Kansas Citeeeee, Missoureeeee

PostPosted: Mon Oct 20, 2008 10:23 am    Post subject: Reply with quote

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
View user's profile Send private message
Tadeas
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2008
Posts: 113
Location: Prague

PostPosted: Mon Oct 20, 2008 11:46 am    Post subject: Reply with quote

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 :oops:
Once again, thank you!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum