Re: Problems with my HD
On 29-May-2000 Mark Janssen wrote: > On Sun, 28 May 2000, Kevin Blackham wrote: >> On Sun, May 28, 2000 at 11:08:18PM -0300, Helber wrote: >> > I4m having some phisical problems with my hard drive. >> > How do I transfer all my data from a hd to another. >> >> I've done this using "tar cvp * > outputfile" and then extracting the >> archive >> to the new, mounted drive. You'll need some temporary space, so I usually >> just put the outputfile on the new mount. > > Then you can better use named pipes, then you won't need tempspace > > mkfifo /tmp/somenamedpipe > on : tar -zxvf /tmp/somenamedpipe > and in another shell, while the above is running... > on : tar -zcvf /tmp/somenamedpipe The way I normally do this is: find -print | cpio -pdumv > You can also use the tools 'mirrordir' and 'copydir', they are in the same > package, and they copy (or copy with delete) one directory tree to > another, in a minimal way (Compare timestamps, don't copy if even..) I just recently wrote a custom script that "mirrors" two drives each night. It starts by 'dd'ing the mbr and the /boot partition, then mounting the "/" and "/var" partions on the secondary drive, use mirrordir to sync up the files, then unmount everything on the second drive when finished. Useing dd for the mbr and /boot partition keeps lilo synced up on both drives, and makes sure that the kernel is in the same physical place on the second drive. Of course this requires that boths drives are physically the same. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= O- Ken Bowley/SysAdminmailto:[EMAIL PROTECTED] Viking Systems, Inc. http://www.vikingsystems.com -=-=-=-=-=[Sair Linux and GNU Certified Professional]=-=-=-=-=- It wasn't exactly a divorce -- I was traded. -- Tim Conway
Re: Problems with my HD
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, 28 May 2000, Kevin Blackham wrote: > On Sun, May 28, 2000 at 11:08:18PM -0300, Helber wrote: > > I´m having some phisical problems with my hard drive. > > How do I transfer all my data from a hd to another. > > I've done this using "tar cvp * > outputfile" and then extracting the archive > to the new, mounted drive. You'll need some temporary space, so I usually > just put the outputfile on the new mount. Then you can better use named pipes, then you won't need tempspace mkfifo /tmp/somenamedpipe on : tar -zxvf /tmp/somenamedpipe and in another shell, while the above is running... on : tar -zcvf /tmp/somenamedpipe You can also use the tools 'mirrordir' and 'copydir', they are in the same package, and they copy (or copy with delete) one directory tree to another, in a minimal way (Compare timestamps, don't copy if even..) Mark Janssen Unix Consultant Unix Support Nederland / PSInet Netherlands E-mail: [EMAIL PROTECTED]GnuPG Key Id: 357D2178 http: markjanssen.homeip.net www.markjanssen.nl www.maniac.nl -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.1 (GNU/Linux) Comment: For info see http://www.gnupg.org Filter: gpg4pine 4.0 (http://azzie.robotics.net) iD8DBQE5MgDSb6urvDV9IXgRAir8AJ4/u595r8dPIODv5OmW8jG8G5NQfQCguXKU FDTYVpevNWZZHNjfpX//Zig= =DtK3 -END PGP SIGNATURE-
Re: Problems with my HD
On Sun, May 28, 2000 at 11:08:18PM -0300, Helber wrote: > I´m having some phisical problems with my hard drive. > How do I transfer all my data from a hd to another. I've done this using "tar cvp * > outputfile" and then extracting the archive to the new, mounted drive. You'll need some temporary space, so I usually just put the outputfile on the new mount. > Is there a way to work with two hard drives, something like master and slave, > but the slave been a mirror of the master? Temporarily, or as a permanent solution? Temporarily you can just prepare the new drive with the same partitioning scheme (size not usually important) and mount each one, then extract your tarballs to the new targets. For a permanent setup, you can use software RAID mirroring. I have experience with hardware RAID, but not software driven. There's a howto. > Just to increase security, if the master fails the slave could substitute > the master. That would be raid level 1 (mirroring). -- Kevin Blackham 801-539-0852 Senior Tech, XMission Internet 877-XMISSION
Problems with my HD
Hi all. I´m having some phisical problems with my hard drive. How do I transfer all my data from a hd to another. I wish to duplicate the hd and then change it. How is the easy way to do it? (sorry for my english). Is there a way to work with two hard drives, something like master and slave, but the slave been a mirror of the master? Just to increase security, if the master fails the slave could substitute the master. thanks in advance