[784] in netbsd-help mailing list archive

home help back first fref pref prev next nref lref last post

mounting a hard drive that doesn't have the NetBSD partition on it

daemon@ATHENA.MIT.EDU (Vuong P Nguyen)
Sat Feb 10 18:43:39 1996

From: Vuong P Nguyen <vpnguyen@MIT.EDU>
To: netbsd-help@MIT.EDU
Date: Sat, 10 Feb 1996 18:39:37 EST


Hi,

I found these instructions on a FAQ and I was wondering if anyone could
confirm/deny that this works. If these instructions are wrong, could
someone tell me how to do it?

        Assuming you don't have something (like OS-BS) which uses the extra
        sectors in the boot track, you can do the following:

        1) Use the NetBSD `fdisk' or DOS `pfdisk' to create a NetBSD 
        partition in the MBR which spans the entire disk.

        2) Save a copy of the MBR:

                dd if=/dev/rsd0d of=my-mbr bs=1b count=1

        3) Use `disklabel' to create a NetBSD label with the DOS partition 
        and whatnot.  Answer `y' when it asks you if you want to `overwrite 
        [a] disk with [a] DOS partition table'.

        4) Put back the saved copy of the MBR:

                dd if=my-mbr of=/dev/rsd0d bs=1b count=1

I am using a boot program, so does that completely invalidate these 
instructions? If they are right, could someone elaborate on step one?

Thanks,

Vuong Nguyen

home help back first fref pref prev next nref lref last post