Feb 18 2022

Slackware upgrade from 32-bit to 64-bit

  1. If you use 4 as the default runlevel, change it back to the default 3 in /etc/inittab.
  2. installpkg the 64-bit huge kernel and modules, ADD it to lilo.conf, run lilo, reboot. Now you are running the 32-bit system on a 64-bit kernel. ‘uname -m’ prints ‘x86_64’ instead of ‘i686’.
  3. installpkg the 64-bit a/glibc-solibs and a/aaa_elflibs. After that the basic 64-bit binaries would run in addition to the 32-bit ones.
  4. installpkg everything from the 64-bit directories slackware64/*/*.t?z.
  5. reboot. Now you are running a 64-bit system.
  6. get rid of the old 32-bit packages:
    removepkg /var/adm/packages/*-i[456]86-*
  7. check the *.new files

fdisk -l /dev/sda
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000001

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 10487807 10485760 5G fd Linux raid autodetect
/dev/sda2 10487808 16779263 6291456 3G 82 Linux swap
/dev/sda3 16779264 976773167 959993904 457.8G 5 Extended
/dev/sda5 16781312 48238591 31457280 15G fd Linux raid autodetect
/dev/sda6 48240640 69212159 20971520 10G fd Linux raid autodetect
/dev/sda7 69214208 976773167 907558960 432.8G fd Linux raid autodetect

root@dwarf:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md1 4.8G 3.5G 1.2G 76% /
/dev/md5 15G 12G 2.1G 86% /usr
/dev/md6 9.8G 4.6G 4.6G 50% /var
/dev/md7 426G 225G 180G 56% /home

mdadm –assemble –run /dev/md1 /dev/sdb1

mdadm –assemble –run /dev/md5 /dev/sdb5

mdadm –assemble –run /dev/md6 /dev/sdb6

mdadm –assemble –run /dev/md7 /dev/sdb7

setup

liloconfig /mnt /dev/md1


Mounts made by setup:
mount /dev/md1 /mnt
mount /dev/md5 /mnt/usr
mount /dev/md6 /mnt/var
mount /dev/md7 /home
ln -s /var/lib/pkgtools/packages /mnt/var/lib/pkgtools/packages

 

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.