Re: Hard Drive Issues



Thinking about this a bit more. Don't mount all your new partitions before starting dump. Only mount the new root at /mnt. I think you *can* mount them all in advance but there are two sets of mode bits which apply to a mounted filesystem, those of the filesystem, and those of its mount point. I think if you let restore create the mount points you will most accurately clone the permissions. /tmp is particularly different.

On Nov 7, 2006, at 5:44 PM, David Kelly wrote:

Use dump to read the old drive one partition at a time piped thru stdout
into restore. Double check the following as I'm typing off the top of my
head:

# dump -0af - / | ( cd /mnt; restore -rf - )

In copying / you should now have the mount points for other filesystems.

# mount /dev/<newdisk_etc> /mnt/etc

# dump -0af - /etc | ( cd /mnt/etc; restore -rf - )

# mount /dev/<newdisk_var> /mnt/var

# dump -0af - /var | ( cd /mnt/var; restore -rf - )

...

--
David Kelly N4HHE, dkelly@xxxxxxxxxx
========================================================================
Whom computers would destroy, they must first drive mad.

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: mounting tape drive?
    ... >:I need to do a restore. ... > are stored on tape. ... > For details on MOUNT and BACKUP commands, ... > newbies once), and newbies that have made a reasonable effort to read ...
    (comp.os.vms)
  • Re: Problem Restoring Dump Via Fixit Environment in FreeBSD 6.0 Release Boot Cdrom
    ... backups of my Gentoo and FreeBSD partitions. ... and run FIXIT to try and restore the dumps I run into problems. ... fixit won't even let me mount my linux boot drive ...
    (freebsd-questions)
  • Re: Backups to USB disk with Dump/Restore? (restore seems to hang)
    ... mounted usb drive ... Maybe incompatible versions of dump and restore? ... I've managed to get to a point where I can mount the root filesystem ...
    (comp.os.linux.hardware)
  • Re: Backups to USB disk with Dump/Restore? (restore seems to hang)
    ... I've managed to get to a point where I can mount the root filesystem ... readonly - hopefully a full backup with dump will now be restorable. ... If I ctrl-C I get back to the restore prompt. ... used dump then restore several times when repartitioning hard drives ...
    (comp.os.linux.hardware)
  • Re: RSG - [WildPacket]
    ... If you mount this database before you restore ot from backup, ... and transaction log files nefore you restore the database from backup. ...
    (microsoft.public.exchange.admin)