Sponsored Content
Special Forums Hardware Filesystems, Disks and Memory Restoring back files from "lost+found" directory Post 28764 by dhasarath on Tuesday 24th of September 2002 07:35:09 AM
Old 09-24-2002
Lightbulb Restoring back files from "lost+found" directory

Hi Friends,

How can I Restore the Files present under "lost+found" Directory of a FileSystem (in Solaris & Tru64 OS) to their original Locations.

[I know that files that go deferenced from the Filesystem in the aspect of INODES/BLOCK/etc get updated in the lost+found Directory of that FileSystem, when booting the system or manually doing FSCK on that FileSystem]

Now-a-days I am loosing lots of files in 2 of my Machines,
One running Solaris8 and other Tru64(Digital) Unix.

Thanx in Advance.....
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

All alias in .profile lost when "script" command is called

Hi, I was trying to call "script <an ip add>" command from .profile file to log everything whenever anyone logs in to this user. I did the following at the end of .profile. 1) Extracted the IP address who logged in 2) Called script < ip add> . The problem I am facing is all, aliases etc. written... (3 Replies)
Discussion started by: amicon007
3 Replies

2. Shell Programming and Scripting

Copy files gives "cp: omitting directory" error

I tried to copy data from one location to multiple location my typing... cp <source> <dest> <dest> however this will omits one of the destination ... and proceed to copy to only one directory (2 Replies)
Discussion started by: dplate07
2 Replies

3. UNIX for Advanced & Expert Users

Why is wget copying my directory tree with some files with "@"?

I'm using wget 1.11.4 on Cygwin 1.5.25. I'm trying to recursively download a directory tree, which is the root of a javadoc tree. This is approximately the command line I tried: wget -x -p -r http://<host>/.../apidoc When it finished, it seemed like it downloaded... (0 Replies)
Discussion started by: dkarr
0 Replies

4. Shell Programming and Scripting

Delete files older than "x" if directory size is greater than "y"

I wrote a script to delete files which are older than "x" days, if the size of the directory is greater than "y" #!/bin/bash du -hs $1 while read SIZE ENTRY do if ; then find $1 -mtime +$2 -exec rm -f {} \; echo "Files older than $2 days deleted" else echo "free Space available"... (4 Replies)
Discussion started by: JamesCarter
4 Replies

5. Shell Programming and Scripting

"Join" or "Merge" more than 2 files into single output based on common key (column)

Hi All, I have working (Perl) code to combine 2 input files into a single output file using the join function that works to a point, but has the following limitations: 1. I am restrained to 2 input files only. 2. Only the "matched" fields are written out to the "matched" output file and... (1 Reply)
Discussion started by: Katabatic
1 Replies

6. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

7. Shell Programming and Scripting

Delete all log files older than 10 day and whose first string of the first line is "MSH" or "<?xml"

Dear Ladies & Gents, I have a requirement to delete all the log files in /var/log/test directory that are older than 10 days and their first line begin with "MSH" or "<?xml" or "FHS". I've put together the following BASH script, but it's erroring out: for filename in $(find /var/log/test... (2 Replies)
Discussion started by: Hiroshi
2 Replies

8. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

9. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies
hier(7) 						 Miscellaneous Information Manual						   hier(7)

Name
       hier - file system hierarchy

Description
       The following is a brief description of the root file system.  The major directory hierarchy and representative files are listed.

       Symbolic links can be included in the files to provide backward compatibility. To display the links, type:
       % ls -l

       See the Guide to Disk Maintenance for more detailed information.

       /       Directory  for  root file system. This file system is separated into nonsharable data, (root (/)) and sharable data, (/usr).  These
	       two file systems are each divided into the following types: static data, variable data, and executable data.

       /bin    Directory for the single user executable data files.

       /bin/init
	       Parent of all processes,

       /bin/mount
	       Mount program,

       /dev    Directory for devices.
		  MAKEDEV Shell script to create special files
		  MAKEDEV.local
			  Site-specific part of MAKEDEV
		  console Main console,
		  rz	  SCSI disks,
		  rrz*	  Raw SCSI disks,
		  rmt*	  Tapes
		  mrmt*   Tapes
		  tty*	  Terminals,
		       .
		       .
		       .

       /etc    Directory for the machine-specific static data files and shell scripts for booting.
		  crontab   System clock daemon table,
		  disktab   Disk characteristics and partition tables,
		  fstab     File system configuration table,
		  group     Group file,
		  hosts     Host name-to-network address mapping file,
		  motd	    Message-of-the-day file,
		  networks  Network name-to-network number mapping file,
		  passwd    Password file,
		  protocols Name-to-number mapping file,
		  rc	    Shell script to bring the system to multiuser mode
		  rc.local  Site-dependent portion of rc
		  remote    Names and description of remote hosts for and
		  services  Network services definition file,
		  termcap   Description of terminal capabilities,
		  ttys	    Properties of terminals,
		       .
		       .
		       .

       /lib    Symbolic link to

       /lost+found
	       Directory for connecting detached files for

       /sys    Symbolic link, normally to

       /tmp    Directory for temporary files (see also
		  e*	 Used by
		  ctm*	 Used by
		       .
		       .
		       .

       /usr    General purpose directory, on which the file system is normally mounted (see description that follows).

       /var    Directory for variable length files, such as spool, administrative, and temporary files. These files can also be located in See the
	       Guide to Disk Maintenance.

       /vmunix Kernel image

       The  directory contains the sharable data. The following is a brief description of the file system.  The major directory hierarchy and rep-
       resentative files are listed.

       /usr	 Root directory for file system.

       /usr/adm  Directory for administrative information, which is now a symbolic link to
		    crash   Directory for crash dumps
		    vmcore.?,vmunix.?	Crash dump files
		    lpacct  Line printer accounting,
		    tracct  Phototypesetter accounting,
		    wtmp    Login history,
			 .
			 .
			 .

       /usr/bin  Directory for the shared executable data files, including utility programs and Shell scripts.
		    as	 assembler
		    cc	 C compiler executive (see also and
		    csh  C shell
			 .
			 .
			 .

       /usr/dict Directory for word lists.
		    spellhist History file,
		    words     Word list,
			 .
			 .
			 .

       /usr/doc  Directories containing files for the Vol.2 documentation.
		    as	 Assembler manual
		    c	 C manual
			 .
			 .
			 .

       /usr/etc  Directory for utility programs and shell scripts.

       /usr/etc/cron
		 Clock daemon,

       /usr/etc/dump
		 Dump program,

       /usr/examples
		 A directory where components of the base system and Digital's separately licensed products can locate code examples, scripts, and
		 demos for customers to use.  A typical use is to complement printed documentation.

       /usr/games
		 Directory for games.
		    hangman   Hangman game
		    lib       Library directory for games
			 .
			 .
			 .

       /usr/etc/getty
		 Part of login,

       /usr/include
		 Directory for standard #include files.
		    a.out.h  Object file layout,
		    math.h
		    stdio.h  Standard I/O,
		    sys      Symbolic link to (system generation #include files)
			 .
			 .
			 .

       /usr/lib  Directory for the shared static data files, such as object libraries.
		    atrun   System scheduler,
		    cpp     C preprocessor
		    libc.a  System calls and standard I/O (2,3,3S)
		    font    Directory for fonts
		    lint    Directory for utility files for
		    tmac    Directory for macros
		    units   Data file of conversion tables for
		    uucp    Directory for programs and data
			 .
			 .
			 .

       /usr/man  Directory for unformatted and preformatted reference (manual) pages.
		    cat1    Section 1 (preformatted)
		    cat2    Section 2 (preformatted)
		    cat3    Section 3 (preformatted)
			 .
			 .
			 .
		    man1    Section 1 (unformatted)
		    man2    Section 2 (unformatted)
		    man3    Section 3 (unformatted)
			 .
			 .
			 .

       /usr/mdec Directory for ULTRIX boot files.

       /usr/msgs Directory for messages,

       /usr/new  Directory for binaries of new versions of programs.

       /usr/preserve
		 Directory for editor files preserved after crashes or hangups.

       /usr/skel Directory for sample user startup files.
		    .cshrc   Startup file for
		    .login   Login startup file for
		    .mailrc  Startup file for
		    .profile Startup file for
		    .project Lists information used by

       /usr/spool
		 Directory for delayed execution files, which is now a symbolic link to
		    at	 Directory used by
		    lpd  Directory used by
			    lock Present when line printer is active
			    cf*  Copy of file to be printed, if necessary
			    df*  Daemon control file,
			    tf*  Transient control file (exists while is working)
		    mail  Mailboxes for
			    name	Mail file for user name
			    name.lock	Lock file (exists while name is receiving mail)
		    uucp  Work files and staging area for
			    LOGFILE	Summary log

       /usr/src  Generic sources.
		    usr.bin User sources
			      troff and sources
			      term  Directory of description files for new printers

       /usr/sys  Directory for system files.
		    b.mips    BINARY for MIPS
		    b.vax     BINARY for VAX
		    fs	      Filesystem SRC
		    net       Netword SRC
		    mips      MIPS-specific SRC
		    vax       VAX-specific SRC
		    data      System data files
		    conf/{mips,vax}
			      Configuration files
		    h	      #include files
		    SAS       Standalone system
		    sys       Machine independent SRC

       /usr/tmp  Symbolic link to

See Also
       apropos(1), find(1), finger(1), grep(1), ls(1), whatis(1), whereis(1), which(1), ncheck(8)
       Guide to Disk Maintenance

								       RISC								   hier(7)
All times are GMT -4. The time now is 01:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy