Re: lastlog is huge

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2005-03-01 at 20:30 -0600, Jonathan Berry wrote:
> On Tue, 1 Mar 2005 10:26:52 -0500, Matthew Miller <mattdm@xxxxxxxxxx> wrote:
> > On Tue, Mar 01, 2005 at 09:19:01AM -0600, Aleksandar Milivojevic wrote:
> > > >"if this is a 64 bit machine... the nfs nobody user has UID of -1...
> > > >which is a lot on 64 bit"
> > > Good thing nobody logs in as nobody :-)
> > > Or is there anybody?
> > 
> > Lots of things switch to 'nobody', and this may get logged.
> 
> A quite interesting discussion.  Something must get logged at some point:
> $ ll /var/log/lastlog
> -r--------  1 root root 1254130450140 Mar  1 20:01 /var/log/lastlog
> $ ll -h /var/log/lastlog
> -r--------  1 root root 1.2T Mar  1 20:01 /var/log/lastlog
> Now I wish I had a 1.2 Terabyte disk in my laptop ;).  Using "ls -hs"
> shows the actual size to be 52 kB.
> Actually this is very close to the value reported by the OP, so
> perhaps he also has a 64-bit machine.  It has sort of been suggested,
> but for the OP, the "du" program is very useful for telling you how
> much space things take up.  I especially like "du -hs *" which tells
> you the size of each of the directories in the current directory. 
> Also, check out "df" and "df -h"  Note that all of these should be run
> in a terminal.
> Lastly, if you are trying to use Ghost, then you actually may not be
> able to go from a 160 GB disk to a 36 GB disk.  Ghost, as far as I
> know, creates an image of the disk, which is a direct binary copy. 

This explanation of ghost is not quite correct.  

dd would create an exact binary copy, byte for byte and can only be used
to copy to a drive/partition of the same size or larger.  It also would
have issues with wanting to resize partitions.

Ghost, OTOH creates a copy of the *_data only_*, and stores the
partition size/type information as well.  

Thus, you, in fact, may not be able to go from a 160gb disk to a 36gb
disk, but that would be due to space occupied by the data and not by
virtue of the original drive/partition size. 
When you use Ghost to create and restore the image it will tell you both
the partition size and the data size so you know what your choices are.
Partition size is adjustable, data size is not.

> You should be able to do this on a partition-by-partition basis if the
> partitions are the same size, but I would still be careful.  Perhaps a
> better choice would be to boot to the rescue CD and simply mount the
> partition to copy from and to copy to and just copy the files with "cp
> -a".
> 
This may be a good choice.

> Jonathan
> 


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux