Linux-Misc Digest #484, Volume #27               Fri, 30 Mar 01 08:13:04 EST

Contents:
  Re: Shell script questions... ("MEYER")
  reconstructing RAID5 under raidtools 0.90 (Dave DeHaan)
  Re: Help!  Can't boot from floppy (Jean-David Beyer)
  Re: Linux hangs....very strange ("muzh")
  Re: system.map ("Eric")
  Re: Java in Mozilla (John Thompson)
  Re: kernel-2.4.2 problem.. help!! ?? ("Steven")
  Re: Windows ME and Windows 98 and Linux comp. ("Sam")
  Re: system.map ("Peter T. Breuer")
  Re: system.map ("Peter T. Breuer")
  Re: ANSI display clobbered - request fix (Thomas Dickey)
  Re: ANSI display clobbered - request fix ([EMAIL PROTECTED])
  Re: Pine ignores /etc/mail/gericstable (Alex Fitterling)
  Re: Pine ignores /etc/mail/gericstable (Alex Fitterling)

----------------------------------------------------------------------------

From: "MEYER" <[EMAIL PROTECTED]>
Crossposted-To: comp.unix.shell,comp.lang.awk
Subject: Re: Shell script questions...
Date: Fri, 30 Mar 2001 13:04:35 +0200

Great... it's working!
Thanks a lot of...

Jerome

"Michael Heiming" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Michael Heiming wrote:
> >
> > MEYER wrote:
> > >
> > > Hi Michael,
> > >
> > > Thank for your help!
> > > I've tested:
> > > It give me all line with ERROR and Display, that's right! But my file
is
> > > like:
> > > ...
> > > ERROR at line 1:
> > >   ORA-230:Table or view doesn't exist
> > > ...
> > > Display 'TS':
> > >   Display view not visible!
> > > ...
> > > That's means I need to check all ERROR and Display line and print them
+
> > > print the second line!
> > > With your solution I can print the line with ERROR and Display but not
the
> > > second line...
> > > and I don't know how to program that!
> > > Do you understood what I mean, yeahh my english isn't perfect, sorry!
> > >
> > > Thanks,
> > > Jerome
> > >
> > > "Michael Heiming" <[EMAIL PROTECTED]> wrote in message
> > > news:[EMAIL PROTECTED]...
> > > > MEYER wrote:
> > > > >
> > > > > Hi everyone
> > > > >
> > > > > I'm written a little script, like:
> > > > > ...
> > > > > while read line
> > > > > do
> > > > >   sed -n '/ERROR/,/^/p'
> > > > > done < $1
> > > > > ...
> > > > >
> > > > > This loops take two lines, the first is where a ERROR words occurs
and
> > > > > second it take the next line!
> > > > > Now, I want to take the ERROR words (like yet)  OR the Display
words and
> > > the
> > > > > next line.
> > > > > As anyone a idea how can I make the sed script for ERROR OR
Display?
> > > > > is it like : sed -n '/ERROR || Display/,/^/p' ??? but it doesn't
> > > running???
> > > > > Thanks a lot for your answers,
> > > >
> > > > Hello,
> > > >
> > > > I'm not sure if I understood what you want to achive?
> > > >
> > > > I would use something like this:
> > > >
> > > > awk '$0 ~ /ERROR/ || /Display/ {print $0}' <filename>
> > > >
> > > > Michael Heiming
> >
> > Try:
> >
> > awk '$0 ~ /ERROR/ || /Display/ {if ((getline tmp) > 0)  print $0; print
tmp}'
> > data.test
> >
> You may have to change,
>
> awk '$1 ~ /ERROR/ || /Display/ {if ((getline tmp) > 0)  print $0; print
tmp}'
> filename
>
> Depending how your data looks, to avoid that you get even more lines....
>
> Michael Heiming



------------------------------

From: Dave DeHaan <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: reconstructing RAID5 under raidtools 0.90
Date: Thu, 29 Mar 2001 09:03:52 -0600

I currently have an Adaptec AIC-7871 SCSI controller with 3 Conner
CFP1060E 1.0GB drives.  During RedHat 6.2 installation I configured each
drive with a single Linux raid autodetect partition, and then combined
them into a single RAID5 volume (raidtools 0.90).  This configuration
worked fine until I had to pull out one of the drives (/dev/sdf).  The
system still functions with only two drives, but when I add a new third
drive to the RAID5 array, it won't take.  Actually, it appears to work
until I reboot the machine.  Then the new drive (/dev/sdf) is rejected. 
I've tried two approaches:

Approach 1:
1. use fdisk to create a Linux raid autodetect partition on /dev/sdf
2. use "raidhotadd /dev/md0 /dev/sdf" to add the drive to the raid
device
3. cat /proc/mdstat.  It shows a working 3 drive RAID5 array.
4. reboot.  I get the following error on boot, causing the RAID array to
only load 2 of 3 drives:
SCSI device sdf: hdwr sector= 512 bytes. Sectors= 2074880 [1013 MB] [1.0
GB]
 sdf: unknown partition table
When I use fdisk to examine the drive, it notifies me that /dev/sdf does
not contain a partition table.


Approach 2:
1. use "raidhotadd /dev/md0 /dev/sdf" to add the drive to the raid
device
2. cat /proc/mdstat.  It shows a working 3 drive RAID5 array.
3. raidstop /dev/md0
4. fdisk /dev/sdf - After it warns me that /dev/sdf does not contain a
partition table, I create a DOS partition table and then create a Linux
raid autodetect partition 
5. reboot.  I get the following error on boot, causing the RAID array to
only load 2 of 3 drives:
raid5 personality registered
autodetecting RAID arrays
(read) sdd1's sb offset: 1036160 [events: 00000095]
(read) sde1's sb offset: 1036160 [events: 00000095]
(read) sdf1's sb offset: 1037184 [events: 00000000]
md: invalid raid superblock magic on sdf1
md: sdf1 has invalid sb, not importing!

I'd appreciate any nuggets of wisdom you can pass my way.  Thanks.
David DeHaan 
[EMAIL PROTECTED]
Dordt College Computer Services

------------------------------

From: Jean-David Beyer <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: Help!  Can't boot from floppy
Date: Fri, 30 Mar 2001 06:42:50 -0500

David Efflandt wrote:
> 
> On 30 Mar 2001 01:31:11 GMT, Hiawatha Bray <[EMAIL PROTECTED]> wrote:
> >  I have copied a Linux boot image to floppy, but my computer refuses to
> >boot from it.  It starts running initrd.img and then says "boot failed." I
> >tried two different boot disks, with the same result. Anybody know why?

I have no idea. When did this come up? You should have detected this
late in the initial installation process when, no doubt, it asked you
if you wanted to make a boot disk, and of course you said "yes",
right? I presume you then tested this disk right away, right? This is
when you detected the problem?

One way to get problems is to make a boot floppy, and then do some
serious changing of your system (e.g., changing the file system
around, installing a new release, (maybe) installing a new kernel (but
I do not think so), etc.), and failing to make a new boot floppy.
> 
> Floppies for boot images must be perfect (no bad sectors) because boot
> data is written to them sequentially (no file system).  So 'format a: /u'
> them in DOS or Windows first and make sure thay have no bad sectors.

I normally write them to brand new floppies, using mkbootdisk (man
mkbootdisk). To see if it has bad blocks, there may be a test program,
but I do not know about that. But testing the boot floppy immediately
after making it (well, after removing it and disabling
write-permission), is a pretty good test.

format a: /u 

does not work well for Linux:

valinux:jdbeyer[~]$ format  a: /u
bash: format: command not found
valinux:jdbeyer[~]

fdformat (man fdformat) may be what you are looking for.
> 
> And I believe that you have to use rawrite when booted to DOS (not a DOS
> window or restart in DOS mode).  You may need to use your Win startup
> floppy for that (or at least that is the only way I can boot to DOS with
> Win98se).

This cannot be correct, because some people run Linux-only machines
and have no access to DOS at all, not having a Microsoft License for
anything.
> 
> PS: The boot floppy that came with my Mandrake 7.0 was bad and would not
> boot, so I had to make another one.
> 
That could easily be.

-- 
 .~.  Jean-David Beyer           Registered Linux User 85642.
 /V\                             Registered Machine    73926.
/( )\ Shrewsbury, New Jersey     http://counter.li.org 
^^-^^ 6:20am up 1 day, 20:33, 3 users, load average: 2.02, 2.11, 2.08

------------------------------

From: "muzh" <[EMAIL PROTECTED]>
Subject: Re: Linux hangs....very strange
Date: Fri, 30 Mar 2001 23:45:27 +1200

I have found this is usually a hardware problem eg --
Loose connections
Disks or cards wearing out
Faulty memory  -- etc
Try disconnecting your components one at a time until you find the
offending bit --

In article <[EMAIL PROTECTED]>, "Jacob Kristensen"
<[EMAIL PROTECTED]> wrote:


> I'm running RH7 kernel 2.4.0 on an AMD Duron. Everything works fine, but
> sometimes, during normal use my box hangs 100%. Meaning that, XMMS stops
> playing, mouse doesn't react, hitting CTRL+ALT+DEL/CTLR+ALT+BS has no
> effect. Caps/Scroll/Numlock doesn't react either. All I can do is
> hitting reset and wait for fsck finishing.... Haven't lost any data. I
> have found no "system" in what triggers the halt. Im running as normal
> user and I'm not using any strange/exotic programs. It has happened only
> 5 or 6 times over a month so it's rare but damn annoying... Any tricks
> to corner down what causes this halt? All help appreciated...
> Jacob

------------------------------

From: "Eric" <[EMAIL PROTECTED]>
Subject: Re: system.map
Date: Fri, 30 Mar 2001 14:15:05 +0200

> >> what is the use of the file /boot/system.map?! after compiling a new
> > kernel,
> >> should i copy this file to /boot as well?! without this file, my system
> >> still reboot with no problem.
> >
> > If you don't know what it's for, you don't need it. Don't bother with
> > that file yet, just leave it where it is.
>
> that is the stupidest tip i've heard yet.  Before using Linux as much as
> I've in the past few months I didn't know what a lot of stuff was for but
> i sure wasn't going to delete it.

You haven't read that very well, now did you?
I never said to delete everything he/she didn't know what it was for.
just not to bother with the System.map file.

kind of a big difference I'd say.

> Would you delete all the dll files in your C:\windows\system directory if
> you didn't know what they were for? I would hope not.

It's remarkable how often these things occur though.
People pressing that <OK> button in windows. (Are you sure? <YES>)
It's silly indeed. The point was not to delete that file, just don't bother
to copy
it to /boot if you don't know what it is for.

> I tell people 'unless you put it there leave it there'. Essentially
> saying that if they didn't put it there the installation must have and
> therefore it is there for a reason.

indeed.
He never needs to put it there.
It would been put ther automagically when make install was run, but as
he copied the kernel manually, that wasn't the case.

> For a Linux example of what your 'advice' can do:
>
> I deleted a while back the boot.b file in my /boot directory. I didn't
> think I needed it and I know I didn't put the file there. Of course the
> next time I rebooted the system woudln't boot. I forget the error message
> but it was b/c of the fact that the boot.b file was deleted.

Well sorry, but that was not very clever.

> I hope the user doesn't take your advice and delete something that they
> actually do need on the basis they don't know what it is.

Then the OP couldn't read either.

Eric



------------------------------

From: John Thompson <[EMAIL PROTECTED]>
Subject: Re: Java in Mozilla
Date: Thu, 29 Mar 2001 21:13:41 -0600

John Kelly wrote:
 
> Hey!  Quick question.  I have mozilla 0.8, and am trying to install java
> 1.3.  I can't install from the web for some reason, so I downloaded jre.xpi
> and was wondering how to install it from my hard drive.  Please help.

jre.xpi is just a zip file.  Unzip it into an appropriate place
and then symlink the java2/plugin/i386/ns600/libjavaplugin_oji.so
file to your mozilla/plugins directory.  Put the java2 directory
into your JAVA_HOME environment variable and that should be it.


-- 


-John ([EMAIL PROTECTED])

------------------------------

From: "Steven" <[EMAIL PROTECTED]>
Subject: Re: kernel-2.4.2 problem.. help!! ??
Date: Fri, 30 Mar 2001 20:22:47 +0800

i did run depmod -a ... sorry i didn't mention it in my posting..  the
problems still occurs...

"Wong Ching Kuen Frederick" <[EMAIL PROTECTED]> wrote in message
news:9a0qlg$i28$[EMAIL PROTECTED]...
> run depmod after u reboot into the new kernel and then reboot again. see
if
> it helps.
>
>



------------------------------

From: "Sam" <[EMAIL PROTECTED]>
Crossposted-To: alt.windows98,comp.os.ms-windows.misc
Subject: Re: Windows ME and Windows 98 and Linux comp.
Date: Fri, 30 Mar 2001 06:32:46 -0600

Let's just end the thread and save a bunch?

--
Sam

http://personal.mem.bellsouth.net/mem/s/o/soffer/
Reply via this newsgroup or email me at: [EMAIL PROTECTED]
Be sure to remove the "nospam" from the address
All spam is reported to abuse.net


<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
>
>
> Why don't you cut down the post to the relevant part.  Why waste my
> bandwidth.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.240 / Virus Database: 116 - Release Date: 3/23/2001



------------------------------

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: system.map
Date: Fri, 30 Mar 2001 14:31:19 +0200

Glitch <[EMAIL PROTECTED]> wrote:
> In article <99v7t0$jiv$[EMAIL PROTECTED]>, "Eric" <[EMAIL PROTECTED]>
> wrote:

>>> what is the use of the file /boot/system.map?! after compiling a new
>> kernel,
>>> should i copy this file to /boot as well?! without this file, my system
>>> still reboot with no problem.
>> 
>> If you don't know what it's for, you don't need it. Don't bother with
>> that file yet, just leave it where it is. 

> that is the stupidest tip i've heard yet.  Before using Linux as much as
> I've in the past few months I didn't know what a lot of stuff was for but
> i sure wasn't going to delete it.  

Then you should have. One by one, to see what the effect was. That'll
be a good learning experience!

> Would you delete all the dll files in your C:\windows\system directory if
> you didn't know what they were for? I would hope not.

I did, years ao, when I had windows, one by one to see what the effect was.
Usually "nothing". I had a very slimline system in the end.

> I tell people 'unless you put it there leave it there'. Essentially

No .. they can easily get rid of a few hundred megabytes by using their
intelligence. All those error messages in different languages, all
those docs in html and text and postcript format. Get rid of them all!

> saying that if they didn't put it there the installation must have and
> therefore it is there for a reason.

Stop believing in divine authority.  The computer is yours.  Do with it
as you want. Nobody has had any reason for loading your installation
with things except in order to be able to advertize that they supply
more megabytes and thus justify the price they charge you. Are all
people this gullible??? Please buy my ultrathick book on how to write
helloworld in parallel-java!

> I deleted a while back the boot.b file in my /boot directory. I didn't

Good news.

> think I needed it and I know I didn't put the file there. Of course the
> next time I rebooted the system woudln't boot. I forget the error message
> but it was b/c of the fact that the boot.b file was deleted.

Big deal. Boot from a rescue disk and put it back. By the way,
deleting it from the FS shouldn't have affected things. But I guess you
made the mistake of writing toe FS afterwards! That would hurt.
That probably means that you mixed / /boot and /var and /usr and
/home filesystems. Don't! There's your error.

> I hope the user doesn't take your advice and delete something that they
> actually do need on the basis they don't know what it is.

But he's not asking him to delete it. He's asking him not to add it!
And sure, let them go ahead and delete .. it's their computer.  Why
let anyone else scribble all over it?

Peter

------------------------------

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: system.map
Date: Fri, 30 Mar 2001 14:32:31 +0200

Michael Heiming <[EMAIL PROTECTED]> wrote:
> Wong Ching Kuen Frederick wrote:
>> 
>> what is the use of the file /boot/system.map?! after compiling a new kernel,
>> should i copy this file to /boot as well?! 

> Yes, you should, it's the first place klogd looks for this file.

It doesn't matter. Klogd doesn't need it, and he doesn't need the output
of klogd when it does use it :-).

GGGPeter

------------------------------

From: Thomas Dickey <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.questions
Subject: Re: ANSI display clobbered - request fix
Date: 30 Mar 2001 12:45:27 GMT

In comp.os.linux.misc Steven J. Hathaway <[EMAIL PROTECTED]> wrote:
> I have misplaced the magic character sequence that can be issued to repair a
> screen that has been garbaged by printing a binary executable file or binary
> data file.

> If someone knows where I can either obtain the magic character sequence or
> provide information on ANSI display programming, please respond to this
> newsgroup.
command-line:
        tput enacs
(perhaps also 'reset')

-- 
Thomas E. Dickey <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
http://dickey.his.com
ftp://dickey.his.com

------------------------------

From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.questions
Subject: Re: ANSI display clobbered - request fix
Date: Fri, 30 Mar 2001 14:51:37 +0200
Reply-To: [EMAIL PROTECTED]

Steven J. Hathaway <[EMAIL PROTECTED]> wrote:
> a screen that has been garbaged by printing a binary executable file or

^V and then ^O may help

Daniel 

------------------------------

From: Alex Fitterling <[EMAIL PROTECTED]>
Subject: Re: Pine ignores /etc/mail/gericstable
Date: Fri, 30 Mar 2001 02:26:07 +0200

Bill Unruh <[EMAIL PROTECTED]> wrote:
Hello there...

> In <[EMAIL PROTECTED]> Alex Fitterling 
><[EMAIL PROTECTED]> writes:

> ]has got anyone a glue, why pine is ignoring my sendmail configuration
> ]with genericstable enabled.... through pipe ( echo ........ | mail
> ]someone@x,y ) I can send mail the correct way, everything is working
> ]well: the outgoing sender gets transformed into new (specified) one.

> ]In meanwhile pine still sends mail using wrong sender name, what's
> ]wrong ? ..has anyone a hint on this ?

> Is this a local user? I suspect that pine does not use sendmail to deliver mail 
>locally,
> and thus any sendmail config is obviously lost. 

The user name with email address is different from the name in the
address, so I configured genericstable... pine just ignores.... hm..
 
Pine uses sendmail as mailer... as preconfigured,
and leaving the smtp-server option blank it is default I guess... it is
also somewhere stated in pine help.

Alex


 

-- 
A. Fitterling / [EMAIL PROTECTED]


------------------------------

From: Alex Fitterling <[EMAIL PROTECTED]>
Subject: Re: Pine ignores /etc/mail/gericstable
Date: Fri, 30 Mar 2001 02:27:00 +0200

Paul Lew <[EMAIL PROTECTED]> wrote:
Yes, I did it myself with makemap... pipe through mail works...
-- 
A. Fitterling / [EMAIL PROTECTED]


------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list by posting to comp.os.linux.misc.

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to