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 ...
- 02-07-2007 #1
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 ranand plugged in the memory stick. This was the output:Code:tail -f /var/log/messages
Then as per the instructions in the article, I created the file /etc/udev/rules.d/local.rules with the following content: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
and then added the following line to my /etc/fstab file:Code:BUS=="scsi", SYSFS{model}=="USB2FlashStorage", KERNEL=="sd*", NAME="%k", SYMLINK="flashdisk"
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?Code:/dev/flashdisk /media/flashdisk vfat rw,user,noauto 0 0
- 02-07-2007 #2Just 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.
- 02-08-2007 #3
Excellent, thanks. Got it working now.


Reply With Quote
