Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Dec 2005 10:02:04 -0800
From:      "Gayn Winters" <gaynw@bristolsystems.com>
To:        "'Javier Matos'" <javierlu@gmail.com>, <freebsd-questions@freebsd.org>
Subject:   RE: how to copy MBR??
Message-ID:  <005d01c5f8fc$d865e290$6501a8c0@workdog>
In-Reply-To: <000601c5f875$037ec970$0301a8c0@mindcrash>

next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message-----
> From: owner-freebsd-questions@freebsd.org=20
> [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Javier Matos
> Sent: Saturday, December 03, 2005 5:50 PM
> To: freebsd-questions@freebsd.org
> Subject: how to copy MBR??
>=20
>=20
> Hi, I will change the hard drive of my computer and I was=20
> thinking that maybe it can run if I make partitions in the=20
> new hard drive (the same number of partitions using the same=20
> device name), copy all the files contained in the old hard=20
> drive to the new one and finally copy MBR from old hard drive=20
> to the new one... .
>=20
> Can it be a solution to the problem of changing hard drives=20
> of my computer or that that I tell is a stupid thing??
>=20
 Javier,

You should do a little reading first.  The Handbook has a good section
on this, and there are MANY posts on the topic.  The bottom line is that
a na=EFve copy using dd or cp won't work.  (Well, dd will work but
assuming your new disk is larger, it won't be optimal.)  You are
probably better off with a new install on the new disk, and then doing
dump and restore to transfer the relevant user data.  This is a good
time to rethink how your data are stored, and the handbook has a section
on rearranging your directories.  This is a popular topic and there are
any HOWTO's out there that Google will find for you.  If you have room
physically, using the old disk as an extra drive is something I'd
suggest as well.  In fact, it makes the dump|restore work particularly
well.

-gayn





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?005d01c5f8fc$d865e290$6501a8c0>