Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!pacbell.com!ihnp4.ucsd.edu!mvb.saic.com!MathWorks.Com!news.kei.com!bloom-beacon.mit.edu!ai-lab!life.ai.mit.edu!mycroft From: mycroft@duality.gnu.ai.mit.edu (Charles Hannum) Newsgroups: comp.os.386bsd.questions Subject: Re: Mounting another hard disc Date: 11 Mar 1994 20:02:42 GMT Organization: MIT Artificial Intelligence Lab Lines: 35 Distribution: world Message-ID: <MYCROFT.94Mar11150242@duality.gnu.ai.mit.edu> References: <763384234tim.news@xplora.toppoint.de> NNTP-Posting-Host: duality.gnu.ai.mit.edu In-reply-to: tim@xplora.toppoint.de's message of Fri, 11 Mar 94 11:10:34 CET In article <763384234tim.news@xplora.toppoint.de> tim@xplora.toppoint.de (Tim Weilkiens) writes: I have the following problem. I have two hard discs. I want to mount one of it (only DOS partition) from NetBSD. This is a little complicated at the moment, but the following works for me. `Your milage may vary.' And don't blame me if you blow it and lose your partition table. 1) If you have OS-BS or a similar boot manager (which uses the spare sectors in the boot track) installed on the DOS-only disk, don't even try this. 2) Use NetBSD's `fdisk' or DOS's `pfdisk' to create a partition of type 0xa5 spanning the entire disk. 3) Save a copy of the MBR. (`dd if=/dev/rsd0d of=old-mbr bs=1b count=1', assuming the disk is sd0.) 4) Create a NetBSD disk label template, containing the correct offsets for the DOS partitions, and install it with disklabel(8). If it asks you whether you want to overwrite the DOS partition table, answer affirmatively. 5) Put back the old MBR. (`dd if=old-mbr of=/dev/rsd0d bs=1b') You should now be able to use the drive from both DOS and NetBSD. -- - Charles Hannum NetBSD group Working ports: i386, hp300, amiga, sparc, mac68k, pc532. In progress: pmax, sun3.