restoring files ext2 linux

Posted on 2004-11-02
Medium Priority
Last Modified: 2010-04-20
Hi there,
I had a crash on a computer and I had a backup made with webmin backup, I was able to restore almost all the files, but in some directories, when I do a restore , only the directories were restored but not the files, I checked the back file and those files are there, what command should I use to force the restore of the files as well?

thanks for your time
Question by:rcinformatica
  • 2
  • 2
LVL 38

Expert Comment

ID: 12475961

   First,  use "df -k" to check the disk space left. Make sure the partition you try to restore to have enough space.

   Umount the filesystem which you have problem to restore. And run "fsck" on the umounted filesystem to fix the filesystem
problem if there is any.

   Then restore again.

   If it still fails, then retore to other directory and copy back to the origianl directory.


Author Comment

ID: 12476224
hi thanks for the answer, I cheked with df -k and there is 40gb free, could you tell me how can I unmount the filesystem and run fsck?

thanks again
LVL 38

Accepted Solution

wesly_chen earned 1500 total points
ID: 12476416

  Say the mount point is /home, login as root and do
# umount /home    (If the device busy, do "fuser -uk /home" and umount it again)

  Then do
# fsck /home  (you may use option "-y" for fsck)
   Type "y" when fsck prompt for fix.


Author Comment

ID: 12476736
Hi thnks
I checked the file system with fsck and foud a couple of errors and fixed, I tried again to restore to other directories, and it does restore almost all the files and dirs, but some files it changes owner to the user and some others does not and the dir  belong to root, and in the dirs that belong to root it still does not copy the files but only create directories, beside even in the files that are restored I cannot get access with http and apache and it says Forbidden

thanks very much for your help I need to have the server running asap......

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month14 days, 23 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question