USB Flash drive works great, BUT I can't unmount it??
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
USB Flash drive works great, BUT I can't unmount it??
When I plug it in, it works perfectly, but when I'm finished and go to click unmount, it says ERROR: failed to unmount , not found fstab/mtab. It has been like this for a while. Whenever I finish using the flash drive, all I do is unplug it. I never unmounted it. I never lost any data either. How can I make this unmount when I click unmount? Thanks!
This happens when you mount a device to a folder and then you try to umount the folder. To do so you must have an entry to fstab for telling which device is mounted on this specific folder. In your case, if you do "umount /dev/sd**" where first * is the letter of device (sda, sdb, sdc...) and the second * is the number of parition, 1 on flash disks, should work.
If you type "fdisk -l", as root, you will get a list of the plugged device and there you'll see your flash drive as well.
You can create a folder under /mnt with the name usb and put an entry to fstab by telling that /dev/sd** should be matched to /mnt/usb.
But it is a bit strange that you can't do it since the system automatically mounts it. Anyway, try what I told you and we see
All I want is to be able to click unmount on the hotplugged flash drive
What I don't understand is why Suse automatically mounts the flash drive when I plug it in, but when I right click on it to unmout, I get the error. I know all about the fstab, and how to set it up, but why should I have to since it is automatically mounted??? All I need to do here is to be able to EDIT the unmount command on the USB Flash that is hotplugged. Obviously they have the wrong command in. I need to change whatever command they have it set as, to umount /media/USB_DISK. That is the command that works in terminal. I also DO NOT want to have to be root to umount the flash drive. I just want to right click on the hotplugged USB flash drive, then click umount to have this command executed: umount /media/USB_DISK, WITHOUT having to be root. Boy did they botch this setup. All help would be appreciated in telling me how I can change the umount command to the command I need.
The flash drive will only unmount from the /media/USB_DISK folder. I even tried <ln -s /dev/sda1 /media/USB_DISK>, and it said that link already exists. When I right click on the hotplugged usb flash icon, and click unmount, I get the error of: /dev/sda1 not in the fstab and I'm not root. The only way it unmounts is with this command as root user: umount /media/USB_DISK
1st> In terminal as root user enter fdisk -l (This tells you what /dev/sd** your flash drive is)
2nd> Next go in your /media folder and see what your usb flash is mounted in. Mine is /media/USB_DISK
3rd> As root user in terminal: kwrite /etc/fstab
4th> add this line to the list and remember to line everything up(space wise) & press ENTER at the end of the new line, then click on save under file(Make sure to put YOUR information in where the ** are!):
Everything I said worked fine until I rebooted the system. Once the system rebooted, it loaded the /dev/sda1. Now, the problem is, when you insert the flash drive, it works perfectly, but you now have (2) USB's listed in MY COMPUTER. When you go to unmount, you get an error of, multiple /dev/sda1's listed in fstab. This is what you do:
Delete the /dev/sd** line from your fstab. Then on your lower toolbar, right click in an empty area and choose add to toolbar. Next, choose add launcher. Then put the name down as EJECT FLASH. In the command line spot enter the path to your flash drive. Just check in your /media folder for the name. My command is as follows: eject /media/USB_FLASH. You then click on ICON, and choose an icon to use. Leave as application. Then click done/close. You should now have an icon in your lower toolbar that you can click on to eject your USB! Now this works. By ejecting the flash you are essentially unmounting it and removing it from your system.