Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
repartitioning question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Nicias
Guru
Guru


Joined: 06 Dec 2005
Posts: 446

PostPosted: Thu Sep 13, 2007 6:36 pm    Post subject: repartitioning question Reply with quote

This isn't a quesion about a new install, but rather about using parted, so I thought it might belong here.

When I got my new laptop I but kubuntu on it, since I need it usefull immediately. In my sparetime I have been putting gentoo on it as well, since I prefer gentoo, but it takes longer to get up and running.

At this point I am ready to chuck my kubuntu install.

I want to reclaim the space I was using for kubuntu into my gentoo / partition. This is my current partition scheme:

/dev/sda1 64M /boot 64m
/dev/sda2 1G swap
/dev/sda3 31G /mnt/kubuntu/
/dev/sda4 44G /

Am I correct that parted cannot extend a partition back like that? So I would need to first copy everything over to sda3, and then expand sda3 to include the old sda4?

If so, what options should I pass to cp to do the copy properly? (or should I use dd or rsync?)

Thanks!
Back to top
View user's profile Send private message
mrybczyn
n00b
n00b


Joined: 09 Nov 2003
Posts: 26

PostPosted: Thu Sep 13, 2007 6:48 pm    Post subject: Reply with quote

cp -a should do the right thing. Don't copy your /proc or /sys directories, though, those are 'pseudo filesystems', not actual files. You don't have to combine the partitions. You could, for instance, keep your 40gig partition mounted as your /home after moving the rest of gentoo to your 30gig partition.

Make sure to update your /boot partition grub.conf to point the kernel at the new / partition of your gentoo system.


Last edited by mrybczyn on Thu Sep 13, 2007 6:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Thu Sep 13, 2007 6:48 pm    Post subject: Reply with quote

Nicias,

If I was doing what you want to do, I would make /dev/sda3 /home and leave the partitions well alone.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Nicias
Guru
Guru


Joined: 06 Dec 2005
Posts: 446

PostPosted: Thu Sep 13, 2007 6:50 pm    Post subject: Reply with quote

I thought about that, but then I have to decide where to put what, I actually plan on using quite a bit of this space, and I don't want to have to be careful about what goes where. I want a big bucket I can dump files in. If I do what you suggest, then I am wasting probably 20GB of storage space on / and I have to decide which 20gb of crap to put there.
Back to top
View user's profile Send private message
mrybczyn
n00b
n00b


Joined: 09 Nov 2003
Posts: 26

PostPosted: Thu Sep 13, 2007 6:54 pm    Post subject: Reply with quote

Aha, even better, don't move the system at all :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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