Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Återskapa raderade filer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Scandinavian
View previous topic :: View next topic  
Author Message
detrex
n00b
n00b


Joined: 25 Oct 2002
Posts: 13
Location: sweden

PostPosted: Tue Aug 05, 2003 11:30 am    Post subject: Återskapa raderade filer Reply with quote

Någon som vet om det går att återskapa raderade filer från en
reiserfs partition ??
Back to top
View user's profile Send private message
hensan
l33t
l33t


Joined: 26 Jun 2003
Posts: 868
Location: Sweden

PostPosted: Tue Aug 05, 2003 4:45 pm    Post subject: Reply with quote

Om du inte skrev nåt med på disken och unmountade den direkt efter att det blev fel, kan det gå att rädda filerna genom att göra följande:

Gör en backup på partitionen (skapa backupen på en annan partition än den du försöker rädda filer på):

Code:
# dd if=/dev/<partition> of=backupfile


Sätt upp backupen som en loop-back device:

Code:
# losetup /dev/loop5 backupfile


Återskapa partitionsinformationen:

Code:
# reiserfsck --rebuild-tree --scan-whole-partition /dev/loop5


Mounta backupen och kopiera över dina filer:

Code:
# mount /dev/loop5 <mountpoint>


Vill du fuska kan ju köra steg 3 direkt på partitionen du vill rädda filer på, men då finns alltid risken att det blir ännu mer fel.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Scandinavian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum