geekvenue.net

Welcome to Chucktips Hardware HELP WITH DEAD OS Installing FreeBSD Miscellaneous
 faq
 search
 add article
 cool-stuff
 how-to
 main
 tips


mount USB storage device in FreeBSD
Hardware Posted by Jennifer zhao on Tuesday July 08, @04:48PM
from the dept.
Hi, I have a question about mounting a USB memory chip (64 Mb capacity). It works fine in any windows PC. But I tried to mount it in my FreeBSD4.3 box.
I read some tips from the internet that some people use the following command to mount it as

mkdir /mnt/usb
mount -t msdos /dev/da0s1 /mnt/usb

So I tried this way. First, I insert my memory chip into a USB port on FreeBSD4.3 box.
The dmesg.boot shows :

umassQ: USB Solid State Disk rev 1.10/1.00, addr 2
da0 at umass-sim0 bus 0
da0:<DIANMA STORAGE KING\242\362.11>
Removable Direct Access SCSI-2 Device
da0: 650kb/s transfers
da0:63MB (129024 512bye sectors 64H32S/T63C)

Then I tried to mount it as

mkdir /mnt/usb
mount -t msdos /dev/da0s1 /mnt/usb

But the console shows:

da0:( umass-sim0:0:0:0):READ(06),cbd:800010
da0:( umass-sim0:0:0:0):ILLEGAL REQUEST ASC:20,0
da0:( umass-sim0:0:0:0):Invalid command operation code
da0:reading primary partition table:error reading fsbn0
msdos: /dev/da0s1: input/output error

So it seems the mounting is not successful. So I tried this way:

mount /dev/da0s1 /mnt/usb

This time the console shows:

da0:reading primary partition table:error reading fsbn0
msdos: /dev/da0s1: input/output error

I know there must some thing wrong with my mounting command, but I do not know what it is. I would appreciate it very much if anybody can help me on that.
Thanks very much.

Jennier

<  |  >

 

Related Links
  • Articles on Hardware
  • Also by Jennifer zhao
  • Contact author

    Lilliput Mini USB Computer Monitor

    If you have ever wanted to learn about Cisco Routers, check out my new book "Cisco Routers for the Small Business" - it's Cisco CLI for the Regular Guy!

  • Sponsors

    The Fine Print: The following comments are owned by whoever posted them.
    ( Add a Reply )

    Re: mount USB storage device in FreeBSD
    by Jason on Wednesday July 09, @03:22PM
    Hi Jennifer,

    I have only been able to get my USB SmartMedia reader to work properly in FreeBSD-4.7 and 4.8. I have also tried 4.5 but it didn't work until after I upgraded.

    The command I successfuly use for mounting the media is:

    mount -t msdos /dev/da0s1c /mnt/usb
    [ Add a Reply to this ]
    • Re: mount USB storage device in FreeBSD
      by Jennifer zhao on Wednesday July 09, @05:02PM
      Hi, Jason

      You are very right there. FreeBSD people confirmed that FreeBSD4.3, 4,5 not support such "new Generation" stuff.
      So I will find a chance to follow the advice you wrote in the article:
      Re: upgrade from 4.3-RELEASE
      To SAFELY upgrade our working disk.
      I will choose 4.8 version, as it is a stable one.
      Wdyr?

      Jennifer
      [ Reply to this ]
      • Re: mount USB storage device in FreeBSD
        by Jason on Saturday July 12, @08:23AM
        I think FreeBSD-4.8 is good choice. I haven't tried 5.1 yet but 5.0 did have problems. If you install 4.8 you shouldn't have any problems. IMHO

        Jason
        [ Reply to this ]
        • device not configured
          by Bruce on Monday December 29, @12:07PM
          Hello,

          I have been trying to add an external USB drive so I can do a dump to my FreeBSD 4.8 system, but I do not get any dmesg when I plug in the device, (it works in a 7.0 system I have), I cannot find any information on this.

          I searched your site, and googled but cannot find anything, can you help?


          Thanx,

          Bruce Ballou
          Technology Director
          SAU #27
          [ Reply to this ]
    Re: mount USB storage device in FreeBSD
    by J-Rowan A Bernabe on Thursday September 06, @06:17AM
    freeBSD# dmesg
    Copyright (c) 1992-2007 The FreeBSD Project.
    Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    The Regents of the University of California. All rights reserved.
    FreeBSD is a registered trademark of The FreeBSD Foundation.
    FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007
    root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP
    ...
    ...
    ...
    <<<<< my flash drive >>>>>
    umass0: Memorex M-Flyer B, rev 2.00/1.00, addr 3
    da0 at umass-sim0 bus 0 target 0 lun 0
    da0: <Memorex M-Flyer B PMAP> Removable Direct Access SCSI-0 device
    da0: 40.000MB/s transfers
    da0: 983MB (2014208 512 byte sectors: 64H 32S/T 983C)
    freeBSD#



    how to mount:
    mount_msdosfs /dev/da1s1 /mnt




    When you re-insert make sure you check you dmesg because da* will change
    --------------------------------------------------------
    umass0: Memorex M-Flyer B, rev 2.00/1.00, addr 3
    da0 at umass-sim0 bus 0 target 0 lun 0
    da0: <Memorex M-Flyer B PMAP> Removable Direct Access SCSI-0 device
    da0: 40.000MB/s transfers
    da0: 983MB (2014208 512 byte sectors: 64H 32S/T 983C)
    umass0: at uhub4 port 7 (addr 3) disconnected
    (da0:umass-sim0:0:0:0): lost device
    umass0: detached
    umass0: Memorex M-Flyer B, rev 2.00/1.00, addr 3
    da1 at umass-sim0 bus 0 target 0 lun 0
    da1: <Memorex M-Flyer B PMAP> Removable Direct Access SCSI-0 device
    da1: 40.000MB/s transfers
    da1: 983MB (2014208 512 byte sectors: 64H 32S/T 983C)
    freeBSD# mount_msdosfs /dev/da1s1 /mnt
    freeBSD# cd /mnt
    [ Add a Reply to this ]
    • Re: mount USB storage device in FreeBSD
      by Abhishek Shrivastava on Monday January 07, @10:16AM
      Thank you so much...It did work..but yeah would like to add one more thing..
      in the command

      the argument /dev/da1s1 "da*" should be the port where your USB is inserted,and as shown above it was da0...so while typing in the command it should be the port where usb was detected by FreeBSD.

      so...
      freeBSD# dmesg
      Copyright (c) 1992-2007 The FreeBSD Project.
      Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
      The Regents of the University of California. All rights reserved.
      FreeBSD is a registered trademark of The FreeBSD Foundation.
      FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007
      root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP
      ...
      ...
      ...
      <<<<< my flash drive >>>>>
      umass0: Memorex M-Flyer B, rev 2.00/1.00, addr 3
      da0 at umass-sim0 bus 0 target 0 lun 0
      da0: <Memorex M-Flyer B PMAP> Removable Direct Access SCSI-0 device
      da0: 40.000MB/s transfers
      da0: 983MB (2014208 512 byte sectors: 64H 32S/T 983C)
      freeBSD#

      (as here the USB was detected at da0...)

      The correct command would be..

      mkdir /mnt/usb
      mount_msdosfs /dev/da0s1 /mnt/usb
      [ Reply to this ]
      • Re: mount USB storage device in FreeBSD
        by Erwin Navales on Wednesday February 06, @06:06PM
        This thread really helps a lot! thanks for sharing!
        [ Reply to this ]

     
    The Fine Print: The following comments are owned by whoever posted them.
    ( Article Reply )

    "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate

    Powered by Zope  Powered by Apache  Squishdot Powered
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann.
    [ main | post article | search ]