Just out of interest, is there any reason why it shouldn't work going from a smaller hard disk to a larger hard disk?
I've used something similar to backup a disk image to a file on a larger disk - sending the output of dd across to another machine by piping it through netcat, where it's written to a file (by dd agan) - great if you're installing a new distro on your laptop and suspect you might trash it ;-) one command from a tomsrtbt floppy and you've got the HD restored to it's backup state, bootloader and all. Anyway, reason I ask if you can do it from small HD -> large HD is that I'm thinking of changing the HD in my IPCOP box with the one in my www server box (which is currently the smaller of the two - obviously the server needs the larger HD, and IPCOP doesn't). Reinstalling IPCOP on the smaller HD is no big deal obviously, IPCOP installs being what they are :-) But I was rather hoping for the server that I could just write the HD image from the smaller HD directly to the larger HD (using dd), keeping partition tables and bootloader intact. I imagined that it'd all work nicely, and I'd just need to create one more partition at the end of the disk to use the extra space. Can anyone point out a good reason why this won't work? Cheers, Gareth On Fri, 26 Mar 2004 08:01, Steve Holdoway wrote: > Hi Paul, > > The disks should be the same size if you're doing that. Otherwise, do > it on a per partition basis, having set the new partitions up the same > as the old ones. > > You may want to play with the bs option to improve performance, but I > doubt you've got that luxury! > > ...and make sure you've got a boot floppy, you're probably not going > to have a bootstrap on the new one! > > Good Luck, > > Steve > > On Fri, 26 Mar 2004 07:37:41 +1200, you wrote: > >Hi all, > > > >Is a simple dd: > >dd if=/dev/hdc of=/dev/hdx > >capable of 'cloning' hdc into hdx? hdc is nearly dead so I will be > >getting a replacement tomorrow and I don't fell like reinstalling > >everything. > > > >Cheers > > > >Paul
