View previous topic :: View next topic |
Author |
Message |
Nicias Guru
Joined: 06 Dec 2005 Posts: 446
|
Posted: Thu Sep 13, 2007 6:36 pm Post subject: repartitioning question |
|
|
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 |
|
|
mrybczyn n00b
Joined: 09 Nov 2003 Posts: 26
|
Posted: Thu Sep 13, 2007 6:48 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Thu Sep 13, 2007 6:48 pm Post subject: |
|
|
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 |
|
|
Nicias Guru
Joined: 06 Dec 2005 Posts: 446
|
Posted: Thu Sep 13, 2007 6:50 pm Post subject: |
|
|
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 |
|
|
mrybczyn n00b
Joined: 09 Nov 2003 Posts: 26
|
Posted: Thu Sep 13, 2007 6:54 pm Post subject: |
|
|
Aha, even better, don't move the system at all |
|
Back to top |
|
|
|