this post was submitted on 08 Jan 2025
224 points (95.9% liked)

Linux

49176 readers
649 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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
[–] [email protected] 2 points 1 week ago

I have a Blu-ray drive, though my case doesn’t have 5.25” bays, so I just have the SATA cables come put the side.

The sole reason I have it is because once a couple years back, I wanted to watch the Star Trek: TNG Spanish dub, which was only available in the US on a Bluray, which I promptly borrowed from my local library.

I have used it a couple times after, though - once to burn a CD-R with TinyCore to boot on a Pentium II laptop, and once to backup a Bluray with a dub only available on that medium.

[–] [email protected] 2 points 1 week ago

I just tried and it doesn't seem to work for me.

Wait....do I need an optical drive for this to work? I think I might have a plug in drive somewhere.....

[–] [email protected] 12 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

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.

[–] [email protected] 1 points 1 week ago

Magnetic media is still king of price to capacity (Hard drives) and I literally do still record broadcast television on one of my linux boxes

[–] [email protected] 19 points 2 weeks ago (1 children)
[–] [email protected] 4 points 2 weeks ago

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

[–] [email protected] 32 points 2 weeks ago

tilts head

plugs in USB optical drive

eject

pop

hehe

push tray back in

eject

pop

hehehe

[–] [email protected] 12 points 2 weeks ago (1 children)

Those are discs not disks kiddo

[–] [email protected] 5 points 2 weeks ago (1 children)

I was wondering about OP's soft-eject floppy drive. Seems quite retrofuturistic.

[–] [email protected] 2 points 1 week ago* (last edited 1 week ago)

Macs had them, so they could control when the user was able to have their disk back 😅

[–] [email protected] 6 points 2 weeks ago

woa what the frick!! that actually scared me it's like 2001 space odyssey type of stuff

[–] [email protected] 5 points 2 weeks ago (1 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

[–] [email protected] 3 points 2 weeks ago (1 children)

Try eject /dev/sr0, that should be your disk drive if it is attached via SATA or USB. /dev/cdrom is usually just a symlink.

[–] [email protected] 1 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Afraid I don't have a /dev/sr0. Tbh I built this PC yonks ago, I don't remember how I plugged in my optical drive. I assume SATA would be the sensible and most likely option.

I'm on Artix Linux with runit if that matters at all?

I mean, it doesn't matter to me whether or not I can eject my optical drive with a command, but at this point I'm just curious as to where the drive is on the filesystem lol

Edit: I tried loading sr_mod with modprobe sr_mod (which wasn't loaded for me) but still not seeing any sr* or cdrom in /dev. Again, not too bothered about this, but I'm kinda curious.

[–] [email protected] 1 points 2 weeks ago (1 children)

Connected power but not SATA maybe?

[–] [email protected] 1 points 1 week ago

Maybe? I remember I have used it to read optical discs before (on Linux too) and I don't think I've unplugged anything

[–] [email protected] 3 points 2 weeks ago

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

[–] [email protected] 4 points 2 weeks ago (1 children)

lemme guess.. and inject would close it again?

[–] [email protected] 6 points 2 weeks ago* (last edited 2 weeks ago)

eject -t

There's also eject -T which is a toggle.

[–] [email protected] 13 points 2 weeks ago

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

[–] [email protected] 123 points 2 weeks ago (4 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.

[–] [email protected] 1 points 2 weeks ago (1 children)

Some CD trays will auto-close though.

[–] [email protected] 6 points 2 weeks ago

The Dell servers we had at the time all had slim laptop style CD trays, so no auto-close to worry about.

[–] [email protected] 23 points 2 weeks ago (2 children)

I was wondering why they still sold servers with disk drives

[–] [email protected] 24 points 2 weeks ago (1 children)

For deploying your sick playlist to production, obviously!

[–] [email protected] 6 points 2 weeks ago

No not mine, thermal performance always goes haywire 😔

[–] [email protected] 6 points 2 weeks ago

I haven't worked in a data center in years, so I don't know the current norm for server hardware.

[–] [email protected] 26 points 2 weeks ago

VPS providers hate this one trick

[–] [email protected] 7 points 2 weeks ago

Modern problems require modern solution.

load more comments
view more: next ›