* RedHat installer mess...
@ 2003-02-11 3:17 Guillaume Dargaud
2003-02-11 5:22 ` David Efflandt
2003-02-11 17:55 ` Michal Jaegermann
0 siblings, 2 replies; 11+ messages in thread
From: Guillaume Dargaud @ 2003-02-11 3:17 UTC (permalink / raw)
The installer froze in the middle of an upgrade (from 5.2 to 7.2), with an
[insufficient disk space] message, although I was careful to have over 3Gb
on 2 partitions (maybe wasn't enough in /etc) and install only necessary
stuff, leaving a mess that I'm still trying to figure out...
Basically e2fsck doesn't work anymore [fsck.ext2: Filesystem has unsupported
feature(s)], probably because I told the installer to go from ext2 to ext3
(how can I tell if that's the case, "tune2fs -l" doesn't say anything
suspicious ?)
Now when the system tries to boot, I get the "Filesystem has unsupported
feature" message and the system stops in single user mode because e2fsck
won't run.
I can't boot from the RedHat installer CD 'cause it stops if the filesystems
are unclean.
tune2fs -l tells me that my filesystems are unclean, but how can I clean
them without e2fsck ?
"shutdown -f" is ignored (it still runs e2fsck). The only way I've been able
to boot normally is to copy /bin/true over e2fsck !!!
I tried getting a newer version of e2fsck, but I run into various problems:
I'm on an Alpha and can't find binaries easily, and rpm complains of either
version number >3 (for e2fsprogs-devel-1.23-1.7.1.alpha.rpm) or missing
dependencies (for e2fsprogs-devel-1.27-2.5.alpha.rpm).
Any way to compile the source (I couldn't find it) ? Or get a working
version ?
Or a way to just set the 'not clean' disk state to 'clean' and just retry
the installer ?
Or any other idea ?
I haven't had so much trouble with an upgrade ever since Win98 came out...
:-(
--
Guillaume Dargaud
Colorado State University
http://www.gdargaud.net/
"SUPERCOMPUTER: what it sounded like before you bought it."
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: RedHat installer mess...
2003-02-11 3:17 RedHat installer mess Guillaume Dargaud
@ 2003-02-11 5:22 ` David Efflandt
2003-02-11 16:19 ` Guillaume Dargaud
2003-02-11 17:55 ` Michal Jaegermann
1 sibling, 1 reply; 11+ messages in thread
From: David Efflandt @ 2003-02-11 5:22 UTC (permalink / raw)
On Mon, 10 Feb 2003, Guillaume Dargaud <noUSEspNETam@gdargaud.net> wrote:
> The installer froze in the middle of an upgrade (from 5.2 to 7.2), with an
> [insufficient disk space] message, although I was careful to have over 3Gb
> on 2 partitions (maybe wasn't enough in /etc) and install only necessary
> stuff, leaving a mess that I'm still trying to figure out...
>
> Basically e2fsck doesn't work anymore [fsck.ext2: Filesystem has unsupported
> feature(s)], probably because I told the installer to go from ext2 to ext3
> (how can I tell if that's the case, "tune2fs -l" doesn't say anything
> suspicious ?)
> Now when the system tries to boot, I get the "Filesystem has unsupported
> feature" message and the system stops in single user mode because e2fsck
> won't run.
> I can't boot from the RedHat installer CD 'cause it stops if the filesystems
> are unclean.
> tune2fs -l tells me that my filesystems are unclean, but how can I clean
> them without e2fsck ?
> "shutdown -f" is ignored (it still runs e2fsck). The only way I've been able
> to boot normally is to copy /bin/true over e2fsck !!!
Might be too late now, but when switching major versions (especially that
major and different filesystems) it is best to backup /root, /etc, /home
and anything else you might want to refer to, and install from scratch.
There should be a way to boot a rescue system on the CD, which may have
tools to fix whatever is broken if it is fixable.
--
David Efflandt - All spam ignored http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: RedHat installer mess...
2003-02-11 5:22 ` David Efflandt
@ 2003-02-11 16:19 ` Guillaume Dargaud
2003-02-11 17:28 ` John Reiser
0 siblings, 1 reply; 11+ messages in thread
From: Guillaume Dargaud @ 2003-02-11 16:19 UTC (permalink / raw)
> There should be a way to boot a rescue system on the CD, which may
> have tools to fix whatever is broken if it is fixable.
Yeah, but what tool ? I can't seem to find a proper e2fsck...
--
Guillaume Dargaud
Colorado State University - Dept of Atmospheric Science
http://www.gdargaud.net/
"Most of the VAX instructions are in microcode, but HALT and NO-OP are in
hardware for efficiency."
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: RedHat installer mess...
2003-02-11 16:19 ` Guillaume Dargaud
@ 2003-02-11 17:28 ` John Reiser
2003-02-11 21:52 ` Guillaume Dargaud
0 siblings, 1 reply; 11+ messages in thread
From: John Reiser @ 2003-02-11 17:28 UTC (permalink / raw)
>>There should be a way to boot a rescue system on the CD, which may
>>have tools to fix whatever is broken if it is fixable.
>
> Yeah, but what tool ? I can't seem to find a proper e2fsck...
[Some of this is explained in the RELEASE_NOTES that appear on the
1st CD-ROM of the Phoebe RHL8.0.92 beta. I had to do it after installing
Phoebe onto a system that also has another root with RHL7.3.]
Boot "linux rescue" from the 1st CD-ROM of the newer distribution,
and do not mount the old root. If RHL7.2 doesn't let you
skip the mounting of the old root, then use RHL8.0, which does.
For each ext2 or ext3 filesystem, see what features it uses:
tune2fs -l /dev/... | grep features
To revert to ext2, you must remove all features except "filetype" and
"sparse_super". In particular, the "has_journal" feature is the
difference between ext2 and ext3, and the "dir_index" feature is
new for RHL8.1. Use
tune2fs -O ^has_journal /dev/...
tune2fs -O ^dir_index /dev/... # if needed
Then check+repair each filesystem using the newer e2fsck:
e2fsck -f /dev/...
Then boot "linux rescue" from the 1st CD-ROM of the older distribution,
and try to avoid mounting anything. Check+repair each filesystem using
the older e2fsck. Then you should have no trouble from the "has unknown
features" part of booting the old system. [You may still have trouble
if critical files were lost or scribbled, etc.]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: RedHat installer mess...
2003-02-11 3:17 RedHat installer mess Guillaume Dargaud
2003-02-11 5:22 ` David Efflandt
@ 2003-02-11 17:55 ` Michal Jaegermann
2003-02-12 4:12 ` Nico Kadel-Garcia
2003-02-12 21:17 ` Guillaume Dargaud
1 sibling, 2 replies; 11+ messages in thread
From: Michal Jaegermann @ 2003-02-11 17:55 UTC (permalink / raw)
In comp.os.linux.alpha Guillaume Dargaud <noUSEspNETam@gdargaud.net> wrote:
> The installer froze in the middle of an upgrade (from 5.2 to 7.2), with an
> [insufficient disk space] message,
Insufficient where? Installer says such things.
BTW - a text installation mode is quite a bit more robust than graphics.
> although I was careful to have over 3Gb
> on 2 partitions (maybe wasn't enough in /etc)
Quite unlikely. You do not really need much space in / and it is
a very good idea to have rather small, separate / and possibly also
/boot. One good reason for that is that they you can format these
as ext2 with '-b 1024 -O none' so you are not dependent on the
"latest and greatest" bootloaders but you can use whatever you
know that it works for you. On "work" partitions you can then
use any supported filesystem you wish.
> I can't boot from the RedHat installer CD 'cause it stops if the filesystems
> are unclean.
How you are booting? If from SRM then boot with '-fl 4'. A comment
in 'etc/aboot.cfg' on CD says:
# 4 - Boot the Red Hat Linux installer in text only rescue mode
You will get a shell and enough of a system to fix things. Sometimes
it is necessary to unpack bits and pieces from CD into a ramdisk.
Updates which failed in the middle are, unfortunately, nasty situations
as things are inconsistent all over and it is hard to tell what
will work and what will require some unconventional hacks.
If you are using milo you have to figure out a way to do something
equivalent.
> Any way to compile the source (I couldn't find it) ?
Sources are on one of CDs (if you made the whole set) but it is
nice to a have a system on which to compile. :-)
Michal
p.s. Once again and for a reference here is a full content of
etc/aboot.cfg on an installation CD for RH 7.2 (not that this
is hard to check anywhere where you can mount iso9660 CD :-).
Paths referenced below are, obviously, relative to the top
of this CD structure as you are booting from it.
#
# Red Hat Linux/Alpha aboot configuration options:
#
# 0 - Boot the Red Hat Linux installer using a 2.4 kernel
# 1 - Boot the Red Hat Linux installer with kernel messages sent to ttyS0
# 2 - Boot the Red Hat Linux installer with kernel messages sent to
# ttyS0 (com1) and the graphics terminal
# 3 - Boot the Red Hat Linux installer in text only mode
# 4 - Boot the Red Hat Linux installer in text only rescue mode
# 5 - Boot the Red Hat Linux installer but allow manual selection of drivers
# 6 - As above using the ttyS0 serial line install method
# 7 - Boot the Red Hat Linux installer and allow for other than just
# a CD install (offers http, nfs, ftp and local disk install methods)
# 8 - As above but for use with the serial console
#
0:/kernels/vmlinux.gz initrd=/images/cdrom.img
1:/kernels/vmlinux.gz initrd=/images/cdrom.img console=ttyS0
2:/kernels/vmlinux.gz initrd=/images/cdrom.img console=ttyS0 console=tty0
3:/kernels/vmlinux.gz initrd=/images/cdrom.img text
4:/kernels/vmlinux.gz initrd=/images/cdrom.img rescue
5:/kernels/vmlinux.gz initrd=/images/cdrom.img noprobe
6:/kernels/vmlinux.gz initrd=/images/cdrom.img noprobe console=ttyS0
7:/kernels/vmlinux.gz initrd=/images/cdrom.img expert
8:/kernels/vmlinux.gz initrd=/images/cdrom.img expert console=ttyS0
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: RedHat installer mess...
2003-02-11 17:28 ` John Reiser
@ 2003-02-11 21:52 ` Guillaume Dargaud
2003-02-11 23:48 ` John Reiser
0 siblings, 1 reply; 11+ messages in thread
From: Guillaume Dargaud @ 2003-02-11 21:52 UTC (permalink / raw)
> For each ext2 or ext3 filesystem, see what features it uses:
>
> tune2fs -l /dev/... | grep features
I have two partitions that are unfsckable and one that is. They all show
Filesystem features: (none)
The only difference is
Filesystem revision #: 1 (dynamic) for the failing ones
Filesystem revision #: 0 (original) for the untouched one
This "Filesystem revision" is not something that seems modificable with
tune2fs. Or is it ?
> To revert to ext2, you must remove all features except "filetype" and
> "sparse_super". In particular, the "has_journal" feature is the
> difference between ext2 and ext3, and the "dir_index" feature is
> new for RHL8.1. Use
>
> tune2fs -O ^has_journal /dev/...
> tune2fs -O ^dir_index /dev/... # if needed
In my man tune2fs, I don't see this -O option:
tune2fs [ -l ] [ -c max-mount-counts ] [ -e errors-behav-
ior ] [ -i interval-between-checks ] [ -m reserved-blocks-
percentage ] [ -r reserved-blocks-count ] [ -s sparse-
super-flag ] [ -u user ] [ -g group ] [ -C mount-count ] [
-L volume-name ] [ -M last-mounted-directory ] [ -U UUID ]
device
> Then check+repair each filesystem using the newer e2fsck:
Hmmm, and where can I find it ?
> Then boot "linux rescue" from the 1st CD-ROM of the older
> distribution, and try to avoid mounting anything. Check+repair each
> filesystem using the older e2fsck. Then you should have no trouble
> from the "has unknown features" part of booting the old system. [You
> may still have trouble if critical files were lost or scribbled, etc.]
OK, will try the rescue.
Thanks for the help.
--
Guillaume Dargaud
Colorado State University - Dept of Atmospheric Science
http://www.gdargaud.net/
"The only thing more dangerous than a hardware guy with a code patch is a
programmer with a soldering iron."
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: RedHat installer mess...
2003-02-11 21:52 ` Guillaume Dargaud
@ 2003-02-11 23:48 ` John Reiser
0 siblings, 0 replies; 11+ messages in thread
From: John Reiser @ 2003-02-11 23:48 UTC (permalink / raw)
>>For each ext2 or ext3 filesystem, see what features it uses:
>>
>>tune2fs -l /dev/... | grep features
>
> I have two partitions that are unfsckable and one that is. They all show
> Filesystem features: (none)
>
> The only difference is
> Filesystem revision #: 1 (dynamic) for the failing ones
> Filesystem revision #: 0 (original) for the untouched one
> This "Filesystem revision" is not something that seems modificable with
> tune2fs. Or is it ?
I cannot find a way to change it, either. Your original message mentioned
an upgrade from RHL5.2 to RHL7.2, which is a jump of two major versions.
Perhaps the release notes for RHL6.x would say something about ext2 changes.
Certainly the 'filetype' and 'sparse_super' features are in RHL7.3.
>
>
>>To revert to ext2, you must remove all features except "filetype" and
>>"sparse_super". In particular, the "has_journal" feature is the
>>difference between ext2 and ext3, and the "dir_index" feature is
>>new for RHL8.1. Use
>>
>>tune2fs -O ^has_journal /dev/...
>>tune2fs -O ^dir_index /dev/... # if needed
>
> In my man tune2fs, I don't see this -O option: [snipped]
>
>>Then check+repair each filesystem using the newer e2fsck:
>
> Hmmm, and where can I find it ?
Use the one on the rescue disk. On the RHL7.3/base/stage2.img
(which is a 'cramfs' filesystem image that cat be mounted
"mount -o loop stage2.img /mnt/tmp" to look or extract on
someother machine) it is in /usr/sbin/e2fsck . Rescue mode
mounts stage2.img (or uses it to create a ramfs), so it should
be /usr/sbin/e2fsck in rescue mode, too.
>
>
>>Then boot "linux rescue" from the 1st CD-ROM of the older
>>distribution, and try to avoid mounting anything. Check+repair each
>>filesystem using the older e2fsck. Then you should have no trouble
>>from the "has unknown features" part of booting the old system. [You
>>may still have trouble if critical files were lost or scribbled, etc.]
>
> OK, will try the rescue.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: RedHat installer mess...
2003-02-11 17:55 ` Michal Jaegermann
@ 2003-02-12 4:12 ` Nico Kadel-Garcia
2003-02-12 18:18 ` Michal Jaegermann
2003-02-12 21:17 ` Guillaume Dargaud
1 sibling, 1 reply; 11+ messages in thread
From: Nico Kadel-Garcia @ 2003-02-12 4:12 UTC (permalink / raw)
"Michal Jaegermann" <michal@gortel.phys.ualberta.ca> wrote in message
news:b2bdf8$d0k$1@pulp.srv.ualberta.ca...
> In comp.os.linux.alpha Guillaume Dargaud <noUSEspNETam@gdargaud.net>
wrote:
> > The installer froze in the middle of an upgrade (from 5.2 to 7.2), with
an
> > [insufficient disk space] message,
>
> Insufficient where? Installer says such things.
>
> BTW - a text installation mode is quite a bit more robust than graphics.
>
> > although I was careful to have over 3Gb
> > on 2 partitions (maybe wasn't enough in /etc)
>
> Quite unlikely. You do not really need much space in / and it is
> a very good idea to have rather small, separate / and possibly also
> /boot. One good reason for that is that they you can format these
> as ext2 with '-b 1024 -O none' so you are not dependent on the
> "latest and greatest" bootloaders but you can use whatever you
> know that it works for you. On "work" partitions you can then
> use any supported filesystem you wish.
I find over-partitioning to be a *real* problem, and have given up on trying
to pre-plot where things will wind up. /var, /usr, /etc, /opt, /usr/local/,
/tmp, etc. all have different space needs that may change unexpectedly. So I
just lump them together as /, maybe use a /boot and /home, and if I need a
new partition add a new disk (since all my space on the other one is already
available).
/boot, OK, separate if you want.
Lots of partitioning is useful if you want to prevent out-of-control
processes from stomping your root partition insted of your website or ftp
site or whatever, but in general I find it to be more trouble than its worth
to have more than /, /boot, and maybe /home or /scratch.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: RedHat installer mess...
2003-02-12 4:12 ` Nico Kadel-Garcia
@ 2003-02-12 18:18 ` Michal Jaegermann
0 siblings, 0 replies; 11+ messages in thread
From: Michal Jaegermann @ 2003-02-12 18:18 UTC (permalink / raw)
In comp.os.linux.alpha Nico Kadel-Garcia <nkadel@bellatlantic.net> wrote:
>
>
> I find over-partitioning to be a *real* problem, and have given up on trying
> to pre-plot where things will wind up.
Personally I find systems which will not boot because / is
messed up, or /tmp is overflowing, or there are obscure bugs in
a bootloader, or ... a much more serious PITA. :-)
'/' itself is fairly static so chances that something will go wrong
there are rather small and a system is bootable even if you lost
everything under /usr. It is even possible to run with '/' mounted
read-only although the later requires some "creative hacking". The
problem is that various things try to write in /dev, /etc and /root
and not always you can ignore that. AFAIK so far this applies to
all Linux distributions.
> /var, /usr, /etc, /opt, /usr/local/,
> /tmp, etc. all have different space needs that may change unexpectedly. So I
> just lump them together as /, maybe use a /boot and /home, and if I need a
> new partition add a new disk (since all my space on the other one is already
> available).
You can partition "root", "boot" and "the rest mounted on /usr" if you
so desire. Go wild with journals, etc. Various directories can be
provided as symbolic links and/or "bind-mounted" (although one should be
careful with the later as installer so far does not know about 'bind'
which may lead to screwups during updates). There is also a possibility
of using LVM but I have no idea how good or bad this fares on Alpha.
Separating "system stuff" from "here are users" makes also much
easier to do reasonable backups.
> Lots of partitioning is useful if you want to prevent out-of-control
> processes from stomping your root partition
"Small root" does not not imply "lots of partitions" and you can even
move things like /var and replace them with links after an initial
installation. You do not really need /var to boot into a single-user
mode.
Michal
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: RedHat installer mess...
2003-02-11 17:55 ` Michal Jaegermann
2003-02-12 4:12 ` Nico Kadel-Garcia
@ 2003-02-12 21:17 ` Guillaume Dargaud
2003-02-13 17:05 ` Michal Jaegermann
1 sibling, 1 reply; 11+ messages in thread
From: Guillaume Dargaud @ 2003-02-12 21:17 UTC (permalink / raw)
> 4:/kernels/vmlinux.gz initrd=/images/cdrom.img rescue
Thanks, great, that worked.
Then the new e2fsck recognized properly the ext3 and cleaned the drives. And
then I was able to resume the installation, except that no matter how much
stuff I remove, it complains about not enough room in /usr.
Bah, I'll get a new HD by tomorrow morning and that should take care of it.
I hope I won't have too many bad surprises after that.
Thank you all, you have been most helpful.
--
Guillaume Dargaud
Dept of Atmospheric Science
Colorado State University
http://www.gdargaud.net/
"The nice thing about standards is that there are so many to choose from."
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: RedHat installer mess...
2003-02-12 21:17 ` Guillaume Dargaud
@ 2003-02-13 17:05 ` Michal Jaegermann
0 siblings, 0 replies; 11+ messages in thread
From: Michal Jaegermann @ 2003-02-13 17:05 UTC (permalink / raw)
In comp.os.linux.alpha Guillaume Dargaud <noUSEspNETam@gdargaud.net> wrote:
>
> And
> then I was able to resume the installation, except that no matter how much
> stuff I remove, it complains about not enough room in /usr.
I have a strange hunch that after all these adventures you have
multiple copies of installation images laying around (the thing is
removed after a succesful installation but it may stick if you bombed
out) and also a number of partially converted /var/lib/rpm/.
Other than that this is pretty weird. 3 Gigs is maybe not enough
to install "everything" but it is pretty close to it.
BTW - as for now there is close to 400 Megs in binary rpms of updates
to what you are installing. :-)
Michal
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2003-02-13 17:05 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-11 3:17 RedHat installer mess Guillaume Dargaud
2003-02-11 5:22 ` David Efflandt
2003-02-11 16:19 ` Guillaume Dargaud
2003-02-11 17:28 ` John Reiser
2003-02-11 21:52 ` Guillaume Dargaud
2003-02-11 23:48 ` John Reiser
2003-02-11 17:55 ` Michal Jaegermann
2003-02-12 4:12 ` Nico Kadel-Garcia
2003-02-12 18:18 ` Michal Jaegermann
2003-02-12 21:17 ` Guillaume Dargaud
2003-02-13 17:05 ` Michal Jaegermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox