Subject: I misunderstand partitioning
To: Netbsd Help <netbsd-help@netbsd.org>
From: Nate Johnston <nate@broadwing.com>
List: netbsd-help
Date: 01/10/2000 04:38:30
Hello,

I'm new to NetBSD, although I'm familiar with a number of other Unices.  I
am setting up a trial version of NetBSD on a laptop, and it is going well,
with the exception of accessing the windows partitions of the disk.

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?

Here is the output of fdisk:

============================================

NetBSD disklabel disk geometry:
cylinders: 16383 heads: 15 sectors/track: 63 (945 sectors/cylinder)
BIOS disk geometry:
cylinders: 1023 heads: 240 sectors/track: 63 (15120 sectors/cylinder)
Partition table:
0: sysid 12 (Primary DOS with 32 bit FAT - LBA)
    start 63, size 3401937 (1661 MB), flag 0x80
        beg: cylinder    0, head   1, sector  1
        end: cylinder  225, head   0, sector  1
1: sysid 12 (Primary DOS with 32 bit FAT - LBA)
    start 3402000, size 5004720 (2443 MB), flag 0x0
        beg: cylinder  225, head   0, sector  1
        end: cylinder  556, head   0, sector  1
2: sysid 169 (NetBSD)
    start 8406720, size 7061040 (3447 MB), flag 0x0
        beg: cylinder  556, head   0, sector  1
        end: cylinder 1023, head   0, sector  1
3: <UNUSED>

============================================

And here is the output of disklabel wd0:

============================================

type: unknown
disk: netbsd1
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 15
sectors/cylinder: 945
cylinders: 16383
total sectors: 19640880
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0
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)

============================================

And here's the problem:

============================================

root@synapse:/home/nate df -k
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/wd0a      274531   180251    80553    69%    /
/dev/wd0e     2631825  1838563   661670    73%    /usr
mfs:172          9631        5     9144     0%    /tmp
kernfs              1        1        0   100%    /kern
procfs              4        4        0   100%    /proc
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
Trying to mount /dev/wd0g on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd0h on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd1a on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd1b on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd1c on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd1d on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd1e on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd1f on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd1g on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd1h on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd2a on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd2b on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd2c on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd2d on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd2e on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd2f on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd2g on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd2h on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd3a on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd3b on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd3c on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd3d on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd3e on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd3f on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd3g on /mnt: mount_msdos: mount: Device not configured
Trying to mount /dev/wd3h on /mnt: mount_msdos: mount: Device not configured

============================================

Thanks for your insight!

--N.