Linux-Misc Digest #9, Volume #24                 Fri, 31 Mar 00 14:13:02 EST

Contents:
  Re: Partition disappeared? ([EMAIL PROTECTED])
  Re: compare big files with kind of checksum ([EMAIL PROTECTED])
  Re: xdvi fails to display inserted figures (steve)
  Re: RedHat gets "echo" wrong (Bob Tennent)
  Error reading for memory
  Erase contents of windows swap file? (James)
  Re: Duplex printing (James Hammerton)
  can Star Impress play movies in foreground? (steve)
  Re: SCSI and IDE disk problems ("Knut A. Nilsen")
  redirecting output question (Craig Shields)
  Re: Partition disappeared? ("Jordan Hiller")
  Re: Question about LILO uninstall (igg123)
  Re: Precision of Linux's libm??? ([EMAIL PROTECTED])

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

From: [EMAIL PROTECTED]
Subject: Re: Partition disappeared?
Date: Fri, 31 Mar 2000 17:20:12 GMT

And verily, didst Jordan Hiller hastily scribble thusly:
> David .. <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...

>> Try  "ls /usr/bin/"  without quotes.
>>

> I get "no file or directory found" or something to that effect. As I said,
> everything seems to be gone from /usr but I had some data in there that I'd
> really like to get back!

Try "mount /usr" (without the quotes) 
If that fails try "fdisk -l".
This should list all partitions on your hard disk(s).
Then look at your /etc/fstab to see if /usr is being mounted correctly.

-- 
______________________________________________________________________________
|   [EMAIL PROTECTED],uk   | "Are you pondering what I'm pondering Pinky?"   |
|   Andrew Halliwell BSc   |                                                 |
|            in            | "I think so brain, but this time, you control   |
|     Computer Science     |  the Encounter suit, and I'll do the voice..."  |
==============================================================================
|GCv3.12 GCS>$ d-(dpu) s+/- a C++ US++ P L/L+ E--  W+ N++ o+ K PS+ w-- M+/++ |
|PS+++ PE- Y t+ 5++ X+/X++ R+ tv+ b+ DI+ D+ G e++ h/h+ !r!|  Space for hire  |
==============================================================================

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

From: [EMAIL PROTECTED]
Subject: Re: compare big files with kind of checksum
Date: Fri, 31 Mar 2000 17:20:14 GMT

And verily, didst peter pilsl hastily scribble thusly:

> I copy BIG files from one machine to another over a bad 
> network (~30minutes per file) and want to check after if the 
> targetfile is really the same then the original.
> I cant verify accros the net so I was thinking about creating 
> some kind of checksum (I just remembered this from old 
> assembler-time, where you had them to enter the code 
> correctely) of each file and then compare the checksum and if 
> the checksum is long enough, chances for the files beeing 
> equal when the checksum is equal should be ok.

> any idea where to get such checksum-thing ?

You could use zip, to zip the large files before transfer.
Zip uses CRC (cyclic redundancy check), which is more accurate.

It also has the advantage that it'll reduce the size of the file, and thus
time of the transfer.

-- 
______________________________________________________________________________
|   [EMAIL PROTECTED],uk   | "Are you pondering what I'm pondering Pinky?"   |
|   Andrew Halliwell BSc   |                                                 |
|            in            | "I think so brain, but this time, you control   |
|     Computer Science     |  the Encounter suit, and I'll do the voice..."  |
==============================================================================
|GCv3.12 GCS>$ d-(dpu) s+/- a C++ US++ P L/L+ E--  W+ N++ o+ K PS+ w-- M+/++ |
|PS+++ PE- Y t+ 5++ X+/X++ R+ tv+ b+ DI+ D+ G e++ h/h+ !r!|  Space for hire  |
==============================================================================

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

From: steve <[EMAIL PROTECTED]>
Subject: Re: xdvi fails to display inserted figures
Date: Fri, 31 Mar 2000 10:25:58 -0700

Ilkka Karasalo wrote:

> I have used the TeX typesetting system coming with the
> RH Linux distributions for some time, and have the
> following problem:
>
> In newer RH releases (ca 5.2 and on) the  xdvi  previewer
> does not display postscript files inserted in the tex (latex)
> document with 'epsffile' . Instead of the figure, a blank
> space is displayed.
>
> The xdvi of earlier RH releases did not have this problem,
> and my solution has so far been to simply replace all
> the  'tetex'  packages in RH 5.2 and later with that in
> ca. RH5.1.
>
> There must be a better solution.
>
> Ilkka Karasalo
>
> FOA 64                          KTH, MWL
> Enkopingsvagen 126              Teknikringen 8
> S-172 90 Stockholm              S-100 44 Stockholm
> Phone: +46-8-7063627            Phone: +46-8-7908017
> Fax:   +46-8-7063869            Fax:   +46-8-7906122
> Email: [EMAIL PROTECTED]         Email: [EMAIL PROTECTED]

hmm, my xdvi that came with RH6.1 displays postscript figures
flawlessly,
right out of the box. xdvi uses ghostscript to render ps specials, does
gs work
ok? Also, I have found that xdvi depends on your hardware and many times

you will need to recompile xdvi on your machine to get it to work
properly.
Take a look at the source and readme's for xdvi and try to build xdvi,
with
a little luck and trial and error, I'll bet you can fix things.

-steve



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

From: [EMAIL PROTECTED] (Bob Tennent)
Subject: Re: RedHat gets "echo" wrong
Date: 31 Mar 2000 17:25:45 GMT
Reply-To: [EMAIL PROTECTED]

On Fri, 31 Mar 2000 09:30:48 GMT, Craig Macbride wrote:
 >The RedHat 6.1 man entry for echo claims that "Without -E, the following
 >sequences are recognized and interpolated:" and then gives the backslash
 >escapes that have been common in some Unixes for many years. However,
 >in reality, the echo command defaults to not understanding those escapes!

It actually says

   -e     enable interpretation of the backslash-escaped characters

and doesn't say what the default is.

 >What's worse, the bash builtin doesn't recognise them either.

It does if you use -e.  On the other hand, the tcsh builtin doesn't.
 >
 >Does anyone know whether RedHat is likely to fix this error and whether
 >they'll change the man entry or the commands?

/bin/echo is maintained by GNU.  The man page has an e-mail
address if you think there's a bug.

Bob T.

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

From: <[EMAIL PROTECTED]>
Subject: Error reading for memory
Date: Fri, 31 Mar 2000 17:30:03 GMT

I'm having trouble with my linux mandrake 7.0
I have 128 Mb RAM but linux only read as 64 MB.
I'm using ABIT BE6-II motherboard.
Please give me advice what should I do, since I already try all the method 
in download.com but it won't work.

Thanks a lot.


--
Posted via CNET Help.com
http://www.help.com/

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

From: James <[EMAIL PROTECTED]>
Subject: Erase contents of windows swap file?
Date: Fri, 31 Mar 2000 17:30:10 GMT



I was looking around my dos partition in linux and came across the windows 
swap file.
    I was curious to see what sort of stuff might be in it and so I opened 
it with kedit, it was filled with loads of random symbols and letters.
     Considering the function of a swap file I was wondering what would 
happen if I erased the files contents.
     Does anyone know what, if anything would happen if I did this, I was 
thinking that it may give a brief boost of performance to windows as swap 
file contents could be written directly without the need to erase previous 
data.

     P.S I realise this is probably the most stupid question you've ever   
       heard, but it has been bothering me for some time now.

     Thanks.
            JL

     

--
Posted via CNET Help.com
http://www.help.com/

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

From: James Hammerton <[EMAIL PROTECTED]>
Subject: Re: Duplex printing
Date: 31 Mar 2000 18:33:52 +0100

Bill Delphenich <[EMAIL PROTECTED]> writes:

> James Hammerton wrote:
> 
> > Hi,
> >
> > I recently discovered that the departmental printer (an HP
> > laserjet8000) supports duplex (double sided) printing. However I don't
> > know how to access this facility from within linux (and haven't got
> > much joy by asking the linux users in the department on this front
> > either). Can anyone help?
> >
> > James
> >
> > --
> > James Hammerton, Department of Computer Science, University College Dublin
> >              WWW Pages: http://www.cs.ucd.ie/staff/jhammerton/
> >                         http://www.tardis.ed.ac.uk/~james
> 
> I am printing to an HP 8000 using the "HP LaserJet III with duplex
> capability" as the filter in printtool. It works fine for me. I am using
> ghostscript 5.10 that comes with RH 6.1.

Well this has worked, except that the resolution supported by the 
filter is only 300x300, where previously I could do 600x600.

James

-- 
James Hammerton, Department of Computer Science, University College Dublin
             WWW Pages: http://www.cs.ucd.ie/staff/jhammerton/
                        http://www.tardis.ed.ac.uk/~james

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

From: steve <[EMAIL PROTECTED]>
Subject: can Star Impress play movies in foreground?
Date: Fri, 31 Mar 2000 10:37:09 -0700

I put together a presentation in Star Impress (power point look-alike),
it has an mpeg movie in the middle of the presentation. There was no
way to import an mpeg into the presentation, so I had to settle for
calling
a shell script that started an external mpeg player and loaded my movie.

That's ok, except if I set Star Impress (part of Star Office 5.1) to
fill the
desktop (full screen view), then the movie player and thus the movie
will
be hidden (the window is not on top, because Star Impress has taken over

the desktop). So, is there anyway to get the movie on top, or better
yet, to
get the movie into the presentation?

-steve


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

From: "Knut A. Nilsen" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.help
Subject: Re: SCSI and IDE disk problems
Date: Fri, 31 Mar 2000 19:52:52 +0200

..all three? At the same time? Anything special that could cause such
failures? I mean, the second ide drive, /dev/hdc, is brand new. The scsi
drive is about 6 months old, while the first ide drive is more than 2 years
old. Why would they die the same day?

Knut


Yan Seiner <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> The drive is toast.  Replace it immediately.
>
> --yan
>
> "Knut A. Nilsen" wrote:
> >
> > About 6 months ago I installed a new Seagate Barracuda ST39175LW 9,1 Gb
SCSI
> > disk on a small fileserver. The disk has one partition taking up the
entire
> > disk, most of which is 'shared' to Windows clients using Samba (2.0.5a).
The
> > system has been running happily until yesterday, when I discovered that
> > files and directories were missing over the samba share. Trying to list
the
> > files in linux gave me IO errors. Unmounting the drive and running
e2fsck
> > gave the following output:
> >
> > Error reading block XXX (Attempt to read block from filesystem resulted
in
> > short read) while doing inode scan.  Ignore error<y>?
> >
> > Ignoring the error would give me more messages like this. Running
e2fsck -c
> > caused the scsi bus to attempt to reset several times. Finally, after
> > several hours of errors, SCSI bus reset attempts etc etc, rebooted the
> > machine, unmounted the drive and ran e2fsck -c, which now seamed to
work.
> > The disk is up and running again with no new error messages...
> >
> > /var/log/messages:
> > Mar 29 12:29:01 arthur kernel: SCSI disk error : host 0 channel 0 id 0
lun 0
> > return code = 28000002
> > Mar 29 12:29:01 arthur kernel: [valid=0] Info fld=0x0, Current sd08:01:
> > sense key Not Ready
> > Mar 29 12:29:01 arthur kernel: Additional sense indicates Logical unit
is in
> > process of becoming ready
> > Mar 29 12:29:01 arthur kernel: scsidisk I/O error: dev 08:01, sector
8536140
> > Mar 29 12:29:01 arthur kernel: EXT2-fs error (device sd(8,1)):
> > ext2_write_inode: unable to read inode block - inode=1067
> > 010, block=4268070
> > Mar 29 12:29:06 arthur kernel: SCSI disk error : host 0 channel 0 id 0
lun 0
> > return code = 28000002
> > Mar 29 12:29:06 arthur kernel: [valid=0] Info fld=0x0, Current sd08:01:
> > sense key Not Ready
> > Mar 29 12:29:06 arthur kernel: Additional sense indicates Logical unit
is in
> > process of becoming ready
> > Mar 29 12:29:06 arthur kernel: scsidisk I/O error: dev 08:01, sector 2
> > Mar 29 12:30:03 arthur kernel: (scsi0:0:0:-1) Unexpected busfree,
LASTPHASE
> > = 0x40, SEQADDR = 0x5f
> > Mar 29 12:30:07 arthur kernel: SCSI disk error : host 0 channel 0 id 0
lun 0
> > return code = 28000002
> > Mar 29 12:30:07 arthur kernel: [valid=0] Info fld=0x0, Current sd08:01:
> > sense key Not Ready
> > Mar 29 12:30:07 arthur kernel: Additional sense indicates Logical unit
is in
> > process of becoming ready
> > Mar 29 12:30:07 arthur kernel: scsidisk I/O error: dev 08:01, sector
983962
> > Mar 29 12:30:07 arthur kernel: SCSI disk error : host 0 channel 0 id 0
lun 0
> > return code = 28000002
> >
> > (same message repeated a _lot: of times)
> >
> > Mar 29 12:36:11 arthur kernel: scsi0 channel 0 : resetting for second
half
> > of retries.
> > Mar 29 12:36:11 arthur kernel: SCSI bus is being reset for host 0
channel 0.
> > Mar 29 12:36:14 arthur kernel: SCSI disk error : host 0 channel 0 id 0
lun 0
> > return code = 28000002
> > Mar 29 12:36:14 arthur kernel: [valid=0] Info fld=0x0, Current sd08:01:
> > sense key Not Ready
> > Mar 29 12:36:14 arthur kernel: Additional sense indicates Logical unit
is in
> > process of becoming ready
> > Mar 29 12:36:14 arthur kernel: scsidisk I/O error: dev 08:01, sector
2883722
> >
> > Can anyone explain this behaviour?
> >
> > Now, for chapter two:
> >
> > In 'panic', while I was fsck'ing the SCSI drive, I went an bought a
second
> > 10GB IDE drive, to backup my disk in case I needed to try some extensive
> > data recovery. I makde this dosk inot one big partition also
(/dev/hdc1).
> > Running mke2fs, /var/log/messages is filled with this kind of errors:
> >
> > Mar 30 11:27:44 arthur kernel: hdc: dma_intr: status=0x51 { DriveReady
> > SeekComplete Error }
> > Mar 30 11:27:44 arthur kernel: hdc: dma_intr: error=0x10
> > { SectorIdNotFound }, CHS=770/0/137, sector=197074
> > Mar 30 11:28:02 arthur kernel: hdc: dma_intr: status=0x51 { DriveReady
> > SeekComplete Error }
> > Mar 30 11:28:02 arthur kernel: hdc: dma_intr: error=0x10
> > { SectorIdNotFound }, CHS=1666/0/79, sector=426450
> > Mar 30 11:28:21 arthur kernel: hdc: dma_intr: status=0x51 { DriveReady
> > SeekComplete Error }
> > Mar 30 11:28:21 arthur kernel: hdc: dma_intr: error=0x10
> > { SectorIdNotFound }, CHS=3650/0/23, sector=934354
> > Mar 30 11:28:22 arthur kernel: hdc: dma_intr: status=0x51 { DriveReady
> > SeekComplete Error }
> > Mar 30 11:28:22 arthur kernel: hdc: dma_intr: error=0x10
> > { SectorIdNotFound }, CHS=3650/0/22, sector=934354
> >
> > ..and runing e2fsck on this disk gives:
> >
> > Error reading block 3358818 (Attempt to read block from filesystem
resulted
> > in short read) while doing inode scan.  Ignore error<y>?
> >
> > ...which is the same message I got on the SCSI disk in the first place!
> >
> > Which means that I can't get my brand new 10 GB drive to work at all.
The
> > drive is an IBM DTTA-371010 CHS=19590/16/63
> >
> > On top of this, as I am writing this post, I see that I get the same
error
> > messages on /dev/hda and IO errors as I am parsing through
/var/log/messages
> > to copy the error messages. This disk is an IBM DTTA-350640
CHS=790/255/63
> >
> > This is beginning to become frustrating! Any ideas, anyone?
> >
> > Knut Nilsen



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

From: Craig Shields <[EMAIL PROTECTED]>
Subject: redirecting output question
Date: Fri, 31 Mar 2000 13:14:19 -0500

Hi all,

I have a script I need to set up a cron job for and would like to have
the output redirected to a file named according to today's date.  I know
how I will use the 'date' command, but don't know how to insert that in
the redirect line.  <script name> > date +%D  doesn't work.  Anyone have
any suggestions?  BTW, this is Solaris 7 using csh.

thanks,
-- 
Craig Shields
Computer/Network Technician
KORRnet, The Knoxville, Oak-Ridge Regional Network
http://www.korrnet.org

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

From: "Jordan Hiller" <[EMAIL PROTECTED]>
Subject: Re: Partition disappeared?
Date: Fri, 31 Mar 2000 18:41:21 GMT

Well, I now see that I do have a backup of inittab called inittab~ in the
/etc directory. But I'm still not out of the woods here...For some reason my
root partition (which contains /etc) is being mounted as read-only, so I
can't change anything. I can't seem to unmount it either so I could re-mount
it. Any suggestions on how I can do that? Since there is no inittab, that
might be part of the problem why I don't have write access (just guessing).

If it makes a difference, I am LILO-ing in with "linux single".

Thanks everyone!
Jordan

Jordan Hiller <[EMAIL PROTECTED]> wrote in message
news:tpXE4.31366$[EMAIL PROTECTED]...
> Michael Kelly <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > Try fdisk -l /dev/hd?  where ? is your hd such as /dev/hda
> > That will spit out the partition table with no risk of writing
> > anything.
> >
> > See what partitions you have.  You may have just messed it up
> > so that it's not mounting in /etc/fstab.
>
> fdisk and /etc/fstab look okay - the partitions are there and appear to be
> okay.
>
> I tried "mount /dev/hdc3 /usr" and it worked, I still have my data! *sigh
of
> relief* I'm still having problems but it may be because /etc/inittab seems
> to be completely blank. If that's the case, is there a "default" I can
> download somewhere and use without knowing too much about how it works?
>
> Thanks,
> Jordan
>
>



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

From: igg123 <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.misc
Subject: Re: Question about LILO uninstall
Date: Fri, 31 Mar 2000 18:50:42 GMT

Jonathan Lau wrote:

> Hi all,
>
> I would like to uninstall LILO from the Master Boot Record /dev/hda but I'm
> not sure how this can be done.
>
> I read the HOWTO on uninstalling LILO.  It says that Linux backs up the old
> MBR to a /boot directory.  But what if I've installed Linux (and LILO to the
> MBR) more that once.  Would my original MBR still be in the /boot after all
> those reinstalls?
>
> How can I get my MBR to just boot to the first primary partition (my Windows
> NT) like it used to without showing the LILO boot prompt?
>
> --
> Jonathan Lau
> email : [EMAIL PROTECTED]

If you still want to load linux then make a boot disk if dont already have one.

like this :
mkbootdisk 2.2.12-20
you can find out what numbers to type after mkbootdiskat the /lib/modules
directory.
after you do that than remove lilo in dos like this :
fdisk /mbr
or if your in linux by typing this as root:
/sbin/lilo -u
When you need to boot into Linux insert your boot disk. You *might* need to
check you bios setting to search for boot disk.



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

From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.development.system
Subject: Re: Precision of Linux's libm???
Reply-To: [EMAIL PROTECTED]
Date: Fri, 31 Mar 2000 19:00:21 GMT

[EMAIL PROTECTED] (bill davidsen) writes:

>  I will just note here, gcc supports "long double" to allow use of 80
>bit results stored in variables. This is not (a) portable nor (b) a
>substitute for good numerical analysis, but it does allow things which
>just would not produce any significant digits otherwise.

And in case you *don't* use this, you really want to switch the FPU
itself to do 64/53 bit rounding. Eventually, your data will be read
from the FPU, and stored in a "double" --- and if that involves a
80 -> 64 conversion, that data has been rounded twice, which is a big
nono.

I actually ran into this a few years back, when I got results of the
form  (decimal numbers used for explanation purpose here)

    x=0.426374665000000000001

which was first rounded *inside* the FPU, to something like

    x=0.426374665000

and then, upon being transferred from the FPU to memory, rounded again,
to give the incorrect

    x=0.42637466

(because of round-to-nearest, if in middle, round-to-even).

Depending on what environment you are using, you'll have to use either


        #include <fpu_control.h>
        inline void __setfpucw(u32 cw) { _FPU_SETCW(cw); }

        main() {
        [...]
          __setfpucw(0x127f);
        [...]
        }

for glibc 2.1, or just



        main() {
        [...]
          __setfpucw(0x127f);
        [...]
        }
for glibc 2.0/libc4/libc5. If you don't like compiler warnings or are doing
C++, you'll have to provide a prototype for that function.

Regards,

   Bernie
-- 
I never vote. It only encourages them
Elderly American lady quoted by comedian Jack Parr

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


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

Reply via email to