Unix Technical Forum

lost part of my "/usr/local"-filesystem - debian(woody)

This is a discussion on lost part of my "/usr/local"-filesystem - debian(woody) within the Linux Operating System forums, part of the Unix Operating Systems category; --> Hi all, I inadvertently deleted part of my "/usr/local"-filesystem doing a "rm -r /usr/local". Although I stopped the command ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 06:35 AM
F. Kappen
 
Posts: n/a
Default lost part of my "/usr/local"-filesystem - debian(woody)

Hi all,

I inadvertently deleted part of my "/usr/local"-filesystem doing a "rm
-r /usr/local". Although I stopped the command immediately when I
noticed my fault, I lost about 90 Mb of the filesystem. Among others
were the directoies:

bin, games, include, lib, lost+found, man, sbin, share

My system is running, but I worry about the loss of the
"lost+found"-directory. Is this critical? And if so, is there a way to
repair it? Unfortunately I haven't made a backup yet, so I cannot
restore things from a backup-medium.

Considering the other lost directories, I think that is not so harmful
and I can refill them occasionally whenever an application is missing
a needed file. But perhaps somebodey can tell me which applcations put
their files by default in one of the above mentioned directories.

Thank you in advance
Friedhelm

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 06:36 AM
John-Paul Stewart
 
Posts: n/a
Default Re: lost part of my "/usr/local"-filesystem - debian(woody)

"F. Kappen" wrote:
>
> Hi all,
>
> I inadvertently deleted part of my "/usr/local"-filesystem doing a "rm
> -r /usr/local". Although I stopped the command immediately when I
> noticed my fault, I lost about 90 Mb of the filesystem. Among others
> were the directoies:
>
> bin, games, include, lib, lost+found, man, sbin, share
>
> My system is running, but I worry about the loss of the
> "lost+found"-directory. Is this critical? And if so, is there a way to
> repair it?


'mkdir lost+found' maybe?

> Unfortunately I haven't made a backup yet, so I cannot
> restore things from a backup-medium.
>
> Considering the other lost directories, I think that is not so harmful
> and I can refill them occasionally whenever an application is missing
> a needed file. But perhaps somebodey can tell me which applcations put
> their files by default in one of the above mentioned directories.


On a Debian system, all .deb packages should normally put themselves in
/usr/bin, /usr/lib, etc. The only thing that you're likely to find in
/usr/local/bin are programs from other sources (e.g., programs you've
tarballs). Unfortunately, this makes it harder to recover without a
backup, unless you know what you've downloaded and installed there.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 06:36 AM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: lost part of my "/usr/local"-filesystem - debian(woody)

F. Kappen wrote:

> Hi all,
>
> I inadvertently deleted part of my "/usr/local"-filesystem doing a "rm
> -r /usr/local". Although I stopped the command immediately when I
> noticed my fault, I lost about 90 Mb of the filesystem. Among others
> were the directoies:
>
> bin, games, include, lib, lost+found, man, sbin, share
>
> My system is running, but I worry about the loss of the
> "lost+found"-directory. Is this critical? And if so, is there a way to
> repair it? Unfortunately I haven't made a backup yet, so I cannot
> restore things from a backup-medium.


It's not usually vital. If /usr/local is a partition, that directory was
created when you built a filesystem on it, to store debris discovered
when you run "fsck" to check on or repair that filesystem.

Don't worry about it, I believe that most fsck-like programs will
automatically generate it on the fly.

> Considering the other lost directories, I think that is not so harmful
> and I can refill them occasionally whenever an application is missing
> a needed file. But perhaps somebodey can tell me which applcations put
> their files by default in one of the above mentioned directories.


"It depends". Many distributions do not use those at all, putting all
system files in /usr instead. /usr/local is very useful for packages
that are fresh built from new tarballs, hot off the griddle, before
anyone competent has had a chance to update the published packages, or
for putting a second version in place for comparison testing.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 06:36 AM
F. Kappen
 
Posts: n/a
Default Re: lost part of my "/usr/local"-filesystem - debian(woody)

Thank you John-Paul and Nico,

for your reply. Now I can sleep a little better - without worrying about
my disturbed filesystem.

Cheers
Friedhelm

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:02 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com