Linux-Misc Digest #872, Volume #27               Wed, 16 May 01 05:13:01 EDT

Contents:
  can't read mounted fd0 or hda1 (Allan Adler)
  Re: Automatic Login to Console (Peter Hollenbeck)
  Re: telnet on Mandrake. (Chris Bragg)
  Re: problem receiving mail (Chris Bragg)
  Re: Help with assigning eth0/eth1 to proper NICs (Chris Bragg)
  mounting problems (must be superuser) ("Dee-Jon Bryce")
  Kernel upgrade (patch) ??? ("Peet Grobler")
  Re: System.map and multiple kernel versions. ("Wayne Osborn")
  Re: A CPU cooler for Linux? (Dave Mundt)
  Re: Help with assigning eth0/eth1 to proper NICs ("Harvey Braun")

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

Subject: can't read mounted fd0 or hda1
From: Allan Adler <[EMAIL PROTECTED]>
Date: 16 May 2001 02:03:17 -0400


I have Redhat 6.2 on a Dell laptop. It is an isolated machine that used
to be on a network. The hard drive has a dos partition on hda1 and
linux on hda3 and hda6. I can mount the floppy drive fd0 and
dos partition. The command df correctly shows the amount of
few space on them. However, when I try to list directories with ls
or look at individual files on them, I get a segmentation fault.

There is nothing wrong with either the dos partition (which has
windows on it) or the floppy drive. The way I know that is that
from LILO I can boot up the dos partition (which has windows on it)
and from windows I can read directories and files on the floppy drive
and copy them to the dos partition.

I should also mention that I was able to read both hda1 and fd0
under linux a few months ago. The question is, what did I do to
screw up the system since then? The only thing I can think of is
having used something like netconfig or nettool to try to remove
some network stuff from the network the laptop used to be on. I didn't
know what I was doing and was removing the stuff under an incorrect
assumption about a problem I was having with dialout. That assumption
was based on experience with an earlier problem with dialout that in
fact *was* caused by the network configuration of the laptop.

My guess is that the way network stuff is configured on the laptop
affects the way the laptop communicates with certain peripherals.
That was the case when I first had trouble with dialout. I suspect that
it is likewise the reason linux can't read hda1 or fd0 when they are
mounted. The fact that it can mount them and that df gives correct
information about free space on them merely means that linux has
some other way of doing those things, but actually reading directories
or files on them must involve some network stuff. I think it does that
using pcmcia. I don't know much about it. Anyway, that's my latest
theory about it.

If anyone knows what the problem might be and how to analyze and
solve it, please let me know. Thanks.

Allan Adler
[EMAIL PROTECTED]

****************************************************************************
*                                                                          *
*  Disclaimer: I am a guest and *not* a member of the MIT Artificial       *
*              Intelligence Lab. My actions and comments do not reflect    *
*              in any way on MIT. Morever, I am nowhere near the Boston    *
*              metropolitan area.                                          *
*                                                                          *
****************************************************************************








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

Date: Tue, 15 May 2001 23:27:52 -0700
From: Peter Hollenbeck <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Automatic Login to Console

Peter Hollenbeck wrote:
> 
> LFessen106 wrote:
> >
> > >
> > >When the system boots, how does one cause a process to automatically log
> > >in to a console and run a program? I'm running Redhat 7. I now start a
> > >series of programs from rc.local, but one of the programs doesn't run
> > >correctly when it doesn't have a console. The system is remote and
> > >unattended so I need to do this without operator intervention.
> > >
> > >Thanks for any help,
> > >
> > >Peter Hollenbeck
> >
> > http://thelinuxlink.net/linc/linuxcar.html should help ya out.  Look at the
> > bottom half of the web page...  Works for me every time.
> >
> > -Linc Fessenden
> 
> Linc, thanks for the suggestion. I tried it but get the message: "bash:
> no job control in this shell". I assume this means bash is not
> configured to support job control, which I guess this login technique
> requires. I have looked at bash man pages and at a reference book (A
> Practical Guide to Linux) but don't find the solution. Actually the
> discussion of job control doesn't seem relevant to what the script does.
> 
> Peter Hollenbeck
> 
> Posted Via Usenet.com Premium Usenet Newsgroup Services
> ----------------------------------------------------------
>     ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
> ----------------------------------------------------------
>                 http://www.usenet.com

Oops. I had originally tried the linuxcar solution with tty6. I just
tried it with tty1 and it works. Still gives the message "bash: no job
control in this shell", but I guess it's just informational.
Peter Hollenbeck

Posted Via Usenet.com Premium Usenet Newsgroup Services
==========================================================
    ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
==========================================================        
                http://www.usenet.com

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

From: Chris Bragg <[EMAIL PROTECTED]>
Subject: Re: telnet on Mandrake.
Date: Wed, 16 May 2001 08:39:44 +0200
Reply-To: [EMAIL PROTECTED]

On Tue, 15 May 2001 22:07:16 GMT, atl.mediaone wrote:

> I'm trying to setup telnet under inetd on Mandrake 7.2.  I've got the port
> open (nmap shows the telnet port as being open) but when I try to connect
> I
> get the message 'Connection closed by foreign host.'  I've got hosts.allow
> set to ALL for telnet hosts.deny empty for telnet.  (This is an internal
> machine and after getting this to work in general I'll tighten up the
> allowed hosts to be only the local boxes - so don't gun for me on that
> issue
> right now.)  Am using inetd to kick off telnet when needed. Any hints?
> 
> Rich
> [EMAIL PROTECTED]
> 
> 
> 

Is your hosts.allow set to just

ALL

or is it set to 

ALL:ALL

The latter is the proper setting for this.
-- 
Chris Bragg, Founder
Geilenkirchen Linux Users Group (GKLUG)
http://www.gklug.org

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

From: Chris Bragg <[EMAIL PROTECTED]>
Subject: Re: problem receiving mail
Date: Wed, 16 May 2001 08:37:26 +0200
Reply-To: [EMAIL PROTECTED]

On Tue, 15 May 2001 20:57:08 -0400, Shore Linux Solutions wrote:

>  am running sendmail version 8.11.2-14 on a rh linux 7.1 box.  I ran
> sendmail.mc and started the daemon.  I can send mail but cannot receive
> mail at my domain.  Just from my little bit of knowledge I am thinking
> that maybe sendmail is not listening to the port and interface.  Can
> anyone offer me any assistance on this matter and or advise me of a way
> to easily and properly configure sendmail.  Any assistance would be
> greatly appreciated.
> 
> 
> 
> 
> 

I'm by far no mail expert, but I believe you'll need to use something like 
fetchmail in order to pull down your mail from your ISP, if this is what 
you mean. Using sendmail does just that, it sends the mail. From what I 
understand, qmail has the ability to both send and receive mail. Someone 
please correct me if I'm mistaken. On my system for my little LAN, I use 
sendmail to send out all the other users mail, and fetchmail to pull it all 
in and store it for each user.
-- 
Chris Bragg, Founder
Geilenkirchen Linux Users Group (GKLUG)
http://www.gklug.org

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

From: Chris Bragg <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.setup
Subject: Re: Help with assigning eth0/eth1 to proper NICs
Date: Wed, 16 May 2001 08:48:38 +0200
Reply-To: [EMAIL PROTECTED]

On Tue, 15 May 2001 17:04:04 -0400, Brian Davis wrote:

> Hi,
> I've got 2 3c509s in a my Linux box (Mandrake 8).  One is an ISA card, and
> one is built on the Motherboard.  Anyway, they are being setup with one as
> eth0 and the other as eth1 (obviously).  What I want to do is flip that
> assignment (long story having to do with cable provider and scripts I've
> already written).  I want mac 00:10:4b:ce:11:55 to be eth0 and
> 00:c0:4f:c4:33:37 to be eth1.  Here is the current output from ifconfig
> -a:
> 
> eth0      Link encap:Ethernet  HWaddr 00:C0:4F:C4:33:37
>           BROADCAST MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
>           Interrupt:5 Base address:0x220
> 
> eth1      Link encap:Ethernet  HWaddr 00:10:4B:CE:11:55
>           inet addr:24.147.19.101  Bcast:24.147.23.255 Mask:255.255.248.0
>           UP BROADCAST NOTRAILERS RUNNING  MTU:1500  Metric:1
>           RX packets:43756 errors:4 dropped:0 overruns:0 frame:4
>           TX packets:19029 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:156 txqueuelen:100
>           RX bytes:29961426 (28.5 Mb)  TX bytes:1448254 (1.3 Mb)
>           Interrupt:10 Base address:0x230
> 
> I believe that the IRQs and IOs are being setup by PNP, especially since
> I've tried the 3c5x9setup executable, changed the IRQ and IO, and they are
> effectively ignored.
> 
> I've followed the Ethernet-HOWTO regarding eth0/eth1 assignment and setup
> the /etc/modules.conf as follows:
> 
> alias eth0 3c509
> alias eth1 3c509
> options 3c509 io=0x230,io=0x220
> 
> But I get the following error output after running modprobe:
> 
> [root@h00104bce1155 net]# modprobe 3c509
> /lib/modules/2.4.3-20mdk/kernel/drivers/net/3c509.o.gz: invalid
> parameter parm_io
> /lib/modules/2.4.3-20mdk/kernel/drivers/net/3c509.o.gz: insmod
> /lib/modules/2.4.3-20mdk/kernel/drivers/net/3c509.o.gz failed
> /lib/modules/2.4.3-20mdk/kernel/drivers/net/3c509.o.gz: insmod 3c509
> failed
> [root@h00104bce1155 net]#
> 
> Any help/ideas is greatly appreciated.
> 
> Thanks,
> Brian
> 
> 
> 

Hey Brian,

>From what I understand, the assignment of which NIC gets eth0 and which one 
gets eth1 has to do with their placement on the PCI bus. For example, in 
most cases, from the top down in your computer, the first NIC in PCI slot 0 
would get eth0, the next eth1, etc. Now, it would seem that since your 
second NIC is an ISA card, it is looked at last every time, meaning it will 
always be assigned as eth1. And, since your built in NIC is most likely 
sitting on the PCI bus, and isn't actually in a slot, it is probably always 
going to be seen as the first device on the PCI bus. One thing you may try 
is to put in a 2nd NIC (a PCI one) and see whether choosing the different 
available slots you have left allows that card to be recognized as eth0. Of 
course, the last option would be to disable the built in NIC, and use 2 NIC 
cards that you can put in whichever position suits you (but I'm sure you've 
already considered that...).

Good Luck!

-- 
Chris Bragg, Founder
Geilenkirchen Linux Users Group (GKLUG)
http://www.gklug.org

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

From: "Dee-Jon Bryce" <__foobar__>
Subject: mounting problems (must be superuser)
Date: Wed, 16 May 2001 17:41:26 +1000

Hi,

I'm using Looplinux (ie looplinux file on win partition, with slackware
packages) with KDE.

I'm having problems mounting floppies and cdroms, it says I need to be
superuser to mount. I've tried the KDE desktop links to the floopy & cdrom,
and programs like Kwikdisk, and also on the console, but they all give this
message. My fstab file looks like this:

======= /etc/fstab =========

# /etc/fstab: static file system information.
#
# The following is an example. Please see fstab(5) for further details.
# Please refer to mount(1) for a complete description of mount options.
#
# Format:
# <file system>   <mount point>   <type>   <options>   <dump> <pass>
#
# dump(8) uses the <dump> field to determine which file systems need
# to be dumped. fsck(8) uses the <pass> column to determine which file
# systems need to be checked--the root file system should have a 1 in
# this field, other file systems a 2, and any file systems that should
# not be checked (such as MS-DOS or NFS file systems) a 0.

# This is for a ext2 partition as root linux system.
#/dev/hda2  /  ext2  defaults,errors=remount-ro  0  1

/dev/loop0   /   ext2   defaults,errors=remount-ro   0   1

# This is a linux 'ext2' partition on /dev/hda3 etc.
#/dev/hda3  /mnt/linux  ext2  defaults  0  2

# The 'noauto' option indicates that the file system should not be mounted
# with 'mount -a' 'user' indicates that normal users are allowed to mount
# the file system.
/dev/cdrom  /mnt/cdrom  iso9660  defaults,noauto,ro,user  0 0
/dev/fd0    /mnt/floppy  auto   defaults,noauto,user    0 0
#/dev/fd1   /mnt/floppy  auto   defaults,noauto,user    0 0

# If you have a ls-120 floppy drive, it could be on /dev/hda b c d etc.
#/dev/hdd  /mnt/ls120  auto  defaults,noauto,user  0  0

# NFS file system:
#linux01.gwdg.de:/suse/6.4/i386.de  /mnt/nfs  nfs  defaults  0  0

# proc file system:
none  /proc  proc  defaults  0  0

# Unix98 devpts filesystem:
#none  /dev/pts  devpts  gid=5,mode=666  0  0

# Shared memory filesystem:
#none   /dev/shm    shm   defaults  0  0

# Win95/98 fat16 or FAT32 partition:
/dev/hdc1  /mnt/hdd2  vfat  defaults,umask=022,uid=0,gid=0,noexec,quiet  0
0

# The 'sw' option indicates that the swap partition is to be activated
# with 'swapon -a'.

# This is swap space on a partition.
#/dev/hda3 none swap sw 0 0

# This is a loop device swap file.
/dev/loop1   none   swap   sw   0   0

# This is a swap file on the system.
#/swap   none   swap  sw  0  0

======= /etc/fstab =========

Also, I'm having some problems with KDE itself. One is that the child panel
doesnt preserve its icons (after I log out and log back in) and also, in
dialog boxes, when I list a directory in detailed view, and I press on
Modified (for example) to see it sorted according to the date the files were
modified, the dialog box wont sort them.

Any help is appreciated.

P.S. I am using the latest KDE (installed from the latest Slackware
packages, a few days ago).

Thanx.






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

From: "Peet Grobler" <[EMAIL PROTECTED]>
Subject: Kernel upgrade (patch) ???
Date: Wed, 16 May 2001 09:53:07 +0200

Let's say I've modified my kernel, so as to exclude SCSI support, IrDA
support, and a lot of other small things.

Imagine this is kernel-2.2.18

I want to patch this kernel to 2.2.19. Would the patch program work
correctly? Patch only the pieces of code that is in the kernel? Or do you
need an exact copy of the previous Linux kernel source tree?

Just a thought...



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

From: "Wayne Osborn" <[EMAIL PROTECTED]>
Subject: Re: System.map and multiple kernel versions.
Date: Wed, 16 May 2001 16:15:03 +0800

In article <[EMAIL PROTECTED]>, "Nick Williams"
<[EMAIL PROTECTED]> wrote:

> Wayne Osborn wrote:
> 
>> Just curious as to the requirement for /boot/system.map when you have
>> multiple kernel versions setup in lilo.
>>
>> For instance, if I upgrade my 2.2.16 kernel to 2.4.4 and want the
>> option to support both with lilo, what system.map should I have in
>> /boot ?
>>
>> Thanks in advance, and a big thanks to all in this NG and other Linux
>> NG's for that matter that have taught me so much.
>>
>> --
>>   Wayne A. Osborn, SCADA Engineer.[dnar AT iinet DOT net DOT au]
>>   Registered Linux User #212818.  [2.2.16-22-Win4Lin-686] [i686] 5:10pm
>>    up  5:06,  2 users,  load average: 2.22, 2.13, 1.77 ...COMPASS [for
>>   the CDC-6000 series] is the sort of assembler one expects from
>> a corporation whose president codes in octal.
>>                 -- J.N. Gray
> 
> I have 2 versions of the map file in /boot one for each version of the
> kernel. In boot scrips (eg /etc/rc.d/local) I put the following command
> :-
>    ln -snf  /boot/System.map-`uname -r` /boot.system.map  (the quotes
>    are
> back-quotes)
> 
> this creats a symbolic link as required.
> 
Thankyou. 

I have not found to date a precise explination of the kernel map
files and most kernel compiling howtos's etc just skip over this subject 
completely. 
--
 A. Osborn, SCADA Engineer.[dnar AT iinet DOT net DOT au]
  Registered Linux User #212818.  [2.2.16-22-Win4Lin-686] [i686]
  4:10pm  up 1 day,  4:06,  4 users,  load average: 4.56, 4.59, 4.63
  ...Usage: fortune -P [] -a [xsz] [Q: [file]] [rKe9] -v6[+] dataspec ... inputdir

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

From: [EMAIL PROTECTED] (Dave Mundt)
Subject: Re: A CPU cooler for Linux?
Date: Wed, 16 May 2001 08:21:13 GMT

        Greetings and Salutations...

On Wed, 16 May 2001 03:16:06 GMT, [EMAIL PROTECTED] wrote:

>I noticed that my Windows with Waterfall Pro (CPU cooler software) keeps
>the CPU temperature low. In Linux, it is higher. I thought Linux had a
>CPU cooler code. Did I miss something? I am a Linux newbie, so hopefully
>I don't have to recompile Kernel :). I am using RedHat Linux v7.1. I 
>look forward to receiving replies soon. Thanks!
>
>-- 
>           "Everything tastes better at a picnic...the ants, the sand, 
>                                                everything." --unknown
>--
>  If you are replying to Ant's news post by e-mail, then please kindly
>       remove ANT in the e-mail addresses listed below. Note the CaSe!
>----------------------------------------------------------------------
>  /\___/\
> / /\ /\ \         E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED],
>| |.   .| |                            or [EMAIL PROTECTED]
>   \ _ /                     The Ant Farm: http://antfarm.home.dhs.org
>    ( )   ICQ UIN: 2223658. Resume: http://apu.edu/~philpi/resume.html

        Hum...It appears that the software works by either halting the
CPU, or, throttling it back so it runs slower.  Linux does neither of
these things, AFAIK...so since the CPU is running all the time, and,
at full speed, of COURSE it will be a bit warmer.
        Unless you are overclocking and the temperatures are getting
seriously hot, though, I would suggest a bigger heatsink and better
fans.  Shucks...now that I think about it...I would suggest that
anyway.  It seems kind of silly to me to go to the work of getting a
fast processor, or overclocking to get more speed, then, throttling
back/stopping the processor.  Kind of like buying a Porsche and only
driving it in the first couple of gears.....
        Regards
        Dave Mundt


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

From: "Harvey Braun" <[EMAIL PROTECTED]>
Subject: Re: Help with assigning eth0/eth1 to proper NICs
Crossposted-To: comp.os.linux.hardware,comp.os.linux.setup
Date: Wed, 16 May 2001 08:29:33 GMT

I had the same type of problem with 2 network cards. I had one that I
wanted to use for my internal network and one for going out to a cable
modem. They are both PCI but one always loaded first when I set up the
machine no matter which slot I put it in. The way I got aroung it was to use Linuxconf 
and simply
reassigne the first card from eth0 to eth1 and then the next one eth1 to eth0. When I
rebooted the machine that is the way it stayed. 


HB


In article <989960817.911602@sj-nntpcache-3>, "Brian Davis"
<[EMAIL PROTECTED]> wrote:


> Hi,
> I've got 2 3c509s in a my Linux box (Mandrake 8).  One is an ISA card,
> and one is built on the Motherboard.  Anyway, they are being setup with
> one as eth0 and the other as eth1 (obviously).  What I want to do is
> flip that assignment (long story having to do with cable provider and
> scripts I've already written).  I want mac 00:10:4b:ce:11:55 to be eth0
> and 00:c0:4f:c4:33:37 to be eth1.  Here is the current output from
> ifconfig -a:  eth0      Link encap:Ethernet  HWaddr 00:C0:4F:C4:33:37
>           BROADCAST MULTICAST  MTU:1500  Metric:1 RX packets:0 errors:0
>           dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0
>           overruns:0 carrier:0 collisions:0 txqueuelen:100
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b) Interrupt:5 Base
>           address:0x220
> eth1      Link encap:Ethernet  HWaddr 00:10:4B:CE:11:55
>           inet addr:24.147.19.101  Bcast:24.147.23.255
>           Mask:255.255.248.0 UP BROADCAST NOTRAILERS RUNNING  MTU:1500 
>           Metric:1 RX packets:43756 errors:4 dropped:0 overruns:0
>           frame:4 TX packets:19029 errors:0 dropped:0 overruns:0
>           carrier:0 collisions:156 txqueuelen:100
>           RX bytes:29961426 (28.5 Mb)  TX bytes:1448254 (1.3 Mb)
>           Interrupt:10 Base address:0x230
> I believe that the IRQs and IOs are being setup by PNP, especially since
> I've tried the 3c5x9setup executable, changed the IRQ and IO, and they
> are effectively ignored.
> I've followed the Ethernet-HOWTO regarding eth0/eth1 assignment and
> setup the /etc/modules.conf as follows:
> alias eth0 3c509
> alias eth1 3c509
> options 3c509 io=0x230,io=0x220
> But I get the following error output after running modprobe: 
> [root@h00104bce1155 net]# modprobe 3c509
> /lib/modules/2.4.3-20mdk/kernel/drivers/net/3c509.o.gz: invalid
> parameter parm_io
> /lib/modules/2.4.3-20mdk/kernel/drivers/net/3c509.o.gz: insmod
> /lib/modules/2.4.3-20mdk/kernel/drivers/net/3c509.o.gz failed
> /lib/modules/2.4.3-20mdk/kernel/drivers/net/3c509.o.gz: insmod 3c509
> failed
> [root@h00104bce1155 net]#
> Any help/ideas is greatly appreciated.  Thanks,
> Brian
>

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


** 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