[SlugLUG] Removing an old drive and replicating it's data

Karl Young karly at kipshouse.org
Mon Jun 4 12:15:51 PDT 2007


Was the one you can't cd to created as a file instead of an empty dir?


Eric Carter(Ecnassianer at greenstorm.net)@2007.06.04 11:49:30 -0700:
> 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


More information about the Sluglug mailing list