219
So apparently you can just, type the word eject into bash and it will pop open your disk drive
(lemmy.blahaj.zone)
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.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
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 thoughTry
eject /dev/sr0
, that should be your disk drive if it is attached via SATA or USB./dev/cdrom
is usually just a symlink.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
withmodprobe sr_mod
(which wasn't loaded for me) but still not seeing anysr*
orcdrom
in/dev
. Again, not too bothered about this, but I'm kinda curious.Connected power but not SATA maybe?
Maybe? I remember I have used it to read optical discs before (on Linux too) and I don't think I've unplugged anything