DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 15th April 2025
wheelnut wheelnut is offline
Real Name: Michael
Port Guard
 
Join Date: Apr 2022
Location: Canada
Posts: 32
Default mount_ntfs: Invalid argument

[..Actually apparently completely solved.. ..or maybe not..]

Greetings.

Trying to mount a 1T SSD. The man pages seem to be down, so following this for now. I have actually found -some- things via the downloaded manual on this computer. They seem to be saying the same thing though. /mnt/samsung seems to have been created without incident.

Code:
eriadar# disklabel sd2
# /dev/rsd2c:
type: SCSI
disk: SCSI disk
label: PSSD T7 Shield  
duid: 0000000000000000
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 121601
total sectors: 1953525168
boundstart: 0
boundend: 1953525168

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
  c:       1953525168                0  unused                    
  i:       1953520065             2048    NTFS                    
eriadar# mount /dev/sd2i /mnt/samsung
mount_ntfs: /dev/sd2i on /mnt/samsung: Invalid argument
I have been using ubuntu now for ages, so I assume that the samsung was formatted, or written to using it. Actually, I think it was written using rsync, so maybe the original drive.. whatever. I think it is highly unlikely these external ssd's were formatted by any windows machine I ever had.

I am aware of this thread, but just looking at it gives me a head-ache, and my ssd is much smaller than his. If people here confirm that I really should try those solutions first, I'll give them a good hard look. The other thing on my list of options, so far, is to try the same thing with ghostBSD.

Checking out the suggestion to use ntfs_3g:

Code:
eriadar# pkg_add ntfs_3g
quirks-7.50 signed on 2025-04-08T14:05:06Z
ntfs_3g-2022.10.3: ok
eriadar# ntfs_3g /dev/sd2i /mnt/samsung
ksh: ntfs_3g: not found
[Note that the "tutorials" I found on ntfs_3g use it with doas. I have not yet foud a reason to use doas. I'm sure I will, eventually. But that might be why this isn't working..?]

..So I googled some more. I ended up here, where it suggests that my "NTFS" file system might actually be exFAT. More googling for exFAT finds this, where it suggests exfat-fuse.

Code:
eriadar# pkg_info -aQ exfat-fuse
exfat-fuse-1.4.0
eriadar# pkg_add exfat-fuse
quirks-7.50 signed on 2025-04-08T14:05:06Z
exfat-fuse-1.4.0: ok
eriadar# mount.exfat
FUSE exfat 1.4.0 (libfuse2)
Usage: mount.exfat [-d] [-o options] [-V] <device> <dir>
eriadar# mount.exfat -o uid=1000 /dev/sd2i /mnt/samsung
FUSE exfat 1.4.0 (libfuse2)
WARN: volume was not unmounted cleanly.
eriadar# mount.exfat /dev/sd2i /mnt/samsung             
FUSE exfat 1.4.0 (libfuse2)
WARN: volume was not unmounted cleanly.
..so now, if we assume (always dangerous) that I'm not off on a wild-goose chase, we have a bit more information on what is going on.

..Until I get some feedback, I think it's wisest to sit tight.

..well, fancy that.. it occurred to me that a warning was not an error. So maybe the last thing -did- actually work. I tried to see if I could see into the possibly mounted drive. I did an ls to see where I was so I could cd into the right place.. and apparently I was already there.

so.. then the question becomes, 1) all those other things I tried, why did they not work, what's going on? 2) is the last thing I did actually the right thing, and 3) what does it mean that the volume was not unmounted cleanly? is this a problem? what to do about it. ..yes, I can do more googling of all of it..

Edit: Trying now to unmount:

Code:
eriadar# umount /mnt/samsung
umount: /mnt/samsung: Device busy
I have also found, and am reading this. Ok, that link essentially answered all my questions, confirming, apparently, that the solution I found -is- indeed the correct one. And gave links for further explanations, which is fantastic. Unfortunately, I can't unmount.

Code:
eriadar# pwd                                
/mnt/samsung
eriadar# umount /mnt/samsung
umount: /mnt/samsung: Device busy
eriadar# mount.exfat-fuse /dev/sd2i /mnt/samsung
FUSE exfat 1.4.0 (libfuse2)
WARN: volume was not unmounted cleanly.
eriadar# umount /mnt/samsung                     
umount: /mnt/samsung: Device busy
Bingo. "Is your shell's current directory on the mountpoint path?"

Nice.

..Further research shows that there -is- actually an "eject" command. That will, or should, cause the mounted file-system to no longer be visible, and turn off the light on the external drive.

Code:
eriadar# eject /mnt/samsung 
eject: /mnt/samsung: Inappropriate ioctl for device
See fresh thread here.

Last edited by wheelnut; 15th April 2025 at 10:10 PM.
Reply With Quote
 

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
files cannot be used because of Invalid argument sacerdos_daemonis FreeBSD General 8 30th September 2019 06:40 PM
mount_cd9660 : Invalid argument .. daemonfowl OpenBSD General 5 23rd February 2012 02:40 PM
cat: [file]: Invalid argument pieterverberne OpenBSD General 6 19th November 2011 02:43 PM
mount-msdosfs /dev/dao: : Invalid argument harold FreeBSD General 5 12th December 2010 06:59 AM
Mount DVD - invalid argument. maxrussell FreeBSD General 17 7th January 2009 08:46 AM


All times are GMT. The time now is 11:49 PM.


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