restoring files ext2 linux

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
rcinformaticaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

wesly_chenCommented:
Hi,

   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.

Wesly
0
rcinformaticaAuthor Commented:
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
0
wesly_chenCommented:
Hi,

  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.

Wesly
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rcinformaticaAuthor Commented:
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......
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.