Subject: Re: How to access partitions outside of NetBSD
To: Bryan P <u13@terran.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: netbsd-help
Date: 11/21/2003 08:48:55
Bryan P wrote:
> I would like to be able to access the Windos and other MBR-style partitions

You must have all DOS partitions you want to access in the disklabel. This is
what I have in my old laptop (NTFS, NetBSD and FAT):


# fdisk wd0
Partition table:
0: OS/2 HPFS or NTFS or QNX2 or Advanced UNIX (sysid 7)
     bootmenu: Windows
     start 63, size 16386237 (8001 MB, Cyls 0-1020), Active
1: NetBSD (sysid 169)
     bootmenu: NetBSD
     start 16386300, size 20480544 (10000 MB, Cyls 1020-2294/218/1)
2: Linux native (sysid 131)
     bootmenu: Linux
     start 36866844, size 16384032 (8000 MB, Cyls 2294/218/1-3314/182/1)
3: Primary DOS with 32 bit FAT - LBA (sysid 12)
     start 53250876, size 5354244 (2614 MB, Cyls 3314/182/1-3648)


# disklabel wd0
16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
  a:  19865412  16386300     4.2BSD   1024  8192    86  # (Cyl.  16256*-  35963)
  b:    615132  36251712       swap                     # (Cyl.  35964 -  36574*)
  c:  20480544  16386300     unused      0     0        # (Cyl.  16256*-  36574*)
  d:  58605120         0     unused      0     0        # (Cyl.      0 -  58139)
  e:  16386237        63       NTFS                     # (Cyl.      0*-  16256*)
  f:   5354244  53250876      MSDOS                     # (Cyl.  52828*-  58139)


# cat /etc/fstab
/dev/wd0a       /               ffs     rw              1       1
/dev/wd0b       none            swap    sw              0       0
/dev/wd0e       /windows/c      ntfs    ro              0       0
/dev/wd0f       /windows/d      msdos   rw              0       0
/proc           /proc           procfs  rw              0       0
swap            /tmp            mfs     rw,-s=124m      0       0


Martti