#!/bin/bash # # Requires: bash, Midnight Commander # # NOTE: The 'select' statement in some versions of "bash" is BROKEN # (it's fixed in the later versions) and requires different syntax. # This script can be adapted to work with those versions, but it's an # 'either/or' proposition. # You need to define your document directory here! DOC=/usr/doc clear [ -z $1 ] && { cat << ! 'doc' by Ben Okopnik - a doc directory info reader Usage: doc 'doc' will list all choices matching 'xyz*'. More letters produce a narrower query. ! exit } cd $DOC cd $( select A in $1*; do echo $A; break; done ) clear # Due to the unpredictable depth of directory structures and # the random number of 'retrievals', the loop here has to be # infinite... which makes the exit method a rather crude one. while [ 1 ] do echo 'Enter "0" to change to the parent dir; press "Ctrl-C" when done.' echo '----------------------------------------------------------------' echo B=$( select C in *; do echo $C; break; done ) [ -z $B ] && B=".." if [ -d $B ] then cd ./$B clear else mc -v $B clear fi done ------ snip here ------------------------------------------------------- From star Thu Mar 1 17:06:40 2001 Return-Path: Delivered-To: star@starshine.org Received: from antares.starshine.org by localhost with POP3 (fetchmail-5.0.5) for star@localhost (single-drop); Thu, 01 Mar 2001 17:06:40 -0800 (PST) Received: from jake.micromuse.co.uk (mailhost.micromuse.com [194.131.185.75]) by antares.in.starshine.org (Postfix) with ESMTP id EF2409798 for ; Thu, 1 Mar 2001 12:10:29 -0800 (PST) Received: from afrenquelli (micromuse-gw.customer.alter.net [203.166.42.170]) by jake.micromuse.co.uk (Switch-2.1.0/Switch-2.1.0) with SMTP id f220L4l12841 for ; Fri, 2 Mar 2001 00:21:04 GMT Reply-To: From: "Alessio Frenquelli" To: "Heather" Subject: RE: Help on LILO stopping at LI Date: Fri, 2 Mar 2001 11:25:46 +1100 Message-ID: <002401c0a2af$53769230$0e50a8c0@micromuse.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal X-gazette-edit: d X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 In-Reply-To: <200103011726.JAA09712@betelgeuse.starshine.org> Status: RO Heather, thank you for your complete and prompt reply. I will provide here some answers from the queries that you had. At this stage it seems that the problem is caused by one of our product, that I have recently installed under Linux. After reporting the LI problem to our support team, I received a reply where they state that this product ast times seems to affect LILO, and to cause the problem that I have described to you. I am still awaiting from our support team, if they know how to fix the problem of LILO. And now to your questions: > Any recent changes? The next L should represent finding the second stage > loader so the kernel can get going. These could be disk-ish things like > you caught a virus and successfully cleaned it out, had a hard crash and > needed to reboot, etc Yes, I have installed a new Micromuse Package under LINUX. After the installation I rebooted few times without problem, but then one day, LI started to happen. > > Warning: device 0x0305 exceeds 1024 cylinder limit > > Added linux * > > [root@afrenquelli /etc]# > > You used to get this before, or you now have a bigger disk than you > used to? > No changes on disk size, or disk partitioning under Linux or under NT. I never run /sbin/lilo before , so I cannot tell you if this was a problem. But LILO always worked before. > > I did not "fiddle" with Linux at all before this error appeared ! > > WHat do you normally use Linux for? > I use Linux to run Micromuse products, and as I said, the problem started to happen since I installed one of our package. Other people installed it on their laptop, but they did not report the error. Support told me that at times this product is know to cause some problem with LILO, but they are not too sure. > That's weird :( > > Maybe you need to take the linear or lba32 mark *out* ?? > You mean, remove linear or lba32 from lilo.conf and try to run lilo again ? I will try this. > > Could I just de-install LILO and re-install LILO ? > should be able to. lilo -u to put the backup bits from /boot/boot.0307 > back into the superblock /dev/hda7 (where it hopefully came from). If > it whines abotu timestamps, lilo -U insists. > > Then, you should be able to run lilo again to install it as a fresher > instance. So I should just run : 1. lilo -u or lilo -U 2. Then how do I re-install LILO ? Just running /sbin/lilo or do I need to download the LILO package from somewhere and the install it with "rpm -Uhv .rpm" or something similar ? Thank you for your help once again, I will keep you posted ! ciao, alessio From star Tue Mar 13 10:46:37 2001 Return-Path: Delivered-To: star@starshine.org Received: from antares.starshine.org by localhost with POP3 (fetchmail-5.0.5) for star@localhost (single-drop); Tue, 13 Mar 2001 10:46:37 -0800 (PST) Received: from jake.micromuse.co.uk (mailhost.micromuse.com [194.131.185.75]) by antares.in.starshine.org (Postfix) with ESMTP id 234E39798 for ; Mon, 12 Mar 2001 18:54:16 -0800 (PST) Received: from afrenquelli (micromuse-gw.customer.alter.net [203.166.42.170]) by jake.micromuse.co.uk (Switch-2.1.0/Switch-2.1.0) with SMTP id f2D74UU11954 for ; Tue, 13 Mar 2001 07:04:34 GMT Reply-To: From: "Alessio Frenquelli" To: "Heather" Subject: Solved : LILO stopping at LI Date: Tue, 13 Mar 2001 18:09:16 +1100 Message-ID: <002e01c0ab8c$83ee0840$0e50a8c0@micromuse.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal X-gazette-edit: e In-Reply-To: <200103011726.JAA09712@betelgeuse.starshine.org> Status: RO Heather, here is how I got this problem fixed with the help of the support personnel in our company Thank you once again for your support !!! Support adviced me that the following recovery procedure for LILO problems is to be used for Laptop that have dual boot partition, NT & Linux, when the menu received at boot time shows OS LOADER, and then it presents 2 choice , Windows NT or Linux. Steps taken: 0. Boot Linux from bootdisk 1. Run /sbin/lilo -v (make sure no errors are displayed) 2. Insert a new diskette and mount it: