View previous topic :: View next topic |
Author |
Message |
gazoombo n00b
Joined: 22 Feb 2004 Posts: 56 Location: GR. MI. USA
|
Posted: Thu Jul 15, 2004 9:32 pm Post subject: [SOLVED] reformatting, saving install |
|
|
I am running out of room with the 10GB partition I gave gentoo when I first installed (as a multi-boot system). I am now considering backing up all my files to CDs/DVDs and reformatting to give more room of my 80GB HDD to gentoo. Is there an easy way to migrate my exact software profile (perhaps without re-compiling even)? I don't really understand all the advance features of portage so perhaps there is a way I don't know about. Any ideas are appricitated. _________________ Hoping to install Gentoo 2007.0 soon and rejoin the Linux world
My Ol' Box:
Abit NF7-S (nForce2 Chipset)
Athlon XP 2500+ Barton
512MB RAM (which may be in need of replacement)
NVIDIA GeForce3
Last edited by gazoombo on Sun Jul 18, 2004 4:39 am; edited 1 time in total |
|
Back to top |
|
|
widu Guru
Joined: 05 Jun 2004 Posts: 333 Location: Freiburg
|
|
Back to top |
|
|
gazoombo n00b
Joined: 22 Feb 2004 Posts: 56 Location: GR. MI. USA
|
Posted: Fri Jul 16, 2004 2:28 am Post subject: |
|
|
It's not so much the data-backup that is the issue. It's more that I want an easy way to retain my portage builds. I though about just copying my world file and then re-emerging everything from that, but if I can I'd like not to have to rebuild all the packages.. _________________ Hoping to install Gentoo 2007.0 soon and rejoin the Linux world
My Ol' Box:
Abit NF7-S (nForce2 Chipset)
Athlon XP 2500+ Barton
512MB RAM (which may be in need of replacement)
NVIDIA GeForce3
Last edited by gazoombo on Fri Jul 16, 2004 3:13 am; edited 1 time in total |
|
Back to top |
|
|
tomek32 Tux's lil' helper
Joined: 30 May 2004 Posts: 139
|
Posted: Fri Jul 16, 2004 2:55 am Post subject: |
|
|
Just to confirm, are you planning to switch to the 80GB drive for the root partition? |
|
Back to top |
|
|
gazoombo n00b
Joined: 22 Feb 2004 Posts: 56 Location: GR. MI. USA
|
Posted: Fri Jul 16, 2004 3:13 am Post subject: |
|
|
Code: |
gemini root # fdisk -l
Disk /dev/hda: 81.9 GB, 81964302336 bytes
240 heads, 63 sectors/track, 10587 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1355 10243768+ c W95 FAT32 (LBA)
/dev/hda2 1356 10586 69786360 f W95 Ext'd (LBA)
/dev/hda5 1356 5418 30716248+ b W95 FAT32
/dev/hda6 5419 5432 105808+ 83 Linux
/dev/hda7 5433 6787 10243768+ 83 Linux
/dev/hda8 10518 10586 521608+ 82 Linux swap
/dev/hda9 6788 8080 9775048+ 83 Linux
/dev/hda10 8081 10517 18423688+ 83 Linux
Partition table entries are not in disk order
gemini root #
|
That's the mess I have right now.. and a lot of it isn't even usable.. hda5 has a bunch of music and some photos/images I work with, hda9 is mounted / , hda10 is mounted as /mnt/20gig and is where I started putting big files when I ran out of room elsewhere (UT2k4 is installed here, I also keep my iso's here). what I want to do is back everything up onto CDs and DVDs and completely reformat the drive because there is no logical way to re-partion it otherwise (the partitions I need to combine are not adjacent to each other). My question just involves keeping all my emerges... and I don't plan on trying to compress / to a tarball or anything like that.... _________________ Hoping to install Gentoo 2007.0 soon and rejoin the Linux world
My Ol' Box:
Abit NF7-S (nForce2 Chipset)
Athlon XP 2500+ Barton
512MB RAM (which may be in need of replacement)
NVIDIA GeForce3 |
|
Back to top |
|
|
tomek32 Tux's lil' helper
Joined: 30 May 2004 Posts: 139
|
Posted: Fri Jul 16, 2004 4:10 am Post subject: |
|
|
If you want to preserve all your already compiled packages and put it on a CD, I think you'll need to tarball it to preserve file permissions.
I don't know if you want to do this, but you could copy all the root partition data and what other files you have on the previous partitions to hda10. If it all fits, then delete all those partitions and create new ones as you want.
Third option is to use Partition Magic to reorganize your partition, it's worked great for me in the past.
If you want to recompile all those packages you have know, I believe all you'd have to do is save a copy of /var/cache/edb/world, and remerge every package in there. |
|
Back to top |
|
|
gazoombo n00b
Joined: 22 Feb 2004 Posts: 56 Location: GR. MI. USA
|
Posted: Fri Jul 16, 2004 1:10 pm Post subject: |
|
|
I would use Partition Magic, but like I said before, the partitions are too large to move around, and the ones that I need to combine aren't next to each other. What I'm really looking for is a portage option or script that will make binary tarballs of everything in my world file, so that re-emerging goes faster. tarring all of / is just way too much I don't really need. _________________ Hoping to install Gentoo 2007.0 soon and rejoin the Linux world
My Ol' Box:
Abit NF7-S (nForce2 Chipset)
Athlon XP 2500+ Barton
512MB RAM (which may be in need of replacement)
NVIDIA GeForce3 |
|
Back to top |
|
|
tomek32 Tux's lil' helper
Joined: 30 May 2004 Posts: 139
|
Posted: Fri Jul 16, 2004 2:33 pm Post subject: |
|
|
Oh, I forgot about that. Portage can build binary packages of all your currently installed packages.
You can use quickpkg for that. Now it doesn't accept world as a valid package, only specific packages names. So what I'd do is get portage to output a list of all currently installed packages Code: | qpkg -I -nc > pkg_list.txt | and build binary versions of them Code: | quickpkg `cat pkg_list.txt` | .
Then after reinstalling gentoo, just pass the --usepkgonly option to emerge. |
|
Back to top |
|
|
gazoombo n00b
Joined: 22 Feb 2004 Posts: 56 Location: GR. MI. USA
|
Posted: Sat Jul 17, 2004 1:26 pm Post subject: |
|
|
this sounds like exactly what I am looking for. I'll get back to you on how well it worked when I get the time to do all these backups and reformat. _________________ Hoping to install Gentoo 2007.0 soon and rejoin the Linux world
My Ol' Box:
Abit NF7-S (nForce2 Chipset)
Athlon XP 2500+ Barton
512MB RAM (which may be in need of replacement)
NVIDIA GeForce3 |
|
Back to top |
|
|
|