DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2nd September 2011
threaderslash threaderslash is offline
New User
 
Join Date: Jul 2011
Posts: 6
Thanked 0 Times in 0 Posts
Lightbulb write file into usb - operation not supported

Hi Folks,

I need some light here... I have a removable HD. This one I partitioned in 3 parts.

I mounted the 3rd partition of this removable HD.

mount /dev/sd0k /mnt/pen

Then tried to write a file into my HD, just like that
cp /home/username/bookmark/bookmarks.html /mnt/pen/data003/bookmarks/bookmarks.html

Then I receive this message:
Operation not supported

The other way around works fine, i.e. I can copy file from this same device into my home directory. But I can not write/copy to the USB HD.

Previously I did such copy file writing to device successfully, but it was for a simple USB pendrive, not a USB HD partitioned in 3 parts.

So. What is the problem for this case?

All comments and suggestions are highly appreciated.
Reply With Quote
  #2   (View Single Post)  
Old 2nd September 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,429
Thanked 214 Times in 189 Posts
Default

Post the output from # fdisk sd0 and # disklabel sd0 please.
Reply With Quote
  #3   (View Single Post)  
Old 2nd September 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,429
Thanked 214 Times in 189 Posts
Default

Just to let you know what I suspect, threaderslash, see the BUGS section of the mount_ntfs(8) man page.
Reply With Quote
  #4   (View Single Post)  
Old 2nd September 2011
threaderslash threaderslash is offline
New User
 
Join Date: Jul 2011
Posts: 6
Thanked 0 Times in 0 Posts
Cool

@jggimi...
Code:
# fdisk sd0
Disk: sd0	geometry: 19457/255/63 [312581808 Sectors]
Offset: 0	Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
 0: 0B      0   1   1 -   6485 254  63 [          63:   104197527 ] Win95 FAT-32
*1: 0B   6486   0   1 -  12971 254  63 [   104197590:   104197590 ] Win95 FAT-32
 2: 07  12972  17  38 -  19457  21  20 [   208396288:   104181760 ] NTFS        
 3: 00      0   0   0 -      0   0   0 [           0:           0 ] unused
and
Code:
# disklabel sd0
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: 1600BEV External
duid: 0000000000000000
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 19457
total sectors: 312581808
boundstart: 0
boundend: 312581808
drivedata: 0 

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  c:        312581808                0  unused                   
  i:        104197527               63   MSDOS                   
  j:        104197590        104197590   MSDOS                   
  k:        104181760        208396288    NTFS
So, it is there and mounted. Just it does not allow writing into it.

I also looked at http://nixdoc.net/man-pages/openbsd/...nt_ntfs.8.html but no clue.

Last edited by ocicat; 2nd September 2011 at 11:52 AM. Reason: Please use [code] & [/code] tags when posting command output.
Reply With Quote
  #5   (View Single Post)  
Old 2nd September 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,831
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by threaderslash View Post
If you look at the bottom of the displayed manpage, http://nixdoc.net is displaying information from OpenBSD 3.6 -- which was released November 2004.

The manpage for mount_ntfs(8) for OpenBSD 4.9-release states:
Code:
    The write support should be enhanced to actually be able to change file
     size, and to create and remove files and directories.  It's not very
     useful right now.
Reading from NTFS partitions should be fine. Write to NTFS partitions at your own peril.
Reply With Quote
  #6   (View Single Post)  
Old 2nd September 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,831
Thanked 190 Times in 160 Posts
Default

threaderslash, if your goal is to simply use a flash drive for storage, consider formatting as FFS as described in Section 14.17 of the FAQ.

If your goal is to share files with Windows, use the lowest common denominator, MS-DOS.

NTFS support is currently limited to reading (reliably...).
Reply With Quote
  #7   (View Single Post)  
Old 2nd September 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

If you're wanting a read-writable "foreign" filesystem, it's best to either use ext2 or.. FAT32 with tar/dump files to preserve permissions.
Reply With Quote
  #8   (View Single Post)  
Old 2nd September 2011
threaderslash threaderslash is offline
New User
 
Join Date: Jul 2011
Posts: 6
Thanked 0 Times in 0 Posts
Lightbulb solved

Now it worked. I just copied the file to the FAT-32 partition. Thank you all!
Reply With Quote
  #9   (View Single Post)  
Old 2nd September 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,429
Thanked 214 Times in 189 Posts
Default

Quote:
Originally Posted by threaderslash View Post
Quote:
Originally Posted by ocicat View Post
If you look at the bottom of the displayed manpage, http://nixdoc.net is displaying information from OpenBSD 3.6 -- which was released November 2004.
Threaderslash, if you did not install the man*.tgz fileset when you installed OpenBSD, you can add it to your system now by following the instructions in FAQ 4.11. In addition, every one of the mirrors of the OpenBSD project website have a link to web based manuals, where you can even compare different versions of individual man pages from release to release.
Quote:
Originally Posted by Theo's_email_to_root_at_install
For more information on how to set up your OpenBSD system, refer to the
"afterboot" man page (i.e. after you exit the mail subsystem, type
"man afterboot"). If you are not familiar with how to read man pages, type
"man man" at a shell prompt and read the entire thing. Pay specific
attention to the "man -k keyword" option, which will permit you to find the
man page you are looking for more easily; for instance, "man -k ethernet"....


Again, PLEASE READ THE MANUAL PAGES. Our developers have spent countless
hours improving them so that they are clear and precise.
And, from afterboot(8):
Code:
     Administrators will rapidly become more familiar with OpenBSD if they get
     used to using the high quality manual pages.
Reply With Quote
Reply

Tags
openbsd; mount; device; usb; file;

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
Immense delayed write to file system (ZFS and UFS2), performance issues J65nko FreeBSD General 12 15th September 2010 11:46 PM
/tmp on ram write denied gosha OpenBSD General 8 29th March 2009 04:46 PM
mount_nullfs: Operation not supported by device carpman FreeBSD General 1 19th February 2009 05:31 PM
mount: /dev/ad1s1d : Operation not permitted tutosun FreeBSD General 8 9th October 2008 07:28 PM
Mutex unlock failure: Operation not permitted ccc FreeBSD Ports and Packages 8 16th June 2008 10:46 PM


All times are GMT. The time now is 05:11 AM.


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