View Single Post
  #1   (View Single Post)  
Old 1st December 2016
Ondrej Ondrej is offline
New User
 
Join Date: Dec 2016
Posts: 4
Default problem with mounting windows partition

i have a problem with mounting ntfs partition from netbsd (both, the netbsd partition and the windows one are on the same disk). #disklabel doesn't see it. fdisk and mbrlabel does:

Code:
# disklabel wd0
# /dev/rwd0d:
type: unknown
disk: TOSHIBA MK3263G
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 620181
total sectors: 625142448
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:  43008336 314167296     4.2BSD   2048 16384     0  # (Cyl. 311673*- 354340*)
 b:   6339312 357175632       swap                     # (Cyl. 354340*- 360629*)
 c: 310975152 314167296     unused      0     0        # (Cyl. 311673*- 620180)
 d: 625142448         0     unused      0     0        # (Cyl.      0 - 620180)
 e: 110592720 363514944     4.2BSD   2048 16384     0  # (Cyl. 360629*- 470344*)
 f:   7078176 474107664     4.2BSD   2048 16384     0  # (Cyl. 470344*- 477366*)
 g: 143956608 481185840     4.2BSD   2048 16384     0  # (Cyl. 477366*- 620180)

Code:
# fdisk wd0
Disk: /dev/rwd0d
NetBSD disklabel disk geometry:
cylinders: 620181, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 625142448, bytes/sector: 512

BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 625142448

Partitions aligned to 2048 sector boundaries, offset 2048

Partition table:
0: unknown (sysid 39)
    bootmenu: win7
    start 2048, size 819200 (400 MB, Cyls 0-51/30/43), Active
1: NTFS, OS/2 HPFS, QNX2 or Advanced UNIX (sysid 7)
    bootmenu: win
    start 821248, size 313345892 (153001 MB, Cyls 51/30/44-19555)
2: NetBSD (sysid 169)
    bootmenu: net
    start 314167296, size 310975152 (151843 MB, Cyls 19556/2/31-38913/80/63)
3: <UNUSED>
Bootselector disabled.
First active partition: 0
Drive serial number: 2791899404 (0xa669010c)
Code:
# mbrlabel wd0
Found unknown partition; size 819200 (400 MB), offset 2048
  adding unknown partition to slot h.
Found NTFS partition; size 313345892 (153000 MB), offset 821248
  adding NTFS partition to slot i.
Found 4.2BSD partition; size 310975152 (151843 MB), offset 314167296
  skipping existing unused partition at slot c.

16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:  43008336 314167296     4.2BSD   2048 16384     0  # (Cyl. 311673*- 354340*)
 b:   6339312 357175632       swap                     # (Cyl. 354340*- 360629*)
 c: 310975152 314167296     unused      0     0        # (Cyl. 311673*- 620180)
 d: 625142448         0     unused      0     0        # (Cyl.      0 - 620180)
 e: 110592720 363514944     4.2BSD   2048 16384     0  # (Cyl. 360629*- 470344*)
 f:   7078176 474107664     4.2BSD   2048 16384     0  # (Cyl. 470344*- 477366*)
 g: 143956608 481185840     4.2BSD   2048 16384     0  # (Cyl. 477366*- 620180)
 h:    819200      2048    unknown                     # (Cyl.      2*-    814*)
 i: 313345892    821248       NTFS                     # (Cyl.    814*- 311673*)

Not updating disk label.

# mount -t ntfs /dev/wd0i /mnt mount_ntfs: /dev/wd0i on /mnt: Device not configured

Last edited by J65nko; 1st December 2016 at 08:52 PM. Reason: Added [code] and [/code] tags ;)
Reply With Quote