element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Unable to mount USB Stick on RPi
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 10 replies
  • Subscribers 672 subscribers
  • Views 5573 views
  • Users 0 members are here
Related

Unable to mount USB Stick on RPi

mgt6910
mgt6910 over 12 years ago

I have copied some music files to a USB stick using Linux Mint, (on Mint

it auto-mounted with no problems),and I would

like to mount it on RPi. Details of what I have tried are appended. Any

help would be welcome (I need this sorted by Christmas, or my grandsons won't receive a present !!)

 

As root (sudo bash) on RPi,I inserted the USB Stick:

 

tail -f /var/log/messages

=================================================================

new high-speed USB device number 11 using dwc_otg

new USB device found, idVendor=0781, idProduct=5567

Product: Cruzer Blade

Manufacturer: SanDisk

Serial Number: 20060266511169034397

scsi2 : usb-storage 1-1.1.2.4.4:1.0

scsi 2:0:0:0: Direct-Access  Sandisk Cruzer Blade    1.26 PQ: 0  ANSI: 5

sd 2:0:0:0:  [sda] 62530624 512-byte logical blocks:  (32.0 GB/ 29.8 GiB)

sd 2:0:0:0:  [sda] Write Protect is off

sd 2:0:0:0:  [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA

   sda: sda1

sd 2:0:0:0:  sd 2:0:0:0:  [sda] Attached SCSI removable disk

==================================================================

 

Following instructions found at :

    http://raspi.tv/2012/mount-a-usb-flash-drive-on-raspberry-pi

 

    I entered:

        mkdir /media/my32gb

        mount -t vfat -o rw /dev/sda1 /media/my32gb

 

    which failed with :

        mount: /dev/sda1 is not a valid block device

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    Former Member over 12 years ago

    As you can see from the messages log, your device is being detected and sda1 is seen. The device should then be created automatically for you to mount with the command you used.

     

    can you try the following after the mount command fails

     

    root@raspberry-pi:~# ls -l /dev/sda*

     

    you should get a result something like this:

     

    brw------- 1 root root 8, 0 Dec  6 18:23 /dev/sda

    brw------- 1 root root 8, 1 Dec  6 18:23 /dev/sda1

     

    if instead you get something more like

     

    /bin/ls: cannot access /dev/sda*: No such file or directory

     

    then that would be the problem..

     

    You can investicate further:

     

    root@raspberry-pi:~# cat /proc/partitions

    major minor  #blocks  name

     

    179        0    3872256 mmcblk0

    179        1      97656 mmcblk0p1

    179        2    1833607 mmcblk0p2

    179        3    1940992 mmcblk0p3

       8        0  488386584 sda

       8        1    8388608 sda1

     

    the 8 & 1 here should match the 8, 1 I highlighted in the ls command above.  If they either don't match, or the ls command returned 'No such file or directory' then you can try this

     

    root@raspberry-pi:~# mknod /dev/sda b 8 0

    root@raspberry-pi:~# mknod /dev/sda1 b 8 1

    root@raspberry-pi:~# ls -l /dev/sda*

    brw-r--r-- 1 root root 8, 0 Dec 10 20:33 /dev/sda

    brw-r--r-- 1 root root 8, 1 Dec 10 20:33 /dev/sda1

     

    just be sure to replace the 8 & 1 with whatever's listed in the output of cat /proc/partitions

     

    Then retry the mount command..

     

    Even assuming this all works, try rebooting the Pi and see if you can just remount the usb stick. You may find that the /dev/sda* entries have disappeared and are not being correctly re-created for some reason.

     

    Also, let us know what SD Card iamge and version you're using on the Pi when the problem happens, someone may be able to give you some more directly useful help if we know a little bit more.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 12 years ago

    As you can see from the messages log, your device is being detected and sda1 is seen. The device should then be created automatically for you to mount with the command you used.

     

    can you try the following after the mount command fails

     

    root@raspberry-pi:~# ls -l /dev/sda*

     

    you should get a result something like this:

     

    brw------- 1 root root 8, 0 Dec  6 18:23 /dev/sda

    brw------- 1 root root 8, 1 Dec  6 18:23 /dev/sda1

     

    if instead you get something more like

     

    /bin/ls: cannot access /dev/sda*: No such file or directory

     

    then that would be the problem..

     

    You can investicate further:

     

    root@raspberry-pi:~# cat /proc/partitions

    major minor  #blocks  name

     

    179        0    3872256 mmcblk0

    179        1      97656 mmcblk0p1

    179        2    1833607 mmcblk0p2

    179        3    1940992 mmcblk0p3

       8        0  488386584 sda

       8        1    8388608 sda1

     

    the 8 & 1 here should match the 8, 1 I highlighted in the ls command above.  If they either don't match, or the ls command returned 'No such file or directory' then you can try this

     

    root@raspberry-pi:~# mknod /dev/sda b 8 0

    root@raspberry-pi:~# mknod /dev/sda1 b 8 1

    root@raspberry-pi:~# ls -l /dev/sda*

    brw-r--r-- 1 root root 8, 0 Dec 10 20:33 /dev/sda

    brw-r--r-- 1 root root 8, 1 Dec 10 20:33 /dev/sda1

     

    just be sure to replace the 8 & 1 with whatever's listed in the output of cat /proc/partitions

     

    Then retry the mount command..

     

    Even assuming this all works, try rebooting the Pi and see if you can just remount the usb stick. You may find that the /dev/sda* entries have disappeared and are not being correctly re-created for some reason.

     

    Also, let us know what SD Card iamge and version you're using on the Pi when the problem happens, someone may be able to give you some more directly useful help if we know a little bit more.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube