View Full Version : Let's develop a howto to upgrade from fc2t3 to fc2
ilja
2004-05-12, 06:27 AM CDT
hi,
in 5 days FC2 will be released. And many of the users who use FC2t3 now will want to change to FC2. I think there will be a lot of questions about this topic, so I propose to write a howto before the problem exists.
Unfortunately I am one of the fc2t3 users. It happend by accident (I will never play with apt-get dist-upgrade again ;) ). So on 17th may I'm going to upgrade it. I think the best way will be not just to update my old installation, but to delete it and install the stable release. So I need my home folder to be safed. So I move my /home/ directory on a new partition. (http://www-106.ibm.com/developerworks/library/l-partplan.html) .
What do I need more ? /var/ ? /etc/ ?
I don't have anything interesting in /var/www or else I would backup it too.
Then I change to init 1
umount /home
cd /
and then rm -rf
Is there a better way?
Ok, because I want to make a networkinstallation I will need the boot and modul floppy before. Where will I be able to get them?
Now I boot on this floppy (or cd for others). Then I choose to install to the root partition I had before. And will choose my old /home partition as my new /home , and ask Fedora not to format it. Then the other things should be normal.
Then I add the users I had before and that's it.
What was forgotten by me? What is wrong? We have 5 days time, so it can be perfect at the end ;)
Ug
2004-05-12, 06:51 AM CDT
Originally posted by ilja
Unfortunately I am one of the fc2t3 users. It happend by accident (I will never play with apt-get dist-upgrade again ;) Oh how I laughed.
Bana
2004-05-12, 07:36 AM CDT
Originally posted by ilja
Then I change to init 1
umount /home
cd /
and then rm -rf
Is there a better way?
Yes, This is not necessary, during the install process (Anaconda disk druid) you can select it to format the partition that you are installing to. Ie you don't need to do this manually.
Ok, because I want to make a networkinstallation I will need the boot and modul floppy before. Where will I be able to get them?
Now I boot on this floppy (or cd for others). Then I choose to install to the root partition I had before. And will choose my old /home partition as my new /home , and ask Fedora not to format it. Then the other things should be normal.
Then I add the users I had before and that's it.
What was forgotten by me? What is wrong? We have 5 days time, so it can be perfect at the end ;) I don't know about the floppies (I use CD) but the boot.iso is 5 megs and does everything I need it to. Also I find it easiest to simply download the isos onto my /home partition and then do an install from HD. It doesn't allow you to select the /home drive from install (you can't mess with the partition that you are installing from) but that is fixed by a simple line in /etc/fstab when you are done.
Also make sure that the user that you create in FC2 final is the SAME name as your old user (case sensitive as well) as otherwise it will create another home folder that is different than the one that you had. Thats all that I can think of now though.
ilja
2004-05-12, 07:40 AM CDT
Originally posted by Bana
Yes, This is not necessary, during the install process (Anaconda disk druid) you can select it to format the partition that you are installing to. Ie you don't need to do this manually.
oh, I forgot about it totaly
Originally posted by Bana
I don't know about the floppies (I use CD) but the boot.iso is 5 megs and does everything I need it to.
Where do I get it from ? Is it a part of standard mirrors? //edit: I got it : http://download.fedora.redhat.com/pub/fedora/linux/core/1/i386/os/isolinux/
Originally posted by Bana
It doesn't allow you to select the /home drive from install (you can't mess with the partition that you are installing from) but that is fixed by a simple line in /etc/fstab when you are done.
Then I mix something up with another distribution. I thought it allows you to choose mountpoints during the installation. Good to know.
Originally posted by Bana
Thats all that I can think of now though.
That's not bad. Thank you.
Ug
2004-05-12, 07:41 AM CDT
Your up early Bana.
Bana
2004-05-12, 07:51 AM CDT
Yes, I am actually late for school :D (my mom is not feeling well so I am missing 1st period so she can drive me later).
Should we apply for some webspace from tux? We could then lay out all of this information a little better. (although I have no web development skills).
ilja
2004-05-12, 07:52 AM CDT
We can make it as an article here.
Bana
2004-05-12, 07:54 AM CDT
I went ahead and moved this to the HOWTO forum (since it IS in fact a howto). hehe
Ug
2004-05-12, 07:57 AM CDT
Originally posted by Bana
Should we apply for some webspace from tux? We could then lay out all of this information a little better. (although I have no web development skills). OR you could submit it as an article (http://www.fedoraforum.org/forum/articles.php?s=&action=intro&s=).
ilja
2004-05-12, 07:58 AM CDT
Originally posted by ilja
We can make it as an article here.
or grammatical correct : :D
Originally posted by Ug
OR you could submit it as an article.
Ug
2004-05-12, 08:01 AM CDT
Getting back on topic please.
ilja
2004-05-12, 08:06 AM CDT
To get back on topic ;)
Do you need the old /etc/ stuff ? And what out of /var/ do you still need? /var/www is nice to backup what else?
Bana
2004-05-12, 08:17 AM CDT
generally the most used things (and edited) frome /etc/ are yum.conf X11/xorg.conf and fstab but other than that I can't think of any.
ilja
2004-05-12, 08:30 AM CDT
Originally posted by Bana
generally the most used things (and edited) frome /etc/ are yum.conf X11/xorg.conf and fstab but other than that I can't think of any.
yum.conf will look in fc2 total different from fc2t3 (not testing) and fc1 (not 1 ;) ) So maybe it is even easier to build it from the scratch. fstab I would agree. X11/xorg.conf is for fc2t3 also ok.
Bana
2004-05-12, 08:47 AM CDT
okay so just fstab and xorg? that's what I was thinking as well (yum.conf wouldn't be altogether useful) also the xorg.conf would just be a backup in case something didn't work (let it autogenerate a new one and then use the old if something is wrong).
ilja
2004-05-13, 01:03 PM CDT
Thank to Ug, we have an understandable version of the howto .
> Upgrading Fedora Core 2 Test to Fedora Core 2
>
> This howto aims to show how to upgrade a FC2 test system, to a stable FC2
distribution.
> You can also upgrade your distribution with yum and apt-get (yum
> upgrade and apt-get dist-upgrade) but this can lead to problems, when
> changing a test release to a stable release. To avoid such problems, we
> will install FC2 afresh.
>
> 1.Preparations
> We have to decide, which parts of the old system we need. I would
> advise savign the /home directory. And also /var/www , if you have a webserver.
Saving /etc/fstab and
> /etc/X11/xorg.conf are also recommended . To do so you have to bring them to a
separate
> partition (if not done already). Get the installation media. It can be either the 3
> installation CDs, a net-install floppy or CD, or DVD. A very good
> howto on bringing /home to a separate directory you can find here :
> http://www-106.ibm.com/developerworks/library/l-partplan.html . On the
> home partition you should copy all the files, that you want to keep. * Now go to
step 2. After the next step there is no
> way back. You will not make it very often and you have to feel like the
> BofH himself and enjoy it. type cd / and then rm -rf * . Now all your
> files will be deleted.
> 2.Installation
> Now boot the boot medium you have selected and begin to install Fedora
> Core 2 final. I think that everybody, who has used Fedora Core before is
> able to install a new version. Please don't format the device you have
> copied your home to.
> 3.After Installation
> First of all go to init 1 as root . Then delete the new and hopefully
> empty /home directory by typing rm -rf /home . Now mount the device,
> where you copied you old /home before by typing e.g. mount /dev/hda4 or
> /dev/hdb6 or else what fits to your system. Press ctrl+D to come back to
> init 5. Now login as root and add users with the command
> /usr/sbin/adduser username . You should add all the users you had
> before. The list of former users you get by typing ls -la /home . Please
> note, that Linux is case sensitive. So ilja is not the same as Ilja and
> not the same as ilJa.
> When this is done, you can copy the fstab file, you saved before to
> /etc/fstab.
> you can overwrite the old file with cp -r .
> Normaly you should not have problems with X. If yes, then try to copy
> the backuped xorg.conf file to /etc/X11/.
>
> So now don't forget to update your /etc/yum.conf with new repositories
> for fedora core 2 final.
how is it?
* I want to insert: Please unmount all the mounted devices, except of the one mounted as / not to delete them. You can make it with umount {path] e.g. umount /mnt/floppy or umount /mnt/win . Or else all the files on all mounted devices will be deleted !
harlekin
2004-05-14, 01:16 AM CDT
for the sake of simplicity:
u dont need 2 "#rm -rf."
the anaconda installer will find your fc2t3 or fc1 partition and ask for update instead choss new installation.
than go on as described above
Pegasus
2004-05-14, 01:35 AM CDT
Q: What about the files "/boot/grub/menu.lst" and /etc/sysconfig/rhn/sources" ?
/boot/grub/menu.lst:
The boot menu showing the choice of loading different kernel-versions / harddrives / non-linux-os
-> If you've upgraded to kernel 2.6.5-1.358 in FC2T3, remove all other kernel entries according this partition. Leave additional entries (e.g. FC1 on hd(1/0) untouched)
/etc/sysconfig/rhn/sources:
up2date repository file.
-> Same procedure as yum.conf: Needs to be modified for FC2 final.
harlekin
2004-05-14, 01:52 AM CDT
i would let the anaconda installer make the new grub.conf entries. it should find the toher bootable partitions by itself.
for up2date and yum i would rather add the needed third-party repositories to the new file from final 2 than using the modified version of 1.92.
ilja
2004-05-14, 08:07 AM CDT
Originally posted by harlekin
for the sake of simplicity:
u dont need 2 "#rm -rf."
the anaconda installer will find your fc2t3 or fc1 partition and ask for update instead choss new installation.
than go on as described above
hi harlekin,
will it be a clean installation? It shouldn't have any buggy, testing apps left and be stable. Or will it only upgrade the test version? the rm -rf is only to make sure, that nothing testing will be left.
P.S. We are allmost neighbourghs, I live in Aachen ;)
tuxinaredhat9
2004-05-14, 08:39 AM CDT
yeah, I just wanted to know if you might want to make this post a little clearer, I can post it on my site(fedoradocs.net (http://www.fedoradocs.net)). I was thinking it might work to offset a lot of the questions if that would help you guys out at all? Thanks for your time and consideration.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.