Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jul 2002 01:58:07 +0200
From:      "Roger 'Rocky' Vetterberg" <listsub@rambo.simx.org>
To:        Roman Neuhauser <neuhauser@bellavista.cz>
Cc:        freebsd-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: moving an installation to another disk
Message-ID:  <3D47280F.80506@rambo.simx.org>
References:  <20020730160756.GC275@freepuppy.bellavista.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
Roman Neuhauser wrote:
> hi there,
> 
> i just bought new disk, and want to move my existing freebsd
> installation over. i could install freebsd afresh on the new disk, and
> copy important files (/etc/* /usr/local/etc/*) over, but i'd rather
> avoid that. i have more than just configuration files on this computer,
> and i *don't* want to reinstall all the software if i don't have to.
> 
> btw, i've read /usr/share/doc/en/articles/formatting-media/, and tried
> to format the new disk (ad1) using /stand/sysinstall (fdisk +
> disklabel). i managed to let fdisk confuse me with the confirm dialog
> after pressing "w", and answered "no" (don't write). the newfs disklabel
> performed then completely confused the system. my existing (ad0s1)
> filesystems disappeared, and i had to cycle the power. the box then came
> up just fine, thank you, but what the fsck was that?
> 
> also, the /usr/share/doc/en/articles/formatting-media/ howto is
> obviously outdated (the behavior it describes doesn't match that
> observed in reality), and /usr/share/doc/handbook/disks-adding.html is
> inaccurate just as well. for example, it says "Sysinstall will not
> create entries in /etc/fstab for you, so the mount point you specify is
> not important". excuse me, but this is bs. sysinstall will
> oh-so-willingly (try to) mount the fs at the mount point specified!
> 
> first, i don't remember asking it to do that.
> 
> second, if you specify a mount point with another fs mounted, sysinstall
> won't newfs the new partitions.
> 
> hrmpf. i've been sitting on this mail on and off for a few hours, and it
> perverted into more of a rant than a support question. sorry for that,
> here is the question:
> 
> how do i transfer a freebsd install from one disk to another? the disks
> are different, so afaik dd is not an option.
> 
> also, the current disk is partitioned into /, /tmp, /usr, /var, and
> swap, and i'd rather have just /boot, /, and swap on the new one.
> 

Do not underestimate the power of the documentation.
A complete step by step howto explaining how to move your entire 
system to a new disk, not necessarily of the same size: 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#NEW-HUGE-DISK

--
R



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D47280F.80506>