Subject: Re: getting a label on a non-NetBSD hard drive
To: NetBSD i386 <port-i386@netbsd.org>
From: Analysis and Solutions <info@analysisandsolutions.com>
List: port-i386
Date: 07/12/2001 18:03:37
Hi Launey:
Launey emailed me off list, probably inadvertently. Here's my reply...
Launey Thomas wrote:
>
> > Back to the question. Then how are users supposed to utilize existing data
> > on non-NetBSD hard drives?
>
> I am sure others will have better suggestions, but I once did this by
> making an entry in the MBR for a small NetBSD partition that used
> sectors 2 - 62 of the first track (i.e., the first track with the MBR
> sector removed). This portion of the disk is normally unused, but
> check to make sure before you do it! (I think that some older boot
> selectors install there, too!) Then I was able to put a label on the
> disk which went into this small partition.
>
> I suggest you back things up (including the MBR) before you try this
> the first time. :-)
That's a thought. There's not a way for NetBSD to do this internally? I
mean without altering the drive in an unusual way like that.
Anyway, if one wants to backup their MBR on i386, could it be done by doing
something like this:
dd if=/dev/wd0d of=/mbr.file.backup count=1 bs=512
Enjoy,
--Dan
--
PHP scripts that make your job easier
http://www.analysisandsolutions.com/code/
SQL Solution | Layout Solution | Form Solution
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Ave, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409