Quote:
Originally Posted by serafimg
I use SuSe 9.2 , how can I unmount my USB?
|
I wrote two simple bash scripts to mount and unmount a usb flash drive. Here is my mount script (called mount.sh)
Code:
#!/bin/bash
#Must be root to run this script
mount /mnt/usbstick
echo "mounted on /mnt/usbstick"
exit
Here is the simple script I use to un-mount my flash drive (called umount.sh)
Code:
#!/bin/bash
#unmounting a usb thumb drive, must be root
umount /mnt/usbstick
echo "unmounted."
exit
To run those scripts just copy and paste the script and save it as a .sh file. Once you have it saved don't forget to make it executable (chmod +x). Then you can run the script with ./(name of script) assuming the script is in your present directory.
Here is my fstab entry for /mnt/usbstick:
Code:
/dev/sda1 /mnt/usbstick vfat user,noauto,umask=0 0 0