From owner-freebsd-questions@FreeBSD.ORG Mon Aug 24 22:50:22 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57CD6106568E for ; Mon, 24 Aug 2009 22:50:22 +0000 (UTC) (envelope-from af.gourmet@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.freebsd.org (Postfix) with ESMTP id 2E80C8FC13 for ; Mon, 24 Aug 2009 22:50:21 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=UTF-8 Received: from [192.168.0.51] ([96.21.103.185]) by VL-MO-MR002.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTP id <0KOW009TGKRX3SB0@VL-MO-MR002.ip.videotron.ca> for freebsd-questions@freebsd.org; Mon, 24 Aug 2009 18:50:21 -0400 (EDT) Message-id: <4A931933.50808@videotron.ca> Date: Mon, 24 Aug 2009 18:50:27 -0400 From: PJ User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) To: Roland Smith References: <4A929241.5060406@videotron.ca> <4A92B6C4.8070309@videotron.ca> <20090824174937.GA43410@slackbox.xs4all.nl> <4A92DCF5.5000808@videotron.ca> <20090824213654.GB43410@slackbox.xs4all.nl> In-reply-to: <20090824213654.GB43410@slackbox.xs4all.nl> Cc: freebsd-questions@freebsd.org Subject: Re: moving a disk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Aug 2009 22:50:22 -0000 Roland Smith wrote: > On Mon, Aug 24, 2009 at 02:33:25PM -0400, PJ wrote: > >> I'm afraid I was a bit impatient >> > > Patience is a virtue. Installing stuff can take hours, and a split-second can > suffice to screw it all up. Been there & done that. :-) > > >> and messed up the already messed up >> disk... frankly, I don't recall whatever happened to the thing in the >> first place. >> > > Can I give you a tip? If you are doing something new or hairy, keep a laptop > or even a paper notebook handy and make notes of what you do. Write down the > commands that you use and any error messages that you get. > > My favorite technique is to open emacs (preferably on another machine), start > a terminal/ssh session inside an emacs buffer and then do my thing. This gives > me a complete record of what I've done. Save these session (with some added > explanations) to a file and you'll know what to do next time, or at least you > can explain to others what you've been doing. > > >> anyway, I'm just practicing another minimal install... it's not as bad as I >> had thought... I'm getting it all together now. >> > > There is an extremely easy way to get all ports that you need onto a new > machine, provided that you have a (base) machine of (a) the same FreeBSD major > version of (b) the same hardware architecture and (c) up-to-date installed > ports available. > > On the base machine, make dump(8)s of the filesystem(s) containing /usr/local, > /var/db/ports and /var/db/pkg and save them to files. Transfer those dump > files to an external harddisk or DVD. Using restore(8) interactively on the > new machine, restore these three directories to their respective filesystems > and you've got all ports up and running save for some editing of /etc/rc.conf. > > I'm not that organized, yet... ;-) but I have saved my rc.conf, smb.conf, httpd.conf. httpd-vhosts.conf 7 a number of other handy configuration files that I copy to new installations and tweak, if necessary; even the certificates for ssl work fine... so, now I think I'll follow your suggestion and keep a record and do the copy stuff - it also saves bandwidth so you don' t have to download all the distfiles... but I don't do any hairy stuff :-( just trying to K.I.S.S - and this will make it even simpler. Thanks again... learned again... >> Thanks much, I'm beginning >> to understand a bit more... this boot stuff sure is complicated... >> > > Yep. PC booting is a throwback to an earlier era when 640 kB RAM was all there > was and 512 bytes seemed big enough for boot code, because you were writing in > machine language or assembly anyway. > > If you want a real hair-raising story about the time that assemblers were > luxuries, google 'the story of Mel' and be amazed (or horrified). It predates > PCs, but I think it shows the mind-set of the begin time of (personal) > computing. > > Roland >