-   Linux - Newbie (
-   -   usb stick questions!! (

yenonn 11-19-2004 07:35 PM

usb stick questions!!

i am asking some questions on usb stick (or handydrive).

1. how can i automount a usb stick automatically, as what a cd is put into the cdrom. then a icon will appear on the desktop?

2. i know to mount a usb stick manually, but, after all, i want to umount it. it always prompt me. "usb device is busy". how can i cater for it?

3. are there better solution of mounting and unmounting a usb stick in a more proper manner? thanks

sandman867 11-19-2004 07:52 PM

ok i just was going to post a question about usb flash drives im running mandrake 10.1 and i have a flash drive i dont know how to acces the date on it sorry for posting in here but same topic

IBall 11-19-2004 10:33 PM

2. It will say that the device is busy if you current working directory is on the USB-device. Go to your home directory (cd ~), and then try unmounting it.

3. I assume you are using the command line, then the commands "mount /mnt/usb" and "umount /mnt/usb" should work, if the usb stick is set up in /etc/fstab.

You will need to add a line in the file /etc/fstab, mine looks like the following:

/dev/sda1    /mnt/usb    vfat    rw,suid,dev,noexec,noauto,user,async 1 2
Then you need to create the directory /mnt/usb. You will need to be root to do both of these.

Then, as a normal user, insert the USB stick, and issue the command "mount /mnt/usb", and your files will be available in the directory /mnt/usb. When you are finished, run the command "umount /mnt/usb" before removing the USB stick. When the command prompt appears again, you are safe to remove the device.

I hope this helps

All times are GMT -5. The time now is 07:20 AM.