Subject: mounting NTFS and FFS parts. on same physical disk.
To: None <netbsd-users@netbsd.org>
From: None <pete.vickers@uk.adtranz.com>
List: netbsd-users
Date: 11/30/2000 10:09:07
Hi All,
Running NetBSD 1.5_BETA2 on a Compaq M300 laptop, dual booting with Win2k...
I'm trying to mount the NTFS partition [onto /mnt] whilst running under NetBSD.
The question is what to use as the 'special device', for the mount command.
Since the laptop has a single IDE drive and I currently use 'fdisk -a' to change
the active partition and thus select which partition to boot on next power-up [0
is Win2k, 1 is NetBSD], then /dev/wd0 seems to relate only to 'areas' within the
NetBSD 'partition'. Is there a [or can I create] a special device file for areas
of the hard disk that are not within the NetBSD partition ?
relevant [?] info:
--------------------------------------------------------------------------------------
fdisk
NetBSD disklabel disk geometry:
cylinders: 16383 heads: 16 sectors/track: 63 (1008 sectors/cylinder)
BIOS disk geometry:
cylinders: 1022 heads: 240 sectors/track: 63 (15120 sectors/cylinder)
Partition table:
0: sysid 7 (OS/2 HPFS or NTFS or QNX2 or Advanced UNIX)
start 63, size 16783137 (8194 MB), flag 0x0
beg: cylinder 0, head 1, sector 1
end: cylinder 1023, head 239, sector 63
1: sysid 169 (NetBSD)
start 16794288, size 6784848 (3312 MB), flag 0x80
beg: cylinder 1023, head 176, sector 1
end: cylinder 1023, head 111, sector 63
2: <UNUSED>
3: <UNUSED>
--------------------------------------------------------------------------------------
cat /etc/fstab
/dev/wd0a / ffs rw 1 1
/dev/wd0b none swap sw 0 0
/dev/wd0e /usr ffs rw 1 2
/kern /kern kernfs rw
--------------------------------------------------------------------------------------
disklabel wd0
# /dev/rwd0d:
type: unknown
disk: mydisk
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 23579136
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize cpg]
a: 567504 16794288 4.2BSD 1024 8192 16 # (Cyl. 16661 - 17223)
b: 1050336 17361792 swap # (Cyl. 17224 - 18265)
c: 6784848 16794288 unused 0 0 # (Cyl. 16661 - 23391)
d: 23579136 0 unused 0 0 # (Cyl. 0 - 23391)
e: 5167008 18412128 4.2BSD 1024 8192 16 # (Cyl. 18266 - 23391)
--------------------------------------------------------------------------------------
df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/wd0a 274519 133338 127455 51% /
/dev/wd0e 2498738 450948 1922853 18% /usr
kernfs 1 1 0 100% /kern
--------------------------------------------------------------------------------------
TIA,
Pete Vickers