THE SPEW - Land where drunk cows swim and home to my daily hand...
streaming media & music | Home | Archives | Albums | Pics

FreeBSD - HOWTO mount a large FAT filesystem from a USB drive

01 April, 2007 22:32

While hooking up my external NAS with USB, I ran into trouble from mount_msdosfs saying that the drive was too large.  I have to say, right off the bat, this should be fixed immediately, kernel wise.  In any case, here is the method I used to successfully mount the filesystem.

If this is a fresh FreeBSD installation, or you do not have the kernel sources installed, you will need to have these available either from the installation CD or through sysinstall using the Internet location of your choice.

To install from sysinstall, navigate to: configure -> distributions -> src -> base -> sys, then install the kernel source.

The next step is preparing the kernel config with MSDOSFS_LARGE which will allow you to mount larger drives.

cd /usr/src/sys/i386/conf

cp GENERIC NEWKERNEL

Edit NEWKERNEL with your trusty editor of choice and add the following line.

options MSDOSFS_LARGE

Next, run the following two commands to initialize you new kernel config.

/usr/sbin/config NEWKERNEL

cd ../compile/NEWKERNEL

Then do the dirty and compile with these three commands.

make depend

make

make install 

[Software]
[Comments(0)] [Trackbacks(0)] [Permalink]

Add comment

Add comment
 authimage
Your E-Mail Address will NOT be Shared

Main Entry: spew
Function: verb
Etymology: Middle English, from Old English spIwan; akin to Old High German spIwan to spit, Latin spuere, Greek ptyein intransitive verb
1 : VOMIT
2 : to come forth in a flood or gush
3 : to ooze out as if under pressure : EXUDE transitive verb
1 : VOMIT
2 : to send or cast forth with vigor or violence or in great quantity -- often used with out - spew-er noun
--
Merriam-Webster

Land where drunk cows swim and home to my daily hand