Subject: Re: I misunderstand partitioning
To: Nate Johnston <nate@broadwing.com>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: netbsd-help
Date: 01/10/2000 15:54:36
On Mon, Jan 10, 2000 at 04:38:30AM -0500, Nate Johnston wrote:
> 
> After setup, I was unable to find my Windows partitions from NetBSD to
> mount them.  I tried adding them manually to my disklabel; this only
> served to foul up the OS loader code.  How do I fix this problem and make
> my Windows partitions accessible?

So there are 2 problems: 1) fix loader code, 2) fix disklabel. I will try
2) - need more info on what's wrong for 1)

...
> 8 partitions:
> #        size   offset     fstype   [fsize bsize   cpg]
>   a:   567945  8406720     4.2BSD     1024  8192    16   # (Cyl. 8896 - 9496)
>   b:  1050840  8974665       swap                        # (Cyl. 9497 - 10608)
>   c:  3401937       63      MSDOS                        # (Cyl.    0*- 3599)
>   d:  5004720  3402000      MSDOS                        # (Cyl. 3600 - 8895)
>   e:  5442255 10025505     4.2BSD     1024  8192    16   # (Cyl. 10609 - 16367)
...
> root@synapse:/home/nate foreach FILEDEV (/dev/wd*)
> foreach> echo -n "Trying to mount $FILEDEV on /mnt: "
> foreach> mount -t msdos $FILEDEV /mnt
> foreach> end
> Trying to mount /dev/wd0b on /mnt: mount_msdos: mount: Device busy
> Trying to mount /dev/wd0c on /mnt: Trying to mount /dev/wd0d on /mnt: mount_msdos: mount: Invalid argument
> Trying to mount /dev/wd0e on /mnt: mount_msdos: mount: Device busy
> Trying to mount /dev/wd0f on /mnt: mount_msdos: mount: Device not configured

All the "Device not configured" messages are just because you only have
one disk, ie., wd0, so wd1a etc. are not configured. Plus wd0f,g,h
aren't as they don't appear in your disklabel.

wd0b and wd0e are busy because wd0b is in use by swap, and wd0e is /usr.
I'm surprised you didn't have the same message for wd0a. (cut'n paste?)

wd0c is "the whole disk" ie., it should have size 19640880, offset 0, so
you ought to move your size 3401937, offset 63, partition to say f.

You don't have a message about wd0d. As you run windows, this must be
NetBSD/i386 which uses wd0d as "the whole of NetBSD", ie., it should
have size 7061040, offset 8406720 (as per your fdisk output), so this
means moving your size 5004720, offset 3402000 partition to say g.

Good luck,

Patrick