Linux-Setup Digest #416, Volume #21 Mon, 11 Jun 01 10:13:08 EDT
Contents:
Re: Hard drive performance w/ hdparm ("Wayne Osborn")
Smoothwall NIC setup ("Michael Pye")
Re: Using a linux box as an Internet router ("Michael Pye")
Re: 2GB File size limitation ([EMAIL PROTECTED])
Mouse problem SuSe 7.1 ([EMAIL PROTECTED])
Re: Using a linux box as an Internet router ("Jacek M. Holeczek")
Re: /bin/login cannot be removed (Stephen Rank)
dual booting ("Peter Phelan")
Re: dual booting ("Nils")
Re: /bin/login cannot be removed ("Peter T. Breuer")
Re: a linux newbie looking for some advice ("David Dorward")
Re: 2GB File size limitation (Betastar)
Thanks Rob Davies for the hdparm info (Michael Perry)
Re: konquerer and java? (gman1)
Re: Dual Boot (Rod Smith)
----------------------------------------------------------------------------
From: "Wayne Osborn" <[EMAIL PROTECTED]>
Subject: Re: Hard drive performance w/ hdparm
Date: Mon, 11 Jun 2001 18:21:19 +0800
In article <[EMAIL PROTECTED]>, "Michael Perry"
<[EMAIL PROTECTED]> wrote:
> On Sun, 10 Jun 2001 22:50:17 +0100, Robert Davies
> <[EMAIL PROTECTED]> wrote:
>> Mike W. wrote:
>>
>>> I have Red Hat 7.1 on a ATA/100 IBM drive connected through a CMD
>>> Ultra66 interface. The drive is the slave on the first Ultra66
>>> channel (hdf on ide2).
>>>
>>> The command:
>>> /sbin/hdparm -i /dev/hdf
>>>
>>> reports the drive is in UDMA mode 2, which is Ultra33. I believe this
>>> is correct, since Linux doesn't exploit Ultra66 or Ultra100 yet.
>>
>> It does, and should do, as the IDE driver in recent version (2.2.18 &
>> 2.4) tune the drive parameters automatically.
>>
>> All the advice about using hdparm(8) _was_ true but it should no longer
>> be necessary, according to Andre Hedrik himself, who took part in a
>> thread on the linux-abit Mailing list.
>>
>> Now some chipsets and drives are on black lists, (there are some white
>> lists to around in the kernel, where default is to play safe due to
>> common faults).
>>
>> So if you are using a recent 2.4 kernel, and your drive and chipset
>> combination do not optimise the drive it is most likely to be as a
>> result of reported corruption.
>>
>> There's been a lot about the Via Southbridge lately used on boards like
>> the Asus A7V, so you're best to check on a Linux Kernel Mailing List
>> archive, for reports of your drive type, chipset and the word
>> corruption, before you go tweaking.
>>
>> BTW The -c 1 or -c 3 stuff is obsolete, it's an old EIDE option, and
>> ATA-2 (33 speed), ATA-66 and ATA-100 are the current standards.
>> Similiarly the -u 1 option is pointless as you have UDMA transfers.
>>
>> Hopefully the man page will get updated sometime, maybe ...
>>
>> Rob
>
> The actual truth is that for many drives and chipset combinations, all
> one has to do is look at what you get by default even with a 2.4 kernel
> and what you get by adding a hdparm stanza. I don't know about the
> chipset being automatically determined or not. But my system went from
> barely 2mb to almost 30mb and I can reboot without hdparm stanzas and
> see that same old behavior with the issues I had with disk performance
> bottlenecks.
>
Sorry to butt in, are you aware of /etc/sysconfig/harddisks ? This config
file is used by /etc/sysinit at boot time. You can add -X67, -X68 etc to
the last parameter in this file EXTRA_PARAMS.
> I personally think that there are gray areas with drives and chipsets
> and that one needs to check out what they are getting by default and do
> the requisite research to tighten up on the drive.
>
> I would also like the hdparm man page to get updated since as you
> mention some things are obsolete. The truth is that the 2.4 kernel does
> not set optimum ide/eide parameters for me. I bet it does not for
> others as well. Until I see that a kernel adopts a change for my drives
> which gives me a noticeable performance increase, I will continue to
> manually monitor the health of my system, ensure that I use programs
> like hdparm which tighten up on the resources a bit, and judge for
> myself whether performance is better or worse and whether corruption
> happens or does not.
>
> Thanks for your pointers though. I appreciate reading through the old
> kernel mailing lists every now and again.
>
--
Wayne A. Osborn, SCADA Engineer.[dnar AT iinet DOT net DOT au]
Registered Linux User #212818. [2.2.16-22-Win4Lin-686] [i686]
6:10pm up 1 day, 2:15, 5 users, load average: 2.02, 2.00, 1.90
...Real Users know your home telephone number.
------------------------------
From: "Michael Pye" <[EMAIL PROTECTED]>
Crossposted-To: alt.linux,alt.os.linux
Subject: Smoothwall NIC setup
Date: Mon, 11 Jun 2001 11:36:55 +0100
I am trying to install SmoothWall on an old 486. I have equipped it with a
D-Link DE220c ISA (PNP) Ethernet card which under windows was always
supported directly or detected (and worked) as an NE2000 compatible.
However SmoothWall does not have an option for any D-Link cards and when
auto-probing goes straight past the "NE1000 / NE2000 (non-pci)" entry. If I
try to select from the list it says "Looking for NE1000 / NE2000
(non-pci)..." and then "Cannot load driver module".
Is it possible to enter manually the correct module and parameters for these
cards as I cannot seem to find any easily available ISA NICs around. They
should be dirt cheap, but they are actually unavailable around me and the
486 has no PCI slots.
Redhat 5.2 successfully detected and installed the card in a previous
installation and Smoothwall is based on redhat 6.2, so the support must be
there somewhere.
Thanks in anticipation.
MP
------------------------------
From: "Michael Pye" <[EMAIL PROTECTED]>
Subject: Re: Using a linux box as an Internet router
Date: Mon, 11 Jun 2001 11:56:51 +0100
"Zsolt Koppany" <[EMAIL PROTECTED]> wrote
> Hi,
>
> I have a linux box that has as internet access. How can I use this host
> as a router for other hosts?
Easy / quick way: IPChains / IPTables
Secure way: SmoothWall, www.smoothwall.org (free)
MP
------------------------------
Crossposted-To:
comp.os.linux.misc,comp.os.linux.x,linux.redhat,linux.redhat.install,linux.redhat.misc,redhat.kernel.general
Subject: Re: 2GB File size limitation
From: [EMAIL PROTECTED]
Date: 11 Jun 2001 07:04:33 -0400
[EMAIL PROTECTED] (Rinaldi J. Montessi) writes:
>
> I'm posting something I read in this group a few days ago...
>
> <Quote>
[...]
>
> So, what can you do? Upgrade the kernel to 2.4.5, recompile your glibc
> against the new kernel, and recompile the applications you use against
> this new glibc. Then everything will use 64 bits for file sizes and
> file position offsets, and you can have 2T files.
>
> </Quote>
That's what you have to do--but the post is wrong for implying that your
worries are then over. Lots of programs use ``int'' for file offets,
instead of ``off_t''. Those programs will *not* silently adopt the 64-bit
offsets. Other programs perform arithmetic on file offsets, silently
converting them to 32-bit integers.
Specifically, Samba and FTP have big problems with big files--so you
will probably find that you *still* can't download the file, even
after following the above instructions.
Best of luck though!
Len.
--
``Install and forget'' is a dubious concept for critical applications.
-- Dan Bernstein
------------------------------
From: [EMAIL PROTECTED]
Subject: Mouse problem SuSe 7.1
Date: 11 Jun 2001 11:06:54 GMT
Hi,
I've just installed Linux 7.1, running KDE 2.0.1, after initial
installation the mouse works fine, but on boot up afterwards the mouse is
dead, theres a cursor but no movement, the installation never askes about
mouse setting's I've tried to check if theres a driver (Module ?) loaded but
I've no idea how to navigate without the mouse which makes thing difficult.
any ideas ?
In case you haven't guessed I'm a complete newcomer !
cheers,
--
Mark Scudder
Senior Photographer
Cambridge University Library
West rd, Cambridge
CB3 9DR, England
(44) 01223 333107/8
------------------------------
From: "Jacek M. Holeczek" <[EMAIL PROTECTED]>
Subject: Re: Using a linux box as an Internet router
Date: Mon, 11 Jun 2001 13:08:55 +0200
> I have a linux box that has as internet access. How can I use this host
> as a router for other hosts?
Have a look at the Linux Router Project :
http://www.linuxrouter.org
Hope this helps,
Jacek.
------------------------------
From: Stephen Rank <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: /bin/login cannot be removed
Date: 11 Jun 2001 12:33:02 +0100
"Peter T. Breuer" <[EMAIL PROTECTED]> writes:
> In comp.os.linux.misc Michael Heiming <[EMAIL PROTECTED]> wrote:
> > But assuming from the fact, that the OP
> > doesn't really know what's going on, it would be better to reinstall
> > from
> > scratch, case he really got hacked, applying the latest patches to
>
> His distro surely provides him with tools (tripwire? rpm? - does nayone
> kow what the debian equivalent is, if there is one?) that will
> check his installation for him.
The Debian equivalent of Tripwire is, by strange coincedence, Tripwire
;) But if the system's been cracked, how can the OP trust any of the
tools? Including the kernel? Modern rootkits can make themselves
very hard to find and (particularly) remove.
Of course, this is _if_ the OP's been cracked. Detecting such a state
is left as an exercise for the reader :)
Stephen
--
992258981
------------------------------
From: "Peter Phelan" <[EMAIL PROTECTED]>
Subject: dual booting
Date: Mon, 11 Jun 2001 12:55:17 +0100
Hello,
I hope someone can help me. I made a win 2K installation (on the Secondary
IDE HDD) and then installed Red Hat 7.0 on the primary IDE.
Windows 2K booted fine, as long as the Promary dick was disconnected.
Otherwise, Linux booted.
Then, not really knowing what I was doing, I edited lilo.conf, basing it on
a dual boot config someone else had made for a win98 / Linux setup.
After running lilo (which I suspect was incorrectly configured) I am no
longer able to boot windows 2K under any circumstances.
I have tried to repair the installation, and even used a WIn 98 stratup disc
to try and repair the MBR with fdisk - however, no fixed disks were detected
when I tried this.
Linux still boots, however (when the HDD is connected).
Is there any way to repair /restore the Win2k installation?
Any suggestions in any case about how lilo.conf should look, in order to
have linux as the default, with an option to boot Windows 2k?
Linux is on hda1, 2k is on hdc1.
If no repair is possible, what do I need to do in order to mount the Win 2K
HDD from within Linux, to try and backup important data?
Grateful for any help,
Peter
------------------------------
From: "Nils" <[EMAIL PROTECTED]>
Subject: Re: dual booting
Date: Mon, 11 Jun 2001 14:21:33 +0200
/etc/lilo.conf
other = /dev/hdc
label = w2k
map-drive = 0x80
to 0x81
map-drive = 0x81
to 0x80
to restore ntloader you should repair the mbr with the
win2k cd (emergency repair) but disconnect linux disk first
Nils
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: /bin/login cannot be removed
Crossposted-To: comp.os.linux.misc
Date: Mon, 11 Jun 2001 12:19:54 GMT
In comp.os.linux.misc Stephen Rank <[EMAIL PROTECTED]> wrote:
> "Peter T. Breuer" <[EMAIL PROTECTED]> writes:
>> In comp.os.linux.misc Michael Heiming <[EMAIL PROTECTED]> wrote:
>> > But assuming from the fact, that the OP
>> > doesn't really know what's going on, it would be better to reinstall
>> > from
>> > scratch, case he really got hacked, applying the latest patches to
>>
>> His distro surely provides him with tools (tripwire? rpm? - does nayone
>> kow what the debian equivalent is, if there is one?) that will
>> check his installation for him.
> The Debian equivalent of Tripwire is, by strange coincedence, Tripwire
> ;) But if the system's been cracked, how can the OP trust any of the
> tools? Including the kernel? Modern rootkits can make themselves
He only needs to be able to trust one of them. Running a rescue cd
and checking the md5sums should be enough.
> very hard to find and (particularly) remove.
Wile anything is possible, this is needless scaremongering. Rootkits
are generally very easy to find once you are looking, because they all
seem to follow the same pattern of inventing hidden directories below /dev
and replacing key executables, which one should normally check at once and
hence find the rootkit.
The hard bit is to know when you should be looking for them.
> Of course, this is _if_ the OP's been cracked. Detecting such a state
> is left as an exercise for the reader :)
The only interesting bit.
Peter
------------------------------
From: "David Dorward" <[EMAIL PROTECTED]>
Subject: Re: a linux newbie looking for some advice
Date: Mon, 11 Jun 2001 13:45:39 +0100
It seems that on Mon, 11 Jun 2001 06:30:11 +0100, someone claiming to be
"Nelson" <[EMAIL PROTECTED]> typed this:
> hello, i have tried linux mandrake (8.0) and loved it, but, i can't go
> online with it (i'm using widndows now) because the connection always
> says the modem is busy,
Usually means you have a winmodem. Is the modem internel? It probably
won't work but try http://www.linmodems.org/ - you will probably need to
get an external serial modem though.
> and i can't get to open any executables. the
They won't run if they are not in the PATH and you don't specify the
location (./myexe). Nor will they work if they are not compiled for Linux
(i.e. for windows!).
> rpmdrake is the installer software, but it freezes in my copy of linux
Try the command line rpm tool (man rpm)
> non-DOS partitions, but i still get the screen where you choose wich
> operative system you want, how can i eliminate that?
fdisk /mbr
--
David Dorward http://david.us-lot.org/
The only way to keep your health is to eat what you don't want, drink
what you don't like, and do what you'd rather not. -- Mark Twain
------------------------------
From: [EMAIL PROTECTED] (Betastar)
Crossposted-To:
comp.os.linux.misc,comp.os.linux.x,linux.redhat,linux.redhat.install,linux.redhat.misc,redhat.kernel.general
Subject: Re: 2GB File size limitation
Date: Mon, 11 Jun 2001 12:43:14 GMT
On 11 Jun 2001 07:04:33 -0400, [EMAIL PROTECTED] wrote:
>Specifically, Samba and FTP have big problems with big files--so you
>will probably find that you *still* can't download the file, even
>after following the above instructions.
AH - but I can download them throught Netscape, then, rather than
using a FTP client. That I do know =)
Thanks
Betastar
------------------------------
From: [EMAIL PROTECTED] (Michael Perry)
Subject: Thanks Rob Davies for the hdparm info
Date: Mon, 11 Jun 2001 13:35:48 -0000
Reply-To: [EMAIL PROTECTED]
I recently did some additional digging regarding disk corruption reported as
late as April of this year on the kernel mailing list and found several
instances of this problem asserting itself on systems with my particular
chipset which is the VIA and KT133. I have two identical athlons here with
somewhat different motherboards. After reading the posts that I made and
the followup that Mr. Davies made, I felt a somewhat different inclination
to go find out about this issue. As it appears from the kernel digests, I
was wrong in asserting that one should use hdparm in the manner I specified.
I recompiled a 2.4.5 kernel with the VIA drivers in place and get better
support at the kernel level for the drives including a better identification
of each drive.
>From the posts, I would now agree that a person should go out and find
whether disk/file corruption could happen and take reasonable steps to
preclude it.
Thanks!
--
Michael Perry
[EMAIL PROTECTED]
====================
------------------------------
From: gman1 <[EMAIL PROTECTED]>
Subject: Re: konquerer and java?
Date: Mon, 11 Jun 2001 13:52:53 GMT
Robert_L wrote:
> gman1 wrote:
>
>> I have redhat 7.1-
>>
>> How do I get Java, and Javascript to work with Konquerer?
>>
>> I don't have a 'java' program so should i download:
>> (A)kaffe?
>> (B)java from blackdown?
>> (C)JRE from sun or rpmfind?
>> (D)JDK from sun or rpmfind?
>> (E)or is there some java from the red hat 7.1 package i can install?
>>
>> Thanks In advance for any help!
>>
> Blackdown is the one they recomend.
> You just openn up konqueror preferences-->konqueror browser-->java and
> point it to the "java" executable as in:
> /usr/local/java/blackdown/j2re1.3.0/bin/java
> from www.konqueror.org :
> "KJAS has been tested against IBM's and Blackdown's 1.3 releases, and
> Sun's 1.2.2 release. Currently, Sun's 1.3 jvm is not supported, but work
> is going on to fix the problems with that version. Hopefully Sun's 1.3.1
> release will work. It's been found that KJAS seems to work best under
> Blackdown's jvm. Kaffe and IBM's 1.1.8 will probably not work- they are
> not officially supported.
>
> Blackdown's JVM can be obtained from http://www.blackdown.org.
> IBM's Java products can be found at http://www.ibm.com/developer/java/.
> Sun's Java products can be found at http://java.sun.com/products/."
> HTH
> Robert_L
THanks a million I will give Blackdown a try!!!!
------------------------------
From: [EMAIL PROTECTED] (Rod Smith)
Subject: Re: Dual Boot
Date: Mon, 11 Jun 2001 13:57:11 -0000
Reply-To: [EMAIL PROTECTED]
[Posted and mailed]
In article <[EMAIL PROTECTED]>,
"Toobs" <[EMAIL PROTECTED]> writes:
> I want to install Mandrake, but I want to dual boot with Win 2000. How
> should I do this? Can I install Linux and dual boot without formatting W2k?
That depends. If you have just one hard disk, and if it's formatted as
a single NTFS partition, you'll need to either back up, repartition,
reformat, and restore; or use a tool like PartitionMagic
(http://www.powerquest.com) to resize the NTFS partition to make room
for Linux. (It's wise to back up even if you use a partition resizer,
though, because they occasionally fail and trash the entire disk,
particularly if there's something like a power failure mid-operation.)
If Win2K is installed on FAT, the FIPS program that comes with most
distributions can shrink the FAT partition. If you've already got
multiple partitions and can devote one or more entirely to Linux, or if
you want to add a new hard disk for Linux, then you don't need to mess
with the NT partition.
The dual boot part can be handled by using Linux boot loaders like LILO
or GRUB alone, or by using one of these ONLY to boot Linux (install it
on the Linux boot partition), and using Win2K's boot loader or a
third-party boot loader to select between Linux and Windows.
There are some HOWTO documents, like the Linux+Windows HOWTO
(http://www.linuxdoc.org/HOWTO/Linux+Windows-HOWTO/index.html), that
cover some of these issues, particularly the boot loader issues. There's
more information in my book, _The Multi-Boot Configuration Handbook_
(http://www.rodsbooks.com/multiboot/). If you need answers to more
specific questions, you'll have to post more details, like what your
current disk layout is, what filesystems you're using, and so on.
--
Rod Smith, [EMAIL PROTECTED]
http://www.rodsbooks.com
Author of books on Linux & multi-OS configuration
------------------------------
** 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.setup.
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-Setup Digest
******************************