Messages in this thread | ![/](/images/icornerl.gif) | | Date | Fri, 8 Mar 1996 21:14:48 -0500 (EST) | From | Joel Young <> | Subject | Re: Duplicating a file system |
| |
This may not be best, but it works for me:
say other partition is on mount,
cp -a / /mnt
you may want to do it at one level further down. ie cp -a /bin /mnt
To create all of the same identical devices I used the technique of backing up the /dev directory with taper and then restoring the dev directory onto the new drive. This takes about 5 minutes tops (back up to a file, not to the tape).
Does anyone else have a better way, I am sure that this is hardly optimal, however...
Joel jdyoung@erinet.com
On Thu, 7 Mar 1996, Colin Bennett wrote:
> Ok, so this isn't exactly right for this mailing list, but this is the best > place I could think of: > I have two SCSI hard drives. The first drive has a linux ext2fs filesystem on > it, the second has an empty partition. They are different sizes. Can I just > do `dd if=/dev/sda1 of=/dev/sdb1'? Or will the filesystem get corrupted that > way? What is the best way to duplicate a filesystem to a different sized > partition? > > -- Colin > > > >
| ![\](/images/icornerr.gif) |