[ltp] Upgrade HD

Eben King linux-thinkpad@linux-thinkpad.org
Sun, 13 Feb 2005 11:47:11 -0500 (EST)


On Sun, 13 Feb 2005, Jim Harvey wrote:

> David Sudjiman wrote:
> > 
> > I'm using my previous 30 GB for 
> > 
> > /dev/hda1 winxp (ntfs)
> > /dev/hda2 fat32
> > /dev/hda4 extended
> > /dev/hda5 linux-swap
> > /dev/hda6 linux (ext3)
> > 
> > Now, It is replaced with bigger 80 GB HD

> > What should I do?
> 
> Try the tar trick.  Mount the new partition as /mnt/new, cd to the old 
> partition and:
> tar cf - ./* | (cd /mnt/new ; tar xf -)

Drop the "/*"; that'll skip anything that starts with a dot.  I have 
/.autofsck and /.bash_history (probably I logged in and /home wasn't 
mounted).

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar
TAURUS:  You will never find true happiness - what you gonna
do, cry about it?  The stars predict tomorrow you'll wake up,
do a bunch of stuff and then go back to sleep.  -- Weird Al