iT邦幫忙

0

linux 資料夾 inode number 被我改掉該怎麼找回

  • 分享至 

  • twitterImage

雖然有備份1月之前的資料,
但因為諸多因素還是找回CommonShare資料是最好方案
fsrd2/CommonShare/123 在/dev/sda2
media/data2/CommonShare/ 在/dev/sda1
/dev/sda1是mount到/dev/sda上面
a123@server:sudo mount --bind fsrd2/CommonShare/123 media/data2/CommonShare/
這時我寫顛倒覆蓋到有資料的media/data2/CommonShare/,
且 inode number被我改掉了,我之前也沒查看過

a123@server:/$ cd fsrd2/CommonShare/
a123@server:/fsrd2/CommonShare$ ll
a123@server:/fsrd2/CommonShare/123$ ll
total 16
drwxrwxr-x+ 2 abc abc 4096 2月 9 11:17 ./
drwxrwxr-x+ 3 abc abc 4096 2月 9 11:00 ../
lrwxrwxrwx 1 a123 tp_intel_pm 24 2月 9 11:17 CommonShare -> media/data2/CommonShare/
a123@server:/fsrd2/CommonShare/123$ rm CommonShare
這時刪掉時才發現media/data2/CommonShare/資料夾全空

有找過網路上復原資料的工具,都是以 inode number 去找回
是否有大大能提供意見給我?
謝謝

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答