[SlugLUG] Removing an old drive and replicating it's data
cerise at armory.com
cerise at armory.com
Mon Jun 4 12:49:36 PDT 2007
Personally, I wouldn't trust an ls -R to give you the right data there. cd
to its parent and do an ls -l .qt and an ls -l .qt/ for good measure.
The ownership should have been retained with -p. It's odd that it wasn't.
I can only assume that it failed because you did the cp as ecna, not as root,
and ecna being non-root can't make things root.
This probably means that some data was left out, so the aforementioned ls is
more an exercise than useful info.
You might want to do that copy again, though instead of using cp with
crazy flags and semantics, su to root and do
tar cpf - oldDebian | tar -C oldhome -xpf -
This assumes that oldDebian is the mount point for the HDD and oldhome is the
directory you want to move all that to. tar will faithfully reproduce
everything.
-Phil/CERisE
On Mon, Jun 04, 2007 at 12:32:29PM -0700, Eric Carter wrote:
> ls -A and ls -a and ls -la don't show oldDebian's qt (which would seem
> to imply that it doesn't exist... but whatever) When I do this: sudo
> ls -RAl | grep -e [.]qt I get:
> drwxr-xr-x 2 ecna ecna 4096 2006-09-03 19:30 .qt
>
> ls -la in oldhome shows that the original .qt is just a normal folder.
> This: sudo ls -RAl | grep -e [.]qt gives me:
> drwxr-xr-x 2 root root 4096 2003-10-27 15:12 .qt
>
> And that creeps me out even more, because the owner has changed to
> ecna in the copy. All the other files retained their owner (root)
> because I used the p flag for cp (I think it was p).
>
> > Here's a shot in the dark: Is oldDebian's .qt a symlink that was copied over
> > as a directory?
>
> My guess is no.
>
> >Was the one you can't cd to created as a file instead of an empty dir?
>
> Uuuhh... based on the info above... I've no idea what it is. My best
> guess is that it's neither?
>
>
> While .qt isn't an important directory (it's empty in the original),
> it's not a big deal, but all this fuzz makes me question the integrity
> of my other data. Could cp really be broke? Maybe there's a flaw in my
> ls flags? Is my filesystem dieing?
>
> EC
>
> On 6/4/07, cerise at armory.com <cerise at armory.com> wrote:
> > Here's a shot in the dark: Is oldDebian's .qt a symlink that was copied over
> > as a directory?
> >
> > -Phil/CERisE
> >
> > On Mon, Jun 04, 2007 at 11:49:30AM -0700, Eric Carter wrote:
> > > After I copied my data off my old drive and onto my new drive, I
> > > figured I'd play around with ls and diff to make sure all the files
> > > were present in the new directory.
> > >
> > > So I did this:
> > >
> > > cd oldDebian
> > > sudo ls -RA > ../od.ls
> > > cd ..
> > > cd oldhome
> > > sudo ls -RA > ../oh.ls
> > > cd ..
> > > diff oh.ls od.ls
> > >
> > > The only output of diff was this:
> > >
> > > 22d21
> > > < .qt
> > > 84550,84551d84548
> > > < ./.qt:
> > > <
> > >
> > > And I was like ... WTF? What is this saying? In one directory there's
> > > a hidden folder called qt? And in the other there's a hidden folder
> > > called qt inside of the current folder? Whats with the ./. vs .
> > > distinction?
> > >
> > > I checked the two folders and I could cd into the .qt folder (nothing
> > > inside it). But I couldn't cd into the ./.qt folder in the other
> > > directory (no such directory)
> > >
> > > Anybody know what diff is trying to tell me? Or maybe this is ls's fault?
> > >
> > > EC
> > >
> > > On 6/3/07, Eric Carter <Ecnassianer at greenstorm.net> wrote:
> > > > I was actually making it overly complicated in my head. Reading Phil's
> > > > instructions made me sort it out and I ended up just using cp with a
> > > > few flags. :)
> > > >
> > > > EC
> > > >
> > > > On 6/3/07, cerise at armory.com <cerise at armory.com> wrote:
> > > > > I was operating under the impression that he just wanted to copy the data.
> > > > > I included the bit about booting just in case he wanted to.
> > > > >
> > > > > -Phil/CERisE
> > > > >
> > > > > On Sun, Jun 03, 2007 at 09:19:28PM -0700, Matt Thrailkill wrote:
> > > > > > Does he mean to boot from it, or just have the files available?
> > > > > >
> > > > > > On Sun, 2007-06-03 at 18:30 -0700, cerise at armory.com wrote:
> > > > > > > Put them both in the same system, boot from a live CD, create the necessary
> > > > > > > partitions, and dd them over. Assume you create partition hda6 to hold the
> > > > > > > data of hdb1, you'd run:
> > > > > > >
> > > > > > > dd if=/dev/hdb1 of=/dev/hda6
> > > > > > >
> > > > > > > Take care to make the partitions the same size. In order to boot into that
> > > > > > > system, you'd need only change the bootloader and alter /etc/fstab.
> > > > > > >
> > > > > > > -Phil/CERisE
> > > > > > >
> > > > > > > On Sun, Jun 03, 2007 at 06:10:54PM -0700, Eric Carter wrote:
> > > > > > > > Ubuntu (my current OS) is installed on hda (an 180 gig drive)
> > > > > > > >
> > > > > > > > I have an old debian install that I'd like to keep around for backup
> > > > > > > > purposes on hdb (a 19 gig drive). It's currently mapped to
> > > > > > > > /home/ecna/oldhome.
> > > > > > > >
> > > > > > > > I'd like to (in as little effort as possible) copy all the data over
> > > > > > > > to hda and be able to find it in the future at /home/ecna/oldhome and
> > > > > > > > pull hdb out of my machine. Any tips on how to do this painlessly?
> > > > > > > >
> > > > > > > > I'm not sure what the process would be called, otherwise I'd just google it.
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > EC
> > > > > > > > _______________________________________________
> > > > > > > > Sluglug mailing list
> > > > > > > > Sluglug at sluglug.ucsc.edu
> > > > > > > > http://sluglug.ucsc.edu/cgi-bin/mailman/listinfo/sluglug
> > > > > > > _______________________________________________
> > > > > > > Sluglug mailing list
> > > > > > > Sluglug at sluglug.ucsc.edu
> > > > > > > http://sluglug.ucsc.edu/cgi-bin/mailman/listinfo/sluglug
> > > > > >
> > > > > > _______________________________________________
> > > > > > Sluglug mailing list
> > > > > > Sluglug at sluglug.ucsc.edu
> > > > > > http://sluglug.ucsc.edu/cgi-bin/mailman/listinfo/sluglug
> > > > > _______________________________________________
> > > > > Sluglug mailing list
> > > > > Sluglug at sluglug.ucsc.edu
> > > > > http://sluglug.ucsc.edu/cgi-bin/mailman/listinfo/sluglug
> > > > >
> > > >
> > > _______________________________________________
> > > Sluglug mailing list
> > > Sluglug at sluglug.ucsc.edu
> > > http://sluglug.ucsc.edu/cgi-bin/mailman/listinfo/sluglug
> >
> _______________________________________________
> Sluglug mailing list
> Sluglug at sluglug.ucsc.edu
> http://sluglug.ucsc.edu/cgi-bin/mailman/listinfo/sluglug
More information about the Sluglug
mailing list