I've been using linux for more than a decade at this point, but in all that time I've rarely had a disk drive. The fact that this command exists and is just, one of the core utils included with your distro along with su and kill and mount and more is just… so beautiful. 10 years amore with this OS and I'm still learning things that the elders in the audience are snickering at me for only learning 5 minutes ago while they were popping their disk trays open with a single command back when disk drives were a non optional component.

top 50 comments

sorted by: hot top controversial new old
[–] 157 points 2 years ago (2 children)

Very helpful command it was for those, whose modem had to be rebooted daily back in the day: Have a cron-job open the tray, which in turn was placed strategically so that it would hit the reset button of the modem, then close the tray. And voilà; automatic reboot of the modem. Robotics at its finest!

  • source
  • hideshow 2 child comments
  • [–] 9 points 2 years ago

    In the early 2000s, only my rich friends had cell phones. My roommate and I both had accounts on each other's machines so we could telnet into them on the same local network.

    We used to do this all the time to each other. It was funny to us 25 years ago. It's still funny now.

  • source
  • parent
  • [–] 123 points 2 years ago (8 children)

    This command was very useful for quickly finding a server in a row of hundreds of identical servers. No need to read the labels or look up which rack it's in. Just log in remotely, just use 'eject', and then walk down the row to the server that has its tray out.

  • source
  • hideshow 8 child comments
  • [–] 25 points 2 years ago (3 children)

    I was wondering why they still sold servers with disk drives

  • source
  • parent
  • hideshow 3 child comments
  • load more comments (2 replies)
    [–] 92 points 2 years ago (2 children)

    Ah, the good old days of sshing into a family member's computer and trolling them by constantly opening and closing the drive.

  • source
  • hideshow 2 child comments
  • [–] 79 points 2 years ago (2 children)
  • [–] 72 points 2 years ago (3 children)

    You can configure sudo, used to elevate the privileges of a command, to insult users when they type in an incorrect password.

    To do so, edit the sudoers file with a tool called visudo, which edits and validates modifications to the sudo configuration file.

    sudo visudo

    Near the top, add a line that reads:

    Defaults insults

    Save and close the file.

  • source
  • hideshow 3 child comments
  • [–] 26 points 2 years ago (2 children)

    I found out about this recently and I love it. I don't know why I like to be insulted, it makes me laugh.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 59 points 2 years ago (1 child)

    Back in networking classes we used to have entire rooms of replicated machines, all with contiguous addresses and same logins. We wrote a script to ssh into every computer of the room and eject and retract all the disk drives at the same time, it was wonderful ✨

  • source
  • hideshow 1 child comment
  • [–] 6 points 2 years ago*

    You could've made music out of ejecting/retracting those all at different times!

    Would've actually been fantastic distributed systems practice, synchronizing all of those to tight tolerances of music across a network connection...

  • source
  • parent
  • [–] 34 points 2 years ago (3 children)

    Disk... drive?

    what-year-is-it.jpeg

  • source
  • hideshow 3 child comments
  • tilts head

    plugs in USB optical drive

    eject

    pop

    hehe

    push tray back in

    eject

    pop

    hehehe

  • source
  • [–] 27 points 2 years ago (4 children)

    Almost 20 years ago I convinced my high school library to let me install Debian on one of the computer groups. I found the "eject" command, and wrote a script that just invoked it with an argument to close the tray. I named that script "inject". Being high schoolers, my friends and I made scripts to "eject" and "inject", along with various beeps, and named the scripts suggestive and tawdry things. We all had a good giggle setting the systems off on their little routines and walking away.

  • source
  • hideshow 4 child comments
  • [–] 5 points 2 years ago (3 children)

    Eject is not just for CDs. You still have to eject any hot mount physical media. Sadly the eject command only works in some cases. I do not think it works for hot mount SATA dives for example.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 20 points 2 years ago (6 children)

    If you have a LS-120, it will eject the floppy disc like you were on dome fancy-pants Macintosh!

  • source
  • hideshow 6 child comments
  • [–] 13 points 2 years ago (5 children)

    I've never encountered another LS-120 user before. When it came out I assumed it would be the future, because 120 megabyte freaking laser assisted floppy, am I right? Turns out I was very much mistaken, and CD-R took over.

    I also made the same mistake regarding CF vs SD cards.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 3 points 2 years ago

    CF, or their follow-up CFast, are still in industrial PCs - at least in the Beckhoff IPCs my (ok, more like "my customers") Automat is sporting

    Used as system storage and easy to swap for the customer in regards of backups, if something breaks

  • source
  • parent
  • load more comments (2 replies)
  • [–] 19 points 2 years ago (1 child)
    load more comments (1 reply)
    [–] 18 points 2 years ago

    They should make a usb-port with a spring in it which can be released with eject. Until then I have to be content with just making sound effects when I run eject on other devices.

  • source
  • [–] 13 points 2 years ago

    I need to go put my DVD drive back in my tower to try this!

  • source
  • [–] 12 points 2 years ago* (1 child)

    There is a whole world of obsolete stuff nobody will ever do with a linux system anymore. Terminal servers with lots of serial terminals or modems for a BBS. Making a fax server, IVR, digital answering machine for analog land lines. Using removable optical or magnetic media. Recording broadcast tv. SCSI, Firewire. It is interesting to imagine what from today will be obsolete in a few years.

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 12 points 2 years ago (2 children)

    Those are discs not disks kiddo

  • source
  • hideshow 2 child comments
  • [–] 11 points 2 years ago (1 child)

    I used to play with Linux at college back in 2002 and install the distros on the front of magazines. Eject opens the cd drive but did you know it hangs unless you umount the mount point first? Back in those days everything had to be painfully mounted and unmounted.

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [+] 11 points 2 years ago
    [+] 6 points 2 years ago* (last edited 1 year ago)
    [–] 5 points 2 years ago (4 children)

    I still have a disk drive but eject doesn't seem to affect it since for some reason I don't have a /dev/cdrom. I just checked with the physical eject button on the drive and it is at least still physically working—the tray ejects! I don't have any optical media to test if the drive still works to read CDs though

  • source
  • hideshow 4 child comments
  • [–] 4 points 2 years ago

    Sorry, my what ? Are you talking about relics of the past ? ;D

  • source
  • [–] 4 points 2 years ago (1 child)

    lemme guess.. and inject would close it again?

  • source
  • hideshow 1 child comment
  • [–] 3 points 2 years ago

    don't use it if you're flying a plane, though!

  • source
  • load more comments
    view more: next ›