LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-24-2003, 09:55 AM   #16
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46

I downloaded the iso from the site you provided and installed. The lastlog file is 292 bytes with only the root account. I used ext2 file system. Try deleting the file and then use touch to recreate it. It should report 0 bytes until an account logs in again.

On your other messages, it appears that the new slack has a new startup process to support hot plug equipment. The /etc/rc.d/rc.hotplug script that uses /etc/hotplug directory. Since this is new I haven't had the time to review it all of it as yet. But it might be your modules are being called from that startup sequence. My install loaded all kinds of modules that I normally have to load manually. The /etc/modules.conf file is still empty and all the modules /etc/rc.d/rc.modules are remarked out. Perhaps it will help you to locate where the modules are being loaded.

Last edited by Excalibur; 03-24-2003 at 09:56 AM.
 
Old 03-24-2003, 10:52 AM   #17
sels
LQ Newbie
 
Registered: Mar 2003
Distribution: Gentoo/Debian/LFS
Posts: 8

Rep: Reputation: 0
Re: The /var/log/lastlog question ... this drove me nuts for a couple of days; same problem, big file, but why? Here are a couple of exerpts of info i found on google.com, may be of help:

**************
"... There are some files that may be big and are often changing, but aren't log files. Don't mess with them. (Redhat Linux pathnames given here.)

/var/log/lastlog

Sparse file, indexed by UID, giving info on last login for each user

Don't copy it!
No need to truncate -- it's not using all the space that ls -l says it is

Use du -s lastlog to see how big it really is ..."

*************
And ...

**************
"Wow, that's the worst explanation of sparse files I've ever seen.

Sparse files were actually a space saving "trick" introduced in Unix
filesystems a long, long time ago. The need sprang from hashed files,
which is probably where "index" got into your muddled explanation.

A hash is an access/storage method where a mathematical function is
applied to a key. The number that results from that function is used as
the record number, or offset of the file. For example, suppose we had
the keys mary and tom (with associated data, of course), Our hash
function turns the word "mary" into the number 45, and turns "tom" into
128. Pretending that the data stored is 512 bytes for each record,
you'd find mary's data 512 * 45 bytes from the start of the file, and
tom's at 512 * 128 bytes. This sort of "indexing" with hashed keys
gives incredibly fast access to records (there are issues with how to
deal with keys that hash to the same value, biut we'll ignore that
here).

A good hash function is going to generate widely disparate numbers
(that's one of the ways to minimize the duplication problem). So rather
than 45 and 128, we'd really get something like 2 and 438,785. Now
suppose that these were the only data stored in the file so far: it
would be a pretty big file, over 200 megabytes (433,785 * 512), but
there's really only 1024 bytes of real data in it- a whole bunch of
wasted space.

Now we turn to the way Unix file systems work. Without getting into too
much detail, and without getting too much into the confusion of
indirect, double indirect etc here, the Unix inode has pointers to the
places where a files data can be found. The first ten pointers point
directly to data blocks, the next points to indirect blocks which in
turn point to real data blocks and so on.

So, the "mary" data ends up in the second data block (assuming 1k blocks
here) and the "tom" data ends way out in one of the double indirect
blocks somewehre. None of the other pointers are being used. No data
needs to be stored, so no need to waste space: this is a sparse file.
If you look at it with "ls -l" it looks like it's 200+ MB, but if you
removed it, you wouldn't gain 200 MB of space. If you do something that
reads it sequentially, the driver just returns nulls for the data that
isn't there. And that's the problem: ordinary tape utilities write
those nulls, using up 200+ MB of tape, and if it is restored with the
same non-aware utility, the data blocks actually get allocated and
filled with ascii 0's- now you really have used 200 MB of space.

The Supertars are smarter than this and do not write or restore the
nulls ..."

********************

hth
 
Old 03-24-2003, 10:59 AM   #18
Sifvion
Member
 
Registered: Jan 2002
Location: Singapore
Distribution: Slackware
Posts: 250

Original Poster
Rep: Reputation: 30
I used du -hs lastlog and it SHOW 8K !! So supposedly its really 8k can I assume that the type of files system I used cause this problem? I believe others is using different files system I am using Reiser.
 
Old 03-24-2003, 11:51 AM   #19
sels
LQ Newbie
 
Registered: Mar 2003
Distribution: Gentoo/Debian/LFS
Posts: 8

Rep: Reputation: 0
AFIK, du -hs shows the REAL file usage, even though things like ls -al show something different; it is all in the way the file is organized, as was explained in my previous post. I don't think the TYPE of file system makes any difference ... I have not played with reiserfs, nor do I know much more about this issue .... just enough to be dangerous, I guess. However, I don't think this is a PROBLEM ... it is just that /var/log/lastlog is a "unix sparse file" layout. Again, other than my previous post as an explanation, I can't offer more.
 
Old 03-24-2003, 07:42 PM   #20
Sifvion
Member
 
Registered: Jan 2002
Location: Singapore
Distribution: Slackware
Posts: 250

Original Poster
Rep: Reputation: 30
Thanks sels.

I am going to compile the kernel to solve my 1st problem. I download http://www.slackware.at/data/slackw...20-noarch-5.tgz and use installpkg to install the package. Then it create a folder call linux and 2.4.20. I do not wish to create a new boot, I wish to overwrite the current kernel.Can I just go into linux folder and : make mrproper
make menuconfig
make dep
make clean
make bzImage
make modules
and lastly make modules_install.

I have tried it but dont seem like I am booting up the new kernel configurations.
 
Old 03-24-2003, 07:45 PM   #21
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
http://www.linuxquestions.org/questi...threadid=49035
 
Old 03-25-2003, 01:37 AM   #22
Sifvion
Member
 
Registered: Jan 2002
Location: Singapore
Distribution: Slackware
Posts: 250

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by DaOne
http://www.linuxquestions.org/questi...threadid=49035
This is the one that will create another kernel instead of overwriting the old one right? And does the link apply to 9.0 also?

And when we said

scroll to line 74 and uncomment the the line #export INSTALL_PATH=/boot.
For 8.0 you must leave this line commented.

meaning I will delete the whole line right? I think uncomment is just to remove the # sign.

Last edited by Sifvion; 03-25-2003 at 01:51 AM.
 
Old 03-25-2003, 06:20 AM   #23
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
Quote:
This is the one that will create another kernel instead of overwriting the old one right? And does the link apply to 9.0 also?
Yes...and Yes.
Quote:
I think uncomment is just to remove the # sign
Yes.
 
Old 03-26-2003, 09:59 AM   #24
Sifvion
Member
 
Registered: Jan 2002
Location: Singapore
Distribution: Slackware
Posts: 250

Original Poster
Rep: Reputation: 30
Do anyone know if I were to compile the kernel to solve my watchdog issue which module should I not install? I remember I didnt see any modules mention about watchdog when I tried the last time.
 
Old 03-26-2003, 10:27 AM   #25
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
If you remove the support for watchdog timers...the modules will not be installed, nor will there be support un the kernel. This is what you want in your case.
This is located in the Character Devices section of your kernel config menu. Completely remove Watchdog Timer support. Just be sure to recompile.

Edit: The module is i810-tco.
 
Old 03-26-2003, 10:53 AM   #26
Sifvion
Member
 
Registered: Jan 2002
Location: Singapore
Distribution: Slackware
Posts: 250

Original Poster
Rep: Reputation: 30
DaOne you are the best. I will try it now it should work. You are my affero guy.
 
Old 03-26-2003, 12:25 PM   #27
Sifvion
Member
 
Registered: Jan 2002
Location: Singapore
Distribution: Slackware
Posts: 250

Original Poster
Rep: Reputation: 30
Great problem solved ! Its time for me to import back my data. And ArGgGgGg I never be able to get my Canon S400 working perfectly in slack.
 
Old 03-26-2003, 01:49 PM   #28
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
Quote:
Great problem solved !
Glad to hear it...good job!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I dont understand this! zeldafanfreak Linux - Hardware 1 08-12-2005 02:52 PM
I dont understand blacktattoo Linux - Newbie 1 12-26-2004 08:41 PM
i dont really understand this. Brain Drop General 3 08-18-2003 08:54 PM
i dont understand!!!! Fathonkey Linux - Software 17 05-29-2003 11:37 AM
Things dont work when you dont understand withoutaclue Linux - Newbie 3 03-12-2003 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration