Linux-Misc Digest #834, Volume #18 Sun, 31 Jan 99 03:13:10 EST
Contents:
Re: Problems with number of heads from DOS FDISK partitions and Linux fdisk on 8.4
GB drive ("Charles Sullivan")
Re: libm.so.4? (zc)
Re: could someone suggest a window manager for me? (Mihai IACOB)
Re: Setting up Pine [loses ppp while fetching newsgroup list < / > ] (Chris Lott)
clock_gettime? (Robert Canright)
Re: Advice for Microsoft-haters (Matthias Warkus)
could someone suggest a window manager for me?
Re: configuring mailx or pine (C Sanjayan Rosenmund)
Problems with number of heads from DOS FDISK partitions and Linux fdisk on 8.4 GB
drive (Leslie Groer)
Re: Help: Looking for Linux commands reference! (Nick Dreyer)
Re: newbie GCC problem (Vladimir Florinski)
minimizing, etc. (Neil)
Re: libm.so.4? (zc)
----------------------------------------------------------------------------
From: "Charles Sullivan" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,comp.os.linux.hardware
Subject: Re: Problems with number of heads from DOS FDISK partitions and Linux fdisk
on 8.4 GB drive
Date: Sun, 31 Jan 1999 00:50:37 -0500
The older kernels and fdisk have problems with large disks, but I
think your particular problem is due mainly to what fdisk sees and
what you are telling the kernel. If your bios has LBA enabled, fdisk
will _not_ see the manufacturers numbers for the C/H/S but the LBA
numbers which will be 1027/255/63.
(LBA maps the "actual" number of heads to a ficticious 255 logical
heads, thus reducing the logical cylinders to a more manageable
value.)
What happens if you do _not_ feed LOADLIN the C/H/S ?
Leslie Groer wrote in message ...
>Hi There
>
>I have a problem with the partitions on my new Western Digital Cavaliar
>8.4 GB that has been partitioned by DOS FDISK as seen by Linux.
>
>I am running Red Hat 4.1, kernel v 2.0.27 on a
>Micron 133 MHz Mironics M54Hi Motherboard with
>Phoenix Bios 4.05 upgrade from Micro Firmware with
>Win95 on /dev/hda1 (800 MB of 1.6 GB) and Linux on the other half of the
>disk. I will upgrade to RH5.2 once I get the disk problem fixed.
>
>Drives are seen as
>hda: WDC AC31600H, 1549MB w/128kB Cache, LBA, CHS=787/64/63
>hdb: WDC AC28400R, 8063MB w/512kB Cache, LBA, CHS=16383/16/63
>
>The CHS corresponds to the specs from the manufacturer and how the BIOS
>sees the disk. I feed in the CHS for the 8.4 GB drive on boot-up (using
>LOADLIN hdb=16383/16/63). If I don't do that, it sees the drive as
>CHS=1027/255/63.
>
>I partitioned the drive using DOS FDISK and Win95 can see the partitions
>fine. There are 4 partitions, 1 primary and 3 logical in an extended
>partition to get around the 2.1 GB limit with FAT-16 partitions (I don't
>have OSR2 so need to stick to FAT-16).
>
>When I boot into Linux, I see the partitions on boot up
>
>Partition check:
> hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 >
> hdb: hdb1 hdb2 < hdb5 hdb6 hdb7 >
>
>However, cfdisk gives a fatal error -- "Cannot seek on disk drive" and
>linux fdisk gives the following
>
>Command (m for help): p
>
>Disk /dev/hdb: 16 heads, 63 sectors, 16383 cylinders
>Units = cylinders of 1008 * 512 bytes
>
> Device Boot Begin Start End Blocks Id System
>/dev/hdb1 1 1 4155 2094088+ 6 DOS 16-bit >=32M
>Partition 1 does not end on cylinder boundary:
> phys=(276, 239, 63) should be (276, 15, 63)
>/dev/hdb2 3350 4156 15345 5639760 5 Extended
>Partition 2 does not end on cylinder boundary:
> phys=(1022, 239, 63) should be (1022, 15, 63)
>/dev/hdb5 3350 4156 8310 2094088+ 6 DOS 16-bit >=32M
>/dev/hdb6 7723 8311 12465 2094088+ 6 DOS 16-bit >=32M
>/dev/hdb7 12096 12466 15345 1451488+ 6 DOS 16-bit >=32M
>
>Command (m for help): v
>
>Partition 1 does not end on cylinder boundary:
> phys=(276, 239, 63) should be (276, 15, 63)
>Partition 1: head 240 greater than maximum 16
>Partition 5: head 240 greater than maximum 16
>Warning: partition 1 overlaps partition 5.
>Partition 6: head 240 greater than maximum 16
>Warning: partition 5 overlaps partition 6.
>Partition 7: head 240 greater than maximum 16
>Warning: partition 6 overlaps partition 7.
>Logical partition 5 not entirely in partition 2
>1046360 unallocated sectors
>
>I did try deleting all the partitions using linux fdisk and repartitioning
>but I still get overlap warnings for the various partitions.
>
>I can mount the partitions in linux and I can create linux partitions but
>I am concerned about the warning of an overlap - will this cause a problem
>later? It looks like the Start cylinder of the partitions do not overlap
>but the Begin cylinders do. I am not sure of the difference between
>these. I do not want to be overwriting data on one partition while
>writing to another.
>
>Also, I want to install Win/NT on this disk later and having a clean
>partition configuration I think would be safer. How do I fix the problem
>of partition boundaries?
>
>Thanks in advance for any advice/help.
>
>Leslie Groer
>
------------------------------
From: zc <[EMAIL PROTECTED]>
Subject: Re: libm.so.4?
Date: Sat, 30 Jan 1999 23:48:18 -0500
Reply-To: [EMAIL PROTECTED]
Rob Komar wrote:
>
> Jim White ([EMAIL PROTECTED]) wrote:
> : I happen to have libm.so.4.6.27 on an old i386. But it seems of no
> : use.
> : when I compile a math program with -lm, I get complain that no
> : definition
> : for sin, cos, exp, etc. . The gcc manual say the lib to be linked is
> : libm.a
> : and I do have a libm.a on that machine too. So I don't know which one
> : is
> : the culprit. Maybe it's the old i386?
> : I also fail to compile this program on a sparc 5 running sunos 4.1.4
> : which
> : has libm.a but no libm.so.( no definition for sin, cos, exp, etc.)
> : I wonder how can I find which lib is used by gcc when compiling, and
> : how can I find what functions are contained in a lib. Any one can help?
>
> It sounds like you don't have a co-processor in your 386 computer.
> The sin, cos,... functions are usually hardware accelerated in the
> co-processor. I really don't know much about this, but you
> probably have to find some library that provides software-
> emulated versions of these functions.
>
> Cheers,
> Rob Komar
You are right. This old i386 do not have co-processor. I consider put
this
system into an i486 later and test again.
--Jim
------------------------------
From: Mihai IACOB <[EMAIL PROTECTED]>
Subject: Re: could someone suggest a window manager for me?
Date: 31 Jan 1999 08:00:29 +0200
Try IceWM, you can set the number of virtual desktops and it has
a Start button :-).
Best regards,
Mihai IACOB
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Chris Lott)
Subject: Re: Setting up Pine [loses ppp while fetching newsgroup list < / > ]
Date: 30 Jan 1999 20:18:51 GMT
Reply-To: [EMAIL PROTECTED]
On 30 Jan 1999 10:55:25 +0000, Stefan Davids <[EMAIL PROTECTED]> wrote:
>>>>>> "jtwdyp" == jtwdyp <[EMAIL PROTECTED]> writes:
>
>What can I say? Pine sucks.
>
>I wouldn't recommend it for newsreading at all - no threading and
>ridiculously slow as you've discovered. If you want a recommendation
>for a good newsreader, I'd go for tin, slrn or Gnus, in order of
>increasing recommendation, and probably increasing complexity as well.
I agree. I had the exact same problems with Pine (which I like as a
mail reader), and switched to SLRN and it has worked like a charm.
I also use Gnus and suspect I will be using it more and more as I
figure it all out. Slrn was as easy as starting with a pointer to
the news server and pressing the ? key once in a while for help.
c
--
Chris Lott
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Robert Canright)
Subject: clock_gettime?
Date: Sun, 31 Jan 1999 07:59:22 GMT
I'm porting some Solaris code to Linux. The code uses a
"clock_gettime" funtion that uses a timespec struct. The
documentation is unclear on what is being returned in the "seconds"
part of the struct. Basically, it is the time that follows what was
set up with the clock_settime function. But I think that
traditionally the time in the seconds part of the timespec struct is
in total seconds since some date (Jan 1, 1970 I think).
If that is so, then I can use the getclocktime function that comes
with Linux and that uses a timeval struct instead of a timespec
struct.
clock_gettime is part of a POSIX.1b reat time standard.
I know the difference between a timespec and a timeval struct is that
the former has a component in nanoseconds while the latter has a
component in microseconds. I can live with that.
Can anyone tell me if I'm right in my belief that a Linux getclocktime
function and work for me as well as the POSIX clock_gettime function?
Thanks,
Rob Canright
------------------------------
From: [EMAIL PROTECTED] (Matthias Warkus)
Crossposted-To: alt.linux,alt.os.linux,comp.os.linux.advocacy
Subject: Re: Advice for Microsoft-haters
Date: Sat, 30 Jan 1999 15:24:05 +0000
Reply-To: [EMAIL PROTECTED]
It was the Fri, 29 Jan 1999 17:54:57 -0800...
..and Arthur <[EMAIL PROTECTED]> wrote:
[schnibble]
> 3. My grandfather, who was a sergeant in the Kaiser's
> cavalry and immigrated here about 1905, still got
> misty eyed every time he and his friends sang
> "Deutschland Uber Alles"
"Deutschland, Deutschland �ber Alles" and the Kaiser?
Under the Kaiser, the national anthem was rather "Heil dir im Siegerkranz",
which was sung to the melody of -you guess it- "God Save The Queen".
> - well into the 1970's.
> I'm sure his cousins back in Essen probably did the
> same, new constitution or not. No nationality is
> either immune to or has risen above this kind of
> stupidity.
I think the spontaneous anti-militarism that broke out at two occasions in
the fifties (1. when Germany decided to rearm; 2. when there were lunatic
discussions about whether Germany should have tactical nukes) shows that the
1945 trauma pretty much neutralised traditional German patriotism.
Unfortunately, it seems to be on the rise again in certain parts of the
populace. But these people usually don't know what the hell they are talking
about, and it's very good that their stupid patriotism is *not* a national
doctrine.
mawa
--
Matthias Warkus | [EMAIL PROTECTED] | Dyson Spheres for sale!
My Geek Code is no longer in my .signature. It's available on e-mail request.
It's sad to live in a world where knowing how to program your VCR actually
lowers your social status...
------------------------------
From: [EMAIL PROTECTED] ()
Subject: could someone suggest a window manager for me?
Date: 31 Jan 1999 05:49:57 GMT
Reply-To: [email protected]
Eric Wyles <[EMAIL PROTECTED]> writes:
> [...]This is ok, but I really don't
> like fvwm2. I would like to find something where I am not forced to
> have more that one virtual desktop. If someone could tell me how to
> turn that feature off in fvwm2 that would be a big help.
If you have a .fvwm2rc file in your home directory, delete the line
with DeskTopSize in it and replace it with the following:
# Use only a single virtual desktop (was 3x2):
DeskTopSize 1x1
If you do not have a .fvwm2rc file in your home directory, then copy the
system.fvwm2rc to <your home directory>/.fvwm2rc. On my Red Hat 5.1 box,
the system.fvwm2rc file can be found in two places:
/etc/X11/fvwm2/system.fvwm2rc and
/usr/X11R6/lib/X11/fvwm2/system.fvwm2rc
Hope this helps.
------------------------------
From: C Sanjayan Rosenmund <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,alt.os.linux
Subject: Re: configuring mailx or pine
Date: Sun, 31 Jan 1999 07:02:31 GMT
[EMAIL PROTECTED] wrote:
>
> Wowix wrote:
>
> > [EMAIL PROTECTED] wrote:
> >
> > > I can get mail from my ISP using netscape (on my redhat 5.1 box)
> > but how
> > > do I configure my system to use mailx or pine for my ISP mail?
> > > Thanks,
> >
> > You need a program to get your email from your ISP...which I
> > recommend...
> > fetchmail.. Then fetchmail will move it to your local
> > mailbox..then after
> > that use pine to read your e-mail.......
>
> Ok, I am using fetchmail, but it dumps the mail into root on my
> local machine,
> instead of sending it to the users mail file. How do I fix?
> Thanks,
>
> --
> Mike Cabaniss [EMAIL PROTECTED]
> Digital Sea Internet Services - Web Hosting powered by Linux
> http://www.digitalsea.net
>
>
in the .fetchmailrc use lines like:
poll <your mail server> proto POP3 user <your username on the
mailserver> pass <your password on the mail server> is <your local
name>
I hope htis helps. . .
--
Sanjay
[EMAIL PROTECTED]
Windows has detected that a gnat has farted near your computer.
Press any key to reboot.
------------------------------
From: Leslie Groer <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,comp.os.linux.hardware
Subject: Problems with number of heads from DOS FDISK partitions and Linux fdisk on
8.4 GB drive
Date: Sat, 30 Jan 1999 17:16:09 -0600
Hi There
I have a problem with the partitions on my new Western Digital Cavaliar
8.4 GB that has been partitioned by DOS FDISK as seen by Linux.
I am running Red Hat 4.1, kernel v 2.0.27 on a
Micron 133 MHz Mironics M54Hi Motherboard with
Phoenix Bios 4.05 upgrade from Micro Firmware with
Win95 on /dev/hda1 (800 MB of 1.6 GB) and Linux on the other half of the
disk. I will upgrade to RH5.2 once I get the disk problem fixed.
Drives are seen as
hda: WDC AC31600H, 1549MB w/128kB Cache, LBA, CHS=787/64/63
hdb: WDC AC28400R, 8063MB w/512kB Cache, LBA, CHS=16383/16/63
The CHS corresponds to the specs from the manufacturer and how the BIOS
sees the disk. I feed in the CHS for the 8.4 GB drive on boot-up (using
LOADLIN hdb=16383/16/63). If I don't do that, it sees the drive as
CHS=1027/255/63.
I partitioned the drive using DOS FDISK and Win95 can see the partitions
fine. There are 4 partitions, 1 primary and 3 logical in an extended
partition to get around the 2.1 GB limit with FAT-16 partitions (I don't
have OSR2 so need to stick to FAT-16).
When I boot into Linux, I see the partitions on boot up
Partition check:
hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 >
hdb: hdb1 hdb2 < hdb5 hdb6 hdb7 >
However, cfdisk gives a fatal error -- "Cannot seek on disk drive" and
linux fdisk gives the following
Command (m for help): p
Disk /dev/hdb: 16 heads, 63 sectors, 16383 cylinders
Units = cylinders of 1008 * 512 bytes
Device Boot Begin Start End Blocks Id System
/dev/hdb1 1 1 4155 2094088+ 6 DOS 16-bit >=32M
Partition 1 does not end on cylinder boundary:
phys=(276, 239, 63) should be (276, 15, 63)
/dev/hdb2 3350 4156 15345 5639760 5 Extended
Partition 2 does not end on cylinder boundary:
phys=(1022, 239, 63) should be (1022, 15, 63)
/dev/hdb5 3350 4156 8310 2094088+ 6 DOS 16-bit >=32M
/dev/hdb6 7723 8311 12465 2094088+ 6 DOS 16-bit >=32M
/dev/hdb7 12096 12466 15345 1451488+ 6 DOS 16-bit >=32M
Command (m for help): v
Partition 1 does not end on cylinder boundary:
phys=(276, 239, 63) should be (276, 15, 63)
Partition 1: head 240 greater than maximum 16
Partition 5: head 240 greater than maximum 16
Warning: partition 1 overlaps partition 5.
Partition 6: head 240 greater than maximum 16
Warning: partition 5 overlaps partition 6.
Partition 7: head 240 greater than maximum 16
Warning: partition 6 overlaps partition 7.
Logical partition 5 not entirely in partition 2
1046360 unallocated sectors
I did try deleting all the partitions using linux fdisk and repartitioning
but I still get overlap warnings for the various partitions.
I can mount the partitions in linux and I can create linux partitions but
I am concerned about the warning of an overlap - will this cause a problem
later? It looks like the Start cylinder of the partitions do not overlap
but the Begin cylinders do. I am not sure of the difference between
these. I do not want to be overwriting data on one partition while
writing to another.
Also, I want to install Win/NT on this disk later and having a clean
partition configuration I think would be safer. How do I fix the problem
of partition boundaries?
Thanks in advance for any advice/help.
Leslie Groer
------------------------------
From: [EMAIL PROTECTED] (Nick Dreyer)
Subject: Re: Help: Looking for Linux commands reference!
Date: Sun, 31 Jan 1999 06:58:00 GMT
On Thu, 28 Jan 1999 20:31:30 GMT, [EMAIL PROTECTED] wroth:
<snip>
> But what do I do if I want to find which command to
>use for a certain action/service? The command names are so abbreviated I
>can't make any sense. I guess what I need is a reverse command refernce-if
>one such exists!
try the command "man -k" followed by a word on which you would like to have
help. All man-page entries with descriptions containing that word will by
listed. Then type man for the command(s) that most fit what you are looking
for, to get the details. (Type man man for info on how the man-system is
organized.)
|\|.
------------------------------
From: Vladimir Florinski <[EMAIL PROTECTED]>
Subject: Re: newbie GCC problem
Date: Sun, 31 Jan 1999 00:09:02 -0700
Gary Helbig wrote:
>
> I'm having a little problem with gcc (RedHat 5.2 install)
>
> If I try to compile a program that ends in '.c', all is OK.
>
> If I try to compile a program that ends in '.C', I get an error:
> gcc: installation problem, cannot exec `cc1plus': No such file or directory
>
> I found this while trying to "configure" a Makefile for a
> program I downloaded.
>
> Any clues?
gcc is obsolete and is not configured for C++ on RedHat systems. Use egcs
instead.
--
Vladimir
------------------------------
From: Neil <[EMAIL PROTECTED]>
Subject: minimizing, etc.
Date: 30 Jan 1999 15:25:44 PST
I just installed RedHat Linux 5.2 that came in the package from Macmillan
Publishing. I am new to linux so I hope this package is good.
Anyway, X does not seem to work quite right: using the -, box, x icons at
the top right of a window does nothing to a window. I also had to manually
resize the windows.
Also, how do you access the CD Rom drive in order to browse around and
possibly install additional utilities? I am used to the Win95 click on E:
drive approach, but I definately want to learn the linux way. With some
learning I don't think this will be too much harder than Windows, and it
is good to have viable alternatives to MS. Thanks.
------------------------------
From: zc <[EMAIL PROTECTED]>
Subject: Re: libm.so.4?
Date: Sun, 31 Jan 1999 01:15:21 -0500
Reply-To: [EMAIL PROTECTED]
Stefan Davids wrote:
>
> >>>>> "Jim" == Jim White <[EMAIL PROTECTED]> writes:
>
> Jim> I happen to have libm.so.4.6.27 on an old i386. But it
> Jim> seems of no use. when I compile a math program with -lm, I
> Jim> get complain that no definition for sin, cos, exp, etc. . The
> Jim> gcc manual say the lib to be linked is libm.a and I do have a
> Jim> libm.a on that machine too.
>
> Yup, it's certainly libm you want. Usually you want -lm at the end of all
> the libraries you link against - is this how you're doing it?
>
> Jim> So I don't know which one is the culprit. Maybe it's the old
> Jim> i386? I also fail to compile this program on a sparc 5
> Jim> running sunos 4.1.4 which has libm.a but no libm.so.( no
> Jim> definition for sin, cos, exp, etc.)
>
> Umm, sounds like a problem with the program/Makefile in which
> case. Perhaps you could say what the program is and what the command
> line is that generates the error?
>
> Jim> I wonder how can I find which lib is used by gcc when
> Jim> compiling,
>
> It uses the first library it finds by searching all the directories in
> /etc/ld.so.conf and in /lib. If you compiled dynamically you can find
> what libraries it's linked against with ldd.
>
> Stefan
It's a simple math program written by myself. There's sin , cos, exp in
it.
So I compile it with the option -lm to link it with a math lib.
This program do compile in a i486 running slackware 3.0.
There are two libm.so in /lib, one is libm.so.4.6.27, the other is
libm.so.5.0.0. After compile, ldd show libm.so.5.0.0 is linked.
And gcc -v show the gcc version is 2.7.0.
On that old i386, gcc -v show the gcc version is 2.6.3
So I guess a particular version of gcc will link a particular libm to a
program
by default, right? Is there some command to find which libm will be
linked befor
a program compile? And is there some command to find which functions are
contained
in a lib?
On that i486 running slackware 3.0, there's a static lib libm.a in
/usr/lib,
I tried the option -static to force gcc to link it to my program, then I
get
complain that no definition for sin, cos, exp, etc.. It seems this
static llb
libm.a is short of some function. I want double check this in some other
way.
Any help here?
--Jim
------------------------------
** 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
******************************