From: Harald Koenig <koenig@tat.physik.uni-tuebingen.de>
Subject: RH 5.0 update blues
Date: Tue, 16 Dec 1997 13:48:34 +0100 [thread overview]
Message-ID: <da4e401e157dd5d5b847062f27fbd541.axp-list@archive.invalid> (raw)
Hi,
upgrading my XL266 from 4.2 to 5.0 was again not easy at all:(
0) finding correct boot images
/cdrom/README suggests to see kernels/README which kernel image to be used
but kernels/README doesn't exist at all.
there is milo/xl on the CD but not kernels/xl.gz, so I checked the
paper docs. page 212 (D.2) suggests that XL266 is system type Alpha-XLT,
but trying to use kernels/xlt.gz just hung the machine (when using milo/xl,
haven't even tried using milo/xlt-alcore)
finally I've used kernels/avanti.gz, but how should a beginner know/find this?
1) booting from CDROM
I again had severe problems to boot from CD at all because
the TOSHIBA XM-5301 cdrom drive needs ~5+ seconds to "initiate"
after a SCSI bus reset. as a result it was not yet ready
when the kernel tried to mount the root fs (using ncr53c8xx)
from CD and it died.
this is a problem I already had with RH 4.2 and I've described this in
Message-ID: <19970618191839.19633@turtle.tat.physik.uni-tuebingen.de>
Date: Wed, 18 Jun 1997 19:18:39 +0200
Subject: Red Hat 4.2 installation woes
that time I had to use my own old kernel because I needed a more recent
version of the NCR driver (1.18d from 2.0.30) to be able to use
ncr53c8xx=settle:10.
now the RH 5.0 kernels use NCR driver revision 2.4a which still seems to support
this according to the sources but neither
boot -t iso9660 scd0:kernels/avanti.gz root=/dev/scd0 ncr53c8xx=settle:10
nor
boot -t iso9660 scd0:kernels/avanti.gz root=/dev/scd0 ncr53c8xx=safe:y
did work, there was no longer delay to settle the CDROM drivce first:(
so, again I had to use my own old kernel with ncr 1.18d driver where
this works fine. with
boot -t iso9660 sda2:vmlinux.gz root=/dev/scd0 ncr53c8xx=settle:10
mounting rootfs works fine but then the installation startup complains
about bot being able to find the kernel on CDROM and that I should specify
bootfile=.... but even
boot -t iso9660 sda2:vmlinux.gz root=/dev/scd0 ncr53c8xx=settle:10 bootfile=kernels/avanti.gz
didnt' work, same problem :-(
so I had to
mkdir /kernels
cp /vmlinux.gz /kernels/avanti.gz
on the old system and use
boot -t iso9660 sda2:kernels/avanti.gz root=/dev/scd0 ncr53c8xx=settle:10
which finally started the installation/upgrade. pweh...
3) disk space checks before/during upgrade
the first 100+ packes installed/upgraded fine up to kernel-source package
which filled up the disk resulting in the following error
unpacking of archive failed on file /usr/src/linux-2.0.30/drivers/sound/soundcard.c.orig: -1: No such file or directory
cannot open RPM file kernel-source-2.0.30-2.alpha.rpm: No such file or directory
(note: kernel-source RPM hasn't been installed before, I've added this newly
in the manual mode before starting upgrade; I've moved all my old kernel
sources away to avoid collisions and loosing my own hacks/patches;)
before continuing to upgrade I've removed some old code to have enouch
free disk space to continue (this is only a 1GB disk with full XFree86 sources
etc. on it too) and did
rpm -iv --force /RedHat/RPMS/kernel-source-2.0.30-2.alpha.rpm
manually to avoid any problems in the future. I don't know if the
next problem (4) relates to this one, but I don't think so.
it would be _very_ helpful if you'd check disk space requirements
before starting upgrade and warn the user to avoid such problems!
then I pressed return on VC1 to continue installation whick worked fine
for all other packages until...
4) `Error: file kernel missing from source dir'
upgrading itself went pretty smooth but at the very end I got the
error above and this box gave me options `previous', `retry' and `menu'
to choose.
`retry' and `menu' both only resulted in a blue screen where nothing
happened anymore -- I had to press CTRL-ALT-DEL.
`previous' only told me "can't go to previous step" and looped there. C-A-D again...
whenever possible (see next point) I run `sync' on VC2 before rebooting.
I've tried many times to get around this point and even used strace to figure out
where the installation process looks for this "file kernel" -- it should be
in the rootfs, so in the root of the CDROM:
...
write(4, "* rpm database closed\n", 22) = 22
sync() = 0
sync() = 0
open("/mnt/etc/sysconfig/pcmcia", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 6
fstat(6, {st_mode=01, st_size=882198347, ...}) = 0
mmap(0, 4831834448, PROT_WRITE|PROT_EXEC|0x1b0, 0 /* MAP_??? */, 4831836032, 0) = 0x1555558a000
write(6, "PCMCIA=no\nPCIC=\nPCIC_OPTS=\nCO"..., 38) = 38
close(6) = 0
munmap(0x1555558a000, 8192) = 0
write(1, "\33[1;63H\33[33;44mInstall bootl"..., 33) = 33
select(3, [2], NULL, NULL, {0, 0}) = 0 (Timeout)
write(1, "\33[10;23H\33[0;10m\33[11m\33[30"..., 518) = 518
write(4, "* coping kernel to /mnt/vmlinux."..., 35) = 35
write(4, "\n", 1) = 1
open("kernel", O_RDONLY) = -1 ENOENT (No such file or directory)
write(4, "* file kernel missing from sourc"..., 44) = 44
select(3, [2], NULL, NULL, {0, 0}) = 0 (Timeout)
write(1, "\33[0;10m\33[37;40m\33[13;18r\33"..., 1383) = 1383
select(3, [2], NULL, NULL, {10, 0}) = 0 (Timeout)
select(3, [2], NULL, NULL, {10, 0}) = 0 (Timeout)
...
I don't know if anything important would happen after this step which
resulted in this `Error: file kernel missing' but I finally booted
the installed system and it worked more or less.
5) VC2 woes
while trying to debug, understand or fix ths `file kernel missing' problem
it was very nasty that
- the bash on VC2 won't get restarted when it terminates e.g. by accident
- ^C and ^Z etc. doesn't work on VC2
this resulted in some more (otherwise unnecessary) reboots which might be
a reason for
6) file system corruption
before starting the update I've checked the ext2 rootfs on disk to be clean
(running standalone and read-only mounted of course). now after booting
the hard disk again after the problems mentioned above, the first e2fsck run
found _many_ inodes with `illegal blocks' and after repairing them
there have been even more `duplicate blocks' between files.
most of those files have been sources files from the kernel-sources package.
no idea if this is just a coincidence.
anyway, ext2fs did a good job and the system started fine after reboot...
7) time stamps
the next bad surprise was that all creation time stamps of files
and modification times of directories and symlinks etc. _again_
are in the future in year 2017 because you didn't take care of the
ARC console clock settings ;-(
fixing all those time stamps (including creation times because I use
`ls -ltrc' and `find -ctime ...' quite frequently too) was another
(IMHO unnecessaary) pain).
8) emacs woes
on the text console I can start emacs but trying to suspend it using ^Z
is _only_ possible if ^Zis the first keypress after emacs was started.
typing in a buffer or even switching to another buffer (or resuming
a suspended emacs) is sufficient that ^Z doesn't work anymore :-(
this happens both on the text consoles and in xterms too if DISPLAY
is not set.
using `emacs -nw' with DISPLAY set (even on text console) doesn't have
any problems with ^Z suspending...
starting emacs locally in X11 works fine, but when I try to get an emacs
on a remote display (x86 PC running Linux) I only get an empty window
and emacs locks up:(
so, that's enough trouble for now ;-)
Harald
--
All SCSI disks will from now on ___ _____
be required to send an email notice 0--,| /OOOOOOO\
24 hours prior to complete hardware failure! <_/ / /OOOOOOOOOOO\
\ \/OOOOOOOOOOOOOOO\
\ OOOOOOOOOOOOOOOOO|//
Harald Koenig, \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik // / \\ \
koenig@tat.physik.uni-tuebingen.de ^^^^^ ^^^^^
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
reply other threads:[~1997-12-16 12:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox