Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Dec 2003 02:11:26 +1030
From:      Malcolm Kay <>
To:        "Francisco Reyes" <>, "FreeBSD questions" <>
Subject:   Re: Fwd: Re: Please help.  Can't see HD
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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=
> > 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=
> >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=
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

Want to link to this message? Use this URL: <>