Questions tagged [eject]

20 questions
95
votes
11 answers

Eject USB drives / eject command

I know that the eject command can be used to eject almost any hardware component attached, but can it be used to eject USB drives? Is it possible to eject USB drives and external HDD's with the eject command?
Joe Barr
  • 1,237
  • 2
  • 12
  • 9
58
votes
2 answers

Eject / safely remove vs umount

I'm using Ubuntu 12.04, and when I rigth click on a my flash drive icon (in the Unity left bar) I get two options that have me confused: eject and safely remove. The closer I came to an answer was this forum thread, which concludes that (for a…
LGenzelis
  • 701
  • 1
  • 6
  • 8
14
votes
2 answers

How can I disable the button of my CD/DVD drive?

Up until Fedora 14 I was successfully using cdctl to enable/disable the CD/DVD eject button on my laptop (Thinkpad T410). Sadly it has stopped working now. I've consulted the methods discussed in these 2 questions: disable cd/dvd button on linux…
slm
  • 363,520
  • 117
  • 767
  • 871
6
votes
1 answer

What exactly does zpool export do?

After having read the section about zpool export in man zpool, I am worried somehow: Exports the given pools from the system. All devices are marked as exported, but are still considered in use by other subsystems. The devices can be moved between…
Binarus
  • 3,160
  • 1
  • 15
  • 31
5
votes
1 answer

Selectively disabling gvfsd-cdda in Debian Squeeze?

Is there a way to selectively disable gvfsd-cdda on Debian Squeeze? Since I updated my machine to Squeeze grip can no longer eject a CD, which interferes with ripping. I traced it back to gvfsd-cdda, but found no preference or configuration to…
starblue
  • 596
  • 4
  • 14
3
votes
0 answers

How to disable caching for USB storage devices (by default), so that we can unplug without clicking eject?

Is there any way to completely caching for USB storage devices (I mean for example 32GB USB Hard Drives, NTFS, FAT32 formatted etc.), for Linux? (like Microsoft's Windows) People coming from MS Windows background are just removing the usb drive…
eminfedar
  • 200
  • 1
  • 2
  • 10
3
votes
2 answers

How to safely eject usb hardrive - udisks returns "detach failed: .."

I have a USB external hard drive with several partitions, and I cannot spin down the hard drive to get it to eject. Any suggestions? I unmounted all partitions through Nautilus, but the drive is still spinning. Nautilus does not seem to have other…
modulitos
  • 3,097
  • 8
  • 29
  • 44
2
votes
0 answers

Safely eject USB live system asking the uesr to remove it

For my work I'm preparing a live USB with Clonezilla. It runs a custom bash script to clone disks. This USB is going to be cloned to several other USBs so they can be used in multiple machines. It's not possible to run Clonezilla to RAM since the…
schrodingerscatcuriosity
  • 12,087
  • 3
  • 29
  • 57
2
votes
1 answer

How do I plug in a usb-drive?

Problem After using the following command on my usb-drive (/dev/sdd): # physically plugging usb-drive in at /dev/sdd > umount /dev/sdd1 > eject /dev/sdd I am unable to undo this last action. How do I mount the drive again,…
Yeti
  • 177
  • 8
2
votes
2 answers

How does 'eject' get processes to close file handles?

On my Mac, when I 'eject' a network-mounted share, my Mac presents me with the following message, and attempts to get processes to close open file handles and cleanly dismount the share. My question is, how exactly does it accomplish that? I…
Harv
  • 1,792
  • 2
  • 12
  • 19
1
vote
3 answers

Progress bar for ejecting USB flash drive?

OS is Debian 10. File manager is Thunar. I've noticed that when I copy a few dozen gigabytes to my USB flash drive, the process only takes a minute or two. Then when I go to eject, the ejection process can take an hour or more. The USB drive is…
cat pants
  • 753
  • 5
  • 23
  • 38
1
vote
0 answers

Making the keyboard eject switch work

My keyboard switch for ejecting the CDROM does not work though it displays an eject button on the screen. I need to make it work. I know ejecting a cdrom using system call is as simple as ioctl(cdromfd,CDROMEJECT,0) But I don't know how to connect…
PaulDaviesC
  • 537
  • 1
  • 4
  • 12
1
vote
0 answers

Linux: how to ensure it's possible to remove USB stick from commandline?

When working from command line I usually use an USB mass storage device with customary: sudo mount /dev/sde1 /mnt -o rw,umask=0000 ... use it... sudo umount /mnt This works fine IF you let the stick in its slot a few seconds AFTER umount has…
ZioByte
  • 830
  • 1
  • 10
  • 22
1
vote
1 answer

How to mount a disk on key on Red-Hat 6 (Beta) after ejecting it

I have a Cruzer disk on key which was recognized automatically by my RedHat6-beta OS. I removed it always using the GUI option "Safely remove", but one time by mistake I selected "Eject" and from then it is not recognized. I tried to mount it…
rkellerm
  • 253
  • 1
  • 4
  • 10
1
vote
1 answer

Auto swallow and eject cd (from the commandline)

I am trying to close and eject cd from the commandline. The purpose is to rip a lot of audio cds with abcde. I use eject and eject -t commands to open and close the cd drive. I mount my cdrom with this line in /etc/fstab: /dev/sr0 …
ppr
  • 1,887
  • 7
  • 23
  • 40
1
2