Linux-Misc Digest #137, Volume #26 Wed, 25 Oct 00 08:13:01 EDT
Contents:
Re: linux memory problem ("Andrew E. Schulman")
Re: How to create & execute a script ? ("Osugi Sakae")
kde configuration files? ("martin")
Re: copying a disk (Robert Heller)
Re: Need some tools.. (Steve)
RedHat 7 and ABIT KT7-RAID ("Alim")
Re: disk defrag? (Robert Heller)
Re: format the swap patition (Robert Heller)
Re: Linux killed my computer (muzh)
Upgrading RH6.0 to RH7.0 (XFree86 3.3.6/Voodoo) (Fabrice Colin)
Re: X-CD-Roast ([EMAIL PROTECTED])
Re: linux memory problem (Eric)
Q: Suse: Where is my env_variable ? (Anton Dischner)
Re: Out of room in /var partition, log file no longer loggin (Jean-David Beyer)
----------------------------------------------------------------------------
From: "Andrew E. Schulman" <[EMAIL PROTECTED]>
Subject: Re: linux memory problem
Date: Wed, 25 Oct 2000 05:35:49 -0400
> I have just installed Redhat 7.0 in one of the partitions in my hard disk.
> Since the beginning, the installation was very slow but eventually the
> installation was done. I have 128 M of RAM but when I used free command, it
> showed that the RAM was only 14 M. I tried adding append="mem=127M" in
> lilo.conf as a first line but to no avail. My computer is Gateway E-1400 and
> I have check BIOS to see if there is anything that I can do but I can't even
> highlight the memory option. Someone please help. Thanks.
Try "cat /proc/meminfo" and see if the kernel recognizes all of your
memory.
Maybe append="mem=128M" should go after the name of your kernel, rather
than at the start of the file? Can't remember now. Also, did you rerun
lilo after you changed lilo.conf?
------------------------------
From: "Osugi Sakae" <[EMAIL PROTECTED]>
Subject: Re: How to create & execute a script ?
Date: Wed, 25 Oct 2000 18:44:00 +0900
In article <[EMAIL PROTECTED]>, Arctic Storm
<[EMAIL PROTECTED]> wrote:
> I have RedHat Linux 7.0. I often type su - <enter>
> "password" <enter>
> type some command type some more commands exit <enter> etc., etc., etc.,
> ... Is there a way to automate this repetitive process? For example,
> through a script. I'll write all the stuff that needs to be typed, and
> all I'll do is execute this automated script when ever I want to. Thanks
> in advance.
>
I'm no guru, but it seems to me that a script that su's you to root would
be major security hole.
(but there is no denying that they are great for lots of other
non-sensitive stuff)
--
Osugi Sakae
------------------------------
From: "martin" <[EMAIL PROTECTED]>
Subject: kde configuration files?
Date: Wed, 25 Oct 2000 11:04:04 +0100
Hi,
I've installed KDE2, but at first it didn't work (after logging in on the
graphical login window, the screen went black, then went back to graphical X
login prompt).
After experimenting, I discovered the following way to start KDE2 on my
system...
telinit 4 (to shut down X)
export DISPLAY=<ip address>:0.0
X &
startkde
This works fine, but it's a wee bit awkward. I think I must be missing some
important startup file. Can somebody suggest what might be wrong?
Thanks,
Martin.
------------------------------
From: Robert Heller <[EMAIL PROTECTED]>
Subject: Re: copying a disk
Date: Wed, 25 Oct 2000 10:47:05 -0000
Roy Cabaniss <[EMAIL PROTECTED]>,
In a message on Wed, 25 Oct 2000 00:46:08 GMT, wrote :
RC> I have a nice clean install of linux. I want to make an exact copy of the
RC> entire hard drive to another hard drive, copying the partitions exactly ect.
RC> What command would I use?
Dump and Restore. You'll need to create the partitions and format them
one by one:
Assuming the clean install is on /dev/hda and the copy is to be on
/dev/hdb and hda is partitioned as:
/dev/hda1 128 meg, mounted as /
/dev/hda2 128 meg, swap
/dev/hda3 1536 meg, mounted as /usr
/dev/hda4 <extended>
/dev/hda5 128 meg, mounted as /var
/dev/hda6 <rest of disk>, mounted as /home
then you would make the same partitons on /dev/hdb, using (I recomend)
fdisk. Then:
mke2fs /dev/hdb1
mkswap /dev/hdb2
mke2fs /dev/hdb3
mke2fs /dev/hdb5
mke2fs /dev/hdb6
then:
mkdir /mnt/sparedisk
mount -t ext2 -v /dev/hdb1 /mnt/sparedisk
dump 0f - / | (cd /mnt/sparedisk; restore rf -)
mount -t ext2 -v /dev/hdb3 /mnt/sparedisk/usr
dump 0f - /usr | (cd /mnt/sparedisk/usr; restore rf -)
mount -t ext2 -v /dev/hdb5 /mnt/sparedisk/var
dump 0f - /var | (cd /mnt/sparedisk/var; restore rf -)
mount -t ext2 -v /dev/hdb6 /mnt/sparedisk/home
dump 0f - /home | (cd /mnt/sparedisk/home; restore rf -)
Note: it is best if you do this in single user mode.
Depending on your purposes, you might want to edit
/mnt/sparedisk/etc/fstab to change the drive references from /dev/hda to
/dev/hdb. This will allow you to use a boot floppy to boot the system
using the second disk as the base system (in case /dev/hda developes a
problem).
RC>
RC>
RC>
RC> --
RC> Dr. Roy F. Cabaniss Chairman, Division of Business
RC> Huston Tillotson College Austin, Texas 78702
RC> ph : 512-505-3130 fax : 512-505-3190
RC>
--
\/
Robert Heller ||InterNet: [EMAIL PROTECTED]
http://vis-www.cs.umass.edu/~heller || [EMAIL PROTECTED]
http://www.deepsoft.com /\FidoNet: 1:321/153
------------------------------
From: [EMAIL PROTECTED] (Steve)
Subject: Re: Need some tools..
Date: 25 Oct 2000 11:48:27 GMT
Reply-To: [EMAIL PROTECTED]
On Wed, 25 Oct 2000 09:20:50 +0200, Nils Olav Sel�sdal wrote:
>
>Steve <[EMAIL PROTECTED]> wrote in message
>news:[EMAIL PROTECTED]...
>> On Tue, 24 Oct 2000 08:27:34 +0200, Nils Olav Sel�sdal wrote:
>> >Now, for me to start using linux at work i need some tools.
>> >Do they exist? where can i get them?(Should be GUI programs of course...)
>>
>> Sounds like you need MS Windows.
>>
>> >1. A mailclient that kan work with Exchange Server..
>It uses a microsoft protocol... not pop or imap (it can do ofcourse...)
>> Whats SourceSafe, and why do you need to watch movies at work?
>I dont need the videos at work, but i would like a player anyway...
>SourceSafe is a control version system, much like CVS...
RCS (Revision Controle System), comes with most distros. It works ok
with emacs and is straightforward to set up, but from what I hear
it's not suitable for multi users.
--
Cheers
Steve email mailto:[EMAIL PROTECTED]
%HAV-A-NICEDAY Error not enough coffee 0 pps.
web http://www.zeropps.uklinux.net/
or http://start.at/zero-pps
11:39am up 14 days, 13:00, 2 users, load average: 1.00, 1.00, 1.00
------------------------------
From: "Alim" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.setup
Subject: RedHat 7 and ABIT KT7-RAID
Date: Wed, 25 Oct 2000 11:55:53 +0100
OK. I've been using RedHat since version 5.0 and have just bought a new PC.
Now Windows2K and 98SE as well as 95 are all cool with the hardware, but
Linux has a few 'problems'. Here goes...
My motherboard is an ABIT KT7-RAID and the HD is an IBM 75GXP 30Gb.
Everything else installed fine before. I will try to remove the first
partition on the disk and reinstall linux there, but don't know if it'll
work...
1. It won't install directly to the HD on the HPT370. Obviously, so I moved
it to IDE1:master.
2. Linux installs on IDE1:master, but won't boot afterwards.
The plan was to install on IDE1 then move disk back to RAID1 after
recompiling with support for HPT370. I have 19Gb partitioned space with
Win2k and 98, and wondered if linux requires boot sector below this space.
Also, when recovery mode from boot Cd is run and i try to lilo the disk, it
says no access to /dev/hda is available. While it's still on IDE1!
Answers appreciated.
alim
------------------------------
From: Robert Heller <[EMAIL PROTECTED]>
Subject: Re: disk defrag?
Date: Wed, 25 Oct 2000 11:01:17 -0000
dan <[EMAIL PROTECTED]>,
In a message on Tue, 24 Oct 2000 22:08:12 -0400, wrote :
d> Hi,
d>
d> I was just wondering, if there's such a thing as "disk defragmenter" in
d> linux, or something similar to windows', "disk defragmenter"
FAQ time:
Linux does not need a disk defragmenter the way
MS-DOS/MS-Windows does. Disk fragmentation is a *feature* of the FAT
file system.
d>
d> Dan
d>
d>
--
\/
Robert Heller ||InterNet: [EMAIL PROTECTED]
http://vis-www.cs.umass.edu/~heller || [EMAIL PROTECTED]
http://www.deepsoft.com /\FidoNet: 1:321/153
------------------------------
From: Robert Heller <[EMAIL PROTECTED]>
Subject: Re: format the swap patition
Date: Wed, 25 Oct 2000 11:01:18 -0000
* Tong * <[EMAIL PROTECTED]>,
In a message on 24 Oct 2000 23:55:33 -0300, wrote :
*T*> Hi,
*T*>
*T*> How can I format a linux swap partition for linux to use?
*T*>
*T*> I found that one of my swap linux is not functioning (is it so?):
*T*>
*T*> $ cat /proc/swaps
*T*> Filename Type Size Used Priority
*T*> /dev/hda1 partition 514040 2344 -1
*T*> /dev/hdb1 partition 514040 0 -2
If it is showing up in /proc/swaps, it is available for use. If you
really want to use to this:
Fire up X11, fire up Gnome.
The open a connection to the internet.
Open up 12 netscape windows and visit 12 sites with JavaApplets. Fire
up RealPlayer and tune into a InterNet radio station. Even better: find
some place with a live video feed.
Open up a xterm window and go to /usr/src/linux, configure and
re-compile the kernel.
Fire up StarOffice and WordPerfect. Fire up ghostview, xpdf, and Adobe
Arcobat Reader and open a large PDF file in each.
It is only fair if you do ALL of this AT THE SAME TIME, with all of
these tasks running concurrently.
Now watch your swap partitions start to get used.
Oh, it helps if you remove MOST of your RAM. Leave about 16 meg of
physical RAM.
*T*>
*T*> Thanks
*T*>
*T*> --
*T*> Tong (remove underscore(s) to reply)
*T*> http://members.xoom.com/suntong001/
*T*> - All free contribution & collection & music from the heavens
*T*>
--
\/
Robert Heller ||InterNet: [EMAIL PROTECTED]
http://vis-www.cs.umass.edu/~heller || [EMAIL PROTECTED]
http://www.deepsoft.com /\FidoNet: 1:321/153
------------------------------
From: muzh <[EMAIL PROTECTED]>
Subject: Re: Linux killed my computer
Date: Thu, 26 Oct 2000 00:02:08 +1300
I think most of the replies missed the fact that the computer froze
*before* any operating system could be booted.
The usual way to diagnose this is to try to reboot after removing
expansion cards, hard disks etc one by one, until the computer suddenly
boots again. The last object removed is then the one which caused the
fault -- ?IRQ conflict ?faulty card or object ?configured wrong etc.
I had this happen twice -- once was a hard disk too many, and another
time it was an IRQ conflict with a PCI sound card, solved by putting it
in a different slot.
[EMAIL PROTECTED] wrote:
>
> After using Disk Druid to partition my harddrive, the Linux setup asked
> me to reboot. Upon rebooting, the computer froze just after displaying
> that it had found the various drives and their sizes. The computer
> will not boot to an operating system to either the hard drive or the
> floppy drive. I tried tearing out all the NIC's and such to see if
> there was a conflict somehow but of course that didn't work. The bios
> sees the harddrive and I can access the setup utility, but the computer
> will not boot. I now have a big metal paperweight. Does anyone know
> how Linux killed my computer and how I can revive it?
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
--
Never trust a man in a suit
cll
------------------------------
From: Fabrice Colin <[EMAIL PROTECTED]>
Subject: Upgrading RH6.0 to RH7.0 (XFree86 3.3.6/Voodoo)
Date: Wed, 25 Oct 2000 12:07:28 +0100
Hi all,
I am currently running an updated RH6.0 with XFree86 3.3.6 and I am
thinking about upgrading to RH7.0.
As I ve got a Voodoo3 3000 AGP, I want to keep XFree86 3.3.6 to be able
to play games with Glide2 (although I have heard the latest tdfx
drivers perform much better).
Basically I am wondering if the upgrade program is clever enough to
detect my current setup and install version 4.0 in parallel so that I
could use whatever version I want. I know this is possible in the case
of a fresh install...
Does anybody have experience with that ?
Any tip/comment welcome.
Cheers,
Fabrice
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: X-CD-Roast
Date: Wed, 25 Oct 2000 11:02:27 GMT
Rich, I read something recently about cdrecord version incompatability.
I'll see if I can find that message again. I am also running RH7. It
seems like everything else works but the cdrecord program.
P.S. Also let me know if you find the answer as we seem to have the same
problem.
Thanks,
-Brian
In article <[EMAIL PROTECTED]>,
Rich Birch <[EMAIL PROTECTED]> wrote:
> Please let me know if you find out what the problem is because I've
been
> getting exactly the same error messages since RH7 with xcdroast 0.98.
I
> too have a mitsumi drive, but it's a 4804. Perhaps we should buy a
decent
> make!
>
> Rich
>
> [EMAIL PROTECTED] wrote:
>
> > Has anyone seen the errors below when running X-CD-Roast? I am
running
> > an IDE CD-R as a SCSI device and the CDR seems to be recognized
fine. I
> > can read the source CD no problem. When I try to write I get these
> > errors every time. I have used 5 new CD-recordable CD's just to make
> > sure it wasn't the media. I am using cdrecord 1.9.
> >
> > Thanks in advance,
> >
> > -Brian
> >
> > pregap1: -1
> > Cdrecord 1.8.1 (i686-pc-linux-gnu) Copyright (C) 1995-2000 J�rg
> > Schilling
> > TOC Type: 1 = CD-ROM
> > scsidev: '0,1,0'
> > scsibus: 0 target: 1 lun: 0
> > Using libscg version 'schily-0.1'
> > atapi: 1
> > Device type : Removable CD-ROM
> > Version : 0
> > Response Format: 1
> > Vendor_info : 'MITSUMI '
> > Identifikation : 'CR-2801TE '
> > Revision : '1.07'
> > Device seems to be: Philips CDD-522.
> > Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
> > Driver flags : SWABAUDIO
> > Drive buf size : 409600 = 400 KB
> > FIFO size : 8388608 = 8192 KB
> > Track 01: data 384 MB padsize: 30 KB
> > Total size: 441 MB (43:43.48) = 196761 sectors
> > Lout start: 441 MB (43:45/36) = 196761 sectors
> > Current Secsize: 2352
> > ATIP info from disk:
> > Indicated writing power: 4
> > Is not unrestricted
> > Is not erasable
> > ATIP start of lead in: -11640 (97:26/60)
> > ATIP start of lead out: 337350 (75:00/00)
> > Disk type: Long strategy type (Cyanine, AZO or similar)
> > Manuf. index: 3
> > Manufacturer: CMC Magnetics Corporation
> > Blocks total: 337350 Blocks current: 337350 Blocks remaining: 140589
> > RBlocks total: 349030 RBlocks current: 349030 RBlocks remaining:
152269
> > Starting to write CD/DVD at speed 1 in write mode for single
session.
> > Waiting for reader process to fill input buffer ...
> > input buffer ready.
> > cdrecord: Input/output error. mode select g1: scsi sendcmd:
retryable
> > error
> > CDB: 55 10 00 00 00 00 00 00 3C 00
> > status: 0x2 (CHECK CONDITION)
> > Sense Bytes: 70 00 05 00 00 00 00 06 00 00 00 00 26 00 00 00
> > cdrecord: Warning: using default CD write parameter data.
> > Sense Key: 0x5 Illegal Request, Segment 0
> > cdrecord: Cannot open new session.
> > Sense Code: 0x26 Qual 0x00 (invalid field in parameter list) Fru 0x0
> > Sense flags: Blk 0 (not valid)
> > cmd finished after 0.001s timeout 200s
> > Mode Select Data 00 10 00 00 05 32 02 00 00 00 00 00 00 00 00 00 00
00
> > 00 96 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00
> > 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> > cdrecord: fifo had 255 puts and 0 gets.
> >
> > Sent via Deja.com http://www.deja.com/
> > Before you buy.
>
>
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Eric <[EMAIL PROTECTED]>
Subject: Re: linux memory problem
Date: Wed, 25 Oct 2000 13:31:46 +0200
Reply-To: [EMAIL PROTECTED]
jobar9 wrote:
>
> Hi
> I have just installed Redhat 7.0 in one of the partitions in my hard disk.
> Since the beginning, the installation was very slow but eventually the
> installation was done. I have 128 M of RAM but when I used free command, it
> showed that the RAM was only 14 M. I tried adding append="mem=127M" in
> lilo.conf as a first line but to no avail. My computer is Gateway E-1400 and
> I have check BIOS to see if there is anything that I can do but I can't even
> highlight the memory option. Someone please help. Thanks.
It may be needed to switch off an "enable memory hole" option in the
BIOS.
Eric
------------------------------
From: Anton Dischner <[EMAIL PROTECTED]>
Subject: Q: Suse: Where is my env_variable ?
Date: Wed, 25 Oct 2000 13:43:30 +0200
Hi Linux experts,
i try to run a program as setuid-root.
When i call it, the env-variable 'ld_library_path' which i need
to connect to a Oracle-DB gets lost.
It should be inherited.
I put it in .bashrc in /root etc.
I do not want to use sudo.
Any ideas, hints?
Thanks in advance,
Toni
Linux is Suse 7.0, 2.2.16-SMP
it works on Irix64
--
For new monitor nail here [x]
Posen fuer Anfaenger: http://www.w-klch.med.uni-muenchen.de/dischner
------------------------------
From: Jean-David Beyer <[EMAIL PROTECTED]>
Subject: Re: Out of room in /var partition, log file no longer loggin
Date: Wed, 25 Oct 2000 07:58:26 -0400
mpulliam wrote:
> On Tue, 24 Oct 2000 16:54:24 -0400,
> Jean-David Beyer <[EMAIL PROTECTED]> wrote:
> >Vlar Schreidlocke wrote:
> >
> >> My /var partition is apparently
> full and I don't have any new log
> >> entries in /var/log/messages
> since the partition filled up.
> >
> >Do you leave your machine up 24/7?
> If so, most distributions (Red Hat,
> >for sure) automatically keep
> /var/log cleaned up by running a daemon
> >process (logrotate) every night at around 4AM.
>
> Note: this happens by default
> around 4 am GMT (if you have your
> system set to GMT).
Sounds strange to me. My other system runs on local time (EST
in the winter and EDST in the summer), but it runs at the times
specified in /etc/crontab. (It runs that way because I must run
that other OS on that machine sometimes.) On this machine, I
run UTC (GMT), but it still runs at the times specified in
/etc/crontab. I have changed the /etc/crontab settings a little
so that things such as my tape backups are all finished before
I turn on the monitor in the morning.
> Translate that to your local time to
> find out what time the daemon runs on your machine.
> You may simply be able to leave the computer running
> for a few hours one or two days a week, not 24/7,
> with no editing to logrotate at all.
While you need not run 24/7 (24/1 might be enough), I think you
may have something wrong with your clock if the times in your
/etc/crontab do not cause things to happen at the time it says
on the clock on your wall.
> Mine runs at 11 pm local time and it's easy to
> have the system turned on at that hour, but shut
> it down afterward so I do not waste power running
> it all night while I am sleeping.
>
> In the interest of keeping it simple,
> MP
>
--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ Registered Machine 73926.
/( )\ Shrewsbury, New Jersey
^^-^^ 7:50am up 19:10, 2 users, load average: 2.29, 2.21, 2.01
------------------------------
** 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 (and comp.os.linux.misc) via:
Internet: [EMAIL PROTECTED]
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
******************************