Find the answer to your Linux question:
Results 1 to 3 of 3
I'm having trouble mounting a USB flash memory stick. I've tried to follow the instructions found here: http://www.debian-administration.org/articles/126 and it almost worked perfectly. A device node is created in the ...
  1. #1
    Just Joined! daiscog's Avatar
    Join Date
    Feb 2007
    Location
    Mid Glamorgan, South Wales
    Posts
    2

    Problems mounting a USB flash memory stick

    I'm having trouble mounting a USB flash memory stick. I've tried to follow the instructions found here: http://www.debian-administration.org/articles/126 and it almost worked perfectly. A device node is created in the /dev/ directory, but the only thing that doesn't work is the creation of a mount point in the /media/ directory. Basically, here's what I've done. If anyone can spot where I'm going wrong, I'd be most grateful:

    Firstly, I ran
    Code:
    tail -f /var/log/messages
    and plugged in the memory stick. This was the output:
    Code:
    Feb  7 13:41:31 localhost kernel: usb 1-7: new high speed USB device using address 3
    Feb  7 13:41:31 localhost kernel: scsi1 : SCSI emulation for USB Mass Storage devices
    Feb  7 13:41:31 localhost kernel:   Vendor: Ut161     Model: USB2FlashStorage  Rev: 0.00
    Feb  7 13:41:31 localhost kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
    Feb  7 13:41:31 localhost kernel: SCSI device sda: 4096512 512-byte hdwr sectors (2097 MB)
    Feb  7 13:41:31 localhost kernel: sda: assuming Write Enabled
    Feb  7 13:41:31 localhost kernel:  /dev/scsi/host1/bus0/target0/lun0: p1
    Feb  7 13:41:31 localhost kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
    Then as per the instructions in the article, I created the file /etc/udev/rules.d/local.rules with the following content:
    Code:
    BUS=="scsi", SYSFS{model}=="USB2FlashStorage", KERNEL=="sd*", NAME="%k", SYMLINK="flashdisk"
    and then added the following line to my /etc/fstab file:
    Code:
    /dev/flashdisk  /media/flashdisk  vfat  rw,user,noauto  0       0
    When I plug in the stick now, I get a new device node /dev/flashdisk created, but no mount point in the /media/ directory. This leads me to believe that everything is correct, apart from the fstab file, as it is this file that's supposed to define the creation of the /media/flashdisk mount point. Can anyone see where I've gone wrong?

  2. #2
    Just Joined!
    Join Date
    Mar 2005
    Location
    Auckland, New Zealand
    Posts
    14
    You'll need to create the mount point yourself using:
    mkdir -p /media/flashdisk
    and then use chmod to modify the permission on the folder so that others can read and write it.

  3. #3
    Just Joined! daiscog's Avatar
    Join Date
    Feb 2007
    Location
    Mid Glamorgan, South Wales
    Posts
    2

    Smile

    Excellent, thanks. Got it working now.

Posting Permissions

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