실수로 delete키를 똭! ㅠㅠ
[링크 : http://extundelete.sourceforge.net/]
[링크 : http://blog.bisect.de/2011/08/how-to-undelete-files-from-ext3ext4.html]
[링크 : http://forum.synology.com/enu/viewtopic.php?f=160&t=53092]
[링크 : http://www.xen.dds.nl/f/scripts/extundelete]
ARM용으로 컴파일 된 녀석 다운로드
sarang> wget http://www.xen.dds.nl/f/scripts/extundelete --2015-12-27 12:34:28-- http://www.xen.dds.nl/f/scripts/extundelete Resolving www.xen.dds.nl... 85.17.251.154 Connecting to www.xen.dds.nl|85.17.251.154|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 633541 (619K) [text/plain] Saving to: 'extundelete' 100%[======================================>] 633,541 198KB/s in 3.1s 2015-12-27 12:34:32 (198 KB/s) - 'extundelete' saved [633541/633541] |
sarang> ./extundelete No action specified; implying --superblock. ./extundelete: Missing device name. Usage: ./extundelete [options] [--] device-file Options: --version, -[vV] Print version and exit successfully. --help, Print this help and exit successfully. --superblock Print contents of superblock in addition to the rest. If no action is specified then this option is implied. --journal Show content of journal. --after dtime Only process entries deleted on or after 'dtime'. --before dtime Only process entries deleted before 'dtime'. Actions: --inode ino Show info on inode 'ino'. --block blk Show info on block 'blk'. --restore-inode ino[,ino,...] Restore the file(s) with known inode number 'ino'. The restored files are created in ./RECOVERED_FILES with their inode number as extension (ie, file.12345). --restore-file 'path' Will restore file 'path'. 'path' is relative to root of the partition and does not start with a '/' The restored file is created in the current directory as 'RECOVERED_FILES/path'. --restore-files 'path' Will restore files which are listed in the file 'path'. Each filename should be in the same format as an option to --restore-file, and there should be one per line. --restore-directory 'path' Will restore directory 'path'. 'path' is relative to the root directory of the file system. The restored directory is created in the output directory as 'path'. --restore-all Attempts to restore everything. -j journal Reads an external journal from the named file. -b blocknumber Uses the backup superblock at blocknumber when opening the file system. -B blocksize Uses blocksize as the block size when opening the file system. The number should be the number of bytes. --log 0 Make the program silent. --log filename Logs all messages to filename. --log D1=0,D2=filename Custom control of log messages with comma-separated Examples below: list of options. Dn must be one of info, warn, or --log info,error error. Omission of the '=name' results in messages --log warn=0 with the specified level to be logged to the console. --log error=filename If the parameter is '=0', logging for the specified level will be turned off. If the parameter is '=filename', messages with that level will be written to filename. -o directory Save the recovered files to the named directory. The restored files are created in a directory named 'RECOVERED_FILES/' by default. ./extundelete: Error parsing command-line options. |
sarang> mount /dev/root on / type ext4 (defaults) /sys on /sys type sysfs (0) none on /dev/pts type devpts (gid=4,mode=620) /tmp on /tmp type tmpfs (0) /run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755) /dev/shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime) /proc/bus/usb on /proc/bus/usb type usbfs (0) /dev/vg1001/lv on /volume2 type ext4 (usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,synoacl) /dev/vg1000/lv on /volume1 type ext4 (usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,synoacl) securityfs on /sys/kernel/security type securityfs (0) /dev/sdq1 on /volumeUSB1/usbshare type fuseblk (rw,allow_other,blksize=4096,default_permissions) |
옵션은 많은데 고민하다가 걍.. 과감하게! restore-all로 ㅠㅠ
sarang> ./extundelete /dev/vg1001/lv --restore-all NOTICE: Extended attributes are not restored. WARNING: EXT3_FEATURE_INCOMPAT_RECOVER is set. The partition should be unmounted to undelete any files without further data loss. If the partition is not currently mounted, this message indicates it was improperly unmounted, and you should run fsck before continuing. If you decide to continue, extundelete may overwrite some of the deleted files and make recovering those files impossible. You should unmount the file system and check it with fsck before using extundelete. Would you like to continue? (y/n) y Loading filesystem metadata ... 14868 groups loaded. Loading journal descriptors ... 30303 descriptors loaded. Searching for recoverable inodes in directory / ... 1119 recoverable inodes found. Looking through the directory structure for deleted files ... Unable to restore inode 30802326 (@tmp/pkglist.tmp/synoserver.krn.W5eobS): Space has been reallocated. Unable to restore inode 62128599 (delete.zip): Space has been reallocated. Unable to restore inode 62128600 (lost+found/synoserver.enu): Space has been reallocated. 3 recoverable inodes still lost. |
RECOVERED_FILES 아래에 저장된다.
sarang> ls -al drwx--x--x 4 admin users 4096 Dec 27 12:42 . drwx--x--x 7 root root 4096 Oct 12 10:20 .. drwx--x--x 5 root root 4096 Dec 27 12:50 RECOVERED_FILES -rwx--x--x 1 admin users 633541 Mar 3 2015 extundelete |
'하드웨어 > Storage' 카테고리의 다른 글
raid01 raid10 (0) | 2016.01.31 |
---|---|
synology DS file - file station (0) | 2016.01.05 |
synology port (0) | 2015.12.22 |
synology DS213j SVN server 설치 (0) | 2015.10.19 |
microSD 슬롯 락 관련 (2) | 2015.08.06 |