DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #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
  #2   (View Single Post)  
Old 1st December 2016
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Although dated, this may be a good place to start:
Accessing Microsoft Partitions
Reply With Quote
  #3   (View Single Post)  
Old 1st December 2016
Ondrej Ondrej is offline
New User
 
Join Date: Dec 2016
Posts: 4
Default

thank you a lot
Reply With Quote
  #4   (View Single Post)  
Old 2nd December 2016
Ondrej Ondrej is offline
New User
 
Join Date: Dec 2016
Posts: 4
Default

i have one more question, how can i write something to mounted partition?
if i type command:
Code:
#mount -t ntfs  -o rw /dev/sd0b /media/usb
and than try
Code:
#mkdir /media/usb/folder
i get "mkdir: /media/usb/folder: No such file or directory"

Last edited by ocicat; 2nd December 2016 at 04:14 PM. Reason: Please use [code] & [/code] tags. HTML tags do not work here.
Reply With Quote
  #5   (View Single Post)  
Old 2nd December 2016
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

filesystems/fuse-ntfs-3g
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD won't boot after mounting root partition on OpenBSD Jtf FreeBSD Installation and Upgrading 12 19th March 2014 04:43 AM
Mounting a NetBSD partition from OpenBSD daemonfowl OpenBSD General 4 19th July 2012 12:03 PM
Mounting FreeBSD Data on Windows tuck Other OS 11 13th February 2009 10:19 AM
Mounting a FreeBSD UFS partition roddierod Solaris 1 7th August 2008 02:02 PM
Problem after migrating the /var and its contents to another partition harisman FreeBSD General 2 9th May 2008 04:59 PM


All times are GMT. The time now is 10:51 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick