View Single Post
  #1   (View Single Post)  
Old 21st October 2011
Justin_i Justin_i is offline
New User
 
Join Date: Oct 2011
Posts: 2
Default How do I correctly mount a flash drive in OpenBSD?

Hello,

Would someone explain how to correctly mount, and write to, a thumb drive. I can read from the thumb drive but I cannot save to the thumb drive; I keep getting 'error saving' file or 'no such directory'.

Here's what I'm doing:

dmesg
Code:
umass0 at uhub0 port 5 configuration 1 interface 0 "Generic USB TO IDE Bridge" rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd0 at scsibus2 targ 1 lun 0: <Generic, USB Disk, 9.02> SCSI2 0/direct fixed
sd0: 38154MB, 512 bytes/sec, 78140160 sec total
disklabel sd0i
Code:
# /dev/rsd0i:
type: SCSI
disk: SCSI disk
label: USB Disk        
duid: 0000000000000000
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 4864
total sectors: 78140160
boundstart: 0
boundend: 78140160
drivedata: 0 

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  c:         78140160                0  unused                   
  i:         78140097               63    NTFS

df
Filesystem  512-blocks      Used     Avail Capacity  Mounted on
/dev/wd0a      2057756     84508   1870364     4%    /
/dev/wd0k     64449016   1215432  60011136     2%    /home
/dev/wd0d      8250812       168   7838104     0%    /tmp
/dev/wd0f      4122108    733616   3182388    19%    /usr
/dev/wd0g      2057756    323184   1631688    17%    /usr/X11R6
/dev/wd0h     14274172   3161504  10398960    23%    /usr/local
/dev/wd0j      4122108         4   3916000     0%    /usr/obj
/dev/wd0i      4122108         4   3916000     0%    /usr/src
/dev/wd0e     10312732     39460   9757636     0%    /var
/dev/sd0i     78140096  26062456  52077640    33%    /mnt/pen
mount -w -t ntfs /dev/sd0i /mnt/pen

Last edited by ocicat; 21st October 2011 at 09:12 PM. Reason: Please use [code] & [/code] tags when posting command output.
Reply With Quote