lkml.org 
[lkml]   [1996]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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
>
>
>
>


\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.083 / U:2.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site