Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    erase cache for usb recognition?


    Hi all,

    I am developing a small embedded linux terminal booted from a CF card. I am using the linux kernel 2.4.32. I have question about the usb feature of linux kernel.

    Because the CF card has a limited write/erase operations, we want to store our log applications on a USB stick. but the problem is that i notice if i use a USB stick, first it will be recognized as /dev/sda, then if i unplug the stick and plug another different USB stick it will be recognized as /dev/sdb1.

    can i somehow make the kernel always recognize any usb-storage device as /dev/sda? is there any cache that i should erase?

    big thanks for the help

  2. #2
    Hi,

    so i tried with linux kernel 2.6.12 with udev instead of devfs as in linux 2.4.x, and it works. the operating system doesnt differs my usb sticks, the first one plugged will always be assigned as /dev/sda1

    but does someone know how to solve the problem for 2.4.x kernel?

    thanks

  3. #3
    Linux Newbie burntfuse's Avatar
    Join Date
    Nov 2006
    Location
    Laurel, MD
    Posts
    158
    Maybe if you had it search for the first available sdx device? That's sort of a messy way to go about it, though, it's just one of the limitations of the hardware support in 2.4 that's been fixed in 2.6.
    I have sold my soul to the penguin

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •