Linux-Setup Digest #417, Volume #21 Mon, 11 Jun 01 14:13:09 EDT
Contents:
Re: Hard Drive Re-partitioning (Robert Davies)
Re: swap doesn't unmout properly (Robert Davies)
Re: /bin/login cannot be removed (Robert Davies)
Re: Hard drive performance w/ hdparm (Robert Davies)
Machine name and Sendmail: HELP!!!!!!!!! (DVHandorf)
Re: a linux newbie looking for some advice ("thunder")
Re: Hard drive performance w/ hdparm (Michael Perry)
Sound problem (=?iso-8859-1?Q?Beno=EEt?= Salotti)
Re: unable to find a file ! ([EMAIL PROTECTED])
Re: Thanks Rob Davies for the hdparm info (Robert Davies)
Re: Need help: virtual hosts RH 7.1 / Apache 1.3 ("Herb Stein")
Re: XFree4.1.0 Problem Please help ([EMAIL PROTECTED])
Linux window manager adds border to a borderless Java JWindow (Andrew Krieg)
Is there a french LINUX wizard? (bmw524)
----------------------------------------------------------------------------
From: Robert Davies <[EMAIL PROTECTED]>
Subject: Re: Hard Drive Re-partitioning
Crossposted-To: comp.os.linux.misc
Date: Mon, 11 Jun 2001 14:13:43 +0100
Peter T. Breuer wrote:
> In comp.os.linux.misc Skylar Thompson <[EMAIL PROTECTED]> wrote:
>> I just got a new SCSI hard drive, and am having some trouble
>> repartitioning it. I would
>
> Well, fix your scsi setup then! Something as basic as that not working
> indicates that your scsi system is fouled.
>
> It is usually cabling or termination (lack of). Check the kernel
> messages with dmesg.
Or scsi-id's ;)
One other thing get used to saying create a file system, use mkfs, as
formatting drives is not really a good idea or necessary these days.
M$ have confused you with their 'format' a floppy, which does both.
Rob
PS. It's worth checking a new drive with badblocks before putting data on
it, it's very simple to do, and could save you problems later, recovering
data.
------------------------------
From: Robert Davies <[EMAIL PROTECTED]>
Subject: Re: swap doesn't unmout properly
Date: Mon, 11 Jun 2001 14:17:57 +0100
ken pile wrote:
> Are you suggesting I might have to recompile my kernel after some file
> editing?
Ken, no, just find the script (maybe in /*/init.d which calls swapoff)
command. It should say 'swapoff -a'.
It may be somewhere else, some kind of shutdown script, which runs after
the run level stuff, a bit like boot.local.
> I looked at some of the threads, but couldn't come to a conclusion wether
> it was wise to play around with the kernel which is what I think was being
> suggested.
They're trying to fix the real problem, the work round is _not_ to do
swapoff at all, why bother when you're shutting the machine down?
> There is a swapoff command I could use just before shutdown. The handbook
> that comes with SuSE 7.0 suggests that you should never assign no swap
> space at all, even with machines with 256Mb and over, and even suggest you
> should never turn the machine off because of the benefits of the way Linux
> uses the swap file
I suggest avoiding calling it, as your initial post suggested that was
causing problems.
> I'm hoping that I will be able to find out why the swap doesn't always
> turn off, but in the meantime "swapoff" will put me out of a bit of misery
A bug. :)
Hope that's clearer now
Rob
------------------------------
From: Robert Davies <[EMAIL PROTECTED]>
Subject: Re: /bin/login cannot be removed
Crossposted-To: comp.os.linux.misc
Date: Mon, 11 Jun 2001 14:22:28 +0100
Stephen Rank 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
> 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 :)
This is why to use tripwire properly you have to build it statically, and
store it's database with it's programs on read only media.
That still does not protect you from a kernel module, which could be
altering system calls, in such a way to defeat your tripwire run.
So you really need to do a clean room install and then mount a compromised
systems disk 'mount -o noexec,nosuid,nodev /dev/hd<oldisk> /mnt/cracked.
You can mostly only detect problems, not prove their abscence :)
Rob
------------------------------
From: Robert Davies <[EMAIL PROTECTED]>
Subject: Re: Hard drive performance w/ hdparm
Date: Mon, 11 Jun 2001 14:47:02 +0100
Wayne Osborn wrote:
> 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:
>>>
> 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.
/etc/sysconfig seems to be a Red Hat thing, but you're right it's easiest
way. I'm not sure if it's going to be in the LSB.
Still with a modern kernel, do your homework before overiding it's
decisions.
Rob
------------------------------
From: [EMAIL PROTECTED] (DVHandorf)
Date: 11 Jun 2001 15:35:33 GMT
Subject: Machine name and Sendmail: HELP!!!!!!!!!
Hello. I am attemptiung to change the name of my machine from
redhat.localdomain to just redhat. However, when I do so, the machine freezes
when sendmail attempts to start. I am NOT on a network, but the loopback
device is enabled, I use RH 6.0, which is outdated, and I think I have sendmail
8.9.3. Thank you for any/all help you have to offer
Dusty
------------------------------
From: "thunder" <[EMAIL PROTECTED]>
Subject: Re: a linux newbie looking for some advice
Date: Mon, 11 Jun 2001 11:31:44 -0400
In article <[EMAIL PROTECTED]>, "Nelson"
<[EMAIL PROTECTED]> wrote:
> 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, and i can't get to open
> any executables. the rpmdrake is the installer software, but it
> freezes in my copy of linux (can't configure my sound card either).
> i have the installers for both the sound card and modem, but can't
> open them, when i click nothing happens... anyone could help me and
> tell me any possible solution? oh, and, i formatted the hard disk
> to re-install windows and eliminated the non-DOS partitions, but i
> still get the screen where you choose wich operative system you
> want, how can i eliminate that? any help will be REALLY appreciated
> feel free to send any e-mail if you can Tahnks in advance!
>
> --
> Posted via CNET Help.com
> http://www.help.com/
First off, there's a very good chance that you have a Winmodem. They
will not work under Linux. Check your model # at this link:
http://www.idir.net/~gromitkc/winmodem.html
When you say executables, do you meam files with an exe extension? If
so, wrong operating system. Those are Windows/Dos files. To run them
in Linux you will need to use a windows emulator such as wine. Your
installers? Again, probably the wrong OS.
The bootloader, which chooses the OS, uses the MBR, not a partition.
When you re-install Windows, it will disappear. There is a
tremendous amount of documentation about Linux on the Net. You may
want to do a little reading before re-installing Mandrake.
------------------------------
From: [EMAIL PROTECTED] (Michael Perry)
Subject: Re: Hard drive performance w/ hdparm
Date: Mon, 11 Jun 2001 15:43:46 -0000
Reply-To: [EMAIL PROTECTED]
On Mon, 11 Jun 2001 14:47:02 +0100, Robert Davies
<[EMAIL PROTECTED]> wrote:
> Wayne Osborn wrote:
>
>> 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:
>>>>
>> 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.
>
> /etc/sysconfig seems to be a Red Hat thing, but you're right it's easiest
> way. I'm not sure if it's going to be in the LSB.
>
> Still with a modern kernel, do your homework before overiding it's
> decisions.
>
> Rob
Rob-
You were right. I could not find an article in this flow to followup to. I
went back and looked at the via, corruption, kt133, and the via ide driver
in the 2.4.5 kernel. I have to say that the whole bit of things are very
confusing. Some report corruption, others reports with the asus boards no
corruption. Right now, I am running with no hdparm arguments at all
specified and am using the via ide drivers, the related select dma as the
default option, and the busmastering dma options in the kernel. As a result
of this, I get some pretty detailed output in /proc/ide/via which tells how
the ide driver is setting up my devices. Sometimes, my stubborness is
legendary, I fear :). Anyways, for everyone to see, here is the output of
my /proc/ide/via and the result of running hdparm -Tt /dev/hda on the drive.
Its actually better and more consistent than I got with hdparm.
merwyn ~: cat /proc/ide/via
==========VIA BusMastering IDE Configuration================
Driver Version: 3.20
South Bridge: VIA vt82c686b
Revision: ISA 0x40 IDE 0x6
BM-DMA base: 0xc000
PCI clock: 33MHz
Master Read Cycle IRDY: 0ws
Master Write Cycle IRDY: 0ws
BM IDE Status Register Read Retry: yes
Max DRDY Pulse Width: No limit
=======================Primary IDE=======Secondary IDE======
Read DMA FIFO flush: yes yes
End Sector FIFO flush: no no
Prefetch Buffer: no no
Post Write Buffer: no no
Enabled: yes yes
Simplex only: no no
Cable Type: 80w 40w
===================drive0====drive1====drive2====drive3=====
Transfer Mode: UDMA UDMA PIO UDMA
Address Setup: 30ns 30ns 120ns 30ns
Cmd Active: 90ns 90ns 90ns 90ns
Cmd Recovery: 30ns 30ns 30ns 30ns
Data Active: 90ns 90ns 330ns 90ns
Data Recovery: 30ns 30ns 270ns 30ns
Cycle Time: 20ns 20ns 50ns 60ns
Transfer Rate: 100.0MB/s 100.0MB/s 40.0MB/s 33.3MB/s
Now with hdparm -Tt /dev/hda, I get this:
/dev/hda:
Timing buffer-cache reads: 128 MB in 1.32 seconds = 96.97 MB/sec
Timing buffered disk reads: 64 MB in 2.28 seconds = 28.07 MB/sec
I actually posted about this in another article becuase I don't want to
mislead people because of my reading of the hdparm man pages. I still
believe, based on the kernel development lists, that there are grey areas
with regard to different motherboards, implementations of controllers, and
drives. Its my belief now that one has to tred carefully here and be sure
to read the output from the kernel mailing lists.
Thanks again!
--
Michael Perry
[EMAIL PROTECTED]
====================
------------------------------
From: =?iso-8859-1?Q?Beno=EEt?= Salotti <[EMAIL PROTECTED]>
Subject: Sound problem
Date: Mon, 11 Jun 2001 18:15:34 -0400
Hi,
I have installed Mandrake 8 on my computer and I'm unable to setup
sound... I have a Creative SB 128 PCI.
When I try to load the module into memory (with insmod es1371) I have
the following errors:
Using /lib/modules/2.4.3-20mdk/kernel/drivers/sound/es1371.o.gz
/lib/modules/2.4.3-20mdk/kernel/drivers/sound/es1371.o.gz: unresolved
symbol unregister_sound_mixer_R7afc9d8a
/lib/modules/2.4.3-20mdk/kernel/drivers/sound/es1371.o.gz: unresolved
symbol ac97_probe_codec_R1c61c357
/lib/modules/2.4.3-20mdk/kernel/drivers/sound/es1371.o.gz: unresolved
symbol gameport_register_port_Rd203300c
/lib/modules/2.4.3-20mdk/kernel/drivers/sound/es1371.o.gz: unresolved
symbol unregister_sound_dsp_Rcd083b10
/lib/modules/2.4.3-20mdk/kernel/drivers/sound/es1371.o.gz: unresolved
symbol register_sound_dsp_Rec58ae1a
/lib/modules/2.4.3-20mdk/kernel/drivers/sound/es1371.o.gz: unresolved
symbol register_sound_mixer_Rfc83776d
/lib/modules/2.4.3-20mdk/kernel/drivers/sound/es1371.o.gz: unresolved
symbol gameport_unregister_port_Re98002ba
/lib/modules/2.4.3-20mdk/kernel/drivers/sound/es1371.o.gz: unresolved
symbol register_sound_midi_R72b68a90
/lib/modules/2.4.3-20mdk/kernel/drivers/sound/es1371.o.gz: unresolved
symbol unregister_sound_midi_Rfdab6de3
Where does it come from ? It worked well with Mandrake 7.2 and my
soundcard is well detected at boot time...
Thanks a lot
Ben
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.misc
Subject: Re: unable to find a file !
Date: Mon, 11 Jun 2001 18:33:26 +0200
Baertschiger Thierry wrote:
>
> Frank Ranner wrote:
>
> > Didier Baertschiger wrote:
> > >
> > > run it, impossible ! the bash says that there is no file or
> > > repertory
> > > of this type.
> > >
> > What is happening is that the loader is trying to load the file,
> > notices that
> > some libraries are needed, but cannot find the libraries. To find
> > out
> > what libraries
> > try 'ldd ./maple' in the directory containing the executable.
> >
> > Frank
>
> yes but in that case, the loader would give the name of the library
> that it cannot find, not the name of the program !!
Nope! At least not necessarily. Maybe there is a way to make the loader
tell you the library in this case, but I have had this problem more than
once. The problem always was a missing library, but the message only
sayd: "command not found"
------------------------------
From: Robert Davies <[EMAIL PROTECTED]>
Subject: Re: Thanks Rob Davies for the hdparm info
Date: Mon, 11 Jun 2001 16:44:23 +0100
Michael Perry wrote:
> 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.
There's a german site with info on BIOS updates, the problem has afflicted
Win users, but Via have been less than helpful at what PCI parameters
should be tweaked.
Linus decreed DMA with Via should simply be turned off! Whether the
chipset is good or not. I returned 2 1GHz Athlon boards before Christmas,
with KT133, at the time there was nothing about stability problems, but my
thrash testing caused lockups and crashes. Had to go with PIII and Intel,
which was a shame :(
The good news is, folk are working on work rounds, so hopefully Via users
will be better servered, and perhaps a BIOS update and kernel upgrade in
future will make this safe, with the white and black lists properly
configured.
Rob
------------------------------
From: "Herb Stein" <[EMAIL PROTECTED]>
Subject: Re: Need help: virtual hosts RH 7.1 / Apache 1.3
Date: Mon, 11 Jun 2001 11:51:13 -0500
You are restarting Apache after messing with the httpd.conf file, right?!
"Greg Hammond" <[EMAIL PROTECTED]> wrote in message
news:9zXU6.70706$[EMAIL PROTECTED]...
> I am having a terrible time trying to get virtual hosts working on my new
> Redhat 7.1 system. Here's my scenario:
>
> 1. I've defined a secondary IP address for my server, and it seems to
work
> just fine by adding:
>
> ifconfig eth0:0 AAA.BBB.CCC.DDD netmask 255.255.255.0
> route add -host AAAA.BBB.CCC.DDD dev eth0
>
> ... to my rc.local file.
>
> 2. I've configure what I believe to be a virtual host entry in my
> httpd.conf file for Apache:
>
> <VirtualHost AAA.BBB.CCC.DDD>
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /usr/apache/htdocs/htmldirectoryname
> ServerName www.company.com
> Errorlog (blah blah)
> TransferLog (blahblah)
> </VirtualHost>
>
> 3. When I use a web browser and http:// to the server's main IP address,
I
> get the default Apache welcome page as I expect I should. When I
http://
> to the AAA.BBB.CCC.DDD or www.company.com addresses that I've set up for
my
> virtual host, I STILL get the default Apache welcome page.
>
> I've made sure the ownership and file permissions are correct on my
> /usr/apache/htdocs/htmldirectoryname location are as they should be, and
> I've got a simple index.html file there as a placeholder to determine if
> it's working right.
>
> What's my problem? Why is Apache sending me the stuff from the default
IP
> address?
>
> Greg
--
Herb Stein
The Herb Stein Group
www.herbstein.com
[EMAIL PROTECTED]
314 952-4601
------------------------------
Subject: Re: XFree4.1.0 Problem Please help
From: [EMAIL PROTECTED]
Date: Mon, 11 Jun 2001 11:54
In article <[EMAIL PROTECTED]>,
Masoud Pajoh <[EMAIL PROTECTED]> writes:
>Hi All;
>I am running RH 7.1 + Ximian1.4 on with Matrox G400 +32MB video card.
>I had so many Xwindows Crashes a day, may be 3 or 4, that I decided to
>upgrade to Xwindows 4.1.0. I down loaded the files from the XFree.org.
>Read the README file and installation seemed to go well. But now when I
>try STARTX get this message:
> xinit: No such files or directory: No 'x' server.
>Tried to run XFree86 -configure it dumps the core, so ran xf86config,
>but it made no difference, i.e. ended up with the same message.
>
>I tried to find the command "X", but i cannot find it anywhere.
>
>Please help what am I missing.
>Any help is appreciated.
>
>Thanks very much.
>
>Masoud
>
>
I tried this again but this time instead of su I used root, and all
worked well! I thought su is the same as root, but this experience is
different.
Thank all for their suggestions.
Masoud
------------------------------
From: [EMAIL PROTECTED] (Andrew Krieg)
Subject: Linux window manager adds border to a borderless Java JWindow
Date: 11 Jun 2001 12:37:15 -0500
I have a Linux based Java app. I am experimenting with moving from JDK
1.2.2-7 to 1.3.1. The first thing I noticed is that the JWindows all have
ugly borders (full set of sizing hardware too) on them now. I am using the
fvwm2 window manager from the Linux distribution. Why would a JDK change
allow the window manager to do this?
--
=__ __ __ _ __ _= Andrew Krieg - Lead Software Engineer =
=_ __ _ __ _ _ __= E-mail: [EMAIL PROTECTED] =
=_ _ _ ___= WWW: http://www.execpc.com/~krieg =
=_ __ _ __ _ __ _= Treguna Mekoides Trecorum Satis Dee - Astoroth =
------------------------------
From: bmw524 <[EMAIL PROTECTED]>
Subject: Is there a french LINUX wizard?
Date: Mon, 11 Jun 2001 17:43:55 GMT
Hi, I have installed LINUX on my pc for a long time. But I'm looking for
a Linux wizard, espacially speaking french or nearby, who could drive me
in linux exploitation. Because I lose too many time !!!!!
thanks a lot
Nicolas
------------------------------
** 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
******************************