please note that first you should connect your usb drive, then you must find where is your device (/dev/sda... sdb... sdc...) with this command in the terminal:
sudo fdisk -l
my usb drive is shown like this:
Device Boot Start End Blocks Id System
/dev/sdb1 4 778189 7781856+ b W95 FAT32
please note that if you have several usb devices connected in the same time the place where it is recognized by the system - will change. so, always connect your drive in the same way (with or without other drives connected, and/or in the same sequence).
this way you can create two buttons or two menu items and assign ehacg of those scripts to run when you select them. this is only a workaround, but it works for me :)
@jennifer:
please note that first you should connect your usb drive, then you must find where is your device (/dev/sda... sdb... sdc...) with this command in the terminal:
sudo fdisk -l
my usb drive is shown like this:
Device Boot Start End Blocks Id System
/dev/sdb1 4 778189 7781856+ b W95 FAT32
please note that if you have several usb devices connected in the same time the place where it is recognized by the system - will change. so, always connect your drive in the same way (with or without other drives connected, and/or in the same sequence).
i created two scripts, one for mounting:
------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -------
#!/bin/bash
# file name: myusbmount.sh
sudo mount -t vfat /dev/sdb1 /media/myusb
gksudo nautilus
-------
beware, you must create the folder "/media/myusb" beforehand.
then, i wrote another script for unmounting:
------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -------
#!/bin/bash
# file name: myusbmount.sh
sudo umount /dev/sdb1
-------
this way you can create two buttons or two menu items and assign ehacg of those scripts to run when you select them. this is only a workaround, but it works for me :)