Red Hat Topics - FC4: trashed /var partition, how to rebuild

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat Topics > August 2006 > FC4: trashed /var partition, how to rebuild





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author FC4: trashed /var partition, how to rebuild
josh simpson

2006-08-23, 1:16 am

somehow i trashed my entire /var partition - restoring superblocks from
backup only accelerated its demise. i can use rescue disc to do anything
with all the rest of my partitions, but i cannot boot even after
redirecting /var to a new, empty folder (not mount) - the missing file
structure and run + log files are not recreated.

i've been researching how one might go about rebuilding /var from nothing,
and about the only lead i have is a program called mtree from BSD. i
haven't found any info about a linux port, much less one for my distro.

is there any program analagous to mtree for fedora?

maybe there's another way to avoid reinstalling the OS, but i'm at a loss.

thanks in advance
noi

2006-08-23, 7:14 pm

On Tue, 22 Aug 2006 23:26:57 -0500, josh simpson wrote this:

> somehow i trashed my entire /var partition - restoring superblocks from
> backup only accelerated its demise. i can use rescue disc to do anything
> with all the rest of my partitions, but i cannot boot even after
> redirecting /var to a new, empty folder (not mount) - the missing file
> structure and run + log files are not recreated.
>
> i've been researching how one might go about rebuilding /var from nothing,
> and about the only lead i have is a program called mtree from BSD. i
> haven't found any info about a linux port, much less one for my distro.
>
> is there any program analagous to mtree for fedora?
>
> maybe there's another way to avoid reinstalling the OS, but i'm at a loss.
>
> thanks in advance


I assume you fsck the partition.

Does the orignal HD /var and sub-folders have the right uid, gid and
permissions? You change all permissions to ugo+rwx


Have you tried copying the /var structure and files from the rescue disk
to the new /var on the unmounted install changing HD /var to the right
permissions?
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com