batch commands to debugfs with a read-only filesystem
I'm running an up-to-date redhat 8.0 system.
I need to delete many many files via debugfs due to a corrupt filesystem. debugfs unfortunately does not accept patterns and such, so it seems I need to send N commands to delete N files.
Now, degbugfs has an option -f that allows it to accept commands from a file rather than interactively. Normally, I could generate a large file of commands and execute them as a batch. However, since my file system is partially corrupt, it mounts as read-only, so I can't create any such files.
So: Is there either 1) a command line trick to make debugfs read commands from stdin, or 2) some way to delete an entire directory of files from within debugfs with a single command?
I can tell the story of how I arrived at this state if someone thinks it is relevant...
Thanks
(Hmm, it occurs to me that my question isn't really redhat specific. Apologies if this belongs somewhere else.)
Last edited by billhowe; 08-19-2004 at 08:46 PM.
|