[K12OSN] Re: Help! Please!

Jim McQuillan jam at mcquil.com
Thu Dec 16 17:08:21 UTC 2004



On Wed, 15 Dec 2004, Ascension Tech wrote:

> Ok, I'm assuming I messed that md1 up for good.  I'm a jackass. Moving
> on....With knoppix, I read-only mounted one of the raid 1 partitions
> of /home and did "cp -r -p " to a usb2 drive.  But I noticed that all
> of the owners and groups were "unknown".  It would be great if I could
> run a chown script to recursively make the owner of the folders the
> same as the name of the folder.   Does anybody know how that script
> would go?

If you mounted that partition with knoppix, then they are all 'unknown',
because those users don't exist in the /etc/passwd file on the knoppix
cd.  They still have unique user ids.

If you copy those files to another system  (AND preserve ownership and
permissions), and the new system has the users in the /etc/passwd file,
you should be fine.

Jim McQuillan
jam at Ltsp.org




>
>
> Thanks,
> Peter
>
>
> On Wed, 15 Dec 2004 16:03:27 -0500, Ascension Tech
> <ascensiontech at gmail.com> wrote:
> > Thanks for the reply. Sorry about the vagary.  Yes unfortunately it
> > was mounted.  Does that mean this partition is unrecoverable? No I
> > don't have a backup of the /boot partition.  When you say this:
> >
> > > Or another machine with an identical partition
> > > that you could copy?  Then you could reformat and dump the
> > > backup.
> >
> > Do you mean that I could do a minimal install on a spare machine with
> > the exact same size /boot partition and array and copy it over?
> >
> > If that's not possible, since it's safer, how do get knoppix to
> > recognize my md1 array instead of 2 identical partitions.
> >
> > Thanks again!
> > Peter
> >
> >
> > On Wed, 15 Dec 2004 11:51:30 -0500, Frank Samuelson <fws4 at cdrh.fda.gov> wrote:
> > > You're a little light on details, but here goes
> > >
> > > Ascension Tech wrote:
> > > > Oh man, am I screwed!  I had a filesystem problem after a reboot
> > > > saying 'extended attribute block...reference count 18 should be 17"
> > > > for md2 .  I freaked out and ended up accidentally fscking up my md1
> > > > array instead (I think may be /boot.  doe!).  Then it was saying "bad
> > > > magic number in super-block".  Booting says after grub "VFS: can't
> > > > find ext3 filesystem on dev md1".
> > >
> > > This is very odd. Fscking the disk shouldn't hurt it.  Was it
> > > mounted at the time?
> > >
> > >  > Linux Rescue from the cd can't find
> > > > a file system at all but I think that may be sata driver related
> > > > because knoppix sees some of it, thankfully the raid 1 partitions  of
> > > > my /home.
> > >
> > > You're good then, no?
> > >
> > > > Obviously I'm new to this and I wouldn't say this machine
> > > > is in full production (planned for the 2nd semester).  But if it can't
> > > > be saved I would like to save at least my /home directory, which has a
> > > > webmin batch file of users as well as some peoples docs.  Can someone
> > > > help me recover some or all this?
> > >
> > > Do you have a back-up of the partition (/boot?) that you
> > > destroyed?  Or another machine with an identical partition
> > > that you could copy?  Then you could reformat and dump the
> > > backup.
> > >
> > > > If I try and copy /home to another
> > > > drive do I need knoppix to recognize it as a raid partition
> > >
> > > This would probably be the safest thing to do.
> > >
> > > > or can I
> > > > just copy one since they are exactly the same size?
> > >
> > > As a matter of fact, you can.  A single device from a RAID1 drive
> > > will mount and read like a regular drive, although I wouldn't
> > > necessarily recommend it.  If you do this, you may want to mount it
> > > read-only if you can.
> > >
> > >  > For the original
> > > > reference count error should I just have let it fix?
> > >
> > > Probably, unless you know more about the structure of ext3
> > > file systems than the people to wrote the program. :)
> > >
> > > _______________________________________________
> > > K12OSN mailing list
> > > K12OSN at redhat.com
> > > https://www.redhat.com/mailman/listinfo/k12osn
> > > For more info see <http://www.k12os.org>
> > >
> >
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>




More information about the K12OSN mailing list