Mounting a USB stick in FreeBSD | Unix Linux Forums | BSD

  Go Back    


BSD BSD, sometimes called Berkeley Unix, is a Unix operating system developed by the Computer Systems Research Group of the UC Berkeley.

Mounting a USB stick in FreeBSD

BSD


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-03-2009
figaro figaro is offline
Registered User
 
Join Date: Jan 2007
Last Activity: 30 September 2014, 5:18 PM EDT
Posts: 823
Thanks: 92
Thanked 25 Times in 22 Posts
Mounting a USB stick in FreeBSD

When mounting a USB stick or pen drive on a FreeBSD machine I always issue the following command:

Code:
mount -t msdosfs /dev/da0s1 /mnt

Something I have always wondered is what the option msdosfs stands for and more importantly, why it is necessary.
Sponsored Links
    #2  
Old 08-03-2009
TonyFullerMalv's Avatar
TonyFullerMalv TonyFullerMalv is offline Forum Advisor  
Registered User
 
Join Date: Sep 2008
Last Activity: 1 July 2013, 6:45 PM EDT
Location: Malvern, Worcs. U.K.
Posts: 1,033
Thanks: 0
Thanked 8 Times in 8 Posts
The "-t msdosfs" option specifies what the filesystem is on the USB stick, reformatting the system to something that supports full Unix attributes like ext3 would be better unless the USB stick is used to transfer files to and from a Windows machine.
Sponsored Links
    #3  
Old 08-10-2009
botao's Avatar
botao botao is offline
Registered User
 
Join Date: Mar 2006
Last Activity: 9 December 2013, 8:21 AM EST
Location: brazil
Posts: 86
Thanks: 0
Thanked 3 Times in 3 Posts
microsoft dos fs

- msdosfs is the type of the filesystem ;

- ms = microsoft
- dos = disk operating system
- fs = filesystem

- and the "-t" flag is necessary for the o.s. to know how to interpret the control data on the beginning of the disk ;

good luck, and success !

alexandre botao
Alexandre V. R. Botao | Unix, C/C++, Shell, LDAP, SSL/TLS, SSH, Perl, Java, Python, Security, ...
    #4  
Old 08-10-2009
figaro figaro is offline
Registered User
 
Join Date: Jan 2007
Last Activity: 30 September 2014, 5:18 PM EDT
Posts: 823
Thanks: 92
Thanked 25 Times in 22 Posts
@botao: I understand the acronym behind msdosfs and the fact that "-t" is required as an option for its suffix; my question was rather what the background is of this option, since it should be immaterial what operating system is used to transfer files between. Moreover, I regularly need to dos2unix files coming from USB sticks from Windows machines anyway, so the option seems so superfluous.
Sponsored Links
    #5  
Old 08-17-2009
TonyFullerMalv's Avatar
TonyFullerMalv TonyFullerMalv is offline Forum Advisor  
Registered User
 
Join Date: Sep 2008
Last Activity: 1 July 2013, 6:45 PM EDT
Location: Malvern, Worcs. U.K.
Posts: 1,033
Thanks: 0
Thanked 8 Times in 8 Posts
Quote:
Originally Posted by figaro View Post
Moreover, I regularly need to dos2unix files coming from USB sticks from Windows machines anyway, so the option seems so superfluous.
dos2unix(1) only tranlates carriage return + linefeed (Dos/Windows end of line) to linefeed only (Unix and MAC end of line), it does nothing with filesystems.

Windows cannot mount or read Unix filesystems unless it has had a utility installed to enable it to do so, so a USB stick to be used to transfer files between Windows and Unix is best formatted with a NTFS, FAT32 or DOS filesystem which both Linux and Windows can mount and read.
Sponsored Links
    #6  
Old 08-19-2009
figaro figaro is offline
Registered User
 
Join Date: Jan 2007
Last Activity: 30 September 2014, 5:18 PM EDT
Posts: 823
Thanks: 92
Thanked 25 Times in 22 Posts
That makes sense, thank you for your response.
Sponsored Links
    #7  
Old 08-19-2009
chompy chompy is offline
Registered User
 
Join Date: Aug 2009
Last Activity: 15 September 2010, 1:44 PM EDT
Location: pwd
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Should use vfat filesystem
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Mount USB stick... Dax01 Filesystems, Disks and Memory 2 08-07-2009 11:07 AM
Detecting usb stick in freebsd figaro BSD 6 05-22-2009 06:10 AM
Aix usb stick BEVAN UNIX for Dummies Questions & Answers 2 08-21-2008 06:21 AM
crontab does not stick lulle Solaris 4 02-21-2008 12:13 AM
Stick with Solaris 10 or try something else? Filth Pig UNIX for Dummies Questions & Answers 5 08-23-2005 02:51 AM



All times are GMT -4. The time now is 10:15 AM.