Today I found that one of my own MiniMe installations
never got the
aptupgrade script run on it, to upgrade to the
new apt, rpm and
Synaptic. When I tried to do a normal upgrade, Synaptic wanted to
remove the entire KDE 4.6.5 desktop.
Where have we heard that before? 
Anything I tried to upgrade these items separately
through apt-get or Synaptic failed for
dependency reasons. While it started as a
MiniMe installation, in
2010, it now contains some
1300+ added packages and two years of personal tweaks. I
really didn't want to lose all this, or have to start from scratch to rebuild it.
I don't have a separate
/home partition;
/home/polack is part of the
/ partition. Now we all know I could do the usual backup of /home/polack, reformat, reinstall MiniMe, then reinstall the various apps in the regular way, but I decided to
play with it in a slightly different fashion. I had nothing to lose anyway, and I would be
working with a copy, in case it went totally belly up.
The first thing I did was generate a list, in
/home/polack, of all the installed packages with the
genlist script I've posed to the forum at various times. I then created a new partition on my fairly empty 2 TB Green drive, rebooted to my regular KDE installation, mounted the
MiniMe partition on
/mnt/here and the
new partition on
/mnt/there, then ran;
[root@fatman ~]# rsync -av /mnt/here/ /mnt/there <Enter>
...to
copy my
MiniMe installation to the
new partition. When done, I edited the
/mnt/there/etc/fstab to reflect the
new / partition, and also added a
new boot stanza for it in my
master menu.lst.
Next I ran
mkinitrd from a
chroot environment on the
copied installation, to rebuild the
initrd image of the
default kernel, so it would use the proper
new / partition and
filesystem format when booting from its new home.
I rebooted into the
copied MiniMe to verify everything was working the same as the original, then rebooted once again to my
liveHDD MiniMe 2012.2 image. Choosing the proper partition of the
installed MiniMe copy, I then installed the
2012.2 MiniMe over the top of the copy,
unchecking the box that would normally have caused the partition to be
reformatted. After the installation I rebooted to the
copied MiniMe.
I set the
root password, then created the
normal user using the
same name, UID and GID as the original. I looked for any entry to
not create a
new /home/polack directory that would overwrite the existing one, but found nothing. Fearing the worst, I then logged in as polack.
My desktop was just as it had been, tweaks and all. All links to applications worked, bookmarks and such were unchanged, and
Synaptic was able to run a
normal system upgrade without removing the
KDE desktop. Oddly,
Synaptic only saw the
newly installed MiniMe base applications, but
not the
other added applications, even though they all seemed to
work properly when opened from the
menu or
desktop icons. The
system knew they were there, but
Synaptic did not.
I tried to rebuild the rpm database, to include those other installed and working packages, so they could be properly upgraded, but that failed. Synaptic still didn't show them as being installed at all. I sort of expected that.
Finally, I ran my
newlist script to generate a
new installation package list, then ran my
difflist script to generate a list of only the
missing applications from the
original list made
before the copy process. I removed the installed kernels from that list, divided it into eight smaller files, then entered each into Synaptic's
File --> Read Markings, one at a time, and clicked
Apply after each entry. The end result is
all the packages have been
upgraded to the
newest version, and now show up properly in the rpm database and Synaptic.
Not one of my personal tweaks was lost or damaged in any way during the whole process. My
/home/polack directory and all its contents is
absolutely intact.
I've since installed the
2.6.38.8-pclos3.pae.bfs and rebooted.
Dkms informed me there were
two versions of
two of the
nvidia drivers and was
confused as to what to do next, so I couldn't immediately log into my GUI desktop. I logged in as
root at the
VT login, then used
locate to find
/var/lib/dkms/nvidia<whatever>, removed the
older version of
each driver module from
each of those directories, then rebooted. Dkms then did its thing and I arrived back at the
GUI login, logged in as polack and am now here, to tell my tale.
My, my, my! That worked really slick.
