Skip to main content

USB Flash Drive with Linux

Here are the instructions to make a 128 MB USB flash drive from Edge Tech Corp work under Linux (using kernel 2.6.11.7):

  1. Compile and install the usb-storage module. This option is under "Device Drivers" -> "USB Support" -> "USB Mass Storage Support" in the kernel configuration options.
  2. Load the module using modprobe usb-storage. Look at /var/log/messages; you should see messages like this:
    Jul 1 21:10:15 trinity Initializing USB Mass Storage driver...
    Jul 1 21:10:15 trinity usbcore: registered new driver usb-storage
    Jul 1 21:10:15 trinity USB Mass Storage support registered.
  3. Plug in the flash drive and look at the messages in /var/log/messages again. This will help you identify what SCSI device the flash drive was simulated as. Here are some sample message from the log:
    Jul 1 21:10:45 trinity usb 3-3: new high speed USB device using ehci_hcd and address 4
    Jul 1 21:10:45 trinity scsi0 : SCSI emulation for USB Mass Storage devices
    Jul 1 21:10:51 trinity Vendor: Model: Secure Guard Rev: PMAP
    Jul 1 21:10:51 trinity Type: Direct-Access ANSI SCSI revision: 00
    Jul 1 21:10:51 trinity SCSI device sda: 243200 512-byte hdwr sectors (125 MB)
    Jul 1 21:10:51 trinity sda: assuming Write Enabled
    Jul 1 21:10:51 trinity SCSI device sda: 243200 512-byte hdwr sectors (125 MB)
    Jul 1 21:10:51 trinity sda: assuming Write Enabled
    Jul 1 21:10:51 trinity /dev/scsi/host0/bus0/target0/lun0: p1
    Jul 1 21:10:51 trinity Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
    Jul 1 21:10:51 trinity Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0
    Jul 1 21:10:51 trinity Vendor: Model: Secure Guard Rev: PMAP
    Jul 1 21:10:51 trinity Type: Direct-Access ANSI SCSI revision: 00
    Jul 1 21:10:51 trinity SCSI device sdb: 2880 512-byte hdwr sectors (1 MB)
    Jul 1 21:10:51 trinity sdb: assuming Write Enabled
    Jul 1 21:10:51 trinity SCSI device sdb: 2880 512-byte hdwr sectors (1 MB)
    Jul 1 21:10:51 trinity sdb: assuming Write Enabled
    Jul 1 21:10:51 trinity /dev/scsi/host0/bus0/target0/lun1: unknown partition table
    Jul 1 21:10:51 trinity Attached scsi removable disk sdb at scsi0, channel 0, id 0, lun 1
    Jul 1 21:10:51 trinity Attached scsi generic sg1 at scsi0, channel 0, id 0, lun 1, type 0
    Jul 1 21:10:52 trinity scsi.agent[15707]: disk at /devices/pci0000:00/0000:00:0a.2/usb3/3-3/3-3:1.0/host0/target0:0:0/0:0:0:0
    Jul 1 21:10:52 trinity scsi.agent[15734]: disk at /devices/pci0000:00/0000:00:0a.2/usb3/3-3/3-3:1.0/host0/target0:0:0/0:0:0:1
  4. Now simply mount the appropriate SCSI drive e.g.: mount -t vfat -o umask=0000 /dev/sda1 /mnt/usb/ and your flash drive is ready for use.

Comments

Popular posts from this blog

Migrating from Palm Calendar to Google Calendar and iPhone

Here are the free steps to migrate from Palm's date book (or Pimlico's DateBk6 ) calendar to Google calendar for full iPhone sync. First, sync Palm with Palm Desktop . Next, open Palm Desktop, select the Calendar view, navigate to File | Export, select Export Type as Date Book Archive, Range as All and provide a file name. This will export the calendar data as Date Book Archive (.dba). There's a paid tool called DBA2CSV that converts .dba files to .csv files. However this can be done for free using Yahoo Calendar. Login into Yahoo Calendar and via Settings/Import, import the .dba file. It helps to have an empty Yahoo Calendar. Via Settings/Export, export the calendar as .csv file. Login to Google Calendar (also works with Google Apps For Your Domain GAFYD Calendar) and import the .csv file into any of the calendars. It is a good idea to create a test calendar and test the import before importing into your real calendar. That way if anything goes wrong, you can delet...

AD-5526 Digital Multimeter

The AD-5526 is an ancient multimeter from A&D but for $10 one can’t complain. Has all the basic features one would expect from a multimeter and at 5.2 cm X 9.5 cm X 2.6 cm, it’s quite compact. Uses a LRV08 12V alkaline battery – not a common battery in the USA.

RTL-SDR, Raspberry Pi and Plane Spotting via ADS-B

Most modern aircraft carry an ADS-B ( Automatic Dependent Surveillance - Broadcast ) transmitter that puts out information about the aircraft's identification, geospatial location, speed, and heading. This information is received by ground stations and air traffic control and used as a replacement for radar-based tracking. ADS-B relies on line-of-sight communication via signals transmitted at 1090 Mhz and has a range of up to 250 nautical miles. Sites such as FlightAware , FlightRadar24 , Plane Finder , RadarBox24 , etc. collect ADS-B information using a vast array of ADS-B receivers, some of which are run by hobbyists, and present this information on maps with near-real-time updates. With the advent of cheap software-defined-radio (SDR) dongles, over the past few years, it has become extremely cheap and easy for amateurs to receive ADS-B signals, upload data to these sites and, in exchange, get access to premium features from these sites. This guide will walk you t...