Linux-Misc Digest #133, Volume #26               Tue, 24 Oct 00 21:13:04 EDT

Contents:
  NFS w/ many open files? ("Steve Wolfe")
  Re: SuSE Linux 7.0 problems
  Re: Any problems with Red Hat 7? (The Ghost In The Machine)
  Where to get help on kernel/driver (Tom Trebisky)
  Re: Diamond Stealth III S540 (Albert A Arendsen)
  Re: Out of room in /var partition, log file no longer loggin (mpulliam)
  Re: x windows help (Steve)
  Re: How can I move a harddisk containing Linux from a computer to  another? (Anita 
Lewis)
  Re: printing from Linux thru SGI (Spidy)
  Re: Determinig functions build in Kernel (jodell bumatay)
  /opt? (Tijmen Stam)
  Re: RH7 and Crystal CS4237B (Joshua Baker-LePain)
  Re: running star/open office (John Hunter)
  copying a disk (Roy Cabaniss)
  Re: Determinig functions build in Kernel (Tijmen Stam)
  Re: Creating a hard link to a directory.... (The Ghost In The Machine)
  Re: Slackware 7.1 / Telnet ("lobotomy")
  Re: copying a disk (Tijmen Stam)

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

From: "Steve Wolfe" <[EMAIL PROTECTED]>
Subject: NFS w/ many open files?
Date: Tue, 24 Oct 2000 17:12:44 -0600


   On our web server, we host enough different web sites, that we have had
to edit the kernel source to increase the number of files that can be open
at once.  We're trying to move the files off of the web server's drive, and
onto a RAID array on an NFS server.  However, every time I edit the kernel
source to allow more than 1,024 files, the NFS server daemon breaks.

  Is there any workaround for this?

steve




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

From: [EMAIL PROTECTED] ()
Subject: Re: SuSE Linux 7.0 problems
Date: Tue, 24 Oct 2000 23:26:54 GMT

On Tue, 24 Oct 2000 22:37:53 GMT, Grahame Kelly <[EMAIL PROTECTED]> wrote:
>In article <[EMAIL PROTECTED]>,
>       Brendan Heading <[EMAIL PROTECTED]> writes:
>> 
>> Hi all, 
>> 
>> I've just made the splash and bought the full distro of Suse Linux 7.0,
>> with all the manuals and all the CDs etc. However I'm having some nasty
>> problems with X Window. For some reason, it periodically blanks the
>> screen (the monitor switches to "suspend" mode) and the system has to be
>
>You should update to X 4.0.1 from suse.com. I did and it fixed the
>same problems I had with my Matrox card.

unfortuneately, 3d acceleration isn't available w/ matrox and x4.0.1.

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

From: [EMAIL PROTECTED] (The Ghost In The Machine)
Subject: Re: Any problems with Red Hat 7?
Date: Tue, 24 Oct 2000 23:34:37 GMT

In comp.os.linux.misc, Database
<[EMAIL PROTECTED]>
 wrote
on Mon, 23 Oct 2000 14:55:42 GMT
<OjYI5.71926$[EMAIL PROTECTED]>:
>Im just thinking about getting it, I currently have Storm 2000.
>
>

I'd avoid RedHat until 7.1, personally, mostly because of their
decision to use a beta compiler environment.  However, I have
yet to upgrade, myself.  I'm debating Debian at this point,
although I like my RedHat 6.0 at home and 6.2 at work, and
haven't really had time or energy.

I'm hoping this will be less of an issue in the future, but it
sounds annoying as all hell.

-- 
[EMAIL PROTECTED] -- insert random misquote here

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

From: [EMAIL PROTECTED] (Tom Trebisky)
Subject: Where to get help on kernel/driver
Date: 24 Oct 2000 16:32:02 -0700


Hello,

I am looking for the proper place to ask questions about linux
loadable device driver issues.  I have a driver that supports
mmap which is now broken under 2.2.12 kernel, and I am wondering
where to ask intelligent questions (and maybe get intelligent
answers).  I do have the Rubini book (and thank God for it), but
I also need some more up to date information sources.

        Thanks for the tips/clues.

                Tom

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

From: Albert A Arendsen <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.x
Subject: Re: Diamond Stealth III S540
Date: Wed, 25 Oct 2000 01:54:56 +0200

[EMAIL PROTECTED] wrote:
> 
> In comp.os.linux.x Filipe Bonjour <[EMAIL PROTECTED]> wrote:
> > Hi,
> 
> > A friend of mine is planning on buying a new computer, and the
> > one he's interested in comes with a Stealth III S540 video
> > card.
> 
> > He's not a gamer, so the card's quality isn't top priority,
> > but he would like to be sure Linux supports it before buying.
> > Could anyone please tell me if it is the case? (It if helps,
> > he's planning on installing Red Hat 6.2.)
> 
> > Thanks,
> 
> > Fil
> 
> Yes, it is supported under XFree86 3.3.6.  The author of the driver
> for 3.3.6 also has a website with newer binaries and source code.
> 
> He's in the process of rewriting the driver for XFree86 4.0.* but
> doesn't plan to have it done till some point in November.

As a member of the European S3/Diamond Technical Support Team I can
confirm that as the truth :)

-- 
Albert Arendsen --- aka --- Reyn Eaglestorm
>>>>> The Gods have a sense of humour <<<<<
>>>>> So be sure you don't lose yours <<<<<
http://home.student.utwente.nl/a.a.arendsen

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

From: [EMAIL PROTECTED] (mpulliam)
Subject: Re: Out of room in /var partition, log file no longer loggin
Date: 25 Oct 2000 00:01:10 GMT

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). 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.

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 
 

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

From: [EMAIL PROTECTED] (Steve)
Subject: Re: x windows help
Date: 25 Oct 2000 01:10:41 GMT
Reply-To: [EMAIL PROTECTED]

On Tue, 24 Oct 2000 22:18:25 +0200, Jean wrote:
>I've got Caldera openlinux, without the 3dlabs x-windows. I'm trying to copy
>the /live/usr/X11/bin directory from corel linux cd (including the 3d labs
>windows) into /usr/X11/bin, but nothing will to run afterwards. What am I
>doing wrong?? Please help.  My e-mail : [EMAIL PROTECTED]

What your doing doesn't sound all that wise, can't you install the pachages
some way. 

Make sure that usr/X11/bin is in your search path, ie what does it tell you 
if you type:

$ echo $PATH

I get this:

[sjlen:sjlen]$ echo $PATH
/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/sjlen/bin
[sjlen:sjlen]$ 

On my distro you can change this in /home/yourname/.bash_profile

change the line:

PATH=$PATH:$HOME/bin

to:

PATH=$PATH:$HOME/bin:/usr/X11/bin

I think you can get linux to reread this file by typing:

$ source .bash_profile

Or you may need to log out and log in again to get the 
changes to take effect. 

-- 
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:29pm  up 14 days, 49 min,  2 users,  load average: 1.54, 1.25, 1.16

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

From: [EMAIL PROTECTED] (Anita Lewis)
Crossposted-To: linux.redhat.misc,alt.os.linux,no.it.os.unix.linux.diverse
Subject: Re: How can I move a harddisk containing Linux from a computer to  another?
Reply-To: [EMAIL PROTECTED]
Date: Wed, 25 Oct 2000 00:14:29 GMT

On Tue, 24 Oct 2000 21:21:05 GMT, Arnt Karlsen wrote:
>Anita Lewis wrote:
>> You can put the installation cdrom in and do Upgrade instead of Install.
>> Choose some small thing to install, like joe.  Then you will get the option
>> to install lilo in the mbr.  Do that.  You will also have to edit /etc/fstab
>> unless this is in the same place on the new computer as it was on the old
>> one.  For example, if it was secondary master on the old computer and is the
>> same on the new computer, then /etc/fstab would not need to be changed.
>> Otherwise you will have to edit.
>> 
>> You can put the install cdrom in again and type in 'rescue' at the boot
>> prompt.  That will put linux into RAM.  Then you will need to mount your /
>> partition.  Do:
>> 
>> mkdir /mnt/rh
>> mount -t ext2 /dev/hdc1 /mnt/rh (You have to choose the place where it is
>> now not what it used to be)
>> 
>> cd /mnt/rh/etc
>> 
>> I think the rescue on rh has pico instead of vi.  Try
>> pico fstab
>> 
>> Pico has the commands right there for you.  Change the linux partitions from
>> the old to the new (like /dev/hda2 becomes /dev/hdc2 or whatever.)
>> 
>> That should do it, because the other procedure would have changed lilo.conf.
>
>..after having fixed /etc/lilo.conf, 
>do '/sbin/lilo -v -v -v', _before_ you...
>
>> Try booting.

No actually, I had the person fix lilo by doing the Upgrade and installing a
small package and then letting the installer put lilo in the mbr.  The
editing was just for fstab.  

Anita



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

Date: Wed, 25 Oct 2000 11:25:21 +1100
From: Spidy <[EMAIL PROTECTED]>
Crossposted-To: comp.sys.sgi.admin,alt.os.linux,comp.unix.questions
Subject: Re: printing from Linux thru SGI

[EMAIL PROTECTED] wrote:
> 
> Hi,
> 
> My SGI machine has a printer attached to it,
> /usr/etc/lpd is one of the running  processes there, and bsdlpr is
> chkconfig'ed on. I'm trying to print from a Linux box to that remote
> printer, and it doesn't work. (I did configure the Linux box using
> printtool)
> 
> Did I forget to configure something? I did add the Linux Box's IP and
> DNS to /etc/hosts and /etc/hosts.equiv
> 
> Thanks a bunch.
> 
> Wroot
> 
> Sent via Deja.com http://www.deja.com/
> Before you buy.


Yeah..congratulations!!!!

I've been trying to source a printer cable for my O2 for weeks now.
Nobody knows what cable to sell me. Anyone got a part no. for me??????

Also I plan on using a Canon BJ200ex bubblejet printer with it..

Is this possible or do I need a postscript printer?

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

From: jodell bumatay <[EMAIL PROTECTED]>
Crossposted-To: 
alt.os.linux,comp.os.linux.setup,alt.os.linux.mandrake,alt.os.linux.slackware
Subject: Re: Determinig functions build in Kernel
Date: Wed, 25 Oct 2000 00:29:54 -0700

Mark Post wrote:

> On Thu, 19 Oct 2000 17:22:46 +0200, "J.Smith" <[EMAIL PROTECTED]> wrote:
>
> >When troubleshooting some issues with linux, it often seems like a good idea
> >to verify that the functionality one is looking for, has indeed been
> >compiled, either directly into the kernel or as an module. For example, the
> >solution to a sound or network problems can sometimes be as simple as
> >determining that there is no sound support compiled into the kernel, or that
> >a module for a specific card has not been built.
>
> >I was wondering if it is possible to determine and verify which functions
> >have been built into the kernel, and which functions have been built as
> >modules? Talking about a 2.2.16 kernel here. I thought that you might be
> >able to get this info from /proc on a running kernel, or with some other
> >clever debugging tools on a non-running kernel, but unfortunatly I have no
> >idea how to accomplish this.
>
> So far as I know, there is no way to extract this information from a running
> system.  If you are using the same kernel that you chose during the
> installation process, you can go back to the install media, and look at the
> config file for that kernel.  If you have created a customized kernel, then
> the definitive source is the .config file in the /usr/src/linux directory
> where you did the make config/xconfig/menuconfig.
>

Hello,

I have been trying to

make config

and I get errors about

Makefile: Makefile:91:/Rules.make: No such file or directory
make: *** No rule to make target '/Rules.make'. Stop.

I cannot find an xconfig or menuconfig

do these come in a package of another name?

Joid

>
> Mark Post
>
> Postmodern Consulting
> Information Technology and Systems Management Consulting
> To send me email, replace 'nospam' with 'home'.


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

From: Tijmen Stam <[EMAIL PROTECTED]>
Subject: /opt?
Date: Wed, 25 Oct 2000 02:48:43 +0200

This is a multi-part message in MIME format.
==============C1CA8FAF7BB2E0C3676F339A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Hi

I'm (again, *sigh*) planning on completely reformatting and partitioning
my disk, mainly because half of it is used up by dos partitions, but I
don't do anything dos/w*yeck anymore.

I plan on 32 meg /boot, 500meg /, 1.5 giga /usr and the rest (6 giga)
/home.
But More and more programs advice to install in /opt, how much space
should I reserve for that one? (or would it be easiest to make a simlink
/opt --> /usr/local/opt ?
By the way, What is the function of /opt? why not /usr/bin? I couldn't
find any info on it?

BTW, as I'm repartitioning anyway, do you think I should use ReiserFS,
or stick with good ol' ext2? I found some info, But I wonder if the
(minor) advantages outweigh the lots of fiddling and maybe even
unstability infolved (i'm no top user, i'm more about stability, and as
this pc is our home internet server too, it can't be offline for more
than, say, a day. If I need too much fiddling, it'll cost too much time)

BTW2 All the mp3's on my hd (4gig now), wher should I put it? /home/mp3
sounds good, but it's got to be accessible via the network too, without
compromising safety. There's no convention on this... suggestions?

thanks in advance
    Tijmen

--
>From Tijmen Stam - "I believe in Linux" - [EMAIL PROTECTED]
POVray page http://members.tripod.lycos.nl/somepage/ Last update: 2000-10-15
count linux @ counter.li.org reg#178552, Machine#78930 & #78931





==============C1CA8FAF7BB2E0C3676F339A
Content-Type: text/x-vcard; charset=us-ascii;
 name="tijmen.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Tijmen Stam
Content-Disposition: attachment;
 filename="tijmen.vcf"

begin:vcard 
n:Stam;Tijmen
tel;fax:++31 (0)50 5425400
tel;home:++31 (0)50 5415448
x-mozilla-html:TRUE
url:http://members.tripod.lycos.nl/somepage/
org:Me, Organized? You've got to be kidding!;Chaos Storage Facility #666
adr:;;Middelberterweg 48;Groningen;Groningen;9723 EW;The Netherlands
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;-13600
fn:Tijmen Stam
end:vcard

==============C1CA8FAF7BB2E0C3676F339A==


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

From: Joshua Baker-LePain <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,comp.os.linux.hardware
Subject: Re: RH7 and Crystal CS4237B
Date: 25 Oct 2000 00:40:33 GMT

In comp.os.linux.hardware Charlie Zender <[EMAIL PROTECTED]> wrote:

> I'm trying to get RealPlayer audio/video streaming on my
> RedHat Linux 7.0 intel system, a dual processor Dell PIII
> Precision 610 with an integrated Crystal CS4237B soundchip
> (soundblaster compatible).

> The error message from the Real Audio 7.01 Unix player is:

> "Cannot open audio device, another application may be using it"

Are you in gnome?  Make sure that you check the box "start
sound server" in the gnome control panel.

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University

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

Subject: Re: running star/open office
From: John Hunter <[EMAIL PROTECTED]>
Date: 24 Oct 2000 19:41:07 -0500

>>>>> "Daniel" == Daniel J Bodony <[EMAIL PROTECTED]> writes:


    Daniel> This is indeed true for previous versions of StarOffice as
    Daniel> well.  As a user, selecting 'install' (or the nearest word
    Daniel> to 'install') will create a directory in ${HOME}.  The
    Daniel> same binary soffice should be used.

Right, I figures something like that but the devil is in the details.
There is no install script by that name; the closes I found was
'setup' but this just runs the useless script I described above
(modify/deinstall) that *does not* create the user dir.  So I am still
out of luck so far. 

    Daniel> I don't like this form of setup for the reason you posted:
    Daniel> it causes undo confusion.

I certainly agree with you.  I have installed tons of software from
source and binaries.  This package is one of the worst.  Is it just
me, or is there no repository of install instructions anywhere?  The
README says visit openoffice.org and the FAQ there contains historical
and descriptive stuff and stuff of interest to developers.



Thanks,
John Hunter

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

From: Roy Cabaniss <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: copying a disk
Date: Wed, 25 Oct 2000 00:46:08 GMT

I have a nice clean install of linux.  I want to make an exact copy of the
entire hard drive to another hard drive, copying the partitions exactly ect. 
What command would I use?



-- 
Dr. Roy F. Cabaniss           Chairman, Division of Business
Huston Tillotson College     Austin, Texas 78702
ph :  512-505-3130              fax : 512-505-3190

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

From: Tijmen Stam <[EMAIL PROTECTED]>
Crossposted-To: 
alt.os.linux,comp.os.linux.setup,alt.os.linux.mandrake,alt.os.linux.slackware
Subject: Re: Determinig functions build in Kernel
Date: Wed, 25 Oct 2000 03:01:29 +0200

This is a multi-part message in MIME format.
==============9CA4735DD714BB96FD4E7F17
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

don't post to that many goups!


> Hello,

>
> I have been trying to
>
> make config
>
> and I get errors about
>
> Makefile: Makefile:91:/Rules.make: No such file or directory
> make: *** No rule to make target '/Rules.make'. Stop.
>
> I cannot find an xconfig or menuconfig
>
> do these come in a package of another name?
>
> Joid

What are you talking about? Are you trying to compile a kernel? If so, then
probably your kernel sources are broken or unclaen. Try to get from ftp.<your
country>.kernel.orgthe latest 2.2.x kernel source files. After building the
kernel, you can use make clean, but I prefer a rm -fr /usr/src/linux-2.2.x ; tar
xzf /<where the kernel source tarbal is stored>/kernel-2.2.x.i386.tar.gz (or
something like that..., I always build them on the other pc).

Try if it works now, if not, mail me.


By the way, make menuconfig is way better than make config. Even better than make
xconfig, IMHO...


Tijmen


--
>From Tijmen Stam - "I believe in Linux" - [EMAIL PROTECTED]
POVray page http://members.tripod.lycos.nl/somepage/ Last update: 2000-10-15
count linux @ counter.li.org reg#178552, Machine#78930 & #78931



==============9CA4735DD714BB96FD4E7F17
Content-Type: text/x-vcard; charset=us-ascii;
 name="tijmen.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Tijmen Stam
Content-Disposition: attachment;
 filename="tijmen.vcf"

begin:vcard 
n:Stam;Tijmen
tel;fax:++31 (0)50 5425400
tel;home:++31 (0)50 5415448
x-mozilla-html:TRUE
url:http://members.tripod.lycos.nl/somepage/
org:Me, Organized? You've got to be kidding!;Chaos Storage Facility #666
adr:;;Middelberterweg 48;Groningen;Groningen;9723 EW;The Netherlands
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;-13600
fn:Tijmen Stam
end:vcard

==============9CA4735DD714BB96FD4E7F17==


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

From: [EMAIL PROTECTED] (The Ghost In The Machine)
Subject: Re: Creating a hard link to a directory....
Date: Wed, 25 Oct 2000 00:49:34 GMT

In comp.os.linux.misc, Rob Blomquist
<[EMAIL PROTECTED]>
 wrote
on Wed, 20 Sep 2000 22:33:57 -0700
<[EMAIL PROTECTED]>:
>I'm trying to make a hard link from a directory in my home directory to
>/mnt/robbo.
>
>I have su'd to root, then given the command: ln -F /mnt/robbo
>/home/robbo/documents. I get the error message "Invalid Cross Device
>Link". I guess that means that it thinks /home/robbo/documnents is a
>file. I have tried several other variants, and can't seem to figure this
>one out. Yes, I realize that I could mount the drive to the location,
>but I would rather do this.
>
>Any thoughts?
>-- 
>Rob Blomquist
>Kirkland, WA
>
>Gone to the penguins...Bye, bye, Billy-boy....

Others have already identified the issue and fixed it (use ln -s),
but I will merely comment on a more technical aspect of this problem.

There are actually two representations of a file or directory; it is
also worth noting that a directory is a file -- a special type of
file which can only be manipulated by the kernel, specifically
the file system responsible for the volume upon which the directory
resides.  In this respect, Linux ext2fs isn't that much different from
DOS FAT/FAT32, except for the fixed-size root directory -- or probably
from NTFS (NT's default file system), although I don't know the details.

The first representation is the familiar path representation, which
starts at the root or the current directory -- one can call this
the "naming tree" (and it actually was in at least one OS), even
though this is not strictly accurate; see below.  This is the one that
all users and most programmers see.  Note that there's no drive
specifier in Unix; all paths start from the root, which is the root
of the first mounted volume.  Subsequent volumes are mounted lower
down in the naming tree; for example, an installation may associate
/ with /dev/hda1, swap with /dev/hda5, /usr with /dev/hda6,
and /var with /dev/hda7 (this association is managed by either
manually using the mount(1m) command, or by editing the file
/etc/fstab, which is read upon bootup and 'mount -a'.
The name resolver knows what to do if fed a pathname such as
/usr/local/bin/netscape; it will get the file from
/dev/hda6's filesystem with the path '/local/bin/netscape'.
This makes things more flexible than the "Map Network drive"
command in Windows, or even the '\\server\sharename' path form,
as it is controlled by the node requesting the mount, not the
node sharing the information.

I will call the shortest possible pathname to access a file or
directory (without symbolic links) the "canonical pathname"
in the following.

The second representation is using an internal number, called an inode
number.  This representation is only of interest to hardcore developer
types who like to muck around in the file system -- or do something
unusual to repair a damaged one.  However, understanding this concept
helps to explain what a "hard link" is.  (By convention, the root
inode of an ext2-formatted volume is always 2, for some reason;
this predates Linux.  Note that this isn't a given for other volume
types; a FAT volume has a root inode of 1 in Linux, for example.
(It's somewhat arbitrary as a FAT volume has that weird root
directory contiguous area, anyway.) )

A soft link is just a text representation, relative to the link's parent.
If /a/b/c/d is a soft link containing the text "../../e/f/g",
attempting to open /a/b/c/d results in the resolving of the
text /a/b/c/../../e/f/g, which (usually!) leads to the path /a/e/f/g,
which may or may not exist.  I am not sure of the details of this at
this time, but if you're really interested, you can peruse the
kernel source code, starting at /usr/src/linux/fs/namei.c.

This can get rather involved if multiple soft links are encountered.
Most systems, Linux included, will stop at 10 or so links, and return
the error EMLINK ("Too many links").

A hard link, by contrast, is actually *another* file entry.  As you may
have already noticed, there is no requirement that the mapping
between canonical root path and inode be one-to-one; one can easily
envision /a/b/c/d and /a/e/f/g pointing to the same inode.  This is
precisely what 'ln' (sans -s option) does:

ln /a/e/f/g /a/b/c/d

will create a file or directory /a/b/c/d, while taking the inode number
from /a/e/f/g, whatever it is.  (One can list the inode number by using
ls -i.)

That's all a hard link is.

Once created, a hard link is indistingishable from the file it is
linking to, except perhaps for the modification time of its containing
directory.

A couple more things.

First, there's the concept of links (stat.st_nlink; see
/usr/include/bits/stat.h) -- just to confuse things even further.
When a directory refers to a file or another directory, st_nlink
is incremented for the file referred to; this means that files
normally have a link count of 1, and directories have a link count
of 2 + subdirectories (remember that . and .., which are present
in every directory, have to have their counts adjusted, too -- but
. is itself, and .. is the parent).  find(1) uses this information
to attempt to optimize its directory scanning; the -noleaf
option disables this optimization if necessary.

In other words, stat.st_nlink is a link *count*.

(The link count is the first number in an ls -l output, just
after the permissions and before the owner.)

However, if an object has been hard-linked, the link count
increases; if a file has 3 names, its link count will be 3.
This means that the "naming tree" is in fact a directed-acyclic-graph,
if not worse.

If one deletes a name, the link count decreases; the space on
the volume used by that file or directory is actually reclaimed
only when the count goes to 0.

If one renames a hard-linked file, the inode doesn't change,
just the name.  All other names referring to that file
still refer to the same file.

Note that soft links don't increment the link count and can become
"broken" if the object being referred to (or one of its ancestor
directories) is removed or moved away.  One can also create a
file through a soft link (but all the directories above it
must exist), but a hard-linked file must exist at the time of
the hard link.  Also, soft links can refer to another object;
check out /lib, for example, for a straightforward application
of this technique:

$ ls -l /lib/libc*
-rwxr-xr-x   1 root     root      4101324 Feb 29  2000 /lib/libc-2.1.3.so
lrwxrwxrwx   1 root     root           13 May 15 18:59 /lib/libc.so.6 ->
libc-2.1.3.so
...
$

Second, as another poster has pointed out, one can do very bad things
with hard links, if one is careless; the typical problem is a
directory reference loop.  Also, it's not clear to me that find will
function quite right, as the link count for the directory will
be slightly off.  (It's probably not a big problem, as I suspect it's
used to allocate an internal array; it would only be a problem if the
count is too *low*.)

Hope this helps. :-)

-- 
[EMAIL PROTECTED] -- insert random misquote here

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

From: "lobotomy" <[EMAIL PROTECTED]>
Subject: Re: Slackware 7.1 / Telnet
Date: Wed, 25 Oct 2000 00:50:31 GMT

They could have changed it, but in 7.0 it is started from inetd.  Check
/etc/inetd.conf.  The program is /usr/sbin/in.telnetd.  According to the
man page, you can change the port by editing /etc/services.

In article <8t51gc$u2n$[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:

> Does anyone know where the telnet server is started in Slackware 7.1
> and/or how to change the port it runs on?  I looked through /etc/rc.d/*
> but i found no mention of telnet.  any help would be greatly
> appreciated. thanks.
> 
> 
> Sent via Deja.com http://www.deja.com/ Before you buy.


-- 
PC Chips actually goes by many names. PCChips = Ability = Alton = Amptron = 
Aristo = Asia Gate = Asiatech = Assa = Atrend = Elpina = Eurone = Fugu = 
Fugutech = Hi Sing = Houston = Hsing Tech = H Tech = Matsonic = Minstaple = 
PCWare = Pine = Protac = QDI = Warpspeed

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

From: Tijmen Stam <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: copying a disk
Date: Wed, 25 Oct 2000 03:10:33 +0200

This is a multi-part message in MIME format.
==============6238650FB43D210A02117DCD
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Roy Cabaniss wrote:

> I have a nice clean install of linux.  I want to make an exact copy of the
> entire hard drive to another hard drive, copying the partitions exactly ect.
> What command would I use?

assuming the source hd is /hda and the dest is /hdb: try dd if=/dev/hda
of=/dev/hdb

(if you want to copy partitions, use the /dev/hda1,2,5,6...  An image
from a cd
is also easier to make with dd than with obscure progs like mkisofs... I
beleive, in this way you can even burn a (less than 700 meg in size of
course...) harddisk or partition to a cd. Though you'ld have to mount it
as
ext2 instead of iso9660. haven't tried it, though. (BTW, I don't think
it's
still bootable then)

RTFM (of dd!)

Tijmen


--
>From Tijmen Stam - "I believe in Linux" - [EMAIL PROTECTED]
POVray page http://members.tripod.lycos.nl/somepage/ Last update:
2000-10-15
count linux @ counter.li.org reg#178552, Machine#78930 & #78931
==============6238650FB43D210A02117DCD
Content-Type: text/x-vcard; charset=us-ascii;
 name="tijmen.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Tijmen Stam
Content-Disposition: attachment;
 filename="tijmen.vcf"

begin:vcard 
n:Stam;Tijmen
tel;fax:++31 (0)50 5425400
tel;home:++31 (0)50 5415448
x-mozilla-html:TRUE
url:http://members.tripod.lycos.nl/somepage/
org:Me, Organized? You've got to be kidding!;Chaos Storage Facility #666
adr:;;Middelberterweg 48;Groningen;Groningen;9723 EW;The Netherlands
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;-13600
fn:Tijmen Stam
end:vcard

==============6238650FB43D210A02117DCD==


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


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