VirtualBox上に立てたUbuntuでいつもイロイロ検証してました。 あんまり小汚くしたくないなぁと思ってたので/tmpでやってましたよ、と。 /tmpってブートの度にクリーンアップされるんですが、 いつも"状態を保存"にしてるので気付きませんでした。。 ↓を見ると、なんとかなるんじゃないかっていう気がしてきます。。 Linuxでうっかりrm -rfしちゃったけど復活出来たよー\(^o^)/ - y-kawazの日記 df叩いたら↓なので、/ってリードオンリーでマウント出来るのかなー?
# df -hT Filesystem Type Size Used Avail Use% Mounted on /dev/sda1 ext4 18G 9.8G 7.4G 57% /
そうですか、、と。
# mount -o remount,ro /dev/sda1 mount: / is busy
んま、関係ねーべって事で、extundeleteってコマンドをインストールして
# apt-get install extundelete
UNIX時間調べて、
# date -d "16:00" Mon Nov 12 16:00:00 JST 2012 # date -d "16:00" +%s 1352710800
調べたUNIX時間を引数にして叩きやす。
# extundelete --after 1352710800 --restore-all /dev/sda1
何やら期待が持てそうな。。
Loading filesystem metadata ... 144 groups loaded. Loading journal descriptors ... 28506 descriptors loaded. Writing output to directory RECOVERED_FILES/ Searching for recoverable inodes in directory / ... 1818 recoverable inodes found.
ちっくょお、、それっぽいのあるけど、リストア出来ねぇって言ってやがる。。。
Unable to restore inode 693921 (lost+found/bootstrap-responsive.css): No undeleted copies found in the journal. Unable to restore inode 693922 (lost+found/bootstrap-responsive.min.css): No undeleted copies found in the journal. Unable to restore inode 693923 (lost+found/bootstrap.css): No undeleted copies found in the journal. Unable to restore inode 693924 (lost+found/bootstrap.min.css): No undeleted copies found in the journal. Unable to restore inode 693958 (lost+found/.bootstrap.css.swp): No undeleted copies found in the journal. Unable to restore inode 690924 (lost+found/.zoo3.cfg.swp): No undeleted copies found in the journal. Unable to restore inode 693929 (lost+found/index.html): No undeleted copies found in the journal.
何にもリカバリされてねーしよぉぉおおw
/tmp/RECOVERED_FILES# ls -l total 0
/tmp/ 一時的な作業用ディレクトリです。基本的に起動時に空になります。(/etc/init/mounted-tmp.conf) temporary の略です。
トホホ。これだから文系卒の情弱って怖いやねぇ…。 気付けないとですね。。
改訂 新Linux/UNIX入門
posted with amazlet at 12.11.12