From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 07:41:31 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A78A16A4CE for ; Mon, 29 Dec 2003 07:41:31 -0800 (PST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 928D743D1D for ; Mon, 29 Dec 2003 07:41:29 -0800 (PST) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp109-47.lns1.adl1.internode.on.net [150.101.109.47])hBTFfQRp011727; Tue, 30 Dec 2003 02:11:27 +1030 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: At home To: "Francisco Reyes" , "FreeBSD questions" Date: Tue, 30 Dec 2003 02:11:26 +1030 User-Agent: KMail/1.4.3 References: <200312291438.hBTEchU6012231@mail1.acecape.com> In-Reply-To: <200312291438.hBTEchU6012231@mail1.acecape.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200312300211.26168.malcolm.kay@internode.on.net> Subject: Re: Fwd: Re: Please help. Can't see HD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2003 15:41:31 -0000 On Tue, 30 Dec 2003 01:12, Francisco Reyes wrote: > On Mon, 29 Dec 2003 20:53:06 +1030, Malcolm Kay wrote: > >OK; how did you install initially? Was the whole disk used for BSD? > >Did you follow the defaults during installation? > > > >If both the latter questions are answered in the affirmative then you > >might go back to installation and try to create the same slices, > > partitions and mount points. > > I thought I had recorded my partition sizes, but I had not saved > them. > I found enough data in my backups so the data loss is minimal. > At this stage I want to concentrate on improving my backups for > the next time. > > >> Is there a way to backup the disklable and slice info? > > > >Yes, disklabel and fdisk have facilities for outputting their current > > state and this can be redirected to file and then stored on your back= up > > media or a floppy disk. > > > >I do this on a regular basis > > Could you share the commands please? > # fdisk ad2 > ad2.fdisk # disklabel ad2s1 > ad2s1.disklabel > >In my opinion dump and restore are the best backup and recovery mechan= isms > >for BSD. > > I will work on a dump/restore mechanism. I will do that weekly. > Have a database running which may not backup well. On weekends I > can shutdown everything for the dump process. I plan to dump to > a file in the second HD if that is possible. I also just bought > a DVD burner to backup to it essential data to take offsite > besides the copy on the second HD. > > Thanks for the advice. If I had only had a backup of the disk > info this whole experience would have been less problematic. If you have dumps of all partitions then the slicing and partitioning siz= es are not too important so long as thay are big enough. Just use say 'fdisk -BI ad2' to set it up with one slice for BSD. Then use disklabel on ad2s1 first to obtain a skeleton file then fill in the partitions and sizes you want and write it back with # disklabel -R -B ad2s1 prototypelabel Now create file systems in the partitions to be mounted (newfs). You should now be able to restore your backups to each partition in turn. Malcolm Kay