<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: deleted file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/deleted-file/m-p/3156192#M158501</link>
    <description>Yes from backup tapes .&lt;BR /&gt;But otherwise , I don't think so .</description>
    <pubDate>Mon, 05 Jan 2004 11:31:20 GMT</pubDate>
    <dc:creator>Ashwani Kashyap</dc:creator>
    <dc:date>2004-01-05T11:31:20Z</dc:date>
    <item>
      <title>deleted file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleted-file/m-p/3156191#M158500</link>
      <description>Hi,&lt;BR /&gt;is there some possibility to recover a deleted file (vxfs file system)?&lt;BR /&gt;Thanks for your help in advance.&lt;BR /&gt;&lt;BR /&gt;Laszlo</description>
      <pubDate>Mon, 05 Jan 2004 11:29:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleted-file/m-p/3156191#M158500</guid>
      <dc:creator>Laszlo Pap</dc:creator>
      <dc:date>2004-01-05T11:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleted-file/m-p/3156192#M158501</link>
      <description>Yes from backup tapes .&lt;BR /&gt;But otherwise , I don't think so .</description>
      <pubDate>Mon, 05 Jan 2004 11:31:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleted-file/m-p/3156192#M158501</guid>
      <dc:creator>Ashwani Kashyap</dc:creator>
      <dc:date>2004-01-05T11:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleted-file/m-p/3156193#M158502</link>
      <description>Laszlo,&lt;BR /&gt;&lt;BR /&gt;Unfortunately, there is no "undelete" in Unix.  There is a very complex method to recover a file, *IF* the inodes have not been reused, but, as a general rule, the answer is no.  I'll see if I can find the thread that explains the complex undelete via inode method.  In the meantime, try to minimize activity in that file system!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 05 Jan 2004 11:33:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleted-file/m-p/3156193#M158502</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-01-05T11:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleted-file/m-p/3156194#M158503</link>
      <description>Laszlo&lt;BR /&gt;&lt;BR /&gt;No you cant undelete. &lt;BR /&gt;Reocvery is only restoring it from another place.&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Mon, 05 Jan 2004 11:36:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleted-file/m-p/3156194#M158503</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2004-01-05T11:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleted-file/m-p/3156195#M158504</link>
      <description>Once i found this procedure, but never tried myself. For an important file, i would use a backup.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;## Just verify the file here, its inode and size ##&lt;BR /&gt;&lt;BR /&gt;# bdf|grep fs&lt;BR /&gt;/dev/vg01/lvol1      20480   17371    2938   86% /fs&lt;BR /&gt;# ll -i /fs/james/itrc/map/myfile&lt;BR /&gt;   412 -rw-r--r--   1 root       sys           1988 Dec 18 11:48 /fs/james/itrc/map/myfile&lt;BR /&gt;# cat /fs/james/itrc/map/myfile&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;0000000000000000000000000000000000000000000000000000000000000000000000&lt;BR /&gt;00000000000000000 This is an itrc fsdb test!! 000000000000000000000000&lt;BR /&gt;0000000000000000000000000000000000000000000000000000000000000000000000&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;&lt;BR /&gt;## unmount filesystem and use ncheck to confirm inode (as if crashed) ##&lt;BR /&gt;&lt;BR /&gt;# umount /fs&lt;BR /&gt;# ncheck -F vxfs /dev/vg01/rlvol1|grep 412&lt;BR /&gt;412 /james/itrc/map/myfile&lt;BR /&gt;&lt;BR /&gt;## Use fsdb... we want to go into the 999 (user) fileset then go to ##&lt;BR /&gt;## the inode in question. Here we can see block allocation which we ##&lt;BR /&gt;## can use to dd it off. If there are indirect blocks I have no idea #&lt;BR /&gt;&lt;BR /&gt;# fsdb -F vxfs /dev/vg01/rlvol1           &lt;BR /&gt;&amp;gt; 999fset&lt;BR /&gt;fset header structure at 0x0000000a.0000&lt;BR /&gt;fsh_fsindex 999  fsh_fsetname "UNNAMED"&lt;BR /&gt;fsh_version 4  fsh_checksum 0xbfb7af5c&lt;BR /&gt;fsh_time 1071747956 420001  (Thu Dec 18 11:45:56 2003 BST)&lt;BR /&gt;fsh_ninode 544  fsh_nau 1  fsh_old_ilesize 0  fsh_eopdata 0&lt;BR /&gt;fsh_fsextop 0x0  fsh_dflags 0x11  fsh_quota 0  fsh_maxinode 4294967295&lt;BR /&gt;fsh_ilistino[65 97]  fsh_iauino 64  fsh_lctino 0  fsh_uquotino 69&lt;BR /&gt;fsh_attr_ninode 0  fsh_attr_nau 0  fsh_attr_eopdata 0&lt;BR /&gt;fsh_attr_ilistino[67 99]  fsh_attr_iauino 66  fsh_attr_lctino 68&lt;BR /&gt;fsh_features 0x0&lt;BR /&gt;fsh_previx 0  fsh_nextix 0&lt;BR /&gt;fsh_ctime 1071747083 401017  (Thu Dec 18 11:31:23 2003 BST)&lt;BR /&gt;fsh_mtime 1071747956 420000  (Thu Dec 18 11:45:56 2003 BST)&lt;BR /&gt;&amp;gt; 412i&lt;BR /&gt;inode structure at 0x0000219f.0000&lt;BR /&gt;type IFREG mode 100644  nlink 1  uid 0  gid 3  size 1988&lt;BR /&gt;atime 1071748117 310011  (Thu Dec 18 11:48:37 2003 BST)&lt;BR /&gt;mtime 1071748082 190000  (Thu Dec 18 11:48:02 2003 BST)&lt;BR /&gt;ctime 1071748082 190000  (Thu Dec 18 11:48:02 2003 BST)&lt;BR /&gt;aflags 0 orgtype 1 eopflags 0 eopdata 0&lt;BR /&gt;fixextsize/fsindex 0  rdev/reserve/dotdot/matchino 0&lt;BR /&gt;blocks 2  gen 0  version 0 17  iattrino 0&lt;BR /&gt;de:  14014     0     0     0     0     0     0     0     0     0 &lt;BR /&gt;des:     2     0     0     0     0     0     0     0     0     0 &lt;BR /&gt;ie:      0     0 &lt;BR /&gt;ies:     0 &lt;BR /&gt;&lt;BR /&gt;## The de number is the block ##&lt;BR /&gt;## the des number is the count from that location, directly below ##&lt;BR /&gt;## now find the block size ##&lt;BR /&gt;&lt;BR /&gt; # fstyp -v /dev/vg01/rlvol1    &lt;BR /&gt;vxfs&lt;BR /&gt;version: 4&lt;BR /&gt;f_bsize: 8192&lt;BR /&gt;f_frsize: 1024    &amp;lt;---- here&lt;BR /&gt;f_blocks: 20480&lt;BR /&gt;f_bfree: 3109&lt;BR /&gt;f_bavail: 2915&lt;BR /&gt;f_files: 1320&lt;BR /&gt;f_ffree: 776&lt;BR /&gt;f_favail: 776&lt;BR /&gt;f_fsid: 1073807361&lt;BR /&gt;f_basetype: vxfs&lt;BR /&gt;f_namemax: 254&lt;BR /&gt;f_magic: a501fcf5&lt;BR /&gt;f_featurebits: 0&lt;BR /&gt;f_flag: 0&lt;BR /&gt;f_fsindex: 5&lt;BR /&gt;f_size: 20480&lt;BR /&gt;&lt;BR /&gt;## Now the dd - skip to our "de" and pull "des" off. ##&lt;BR /&gt;&lt;BR /&gt;# dd if=/dev/vg01/rlvol1 of=/tmp/hope bs=1024 skip=14014 count=2&lt;BR /&gt;2+0 records in&lt;BR /&gt;2+0 records out&lt;BR /&gt;&lt;BR /&gt;## verify file ##&lt;BR /&gt;&lt;BR /&gt;# cat /tmp/hope&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;0000000000000000000000000000000000000000000000000000000000000000000000&lt;BR /&gt;00000000000000000 This is an itrc fsdb test!! 000000000000000000000000&lt;BR /&gt;0000000000000000000000000000000000000000000000000000000000000000000000&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;1111111111111111111111111111111111111111111111111111111111111111111111&lt;BR /&gt;&lt;BR /&gt;## bingo! :-) But note the extra bytes :-( ##&lt;BR /&gt;&lt;BR /&gt;# ll /tmp/hope&lt;BR /&gt;-rw-r--r--   1 root       sys           2048 Dec 18 11:53 /tmp/hope&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Jan 2004 11:38:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleted-file/m-p/3156195#M158504</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2004-01-05T11:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleted-file/m-p/3156196#M158505</link>
      <description>sorry this is not windoz I hope you have a backup on tape&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Mon, 05 Jan 2004 11:39:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleted-file/m-p/3156196#M158505</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2004-01-05T11:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: deleted file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/deleted-file/m-p/3156197#M158506</link>
      <description>Laszlo,&lt;BR /&gt;&lt;BR /&gt;Unfortunately I was unable to find the process I was looking for but I think Massimo's procedure looks like the same one.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 05 Jan 2004 11:45:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/deleted-file/m-p/3156197#M158506</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-01-05T11:45:57Z</dc:date>
    </item>
  </channel>
</rss>

