Re: disk problems

From: Dave Uhring (daveuhring_at_yahoo.com)
Date: 06/22/05


Date: Tue, 21 Jun 2005 22:10:07 -0500

On Tue, 21 Jun 2005 22:54:39 -0400, LeopoldSA wrote:

> Hello
>
> There is my situation: I had a disk crash and after the repair I have
> found out that some directories are missing.
>
> syslogd is telling me that the following files/directories are missing
> var/log/messages
> var/log/messages
> var/log/authlog
> var/log/secure
> var/log/deamon
> var/log/xferlog
> var/loglpd-errs
> var/log/maillog
>
> Questions:
>
> Is there a way to find out the group owner, file owner and file
> permissions for those files/directories?

-rw-r----- 1 root wheel 565 Jun 21 17:38 authlog
-rw-r----- 1 root wheel 956 Jun 21 02:00 authlog.0.gz
-rw-r----- 1 root wheel 1253 Jun 14 02:00 authlog.1.gz
-rw-r----- 1 root wheel 1482 Jun 7 02:00 authlog.2.gz
-rw-r----- 1 root wheel 1131 May 31 02:00 authlog.3.gz
-rw-r----- 1 root wheel 1039 May 24 02:00 authlog.4.gz
-rw-r----- 1 root wheel 1354 May 17 02:00 authlog.5.gz
-rw-r----- 1 root wheel 1602 May 10 02:00 authlog.6.gz
-rw-r----- 1 root wheel 1769 May 3 02:00 authlog.7.gz
-rw-r----- 1 root wheel 18447 Jun 21 22:04 daemon
-rw-r----- 1 root wheel 3570 Jun 21 19:00 daemon.0.gz
-rw-r----- 1 root wheel 4390 Jun 21 15:00 daemon.1.gz
-rw-r----- 1 root wheel 4297 Jun 21 10:00 daemon.2.gz
-rw-r----- 1 root wheel 3406 Jun 21 07:00 daemon.3.gz
-rw-r----- 1 root wheel 4289 Jun 20 23:00 daemon.4.gz
-rw-r----- 1 root wheel 3581 Jun 20 18:00 daemon.5.gz
-rw-r--r-- 1 root wheel 2440 Jun 21 01:30 daily.out
-rw------- 1 root wheel 304 Dec 27 10:10 failedlogin
-rw-r----- 1 root wheel 0 Mar 19 2004 ftpd
-rw-r--r-- 1 root wheel 284348 Jun 21 09:02 lastlog
-rw-r----- 1 root wheel 0 Mar 19 2004 lpd-errs
-rw------- 1 root wheel 343236 Jun 21 22:04 maillog
-rw------- 1 root wheel 229513 Jun 21 15:00 maillog.0.gz
-rw------- 1 root wheel 200168 Jun 20 15:00 maillog.1.gz
-rw------- 1 root wheel 169431 Jun 19 15:00 maillog.2.gz
-rw------- 1 root wheel 194071 Jun 18 15:00 maillog.3.gz
-rw------- 1 root wheel 210996 Jun 17 15:00 maillog.4.gz
-rw------- 1 root wheel 214168 Jun 16 15:00 maillog.5.gz
-rw------- 1 root wheel 220538 Jun 15 15:00 maillog.6.gz
-rw------- 1 root wheel 225263 Jun 14 15:00 maillog.7.gz
-rw-r--r-- 1 root wheel 477 Jun 21 19:00 messages
-rw-r--r-- 1 root wheel 4753 Jun 19 22:00 messages.0.gz
-rw-r--r-- 1 root wheel 4872 May 6 12:00 messages.1.gz
-rw-r--r-- 1 root wheel 4759 Apr 7 21:00 messages.2.gz
-rw-r--r-- 1 root wheel 3916 Feb 15 22:00 messages.3.gz
-rw-r--r-- 1 root wheel 5157 Jan 17 16:00 messages.4.gz
-rw-r--r-- 1 root wheel 5299 Dec 19 2004 messages.5.gz
-rw-r--r-- 1 root wheel 15 Jun 1 05:30 monthly.out
-rw------- 1 root wheel 21080 Jun 21 17:37 pflog
drwxr-xr-x 2 root wheel 512 Mar 20 00:44 rdist
-rw------- 1 root wheel 58 Jun 15 12:00 secure
-rw------- 1 root wheel 232 Jun 15 12:00 secure.0.gz
-rw------- 1 root wheel 200 May 31 14:00 secure.1.gz
-rw------- 1 root wheel 383 May 17 11:00 secure.2.gz
-rw------- 1 root wheel 201 May 10 11:00 secure.3.gz
-rw------- 1 root wheel 237 May 3 10:00 secure.4.gz
-rw------- 1 root wheel 196 Apr 26 10:00 secure.5.gz
-rw------- 1 root wheel 200 Apr 11 17:00 secure.6.gz
-rw------- 1 root wheel 210 Apr 4 17:00 secure.7.gz
-rw-rw-r-- 1 root wheel 728 Jun 21 22:04 sendmail.st
-rw-r--r-- 1 root wheel 59 Jun 18 03:31 weekly.out
-rw-r--r-- 1 root wheel 600 Jun 21 13:10 wtmp
-rw-r--r-- 1 root wheel 421 Jun 21 04:37 wtmp.0.gz
-rw-r--r-- 1 root wheel 537 Jun 14 04:52 wtmp.1.gz
-rw-r--r-- 1 root wheel 603 Jun 7 04:48 wtmp.2.gz
-rw-r--r-- 1 root wheel 448 May 31 04:35 wtmp.3.gz
-rw-r--r-- 1 root wheel 495 May 24 06:05 wtmp.4.gz
-rw-r--r-- 1 root wheel 425 May 17 08:50 wtmp.5.gz
-rw-r--r-- 1 root wheel 736 May 10 08:59 wtmp.6.gz
-rw-r--r-- 1 root wheel 663 May 3 08:51 wtmp.7.gz
-rw-r----- 1 root wheel 0 Mar 19 2004 xferlog

> Is there a way to find out if there are any other files/directories missing?

Not really, but you could perform an upgrade.

> Is there a tree of my actual hard drive stored someplace? (i dont have a
> backup)

Some files are backed up in /var/backups.

> If I slap OpenBSD 3.5 CD in the drive will it recreate the missing
> files/directories without having to reinstall my accounts?

It is time to upgrade to 3.7; 3.5 is no longer being supported with
patches.

> Is there an option that I am not aware that would solve my problem?

DDS-2 tape drives are quite inexpensive on ebay.com.



Relevant Pages

  • Re: Lost Distribution Group.
    ... Create a new distribution group called "All Users" or ... For Exchange news, links and tips, check: ... > missing. ... I suspected with the upgrade that it didn't transfer over, ...
    (microsoft.public.exchange.admin)
  • Re: Lost My Documents after upgrading to XP
    ... Items Are Missing After You Upgrade to Windows XP Professional ... Mail Folders, Address Book, and E-mail Messages Are Missing After You ...
    (microsoft.public.windowsxp.general)
  • Re: Im REALLY in trouble now!
    ... > to WinMe and recently, I've been trying to install a wireless adapter, ... I felt that the Linksys adapter was probably ... > tried to upgrade my OS, but ran into another missing file! ...
    (microsoft.public.windowsxp.general)
  • Re: Upgrade from 6.3 to 7.0: Result ->Shared object not found :)
    ... If you will not update any ports/packages you should install compat6x and then you will be able to run ... The upgrade procedure is discussed every time when new major version is released, ... libcrypt, libcrypto are missing, or version is changed etc. ...
    (freebsd-performance)
  • Upgrade from Solaris 10 03/05 to Solaris10 06/06
    ... latform/sun4u/dcs:default is missing, inconsistent or invalid ... Required property name is missing. ... Was I supposed to upgrade to 01/06 first before I upgrade to 06/06? ...
    (SunManagers)