Operating System - HP-UX
1836571 Members
1883 Online
110102 Solutions
New Discussion

problem while taking backup of /var/lost+found

 
tejas pandya_1
Occasional Advisor

problem while taking backup of /var/lost+found

Hi,

While taking tar backup of /var/lost+found it is going in to loop and it will never complited .Force fully we have to kill this process.
Kindly suggest the solution.

O/S is HP UX 10.0
5 REPLIES 5
sreekanthtm
Trusted Contributor

Re: problem while taking backup of /var/lost+found

What is the command used to take the backup.
Give the syntax.
tejas pandya_1
Occasional Advisor

Re: problem while taking backup of /var/lost+found

i am using command tar -cvf "filename.tar" /var/lost+found
Tim Nelson
Honored Contributor

Re: problem while taking backup of /var/lost+found

Just curious what you have in lost+found that you need backed up ?

lost+found is for files with lost and/or found file structure that became corrupt / lost due to a system crash or some like event. fsck did not know what they were named or their location so it puts them in there.

The idea is that you look at those files, try to determine if they are important and move or rename them back to what they should be.


If you must how about trying cpio ?
cd /var/lost+found find ./|cpio -omvb > /dev/rmtX

tejas pandya_1
Occasional Advisor

Re: problem while taking backup of /var/lost+found

can i delete those files which are in lost+found
Dennis Handly
Acclaimed Contributor

Re: problem while taking backup of /var/lost+found

>Can i delete those files which are in lost+found

That's the problem. You have no idea what the names of the files are and no idea if they are useful. I don't understand why tar would hang on them? When is the last time you did an fsck?

Also, if these files went "missing" on some crash, has any user complained about them?

Since some are corrupted, I'm not sure if it makes sense to save them. I suppose you could have a loop that tars each file and then if it stops, you know which to remove. Then you can tar off the rest.

Start off with the last one listed (-v) before it hung?