Author Topic: How do I move 8.10 from its partition to another existing partition?  (Read 1446 times)

Offline Rlynwood

  • Newbie
  • *
  • Posts: 4
My 40-GB scsi hdd is partitioned about 50-50 with a debilitated Kubuntu 8.10 on the first partition.  Even though there's a lot wrong with it, I don't want to lose many of its settings and software.  So, in order to install a fresh Ubuntu 9.10, in that first position, I'd like first to move the existing one to the second partition.  Is that too complicated to bother with?  If it isn't, how do I do this?

Ubuntu Forums (Ubuntu Linux Support)


Offline cjhabs

  • Newbie
  • *
  • Posts: 1
Re: How do I move 8.10 from its partition to another existing partition?
« Reply #1 on: January 04, 2010, 10:38:32 PM »
Assuming that you want to copy everything from / to a mounted partition such as /media/sdb, into a "bak" subdirectory, I would do:
sudo sh
cd /
tar cvf - * | (cd /media/sdb/bak; tar xvpBf -)

I can't test it right now as I'm at work on a Windows box.

Chris