[newbie] USB Flash Drive Config.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I know there was a thread on this not long ago but it didn't answer my problem. I am on Mdk 10 and in order to get my Traveling Disk 2.0 USB Flash Drive to work I had to make a directory /mnt/memstick then mount it using #mount -t vfat /dev/sda /mnt/memstick. I had read on the list that Mdk 10 should recognise the drive and put an icon on the desktop. If this is the case why is it not happening here. Simon. - -- Linux Counter number 359744. http://counter.li.org/ GnuPG Key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE94E2292 -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBX+s3YreSoOlOIpIRAv5vAKDVwYrmhwZODZ8F1nB20psLmzIILACffguZ pdvDe5ricBMwlPBAoaZxuzE= =14Di -END PGP SIGNATURE- Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] USB Flash Drive Config.
Simon Utley wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I know there was a thread on this not long ago but it didn't answer my problem. I am on Mdk 10 and in order to get my Traveling Disk 2.0 USB Flash Drive to work I had to make a directory /mnt/memstick then mount it using #mount -t vfat /dev/sda /mnt/memstick. I had read on the list that Mdk 10 should recognise the drive and put an icon on the desktop. If this is the case why is it not happening here. Simon. Simon, Check to see if you have hotplug installed and that it's starting at boot time, then make sure that you've configured your desktop to display your mountable device icons - otherwise they may mount, but they won't show up on the desktop. Check for the mountable icons in KcontrolLook'n'Feelbehavior. Check the third tab especially and make sure that the checkbox is checked. HTH -- Lanman Registered Linux User #190712 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] USB Flash Drive Config.
On Sunday 03 Oct 2004 13:40, Lanman wrote: Simon, Check to see if you have hotplug installed and that it's starting at boot time, It was installed but not running or set to start at boot. I have now set it to run at boot and it is doing so. then make sure that you've configured your desktop to display your mountable device icons - otherwise they may mount, but they won't show up on the desktop. Check for the mountable icons in KcontrolLook'n'Feelbehavior. Check the third tab especially and make sure that the checkbox is checked. I have done that.(There doesn't seem to be a specific icon for USB Flash drives?) I rebooted and plugged in the USB drive, its led flickered but no icon on the desktop and when I checked the device had not been mounted Simon. -- Linux Counter number 359744. http://counter.li.org/ GnuPG Key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE94E2292 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] USB Flash Drive Config.
On Sunday 03 Oct 2004 14:40, Simon Utley wrote: I rebooted and plugged in the USB drive, its led flickered but no icon on the desktop and when I checked the device had not been mounted I have created a Desktop icon that, when I am in my Desktop as root, enables me just to click on it and it mounts and opens a window displaying the Flash Drives contents. I can also unmount the drive by left clicking/unmount. I would like to be able to do this on the main desktop as user, not root. How do I change the permissions on /dev/sda, which seen not te be editable(According to MCC.)??? -- Linux Counter number 359744. http://counter.li.org/ GnuPG Key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE94E2292 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] USB flash drive with Mandrake 10.0 CE
this is how i mount my usb drive in 9.2 i edited my /etc/hotplug/usb.usermap to include the two lines: # Integral 128mb USB Flash Drive usbdrive-script 0x0003 0x0d7d 0x14200x 0x 0x00 0x000x000x000x00 0x00 0x the 'usbdrive-script' is a script that i wrote to do mounting and stuff, it is placed in /etc/hotplug/usb/ the '0x0d7d' and 0x1420' 3rd and 4th entries on the second line respectively, are the usb vendore and product code, even when linux has no driver for a usb itme it will know the vendor code and the product code since this is passed on as part of the device detection process and is the same for all usb devices, you will need to find them for your device, try usbview and look for 'vendorid' and 'productid' my 'usbdrive-script' reads: #!/bin/bash # #usbdrive-script # sleep 5s # echo /home/bascule/scripts/unmountusbdrive $REMOVER chmod u+x $REMOVER # /home/bascule/scripts/usbdrive i use the sleep command to allow the device to be fully setup by the drivers, the $REMOVER is a variable that is created for each hotplug event, it references what should happen when the device is removed, in the past one could also use the variable $DEVICE to refer to the mount point but since i went to lm9.2 this no longer seemed to work, at least for usb storage devices. the script 'usbdrive' calls a more complicated script that endeavours to ascertain the device file for the usbdriev so that it may be mounted and unmounted, this more complicated script relies on my usbdrive always being identifed in linux as USB DISK Pro and that whenever it is plugged in, it is treated as a scsi device and appears as an entry in /proc/scsi/scsi here is 'usbdrive': #!/bin/bash # #usbdrive # devicename=USB DISK Pro # . /home/bascule/scripts/finddevice # umount $devicefile umount $symdev # mount -o uid=500,gid=500, $devicefile /mnt/usbdrive play /common_stuff/wavs/misc/halawake.wav in this script /mnt/usbdrive is a mountpoint of my choice, the line . /home/bascule/scripts/finddevice runs the finddevice script and uses the variables it defines - $devicefile and $symdev, the '' bit just plays a wav file if there is a succesfull mount :) here is the meat, the finddevice script: #!/bin/bash #finddevice # #first we find the line from /proc/scsi/scsi with #the device name in # #'devicename' should be set by calling script # #devicename=USB DISK Pro line=$(cat /proc/scsi/scsi |grep -n $devicename|gawk '{print $1}'|sed 's/://g' |head -1) # #next we refer to the preceding line that has the host info on # newline=$(( $line -1 )) # #next we parse 'newline' for host and bus info host=host$(head -$newline /proc/scsi/scsi |tail -1|gawk '{print $2}'|sed 's/scsi//') # bus=bus$(( $(head -$newline /proc/scsi/scsi |tail -1|gawk '{print $4}') +0 )) # target=target$(( $(head -$newline /proc/scsi/scsi |tail -1|gawk '{print $6}') +0 )) # lun=lun$(( $(head -$newline /proc/scsi/scsi |tail -1|gawk '{print $8}') +0 )) # #echo host=$host #echo bus=$bus #echo target=$target #echo lun=$lun # #now we make an assumption concerning this device #we assume that it has one partition and that is numbered 1 part=part1 #if this assumption should ever fail then #parsing the directory listing of /dev/scsi/$host/$bus/$target/$lun #would be necessary devicefile=/dev/scsi/$host/$bus/$target/$lun/$part echo devicefile=/dev/scsi/$host/$bus/$target/$lun/$part shortdev=scsi/$host/$bus/$target/$lun/$part symdev=$(find /dev -lname $shortdev) there's an echo in the last lines for using on the command line while testing, the variable $symdev should be the symlink under the /dev tree that links to the full /dev/scsi/.device file for completeness my 'unmountusbdrive' script is: #!/bin/bash # #unmountusbdrive # umount /mnt/usbdrive play /common_stuff/wavs/misc/halsmind.wav note that above is used the mount command with the options: -o uid=500,gid=500 my user has 500 as uid and gid, ymv this results in every plugin of my pen drive mounting in the same place as my normal user, playing a wav when mounted and also when unmounted, note that i always issue a manual 'sync' on the command line before unplugging, and watch the little led on the device stop falshing before unplugging i use lm9.2 and thus devfs, i'm told that using udev will make all this redundant since there will then be a built in way to refer to a device in way that will not change between boots and thus specify mount point etc in a better way anyway, maybe this will be of use? bascule On Monday 06 Sep 2004 6:57 pm, Matt Smith wrote: manually (this is very quick in Rox-Filer). I have tried creating a separate mount point for the drive and adding a new line in fstab but when I plug the drive in Mandrake just creates '/mnt/removable' preventing me from mounting the drive at my mount point. Does anyone have any suggestions as to how I could improve the
Re: [newbie] USB flash drive with Mandrake 10.0 CE
--- Matt Smith [EMAIL PROTECTED] wrote: Hi, I have just bought a 256MB Verbatim USB flash drive to make it easier to transfer files between home and university. When I plug the drive into my USB port Mandrake recognises the drive and creates a mount point '/mnt/removable/' to which it mounts the drive. This allows me to acess the drive and read and write to it. My problem is that I would like to be able to unmount the drive without logging in as root (at the moment Mandrake only allows root to unmount the drive). I would also like to have a permanant mount point that I can link to from my home directory, I don't mind mounting and unmounting the drive manually (this is very quick in Rox-Filer). I have tried creating a separate mount point for the drive and adding a new line in fstab but when I plug the drive in Mandrake just creates '/mnt/removable' preventing me from mounting the drive at my mount point. Does anyone have any suggestions as to how I could improve the situation with the drive? Cheers, Matt. -- Matt Smith [EMAIL PROTECTED] If I understand your problem correctly , you want to change premissions for the mount point , Trychmod 666 /mnt/removable , one thing to consider this gives everyone premission to unmount the drive . If I am mistaken in this I am sure that others will correct me and the fix is very easy . d_p Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com = Registered Linux user #365305 __ Do you Yahoo!? Y! Messenger - Communicate in real time. Download now. http://messenger.yahoo.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
[newbie] usb flash drive
Anybody know how to reset my usb flashdrive to R/W its R/O now Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] usb flash drive
On Sun, 2003-06-15 at 09:58, Aron Smith wrote: Anybody know how to reset my usb flashdrive to R/W its R/O now Do you have a line for it in /etc/fstab? I guess you'd have to set something there, for users to r/w it. Paul -- Modern art is what happens when painters stop looking at girls and persuade themselves that they have a better idea. -John Ciardi http://nlpagan.net - Linux Mandrake - Ximian Evolution Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com