LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   New To Linux/Ejecting USB Drive (https://www.linuxquestions.org/questions/linux-newbie-8/new-to-linux-ejecting-usb-drive-4175567139/)

jcrickard 01-22-2016 08:06 PM

New To Linux/Ejecting USB Drive
 
I am new to Linux, going back to school to get my Bachelors and I am taking I Linux Admin course and I just love Linux so far. I have been running Ubuntu 14.4 on a VM. but tonight I installed Ubuntu 14.4 on a older Acer netbook I had, using a bootable usb I created with the Ubuntu iso file, and then I realized I dont know how to properly eject the thumbdrive. So a little help would be great.
System Info:
10 Inch Acer netbook
1.4 Ghz CPU
2.0 GB Ram
200 GB HD
Thank You
JC

flshope 01-23-2016 06:16 PM

I am running Ubuntu 14.04 but with the Gnome Classic desktop. One of the menu items from your top bar should be a "Computer" menu item. On my machine, a USB drive icon will show up here. If so, you should be able to right-click on the icon and either eject or unmount the device.

Failing that, you can use the file manager to look at /media where the drive might be mounted, perhaps in a subdirectory. Again, the right-click and eject option should be operable.

Emerson 01-23-2016 06:21 PM

OTOH, bootable media is not necessarily mounted, if it is not just unplug it. Eject/umount is needed only if there were writes to the media to ensure the cache is flushed.

jamison20000e 01-23-2016 06:22 PM

Hi.

And if those don't work to find the drive the:
Code:

sudo fdisk -l
then:
Code:

sudo umount /dev/theDrive
best wishes and have fun! :)

jcrickard 01-23-2016 06:29 PM

Thank you for your help, i was looking for the cli commands and i got them. Everyone has been so helpful on this forum. Thank you

Fred Caro 01-23-2016 08:13 PM

to see what is currently mounted run:

Quote:

mount
and then you can umount the relevant file system, using either the file system or the mount point as the exit point- note you drop the 'n' in the umount command.

fred.

BW-userx 01-24-2016 01:50 PM

MY OPTION, in what I do is just pull it out. it is hot plugged. :D

jamison20000e 01-24-2016 01:58 PM

It's an option, I've done it but only at risk... http://superuser.com/questions/18072...-unplugging-it ;)

BW-userx 01-24-2016 02:56 PM

Quote:

Originally Posted by jamison20000e (Post 5486773)
It's an option, I've done it but only at risk... http://superuser.com/questions/18072...-unplugging-it ;)

is that a tech page on the perils of unpluging before its done writting to the media? I do have a built in wait state (sometimes) I don't even use USB/SD Cards much so it is not something that is often done by me. but Hot Plug is to eliminate mount - umount commands - in most linux distros they auto mount the usb, so you have to do a umount in order to dd it or ( format ?) it -- I use Gparted to format and most of my hdd usb needs. when ever I come across them which is few and far between.

Code:

sudo blkid
to get the /dev/sxx then umount it. done... :D

jamison20000e 01-24-2016 03:10 PM

Best not trust in one or two storage devices\media*...

:edit:


All times are GMT -5. The time now is 12:13 PM.