LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-19-2004, 10:21 AM   #1
suguru
Member
 
Registered: Dec 2003
Location: Voluntarily move into diaster relief areas.
Distribution: Upgraded from Suse 10 to Ubuntu.
Posts: 104

Rep: Reputation: 15
Find all system files altered or added by me


I want to backup all system files such as /etc/fstab or resolv.conf that
have been added or altered. I thought I would use
find /mnt/hdb8/ -newer /mnt/hdb8/var/lib/dpkg/info/adduser.list
to get a list of files that needed to be backed up. The above find
gives me an error just like the ls below.

m25@w:~$ locate adduser.list
/mnt/hdb8/var/lib/dpkg/info/adduser.list
m25@w:~$ sudo ls /mnt/hda8/var/lib/dpkg/info/adduser.list
ls: /mnt/hda8/var/lib/dpkg/info/adduser.list: No such file or directory

Can anyone please tell me what I am doing wrong and more
importantly what I need to do to find and backup the files I have
added or altered?
 
Old 09-19-2004, 10:36 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
It sounds like your slocate database is out of date. Try running:
updatedb

then your locate command again.
 
Old 09-19-2004, 01:12 PM   #3
suguru
Member
 
Registered: Dec 2003
Location: Voluntarily move into diaster relief areas.
Distribution: Upgraded from Suse 10 to Ubuntu.
Posts: 104

Original Poster
Rep: Reputation: 15
Already updatedb w/hdb8 but hdb8 isn't active

Thanks david_ross,
Maybe we have to do something different when we have
booted from another partition or liveCd?

Your suggestion to run updatedb is something which I
have been known to forget. But just seconds before I already
did updatedb with hdb8 mounted. Locate finds it but
ls and find do not. I can't understand why nor how to
fix it so that they do.

Any suggestions please. And please give me the exact
command to find what is newer than May 10 the date on
adduser.list.
 
Old 09-19-2004, 01:18 PM   #4
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
As for the date command - im lost - might check man find
as for the locate/updatedb/ls problem, you'll need to know how it works
ls looks @ actual files and tell you about them, if they're present
locate looks in a pre-existing database too see if a string matching $1 is present, regardless of what your filesystem actually has in it
if you run updatedb (as root) then it will update that database to reflect more current data
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can I find links in the system that point to certain files throughout the system? HGeneAnthony Linux - Newbie 3 02-18-2005 08:28 AM
9.2 partitions not added into a 10.1 file system choco66 Mandriva 1 12-10-2004 05:09 PM
Can find files on my system! pmorkert Linux - Software 2 07-30-2003 11:40 AM
Cannot find new added harddisk vwhk Linux - Software 4 01-03-2002 10:00 PM
Where is How-TO on formating new HD that will be added to system bankrupt Linux - General 5 07-15-2001 03:31 AM


All times are GMT -5. The time now is 07:37 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration