Linux-Misc Digest #120, Volume #19 Sat, 20 Feb 99 23:13:09 EST
Contents:
Re: floating point accuracy on Linux? (Troy Loveday)
Serial Comm software for UNIX (Mohd-Hanafiah Abdullah)
Re: Run video clips (Roy Stogner)
Re: formation linux!!! (sean mc cann)
Printing Man Pages to Text File ("Reidar Sjoen")
Re: hdparm command (Tim Moore)
Re: Printing Man Pages to Text File (Micha� Kuratczyk)
Re: Really slow tar (Siegfried Pohl)
Re: making an image of a fat partition? (for backup/restore purposes?) (Tim Moore)
HELP! parallel port cd-r drive not working (Mark Ramos)
Re: Scary, no? (Steve Gage)
Re: Detecting CD (Mark Ramos)
Re: How to low-level format a harddrive (Michael Trausch)
Re: Best Free Unix? (why FreeBSD?) (Michael Trausch)
----------------------------------------------------------------------------
From: Troy Loveday <[EMAIL PROTECTED]>
Subject: Re: floating point accuracy on Linux?
Date: 19 Feb 1999 22:56:13 GMT
Georg Schwarz <[EMAIL PROTECTED]> wrote:
>sure, I expect so, but still I think 0.2*5-1 should be output as 0.0 and
>not -5.551115e-17.
Given that the value 0.2 cannot be _exactly_ represented in the 80x87
floating point representation (since it uses a binary mantissa), your
result shouldn't be too surprising.
[I think the reason many people are surprised is that they are
accustomed to using calculators, many of which store the mantissa in
base 10.]
--
Troy Loveday e-mail: <[EMAIL PROTECTED]>
ASIC Product Development / DTM vox: (972) 480-1497
Texas Instruments, Inc. fax: (972) 480-2356
Dallas, Texas "Don't Tread On Me!"
------------------------------
From: [EMAIL PROTECTED] (Mohd-Hanafiah Abdullah)
Crossposted-To: comp.unix.solaris
Subject: Serial Comm software for UNIX
Date: 20 Feb 1999 08:50:43 +0800
Hi:
I used to use a software program to do serial communication between the Sun
Sparc running Solaris and a Motorola 68K board that I built. Now I've
forgotten the name of the software and couldn't seem to find it.
Someone told me it's a software that came bundled with Solaris.
I know it's not minicom or kermit or seyon. I like the software for its
upload/download features which worked the first time I tried it.
Would appreciate if anyone could refresh my memory on this.
Don't you hate it when you forget something like this.
Thanks for any tips. :-)
Napi
------------------------------
From: [EMAIL PROTECTED] (Roy Stogner)
Subject: Re: Run video clips
Date: 20 Feb 1999 00:49:19 GMT
On Fri, 19 Feb 1999 09:44:52 -0700, Joey Juyun Cho wrote:
>Is there any way to run video clips on Linux system.
For mpeg 2 clips and video CDs, go to http://www.mpegtv.com/
For .mov, .avi, etc go to
http://www.tm.informatik.uni-frankfurt.de/xanim/
---
Roy Stogner
------------------------------
From: sean mc cann <[EMAIL PROTECTED]>
Subject: Re: formation linux!!!
Date: Sat, 20 Feb 1999 18:55:43 +0000
Reply-To: [EMAIL PROTECTED]
Raymond your a nazi.
Harry my French is brutal so could you please repost in English and I'll
see if I can help you.
Sean
Raymond Doetjes wrote:
>
> English please???
> You are on the fucking internet hear the language is english and not
> french!
>
> Raymond
>
> [EMAIL PROTECTED] wrote:
> >
> > Salut,
> >
> > Je recherche une formation sous linux (reseaux, script, programmation en
> > C, commande et configuration de base) sur paris si vous connaissez
> > quelques choses pourriez vous m'ecrire � [EMAIL PROTECTED]
> > mercis
> > Harry--
------------------------------
From: "Reidar Sjoen" <[EMAIL PROTECTED]>
Subject: Printing Man Pages to Text File
Date: Fri, 19 Feb 1999 19:50:57 -0500
Anyone know how I can print out a man page to a text file?
I want to print out the bash entry, and my Canon BJC printer is on another
PC.
(I don't want to even think about setting it up on the Linux box yet)
I tried # man -t bash > bashman.txt, but it was a mess.
I tried cut and paste with xman, but that doesn't seem to be a go either.
Thanks
-- Reidar
[EMAIL PROTECTED]
ICQ# 17563026
------------------------------
Date: Sat, 20 Feb 1999 19:10:51 -0800
From: Tim Moore <[EMAIL PROTECTED]>
Subject: Re: hdparm command
The actual command you want is 'hdparm -tT /dev/hdaX /dev/hdaX /dev/hdaX'
where X is a particular partition number. Take a three run average.
The reason is that hdparm only tests read speed for the first 32MB of the
partition. Using '/dev/hda' would test the fastest (outside) cylinders
giving a false impression of overall disk speed. The difference between
the outermost and innermost partitions can be significant. For example:
# fdisk -l /dev/hda
Disk /dev/hda: 255 heads, 63 sectors, 1021 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 62 497983+ 6 DOS 16-bit >=32M
/dev/hda2 63 1021 7703167+ 5 Extended
/dev/hda5 63 68 48163+ 83 Linux native
/dev/hda6 69 170 819283+ 6 DOS 16-bit >=32M
/dev/hda7 171 178 64228+ 6 DOS 16-bit >=32M
/dev/hda8 179 433 2048256 6 DOS 16-bit >=32M
/dev/hda9 434 688 2048256 6 DOS 16-bit >=32M
/dev/hda10 689 693 40131 82 Linux swap
/dev/hda11 694 834 1132551 83 Linux native
/dev/hda12 835 873 313236 83 Linux native
/dev/hda13 874 924 409626 83 Linux native
/dev/hda14 925 1021 779121 83 Linux native
[outside]# hdparm -tT /dev/hda1 /dev/hda1 /dev/hda1
/dev/hda1:
Timing buffer-cache reads: 64 MB in 0.61 seconds =104.92 MB/sec
Timing buffered disk reads: 32 MB in 2.95 seconds =10.85 MB/sec
/dev/hda1:
Timing buffer-cache reads: 64 MB in 0.64 seconds =100.00 MB/sec
Timing buffered disk reads: 32 MB in 2.90 seconds =11.03 MB/sec
/dev/hda1:
Timing buffer-cache reads: 64 MB in 0.62 seconds =103.23 MB/sec
Timing buffered disk reads: 32 MB in 2.96 seconds =10.81 MB/sec
[inside]# hdparm -tT /dev/hda14 /dev/hda14 /dev/hda14
/dev/hda14:
Timing buffer-cache reads: 64 MB in 0.64 seconds =100.00 MB/sec
Timing buffered disk reads: 32 MB in 4.22 seconds = 7.58 MB/sec
/dev/hda14:
Timing buffer-cache reads: 64 MB in 0.68 seconds =94.12 MB/sec
Timing buffered disk reads: 32 MB in 3.81 seconds = 8.40 MB/sec
/dev/hda14:
Timing buffer-cache reads: 64 MB in 0.69 seconds =92.75 MB/sec
Timing buffered disk reads: 32 MB in 3.81 seconds = 8.40 MB/sec
[drive identification]# hdparm -i /dev/hda
/dev/hda:
Model=Maxtor 88400D8, FwRev=NAVX171F, SerialNo=L80EEP7A
Config={ Fixed }
RawCHS=16278/16/63, TrkSize=0, SectSize=0, ECCbytes=20
BuffType=3(DualPortCache), BuffSize=256kB, MaxMultSect=16, MultSect=off
DblWordIO=no, maxPIO=2(fast), DMA=yes, maxDMA=2(fast)
CurCHS=16278/16/63, CurSects=16408224, LBA=yes, LBAsects=16408224
tDMA={min:120,rec:120}, DMA modes: mword0 mword1 mword2
IORDY=on/off, tPIO={min:120,w/IORDY:120}, PIO modes: mode3 mode4
[defaults]# hdparm -v /dev/hda
/dev/hda:
multcount = 0 (off)
I/O support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
nowerr = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 1021/255/63, sectors = 16408224, start = 0
> What should I expect when using a EIDE at something like
> PIO mode 1 vs. PIO mode 3 VS UDMA etc...
> How about two different drives with the same settings like
It will reflect these changes. BTW i've played with the hdparm settings
extensively and for my drives the performance difference is ~1% better than
defaults at boot time. BIOS is set to UDMA-2 however, so my guess is that
it's at max already. Your mileage etc.
--
[Replies: yy -> y]
"Everything is permitted. Nothing is forbidden."
WS Burroughs.
------------------------------
From: [EMAIL PROTECTED] (Micha� Kuratczyk)
Subject: Re: Printing Man Pages to Text File
Reply-To: [EMAIL PROTECTED]
Date: Sat, 20 Feb 1999 01:04:53 GMT
Reidar Sjoen wrote:
>Anyone know how I can print out a man page to a text file?
man man | colcrt - > file
--
Micha� Kuratczyk
------------------------------
From: [EMAIL PROTECTED] (Siegfried Pohl)
Crossposted-To: comp.os.linux.development.system
Subject: Re: Really slow tar
Date: 19 Feb 1999 21:37:04 GMT
Jayasuthan ([EMAIL PROTECTED]) wrote:
> I did something ... dangerous ..
> try some setting on hdparm on you hard disk... It works for me.
> man hdparm
Interesting! I've encountered the same problem at mine since I changed my dis
from SuSe to RH5.0 about a year ago or so.
In the man page about hdparm, they say hdparm is just for IDE Drives, mine
are both SCSI, I dont have any IDE stuff at all, so it cannot be something
to do with IDE drivers in the kernel?!
MfG, Siggi
BTW: I downgraded to tar Version somethingreallyold but there was the same
prob...
> Daren Scot Wilson wrote:
> >
> > tar runs very slowly on my machine. This started about a month ago, after
> > reloading linux (RH5.0) and upgrading the kernel, compilers, etc. Everything
> > else runs normal. There are no symptoms other than that tar runs slow. It's
> > not unzipping - I can run gunzip in a few seconds, then tar -xzvf takes
> > forever. The -v option shows one to maybe six files flying by, then many
> > seconds paused, then one to a few files, the another pause, etc.
> >
> > How slow? A tarball several meg in size used to untar in just a minute or two
> > or three, depending on CPU load. Now i have time to eat lunch, see a movie,
> > see another movie... Linux kernel 2.2.1 took all hours overnight to untar.
> >
> > Once the stuff is untarred, it's good. I'm running a 2.2.1 kernel, 2.1 glibc,
> > and the latest xterm, bash, netscape all having been slowly untarred.
> >
> > Tar, and nearly everything else, was compiled with gcc 2.8.1, using glibc 2.0.6
> > and since today, glibc 2.1.
> >
> > Computer is a PII-400, 96RAM, 6G HD nowhere near full, 100M swap. Plenty of
> > raw material - nothing else runs anomalously slow.
> >
> > Any good diagnostics suggestions? Fixes?
> >
> > --
> > Daren Scot Wilson
> > [EMAIL PROTECTED]
> > www.newcolor.com
> > ----
> > "A ship in a harbor is safe, but that is not what ships are built for"
> > -- William Shedd
--
=====================================================================
Siegfried Pohl
http://www.in-berlin.de/User/czbbs
[EMAIL PROTECTED]
Tel: +49 3381 718056
Fax: +49 3381 718058
> Only wimps use tape backups; real men put their software on <
> ftp-servers and let the rest of the world mirror it. <
> (C) Linus Torvalds <
=====================================================================
------------------------------
Date: Sat, 20 Feb 1999 18:53:26 -0800
From: Tim Moore <[EMAIL PROTECTED]>
Subject: Re: making an image of a fat partition? (for backup/restore purposes?)
Works. This also works:
dd if=/dev/hda1 bs=512 | zip vfat_backup.zip -
In this case the output file is 1/2 the size.
If you depend on this for root crash recovery make sure unzip is available
and runs without /usr mounted. The command 'unzip -p test.zip | dd
of=/dev/hda5 bs=512' _should_ work but I have not tested it personally.
I don't remember if the dd operation grabs the MBR, but rerunning lilo
prior to reboot should fix up regardless.
> Hi, i have a 500 MB partition which i boot from and i was wondering if i made
> an image of that partition (dd if=/dev/hda1 of=/vfat_bakup.img)<please tell
> me if that won't work> would i be able to use that to resotore the partition?
> (somehting like cat vfat_bakup.img > /dev/hda1) I haven't tried this and
> don't really want to without asking first, it seems like it should work in
> theory though.
--
[Replies: yy -> y]
"Everything is permitted. Nothing is forbidden."
WS Burroughs.
------------------------------
From: Mark Ramos <[EMAIL PROTECTED]>
Subject: HELP! parallel port cd-r drive not working
Date: Fri, 19 Feb 1999 16:33:06 -0800
I am trying to get a parallel port cd-r drive to work in Linux and
haven't been successful. Output from dmesg reports it as a Yamaha
crw4261. I downloaded the latest cdrecord program (1.6.1) and I get
the following errors when trying to create a dummy create. It is also
set to speed=1. I also tried a different disk and I received the same
problem.
<cut>
Blocks total: 333750 Blocks current: 333750 Blocks remaining: 304892
Starting to write CD/DVD at speed 1 in dummy mode for single session.
Last chance to quit, starting dummy write in 1 seconds.
Waiting for reader process to fill input-buffer ... input-buffer ready.
Starting new track at sector: 0
/opt/schily/bin/cdrecord: Input/output error. write_g1: scsi sendcmd:
retryable
error
CDB: 2A 00 00 00 04 40 00 00 10 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 21 00 00 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x21 Qual 0x00 (logical block address out of range) Fru 0x0
Sense flags: Blk 0 (not valid)
resid: 32768
cmd finished after 2.177s timeout 40s
write track data: error after 2228224 bytes
Sense Bytes: 70 00 00 00 00 00 00 0A 00 00 00 00 00 00 00 00 00 00
Writing time: 36.985s
Fixating...
WARNING: Some drives don't like fixation in dummy mode.
/opt/schily/bin/cdrecord: faio_wait_on_buffer for writer timed out.
Fixating time: 244.498s
/opt/schily/bin/cdrecord: fifo had 196 puts and 69 gets.
/opt/schily/bin/cdrecord: fifo was 0 times empty and 2 times full, min
fill was 71%.
<cut>
I tried changing the mode for the parallel port in CMOS but it only has
options for flexible and standard. It was initially on flexible and
changed it to standard but I still have the same problem.
Help is appreciated!
Thanks,
Mark Ramos
[EMAIL PROTECTED]
------------------------------
From: Steve Gage <[EMAIL PROTECTED]>
Subject: Re: Scary, no?
Date: Sat, 20 Feb 1999 00:43:27 +0000
"Mark J. Straka" wrote:
> There are over 16 thousand messages in this and other similar groups
> (comp.os.linux.setup; etc), but precious few "answers" to these pleas
> for help!
> Cool patience seems to be crucial. |:^{
I don't agree with your "precious few answers". If 15,900 of the
questions are the same as the other 100 over and over (which seems to be
the case), then 100 answers should do it. As someone who is moveing from
newbie status over to semi-capable, I find that many of the questions
posed could be answered by even a cursory attempt at looking at the
online documentation. Some people try, and then ask for help, and they
get it, but there are a lot of questions that are just the same ol'
FAQ's, and are answered there. A little bit of self-reliance seems to be
crucial :-)
- Steve
------------------------------
From: Mark Ramos <[EMAIL PROTECTED]>
Subject: Re: Detecting CD
Date: Fri, 19 Feb 1999 16:39:50 -0800
Stuart Graham wrote:
> Does anyone know of a system call in Linux to detect whether a CD has
> been put in to the CDROM drive, or to detect the difference between CDs
> in the drive if they've not been mounted?
>
> I'm running RH5.2 on an Intel.
>
> Thanks,
> Stuart
That would be nice. Kind of like vold in Solaris....
------------------------------
From: Michael Trausch <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: Re: How to low-level format a harddrive
Date: Sat, 20 Feb 1999 21:38:25 -0500
=====BEGIN PGP SIGNED MESSAGE=====
Hash: SHA1
Isn't it all (E)IDE hard drives that get damaged if you attempt to
low-level format 'em, and the SCSI ones that you have to lowlevel format?
- Mike
=====================================================================
Michael B. Trausch [EMAIL PROTECTED]
V: (419) 838-8104 F: (815) 846-9374
"Curiosity is the very basis of education and if you tell me that
curiosity killed the cat, I say only the cat died nobly."
- Arnold Edinborough
If you do not have my public PGP key, you are encouraged to obtain it
from my website at http://www.wcnet.org/~mtrausch/mt_pgp_key.gz. You
need to have PGP 5.0i or newer to use the key.
=====================================================================
On 20 Feb 1999, Torsten Jenkner wrote:
> with modern harddrives it is impossible to low-level format them. If you do
> so, you would destroy the drive completely. The question is what problems
> you have exactly. Are there any problems on hardware? Are there any tracks
> unreadable and/or not writeable? give us more information.
>
> Torsten Jenkner
>
> A.G. schrieb in Nachricht ...
> >Hi all:
> >
> >I suspect I have problems with my harddrive. Can somebody advise about the
> >subj?
> >
> >Thanx for any input,
> >Arcady
> >
>
>
>
>
=====BEGIN PGP SIGNATURE=====
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv
iQA/AwUBNs9xmhLC9wZKsFmxEQISowCgkfLGrKIVLdNDsF7aLrl45shB61IAniZD
FHjxSf8Znd59TpyrB6Jlq6P5
=PY76
=====END PGP SIGNATURE=====
------------------------------
From: Michael Trausch <[EMAIL PROTECTED]>
Crossposted-To:
comp.unix.questions,comp.unix.advocacy,comp.unix.misc,comp.unix.bsd.freebsd.misc
Subject: Re: Best Free Unix? (why FreeBSD?)
Date: Sat, 20 Feb 1999 21:58:14 -0500
=====BEGIN PGP SIGNED MESSAGE=====
Hash: SHA1
I'm curious, I have a copy of the GPL (I run Linux, and it's readily
available on my system ;))...However, I am not sure where to find other
licenses such as the BSD license. I am reading all of this discussion,
with only knowing exactly what one license says... can someone point me to
the BSD license (and other licenses that are for "free" unices, if there
are any)? I would appreciate it.
- Mike
=====================================================================
Michael B. Trausch [EMAIL PROTECTED]
V: (419) 838-8104 F: (815) 846-9374
"Curiosity is the very basis of education and if you tell me that
curiosity killed the cat, I say only the cat died nobly."
- Arnold Edinborough
If you do not have my public PGP key, you are encouraged to obtain it
from my website at http://www.wcnet.org/~mtrausch/mykey.zip. You need
to have PGP 5.0i or newer to use the key.
=====================================================================
On 20 Feb 1999, John S. Dyson wrote:
> In article <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] (Richard Steiner) writes:
> > Here in comp.os.linux.misc, Theo de Raadt <[EMAIL PROTECTED]>
> > spake unto us, saying:
> >
> >>[EMAIL PROTECTED] (John S. Dyson) writes:
> >>
> >>> I strongly suggest that people really read licenses, and get help from
> >>> their legal staff if they need it.
> >>
> >>By the way, I completely agree with John.
> >>
> >>People should read the licences very carefully. You'll discover that
> >>a lot of licences are not compatible.
> >
> > Yes, this is very important I think, and regardless of one's position
> > regarding other matters. It's very important to understand the license
> > attached to code you are using. Perhaps even viewing.
> >
> It would be a *wonderful* project to have an unbiased and non-idealogical
> site on the various licenses and terms. Not only should the first order
> effects be explained, but subsequent effects on other redistributors and
> programmers. Also, a legal clarification of derived works and how
> various licenses affect the derived works would be really cool.
>
> Except for some superficial issues these discussions mostly irritate
> the involved, and probably only slightly open the eyes of the peripheral
> contributors. If non-idealogical sites would have information, then
> more sides of the argument would be provided. This is NOT a BSD vs. GPL
> issue, but has LOTS more dimensions, and also has impact on the future
> of programming, and how it is paid for.
>
> --
> John | Never try to teach a pig to sing,
> [EMAIL PROTECTED] | it makes one look stupid
> [EMAIL PROTECTED] | and it irritates the pig.
>
>
=====BEGIN PGP SIGNATURE=====
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv
iQA/AwUBNs91HhLC9wZKsFmxEQItFgCg7TR7KEdCE/LW5tEPCyXg8wpaYxwAn3Cr
UthxJeZEv0OdwzxgDK3kmA90
=hlS0
=====END PGP SIGNATURE=====
------------------------------
** 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
******************************