On October 10, 2005 09:04, Mikkel L. Ellertson wrote: ... > >>New problem. I have a new HDD, I would like to move every thing from the > >>old hdd to the new one. > >> > >>what is the best way to clone my BOOT drive? so that the new drive boots > >> as well > >> > >>It's a dual boot 2005LE / WinXP ... > There are two problems with this - the first is that the drives must be > the same size/geomitry, or you will run into problems. Second, it will > take a long time, as it will copy empty space as well as data. Thirn, > coping a "live" file system is not a good idea. If you are going to use > this method, you should boot from a "live" CD version of Linux, or at > least drop to the single user mode. > > A better method is to use Ghost4Linux. ftp://fedoragcc.dyndns.org/ You > can download the bootable CD image and burn it. > > Mikkel
You can also do it with tar, though you have to be careful with your mount points. Say for example you've mounted the new drive on /mnt/new, you can do (as root of course): cd / tar cvf --exclude=/mnt/new - . | tar xvf --directory=/mnt/new - There might be other directories you want to exclude also, such as /proc (don't know if copying it will do any harm, but there's certainly no point). When you're all done, adjust your mount points appropriately. Alternatively, you could do it one main directory at a time: cd / tar cvf - boot | tar xvf --directory=/mnt/new - tar cvf - etc| tar xvf --directory=/mnt/new - ... You can also omit the "v" options if you want. This just makes it print the name of every file transferred. I like to see what's going on as it goes. But you might not like to watch a few thousand lines scroll by too fast to read. -- Ron ronhd at users dot sourceforge dot net Opinions expressed here are all mine.
____________________________________________________ Want to buy your Pack or Services from Mandriva? Go to http://store.mandriva.com Join the Club : http://www.mandrivaclub.com ____________________________________________________
