DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th July 2009
harold harold is offline
Real Name: Harold
Port Guard
 
Join Date: May 2008
Location: Wisconsin, US
Posts: 10
Thanked 0 Times in 0 Posts
Default SOLVED -- mount_msdosfs /dev/da0: : Invalid argument

I am running FreeBSD 7.2 with the stock kernel.
I am logged in as root (yeah, I know...)
I plug a USB memory stick into a USB port and I type camcontrol devlist. The computer responds with:
< USB Flash Memory 5.00 > at scbus 0 target 0 lun 0 (pass0,da0)

Permissions for /mnt are 777.

I go into /etc/fstab and add the following line:
/dev/da0 /mnt msdosfs rw,noauto 0 0

I type
mount -t msdosfs /dev/da0 /mnt

And the computer responds
mount_msdosfs /dev/da0: : Invalid argument

?!?!?!?! What am I doing wrong?

Last edited by harold; 7th July 2009 at 12:47 AM. Reason: typos! Solved!
Reply With Quote
  #2   (View Single Post)  
Old 7th July 2009
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Thanked 40 Times in 39 Posts
Default

Generally, fat32 partitions are located at /dev/da0s1.

Search and read some information on disks, slices and partitions - the handbook (www.freebsd.org/handbook) is a good place to start.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
  #3   (View Single Post)  
Old 7th July 2009
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

Normally, USB sticks are formatted, with 1 slice covering the entire device. Thus, you should try mounting /dev/da0s1 and not /dev/da0.

Check the output of ls /dev/da* to see if there are any slices on the device. Or the output of fdisk -l da0.

You also don't need to edit /etc/fstab, unless you want the filesystem mounted automatically at boot.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #4   (View Single Post)  
Old 7th July 2009
harold harold is offline
Real Name: Harold
Port Guard
 
Join Date: May 2008
Location: Wisconsin, US
Posts: 10
Thanked 0 Times in 0 Posts
Default

Changed it to mount -t msdosfs /dev/da0s1 /mnt and she works!
Reply With Quote
  #5   (View Single Post)  
Old 12th December 2010
yahoo yahoo is offline
New User
 
Join Date: Dec 2010
Posts: 1
Thanked 0 Times in 0 Posts
Default

One important notice! Check your system file on your USB stick. if it is formatted NTFS then mount -t msdosfs will not work and you should use instead
mount -t ntfs
If NTFS driver is not installed you should first install it! Then every thing go right.
Reply With Quote
  #6   (View Single Post)  
Old 12th December 2010
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

You joined just to revive an already resolved topic from 2009? why would you do that?
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
Pidgin MSN connection issues, invalid SSL Certificate chain TerryP Guides 5 8th December 2010 01:06 AM
how to mount ext3 guitarscn FreeBSD General 2 26th August 2009 07:31 PM
Mount DVD - invalid argument. maxrussell FreeBSD General 17 7th January 2009 08:46 AM
Cannot mount (NTFS) IIMarckus OpenBSD General 4 11th August 2008 08:44 PM
Invalid capture filter: "not ip host "! ccc FreeBSD General 2 19th June 2008 08:12 PM


All times are GMT. The time now is 08:22 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