[lug] adding a new disk to a system
Hugh Brown
hugh at vecna.com
Sat Sep 1 18:23:56 MDT 2001
I think I'll try the cpio route. It's just a vanila ext2 partition that is
shared via samba.
Hugh
"D. Stimits"
>
> The following may be totally useless, but it is a possibility.
>
> A while back I was working on migration of a partition, and the
> following was given (by Alan Robertson), based on the /dev directory. It
> should apply to any directory if you replace the "/dev". Basically,
> normal mechanisms were not copying everything exactly, this version did
> work though:
> find /dev -print | cpio -pdm .
>
> If you use the above, it will create a new subdirectory "dev" to your
> current directory; you could change the "." to name some other
> destination. If you were in /some/temp, and ran the above command, it
> would produce /some/temp/dev, and that would be an exact duplicate of
> /dev. You may find this is necessary for special files such as character
> device files, pipes, so on. This *might* work better than the tar
> mechanism. A second possible problem is that some database formats try
> to do raw access, and node numbers matter, rather than file names, so dd
> would be the only way to do a proper copy, and then only if the two
> disks had the same block size. If you run a non-ext2 partition, and
> ACL's are enabled (advanced permissions of some filesystems, "Access
> Control List"), I think samba will use ACL's, and thus you'd need to
> copy not just regular files and permissions, but also preserve ACL's (I
> have no idea if your current system has anything to do with this).
>
More information about the LUG
mailing list