Linux-Misc Digest #372, Volume #27 Fri, 16 Mar 01 08:13:04 EST
Contents:
Re: Lilo with RH 7.0 Won't Enter Linux Automatically Anymore (Sebastian Wild)
Re: registering libraries in linux ([EMAIL PROTECTED])
Re: I messed up my computer :( (hangs on "starting sendmail") ([EMAIL PROTECTED])
Re: Im trying to upgrade some RPMS and i get errors plz help! ([EMAIL PROTECTED])
Re: registering libraries in linux (Erik de Castro Lopo)
Re: Im trying to upgrade some RPMS and i get errors plz help! ("Stephane Bourdeaud")
Re: making a partition on an existing disk ("Eric")
Re: I messed up my computer :( (hangs on "starting sendmail") (David Wake)
Re: Are mount, unmount, shutdown, sync standalone utilities ("Eric")
Re: Are mount, unmount, shutdown, sync standalone utilities (Christopher Albert)
Re: I messed up my computer :( (hangs on "starting sendmail") ("Stephane Bourdeaud")
Re: I messed up my computer :( (hangs on "starting sendmail") (Bob Martin)
Re: Extracting the bootimage from a bootable (El Torito) CD ? (Rainer Krienke)
Re: Performance SMTP Server (Ralf Cirksena)
Re: can't kill! (Jean-David Beyer)
Re: I messed up my computer :( (hangs on "starting sendmail") ([EMAIL PROTECTED])
Re: can't kill! (Gavin McCord)
Re: can't kill! (Tommy Tang)
Re: (LESS HUGE) Re: Do I need Lilo to boot from a partition? (F. Heitkamp)
----------------------------------------------------------------------------
From: Sebastian Wild <[EMAIL PROTECTED]>
Crossposted-To:
alt.os.linux,alt.os.linux.redhat,alt.uu.comp.os.linux.questions,comp.os.linux,comp.os.linux.admin,comp.os.linux.help,comp.os.linux.questions,comp.os.linux.redhat,comp.os.linux.setup,linux.redhat,linux.redhat.install
Subject: Re: Lilo with RH 7.0 Won't Enter Linux Automatically Anymore
Date: Fri, 16 Mar 2001 10:00:29 +0100
Kenneth Lafond schrieb:
>
> Look in your /etc/lilo.conf file. make sure the values timeout=XX and
> default=label are correct and present, where XX is the number of secs to
> timeout to the default, and label is the label for the image you want to be
> default.
Set timeout to zero or quote it out to make Lilo boot linux without
waiting!
Wastl
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: registering libraries in linux
Date: 16 Mar 2001 09:16:06 GMT
Siddharth Vajirkar <[EMAIL PROTECTED]> wrote:
> In linux do programs have to register libraries (like registering a DLL)?
Sort of. See man ld.so and other man pages that are referenced there.
> How does one tell linux that the code that I want to run is in 'that'
> xxxx.so file?
I think that the best thing to do is to read a book about Linux/Unix
programming. The best I found is "Linux Application Development".
Davide
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: I messed up my computer :( (hangs on "starting sendmail")
Date: 16 Mar 2001 09:18:54 GMT
David Wake <[EMAIL PROTECTED]> wrote:
> Anyway, the fact that my networking's messed up doesn't bother me that
> much: I just want to be able to start my computer.
At the boot prompt (LILO:) type linux 1 or linux single to boot in
single-user mode. Then modify your startup script to disable
sendmail startup, so you can start the machine without the network
and fix the things.
Davide
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Im trying to upgrade some RPMS and i get errors plz help!
Date: 16 Mar 2001 09:20:49 GMT
James Rossell <[EMAIL PROTECTED]> wrote:
> Hi im trying to upgrade all my installed packages to the latest version and
> i get unstaisified dependicies. The problem is that I cant find these files
> to fix the problems.
> Where can i optain all the Lib*.so files?
The libcrypto and other things are on the RedHat website and in other
website, you have to update the crypto packages probabily.
Davide
------------------------------
From: Erik de Castro Lopo <[EMAIL PROTECTED]>
Subject: Re: registering libraries in linux
Date: Fri, 16 Mar 2001 09:32:48 GMT
Siddharth Vajirkar wrote:
>
> Hi,
> newbie alert. I used to write a lot of C code in DOS and wrote up a
> reasonable amount of code for XINU, but now I've graduated to Linux. So
> there are some loose ends which I need to tie up.
> In linux do programs have to register libraries (like registering a DLL)?
> How does one tell linux that the code that I want to run is in 'that'
> xxxx.so file?
All you need to do is put it in say /usr/local/lib/ , make sure
the permissions are correct and then run 'ldconfig' as root.
> Would appreciate it if you could point me to some documentation related to
> this.
There's a GCC programming HOWTO at:
http://linxdoc.org/
Erik
--
=================================================================
Erik de Castro Lopo [EMAIL PROTECTED] (Yes its valid)
=================================================================
J. Headley: "God, root, what is difference ?"
G. Haverland: "God can change the byte order on the CPU, root can't."
------------------------------
From: "Stephane Bourdeaud" <[EMAIL PROTECTED]>
Subject: Re: Im trying to upgrade some RPMS and i get errors plz help!
Date: Fri, 16 Mar 2001 09:52:39 -0000
Hi James,
I just add the same problem trying to install XFree86.
The solution is to install the rpmdb-redhat-7.0-0.20000830.i386.rpm package
(found on CD 2 of the RedHat 7.0 distribution, or in the powertools package
I think).
You can then do "rpm -q --redhatprovides libcrypto.so.0" for example to find
out what package contains the libcrypto.so.0 file you need!
Note that you may need to do a "rpmdb --rebuilddb" and "rpmdb --initdb"
before you can search (this takes a while btw).
Cheers,
Stephane B.
------------------------------
From: "Eric" <[EMAIL PROTECTED]>
Subject: Re: making a partition on an existing disk
Date: Fri, 16 Mar 2001 11:48:08 +0100
> I'm no guru at this, so someone please correct me:
I will try :-)
> /dev/sda is your HDD,
correct
> /dev/sda1, /dev/sda2 etc. are already partitions on your disk.
correct
> so /dev/sda3 is already a partition and not been assigned to be used for
> anything.
incorrect.
look at the entry for sda3, it has no ID.
sda3 does not exist
> That's probably the reason that the partitioning isn't working, because
its
> already there.
No, it fails because there's no space left.
> You might have to assign it as an extended partition to be able to use it.
sda2 already is an extended partition.
You can only have one extended partition per HDD
> May be you can delete /sda3 /sda4 and then create a new extended partition
> to be able to use the whole free space in one partition.
there's no free space.
Eric
> > Disk /dev/sda: 2231 cylinders, 255 heads, 63 sectors/track
> > Units = sectors of 512 bytes, counting from 0
> >
> > Device Boot Start End #sectors Id System
> > /dev/sda1 * 63 48194 48132 83 Linux
> > /dev/sda2 48195 35841014 35792820 5 Extended
> > /dev/sda3 0 - 0 0 Empty
> > /dev/sda4 0 - 0 0 Empty
> > /dev/sda5 48258 3196934 3148677 82 Linux swap
> > /dev/sda6 3196998 4257224 1060227 83 Linux
> >
------------------------------
From: David Wake <[EMAIL PROTECTED]>
Subject: Re: I messed up my computer :( (hangs on "starting sendmail")
Date: 16 Mar 2001 02:40:31 -0800
[EMAIL PROTECTED] writes:
> David Wake <[EMAIL PROTECTED]> wrote:
> > Anyway, the fact that my networking's messed up doesn't bother me that
> > much: I just want to be able to start my computer.
>
> At the boot prompt (LILO:) type linux 1 or linux single to boot in
> single-user mode. Then modify your startup script to disable
> sendmail startup, so you can start the machine without the network
> and fix the things.
Thanks Davide,
However on the RedHat distribution I have (RedHat 7.0), I don't get a
text LILO prompt, just a GUI-ey menu choice between linux and dos.
I'm sure there is a way to escape to text mode at this stage, but
don't know what it is.
David
------------------------------
From: "Eric" <[EMAIL PROTECTED]>
Subject: Re: Are mount, unmount, shutdown, sync standalone utilities
Date: Fri, 16 Mar 2001 11:55:52 +0100
> Are there any libraries that utilities like mount, unmount, shutdown and
> sync use?
> Or are they standalone utilities?
You can find this out for yourself :-)
`ldd mount`
Eric
------------------------------
From: Christopher Albert <[EMAIL PROTECTED]>
Subject: Re: Are mount, unmount, shutdown, sync standalone utilities
Date: Fri, 16 Mar 2001 12:12:13 +0100
Siddharth Vajirkar wrote:
>
> Hi,
> Are there any libraries that utilities like mount, unmount, shutdown and
> sync use?
> Or are they standalone utilities?
>
> Thanks,
> Sid
Sid
man ldd
Chris
------------------------------
From: "Stephane Bourdeaud" <[EMAIL PROTECTED]>
Subject: Re: I messed up my computer :( (hangs on "starting sendmail")
Date: Fri, 16 Mar 2001 11:21:47 -0000
I did get the same thing but that was after changing the hostname on my
system.
I just removed the sendmail script from /etc/rc.d/rc5.d so that sendmail
would not be started.
You can always reproduce it manually by doing /etc/rc.d/initd/sendmail
restart...
Adding the new hostname to the sendmail alias file did not fix it.
I don't know why it is choking on the hostname like that...
Cheers,
Stephane B.
------------------------------
From: Bob Martin <[EMAIL PROTECTED]>
Subject: Re: I messed up my computer :( (hangs on "starting sendmail")
Date: Fri, 16 Mar 2001 05:41:26 -0600
David Wake wrote:
>
> I have a laptop Pentium II running RedHat 7.0 -- runs great. Then
> just now I was trying to reconfigure my ethernet connection. Now the
> system hangs on startup at the "starting sendmail". I've a feeling it
> is b/c I told eth0 to use bootp (just as a test) and now it's looking
> for its own hostname.
>
> Anyway, the fact that my networking's messed up doesn't bother me that
> much: I just want to be able to start my computer. I thought that
> there would be some hotkey combination to get me into a shell during
> boot so that I could get rid of the offending network entry, but I
> can't find it. Anyway -- any solutions? WIll sendmail time out if I
> leave it long enough?
>
> Thanks
>
> David
Sendmail is trying to resolve it's hostname. Yes it will timeout. The problem is
you need a FQDN for your host in /etc/host. If you don't need sendmail then turn
it off. The RH boot script has an interactive mode ( don't remeber what it is
now ), you see a message during boot to press some key combo for interactive
mode.
--
Bob Martin
------------------------------
From: [EMAIL PROTECTED] (Rainer Krienke)
Subject: Re: Extracting the bootimage from a bootable (El Torito) CD ?
Date: 16 Mar 2001 11:43:04 GMT
In article <[EMAIL PROTECTED]>,
DII Dev <[EMAIL PROTECTED]> writes:
> I have been poking around in this area myself. For what it's worth, here's
> what I have found out:
>
> First off, I am using Slackware 7.1. On the distribution CD, there is a
> .eltorito directory. In this directory is a file named eltorito.img.
>
> In my understanding, this image file is the boot image. If you mount it
> (using -o loop), you will find an initrd.img which is a compressed root
> image. You can gunzip this file and then mount this under the loopback
> interface.
>
> I hope this helps.
>
> Phil Butler
> [EMAIL PROTECTED]
>
Thanks but I only have a complete CD which has such an image include as a boot
image not as a readable file. But anyway I found out how to find the image on the
CD. Actually it can be anywhere but the El Torito standard describes exactly
where to look on the CD in order to find the image (there has to be a pointer in
sector 17 of the CD pointing to the bootcatalog which in turn may have one or
more pointers to one or more bootimages.
This way I found it.
Thaks a lot
Rainer
--
=====================================================================
Rainer Krienke [EMAIL PROTECTED]
Universitaet Koblenz, http://www.uni-koblenz.de/~krienke
Rechenzentrum, Voice: +49 261 287 - 1312
Rheinau 1, 56075 Koblenz, Germany Fax: +49 261 287 - 1001312
=====================================================================
------------------------------
From: [EMAIL PROTECTED] (Ralf Cirksena)
Subject: Re: Performance SMTP Server
Date: 16 Mar 2001 11:34:44 GMT
Hi Grant,
On 2001-03-07 19:04 GMT, Grant Edwards <[EMAIL PROTECTED]> wrote:
> In article <iJup6.37654$[EMAIL PROTECTED]>,
>[EMAIL PROTECTED] wrote:
>
>>one word - qmail
>
> I've also heard good things about postfix.
>
Hey great: Another MTA agent war ;-)
May I add sendmail to the list?
--
Ralf Cirksena <[EMAIL PROTECTED]>
------------------------------
From: Jean-David Beyer <[EMAIL PROTECTED]>
Subject: Re: can't kill!
Date: Fri, 16 Mar 2001 07:00:03 -0500
[EMAIL PROTECTED] wrote:
>
> Jean-David Beyer <[EMAIL PROTECTED]> writes:
>
[snip] about killing processes in D state.
> > The same kind of thing happens to me from time to time. Sometimes the
> > problem seems to be a disk file, sometimes a tape drive. The disk
> > drives are on an Ultra-2 SCSI controller and the tape drive is on a
> > separate narrow SCSI controller.
> >
> > Were I to try to turn something off, I am not sure what it would be,
> > since the controllers and drives are all internal. I normally do not
> > care to remove the case from my machines when the power is on.
> > Furthermore, unplugging the SCSI controllers would probably crash the
> > system, so I might as well reboot and not have to deal with a crashed
> > system. Bad enough that some device is locked up.
> >
> I think the idea is that with devices, the writer of the
> device driver should know best what to do when a particular piece of
> hardware is having difficulties. Ideally the writer should ensure
> that something which is stuck will timeout eventually. But device
> drivers are written by lots of different people, probably less unified
> in vision or uniform in construction than the rest of an OS, and
> therefore something of a weak link.
Great idea, but since for me, these are devices on SCSI controllers.
Is there a separate driver for each different type of SCSI controller
and for each different type of device you could attach to each SCSI
controller? I thought the SCSI controllers were all supposed to have a
standard API, so that one driver would do for all. If I am mistaken,
should I really get the "writing Linux device drivers" book and
rewrite the SCSI controller drivers, possibly putting a 300-second
time-out on all the devices?
--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ Registered Machine 73926.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 6:55am up 13 days, 13:59, 3 users, load average: 2.49, 2.32,
2.18
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: I messed up my computer :( (hangs on "starting sendmail")
Date: 16 Mar 2001 12:05:39 GMT
David Wake <[EMAIL PROTECTED]> wrote:
> However on the RedHat distribution I have (RedHat 7.0), I don't get a
> text LILO prompt, just a GUI-ey menu choice between linux and dos.
...so I guess you have to use the RedHat CD in 'rescue' mode to
boot up, see also:
http://customer.support.redhat.com/rhoaprod/plsql/xxrh_know_pkg.srch2?p_id=353
Davide
------------------------------
From: Gavin McCord <[EMAIL PROTECTED]>
Subject: Re: can't kill!
Date: Fri, 16 Mar 2001 12:03:35 +0000
Jean-David Beyer wrote:
> As far as I can tell, this is either because of a kernel software bug
> or a hardware bug. The symptom (being in state D) indicates that the
> process is waiting for an IO operation to complete, and it never will
> complete, either due to the device failing to request an interrupt
> indicating trouble or completion, or the hardware or software lost the
> interrupt.
>
> I know of no way out of this other than rebooting.
I have this problem occasionally with a CD drive. It hangs
when accessing a dodgy track, maybe and killing it is
impossible.
--
gav
------------------------------
From: Tommy Tang <[EMAIL PROTECTED]>
Subject: Re: can't kill!
Date: Fri, 16 Mar 2001 20:25:29 +0800
Jean-David Beyer wrote:
>
> As far as I can tell, this is either because of a kernel software bug
> or a hardware bug. The symptom (being in state D) indicates that the
> process is waiting for an IO operation to complete, and it never will
> complete, either due to the device failing to request an interrupt
> indicating trouble or completion, or the hardware or software lost the
> interrupt.
>
> I know of no way out of this other than rebooting.
>
> --
> .~. Jean-David Beyer Registered Linux User 85642.
> /V\ Registered Machine 73926.
> /( )\ Shrewsbury, New Jersey http://counter.li.org
> ^^-^^ 3:10pm up 12 days, 22:14, 3 users, load average: 2.16, 2.08,
> 2.02
Thanks Beyer and Raywind and Vilmos.
I come up with some ideas but don't know if that is possible:
- as my program is using the bttv modules, can I force to unload
the module even some my hang program is holding it? I may then
reload that module again...
- should there be some low level systems calls that can kill it?
As I know, rebooting will kill all processes first. The kernal
can do so, there should also be ways for the my application to
do that too. Am I right?
- will it be helpful to introduce some mechanisms to kill itself
if detected not working for period of time? (maybe use threads
and checking some status variables...)
Tommy
------------------------------
Crossposted-To: comp.os.linux.development.system
From: [EMAIL PROTECTED] (F. Heitkamp)
Date: Fri, 16 Mar 2001 07:38:09
Subject: Re: (LESS HUGE) Re: Do I need Lilo to boot from a partition?
Reply-To: [EMAIL PROTECTED]
In message <98i8e5$md6$[EMAIL PROTECTED]> - "Eric" <[EMAIL PROTECTED]>
writes:
>
SUMMARY: 2.4.x kernels do not boot off drives /dev/sdb1,
but do boot off /dev/sdc1. The "no setup signature found"
message is displayed. 2.2.x kernels boot fine off
of /dev/sdb1 using the same LILO config file and setup.
The 2.4.x kernels boot fine when installed to a floppy disk.
The 2.4.x kernels are installed using make bzlilo for the
hard disk and make bzdisk for the floppy. The computer is
a 650 Athlon Slot A, with ABIT KX133 MB and Symbios 53c875
all SCSI system. Drive 0 /dev/sda does not have Linux. It
has win98 and OS/2 and a big Linux data partition. Drive
1, /dev/sdb, has the offending Linux setup. Drive 2 (/dev/sdc)
has a Debian setup that boots fine with the same kernel
installed via make bzlilo, on it. LILO is booting from the
individual partitions. OS/2 Bootmanager is used as the primary
boot loader.
>Just one thing,
>I checked one of your old posts,
>lilo.conf had *no* entry for a 2.4 kernel.
>You are aware of that?
>(I know you said it is the default option, but please check again)
>So: Are you sure the new kernel is at /vmlinuz
>
Yes.
>> >I have another idea for you, if you can, try to change the boot-order.
>> >See if you can boot linux directly, without the intervention from
>> >another OS's bootloader.
>>
>> How do I do that?
>
>Change the boot order in the BIOS.
>Set it to boot from the linux disk.
I haven't tried this yet.
>>
>> LILO
>> Loading default.........................
>> ... no setup signature found.
>> Then the system hangs. I'm not sure of the exact number of dots.
I tried making the kernel as small as possible. I got it down to
a smaller size than the 2.2.xx kernel that boots. Still no change,
although I did notice a smaller number of dots preceeds the
"no setup signature found" message. The number of dots must have
something to do with the size of the kernel.
I also checked to make sure the 2.2.14 kernel still boots using
LILO...It does.
>
>You're done with LILO.
>It looks like the kernel image itself has a problem.
I think so too. Either it's the kernel or some funky
interaction with the kernel and my harddisk or the way
the memory is when LILO tries to load off that disk.
I have no idea why it would be different.
>It is odd though that it does boot at another system.
>Does that system have the same physical setup?
It's the same computer. The Debian partition is on a
older SUN 4.2 GB disk. The disk is /dev/sdc.
>
>Perhaps you should try to run `badblocks` on hdb.
I haven't tried that yet either.
>
>I really don't know what the message means, but you I can
>tell it comes from the kernel
Yep. I've poked around the kernel sources. It seems the next
step might be to look at the disassembly of the kernel code that
causes the roblem. If there is a kernel guru out there that can
et me started, please help.
>
>(PS. this is for a 2.2.x kernel, maybe things changed for 2.4, but it
>appears to be a check,
I looked at the kernel code. It seems setup.S was translated from
as86 to gas format but is otherwise the same AFAIK. This is the code
block the checks the signature:
/* Signature words to ensure LILO loaded us right */
#define SIG1 0xAA55
#define SIG2 0x5A5A
INITSEG = DEF_INITSEG # 0x9000, we move boot here, out of the way
SYSSEG = DEF_SYSSEG # 0x1000, system loaded at 0x10000 (65536).
SETUPSEG = DEF_SETUPSEG # 0x9020, this is the current segment
# ... and the former contents of CS
DELTA_INITSEG = SETUPSEG - INITSEG # 0x0020
<snip and snip>
# Set %ds = %cs, we know that SETUPSEG = %cs at this point
movw %cs, %ax # aka SETUPSEG
movw %ax, %ds
# Check signature at end of setup
cmpw $SIG1, setup_sig1
jne bad_sig
cmpw $SIG2, setup_sig2
jne bad_sig
jmp good_sig1
<snip snip>
If the compares fail then the "no setup signature found"
message prints. To debug this I need to find out whats
in setup_sig1 and setup_sig2 for a start. I don't know
how to do that though.
>run a `make mrproper`
>**beware the .config file is removed! You will need to run the entire
>configuration again**
>then rebuild your kernel again, and try that new kernel.
Tried that. Still the same thing happens.
Fred
------------------------------
** 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
******************************