Am Freitag, 1. November 2002 01:30 schrieb [EMAIL PROTECTED]: > On Thu, 31 Oct 2002, 1stFlight wrote: > > I'm looking for a way to upgrade my HD and maintain file/directory > > structure. I've got a 20GB with partitions for / /home /usr how can I > > copy/clone this drive over to it's 60B replacement? Thanks! > > > > Darryl > > I wouldn't copy/clone it, I'd make new partitions in proportion, mount > them on new temporary mount points (make some with mkdir if you > don't have some handy) and use tartar to copy the > filesystems: > tartar / /newslash > tartar /home /newhome > ..... > > tartar is what I call it, I chose the tar options for just such a use > > #!/bin/bash > ##copy a directory or partition > tar -C "$1" -cOl . | tar -C "$2" -xpf - >
That's an idea, but I believe parted should be much faster. I think compressing and decompressing would be a little bit slow ? Regarding, Michael - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
