LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-28-2012, 10:34 PM   #1
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431
Blog Entries: 32

Rep: Reputation: 3
e2fsck /lost+found files


Hi, I recently ran e2fsck on my system disk and have quite a few number of files in the lost+found. Here is an example of a file, I dont know what type of file this is so don't know where this should be placed:
Code:
#12304
#!/bin/sh
config() {
  NEW="$1"
  OLD="`dirname $NEW`/`basename $NEW .new`"
  # If there's no config file by that name, mv it over:
  if [ ! -r $OLD ]; then
    mv $NEW $OLD
  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
    rm $NEW
  fi
  # Otherwise, we leave the .new copy for the admin to consider...
}
config usr/lib/perl5/5.12.3/i586-linux-thread-multi/perllocal.pod.new

( cd usr/man/man1 ; rm -rf psed.1.gz )
( cd usr/man/man1 ; ln -sf s2p.1.gz psed.1.gz )
( cd usr/man/man1 ; rm -rf pstruct.1.gz )
( cd usr/man/man1 ; ln -sf c2ph.1.gz pstruct.1.gz )
#12309
Code:
( cd usr/bin ; rm -rf python2 )
( cd usr/bin ; ln -sf /usr/bin/python2.7 python2 )
( cd usr/bin ; rm -rf python-config )
( cd usr/bin ; ln -sf python2.7-config python-config )
( cd usr/lib ; rm -rf libpython2.7.so )
( cd usr/lib ; ln -sf libpython2.7.so.1.0 libpython2.7.so )
( cd usr/lib/pkgconfig ; rm -rf python.pc )
( cd usr/lib/pkgconfig ; ln -sf python-2.7.pc python.pc )
#12724
Code:
( cd usr/bin ; rm -rf altertrack )
( cd usr/bin ; ln -sf slacktrack altertrack )
#12728
Code:
( cd usr/man/man1 ; rm -rf vala-gen-introspect.1.gz )
( cd usr/man/man1 ; ln -sf vala-gen-introspect-0.10.1.gz vala-gen-introspect.1.gz )
( cd usr/man/man1 ; rm -rf vapigen.1.gz )
( cd usr/man/man1 ; ln -sf vapigen-0.10.1.gz vapigen.1.gz )
( cd usr/man/man1 ; rm -rf valac.1.gz )
( cd usr/man/man1 ; ln -sf valac-0.10.1.gz valac.1.gz )
( cd usr/bin ; rm -rf vala )
( cd usr/bin ; ln -sf vala-0.10 vala )
( cd usr/bin ; rm -rf vala-0.10 )
( cd usr/bin ; ln -sf valac-0.10 vala-0.10 )
( cd usr/bin ; rm -rf vapigen )
( cd usr/bin ; ln -sf vapigen-0.10 vapigen )
( cd usr/bin ; rm -rf valac )
( cd usr/bin ; ln -sf valac-0.10 valac )
( cd usr/bin ; rm -rf vapicheck )
( cd usr/bin ; ln -sf vapicheck-0.10 vapicheck )
( cd usr/bin ; rm -rf vala-gen-introspect )
( cd usr/bin ; ln -sf vala-gen-introspect-0.10 vala-gen-introspect )
( cd usr/lib ; rm -rf libvala-0.10.so.0 )
( cd usr/lib ; ln -sf libvala-0.10.so.0.0.0 libvala-0.10.so.0 )
( cd usr/lib ; rm -rf libvala-0.10.so )
( cd usr/lib ; ln -sf libvala-0.10.so.0.0.0 libvala-0.10.so )
#12730
Code:
( cd usr/lib ; rm -rf libORBitCosNaming-2.so )
( cd usr/lib ; ln -sf libORBitCosNaming-2.so.0.1.0 libORBitCosNaming-2.so )
( cd usr/lib ; rm -rf libORBitCosNaming-2.so.0 )
( cd usr/lib ; ln -sf libORBitCosNaming-2.so.0.1.0 libORBitCosNaming-2.so.0 )
( cd usr/lib ; rm -rf libORBit-2.so )
( cd usr/lib ; ln -sf libORBit-2.so.0.1.0 libORBit-2.so )
( cd usr/lib ; rm -rf libORBit-2.so.0 )
( cd usr/lib ; ln -sf libORBit-2.so.0.1.0 libORBit-2.so.0 )
( cd usr/lib ; rm -rf libORBit-imodule-2.so )
( cd usr/lib ; ln -sf libORBit-imodule-2.so.0.0.0 libORBit-imodule-2.so )
( cd usr/lib ; rm -rf libORBit-imodule-2.so.0 )
( cd usr/lib ; ln -sf libORBit-imodule-2.so.0.0.0 libORBit-imodule-2.so.0 )
A bunch of files like this, I wonder where these are originally from?
Thanks,
Ted
 
Old 09-29-2012, 05:17 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,783

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
They look like leftover scripts from a software installation that didn't get a chance to clean up after itself.
 
1 members found this post helpful.
Old 09-30-2012, 01:05 PM   #3
Fred Caro
Senior Member
 
Registered: May 2007
Posts: 1,007

Rep: Reputation: 167Reputation: 167
ted,
yes could be but might be the result of a large copy and paste without syncd permissions?

Fred.
 
1 members found this post helpful.
Old 10-01-2012, 02:12 AM   #4
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431

Original Poster
Blog Entries: 32

Rep: Reputation: 3
Thanks rknichols, I sorted out those files, now I am left with a few none txt files, these are probably executable files. Because I can't read them properly in text editor. Can anyone give me a clue how I should identify where they belong?
thanks fred, but what do you mean by that?
Thanks,
Ted
 
Old 10-01-2012, 09:21 AM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,783

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
There is a file command that is pretty good about identifying file types and a strings command that will find and display whatever printable strings occur in a file. The strings command defaults to sequences of 4 or more printable characters. You'll probably want to specify a somewhat larger minimum length, e.g.: "strings -n 8".
 
Old 10-01-2012, 10:25 PM   #6
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431

Original Poster
Blog Entries: 32

Rep: Reputation: 3
Hi, I used file command to determine the type of file, output shows data, I checked the man, data seems to be "anything other than text or executable file" I am guess that they are media files then:
Code:
server:/~
root:# ls /lost+found
#184809/  #184812  #184816  #184819  #184822  #184825  #184828   #8584/
#184810   #184813  #184817  #184820  #184823  #184826  #184829
#184811   #184815  #184818  #184821  #184824  #184827  #184840/
server:/~
root:# stat /lost+found/#184812
  File: `/lost+found/#184812'
  Size: 3431            Blocks: 8          IO Block: 4096   regular file
Device: 801h/2049d      Inode: 184812      Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2012-10-02 11:19:25.000000000 +0800
Modify: 2010-11-20 16:39:00.000000000 +0800
Change: 2003-01-01 08:33:28.000000000 +0800
 Birth: -
server:/~
root:# file /lost+found/#184812
/lost+found/#184812: data
server:/~
root:# file /lost+found/#184812 -n 8
/lost+found/#184812: data
8:                   ERROR: cannot open `8' (No such file or directory)
Here is my attempt to read the file:
Code:
root:# cat /lost+found/#184812
'?N?壘Q?卅璈P嶬?(//?繺蒚,擿@,
?CA>SEj5A???殎A矮?府E.—偍m*T?孕?B胃1      b#|vm*T?鈧?
?*T#蕹*T漕*凳鉚?I5g疣?B伙?W^?A8kⅢS n
b*T熄,Z寒)++;k??周、?1*T沌 冰?
*P、?1*T沌 L?
*P、??`?}B3&5;~?3
                                ?])兌浿許?5eJ翔;南2??gㄎ閰U
?a?z]2餗?H@醥瞜Huu?i     $?路?蘪8?    刪&&W2?赽?g迎峈  ?宏v?,"
zX?q:賓福7A驃牧燻o??i妦?7z魴?瓗卹V?     ?
?褥瓙dnFLV&g?4 %i??
?n羺u齕???裞7????z鋘q?尬X        3WQ罰??W??'柧(?嘕?裮*0瀸
?淊瀩p炤]同x€(+I?擉冗蹈?屺}?扮 ?酬澰??l"_W'?儌諙cPWh;?!秏?鵅
YsP 週Y
         Z+@?q???珆q)穱|2猗坐`體蚢??W娸埰#de?暯EL7)H?p[e??
?8霪?-???扙?44CSJ?€?$"9K襗?+ ?窬?SW?暐??M                    R??I冗
吇膦?Z儺+\>謮?J4衩???厔</柧(wKi?霠?}C?4QUU?
s晡豕`l'Z槭嫹/2熧
                 ;?
?rY.?屯<?
?P、?
b*T沌橏B?卓捅濊?彘?停  `#?幬p,躍嶮?
                                       8f^l.O蔈N續??
?蟌宬TQTE潶g緉^衖?qU鹵D?3       V/j}}趣俬螸KE絊?張?}嵷S??2
                                                                    縻?Y
"优襤4
          褫?偏#?藕K?渱?蹳??//?鐠??6柬H+?
?鋺?痒?9N&
                  騖Q?
                      0??
??@€?灩狴K!鶌?糋?|?wY,馱幝撳?轕
磹栯隹劖[撋k脟饈羨猷郯?帢.??M?掌鎟攢?>襴A)傒B?RN?徠╝惷ee?jS?
 ??鶠?Xk妓??
??-
蓒薩?F擖_???)G砠?U胴??NR
╙騰罊?稑A婆                                          壩2麛替羇7?湖D5?€O?
襬??H??痁啕橤"具9V&\鯥嗚#-5          ?T7寑?$哏<?太??╮D森??
??3???"崽F熙腍0共睊?笎燁颳-???疏蜙?岔吨Z4踴???
?<S 各[??袖囁2?
                      -/]?/勸K?藏70NT&?S?)?.暋2=?IW?怔
?嬞J?甓(O塞?覦4??:"?葄????褻獗?,?K諕?T??M?
*P、?1*T沌 L?
*P、?
        *T沌 L?
*T(S、?
        *T沌、?
*T????踣蟼??
                     ??Y?厥:+2?&鑭-
?榑掀.睊?6?疶K!&???蒰鵰羜?(?@&?K鯠僛?羭綺&(??嫡VF?
孽沌 ??+????Q?醜.婞耦??
                                                   DQ??毫?I勾#??隋?4
層??齍?/?
                     桽J]椏??稄硪g^:齉頯舁紛=q漀?  ?EQ侞?:5G??蒪船RA?
姏鵨
玲;?嬼舝? ?2碪?0            :鏡 ?+? 騷.U$      坦效? *顑S作?S秭?? Z?
?C湜#        ?2?
E?8髫?(YC蠋諳]稫??            )憯竤?豷婞?<笨??      抔
鳴>甗蜧竊(???鐓揖??
+餽]?0??懂錔A2噢S蘊??壉?梃檽烘(+L?^€,hT?,榓/Z?
]梊?炎ES?〣?鑩$Q     ]韁剖L?犧?蟑?9廖柉鑝灪6?A\G忍
D倒?歞悈
        蠡羼蝗?蠁沃UU(?眾R?巍蕾,E鍾疙?融幄G譐丰??D?2[恞諴+?魑
 ?K灃??.??? ]愍?
*T:Y(S、?
        *T沌橖B?:&,?(?;幘,鬚Q?臩?1$??????U?-?1麑Q覡Q撘孔嗖
€7?JW'鼪?讒沐?!祒P撰RC?G頹?
                         ??
                              $Q8?揧???熗舔(?     指-[?
                                                              錢磭勸
??赮2瓖駌聝7作汸??戌F鱠鬮'嚕?UT庋XW?麋??掛$?-
</|                                                               ??!?6瑢?蓨
踖PEW7婭{菞f癹??ST?]摭;蘞[II?螝ks:俠妨約3?謝戊璜UY??樏渨y覭?
粉?
   $錯椵R??D?帠g?瀁呦-瑪挽訴?    |5d縩筑??骫aCG?<懭F?1$n悺TR?n?裝巠<
郝?€Q都5?乓?簋唱1?〕?>?_??暫Hq蠋        server:/~
Thanks,
Ted
 
  


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
Lost $ Found. S@R@H Linux - General 4 04-27-2010 01:44 PM
lost+found What happens if files are deleted from it? michaelII Linux - Newbie 3 03-25-2010 01:08 AM
Manual file system fixing with e2fsck -- are my files permanently lost? the theorist Linux - Software 5 04-04-2007 01:18 AM
e2fsck: command not found? johnincsoftware@gmai Slackware 3 03-10-2006 12:02 AM
hd-problem files lost, strange e2fsck message inge_ninge Linux - Newbie 3 01-26-2003 11:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:58 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
Open Source Consulting | Domain Registration