NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: New hard disk, copying data

On Fri, May 24, 2013 at 07:17:41AM +0100, Andrew Smallshaw wrote:
> On Thu, May 23, 2013 at 05:07:19PM +0200, Riccardo Mottola wrote:
> > 
> > 1) attach the hard disk in an external USB enclosure
> > 2) Partition int
> > 3) Copy the data (how? using tar/untar perhaps?)
> > 4) write the MBR (but how, from the command line? and I don't need
> > the boot selection anymore, just flat into NetBSD)
> Briefly, fdisk then disklabel then newfs the new root partition.
> No need for tar etc if you're mounting it in a USB enclosure, a
> simple cp -Rp will do the trick.  Making the disk bootable is
> slightly more tricky, you need to install the MBR and then the
> primary and secondary boot code (man installboot).

Are you sure that "cp -Rp" will suffice? I have a foggy memory that it
removes the sticky bit?

I would use pax as described in the raid part of the NetBSD guide.


If you don't shoot the bearers of bad news, people will keep bringing it to you.

Home | Main Index | Thread Index | Old Index