Path: utzoo!attcan!uunet!aplcen!samsung!cs.utexas.edu!rice!sun-spots-request From: jms@tardis.tymnet.com (Joe Smith) Newsgroups: comp.sys.sun Subject: Re: Restoring by i-node? Keywords: Miscellaneous Message-ID: <8916@brazos.Rice.edu> Date: 14 Jun 90 23:50:05 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 26 Approved: Sun-Spots@rice.edu X-Refs: Original: v9n193 X-Sun-Spots-Digest: Volume 9, Issue 213, message 11 In article <8364@brazos.Rice.edu> grant@saturn.cs.swin (Grant Collins) writes: >I wish to extract a file from a level 0 dump tape using restore and the >files' i-node number. This is because a filesystem became corrupted and >fsck has placed the files in lost+found using the files' i-node as part of >its name. So your basic problem is that you know the inode number, but not the original name(s) of the file. This information is in the dump tape's table of contents. # restore tf /dev/rst8 | sort >/tmp/dump.toc # egrep '1234|4567|932' /tmp/dump.toc # restore ivf /dev/rst8 restore> add thisfile foo/thatfile bar/otherfile restore> extract The 't' option to restore gets the table of contents, which is piped into sort to make it easier to find the other names of a file that has hard links. Use grep to find the inodes in question and it will print the names associated with those files. Joe Smith (408)922-6220 | SMTP: jms@tardis.tymnet.com or jms@gemini.tymnet.com BT Tymnet Tech Services | UUCP: ...!{ames,pyramid}!oliveb!tymix!tardis!jms PO Box 49019, MS-C41 | BIX: smithjoe | 12 PDP-10s still running! "POPJ P," San Jose, CA 95161-9019 | humorous dislaimer: "My Amiga speaks for me."