[SOLVED] One week with Linux, need basic info/tutorials/help
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If you want to uncluster this, my recommendation is that you experiment with a few Linux distros booted as live distros.
That is you download something to a CD/DVD or USB thumbstick and then boot off of that media on your computer. Whatever you're doing really is throwaway because writing to the boot media are generally not allowed. There are ways and exceptions to that, but my point here is not to go that far but instead to give you a viable direction to go to try a few different distributions and determine what you like and also then see if the different distributions do or don't have problems with the concept of ejecting a disk as the distro you have now does.
Just seems like they were nice enough to show you the glitz, but then they left you up (blank's) creek for any further help. Therefore you either want to continue with the Ubuntu family of distributions or seek an alternative. I'm not sure if what you have is an x86 by the way since you mentioned swapping from MAC to Linux.
I guess all I would really like right now is for ideas about how to get the CD that is stuck in my drive out. I use a Mac Mini and if I understand correctly, it ejects electronically, not mechanically, so no poking anything to solve the problem.
NAME
eject - eject removable media
SYNOPSIS
eject -h
eject [-vnrsfmqp] [<name>]
eject [-vn] -d
eject [-vn] -a on|off|1|0 [<name>]
eject [-vn] -c slot [<name>]
eject [-vn] -t [<name>]
eject [-vn] -T [<name>]
eject [-vn] -x <speed> [<name>]
eject [-vn] -X [<name>]
eject -V
DESCRIPTION
Eject allows removable media (typically a CD-ROM, floppy disk, tape, or JAZ or ZIP disk) to be ejected under software control. The command can
also control some multi-disc CD-ROM changers, the auto-eject feature supported by some devices, and close the disc tray of some CD-ROM drives.
The device corresponding to <name> is ejected. The name can be a device file or mount point, either a full path or with the leading "/dev",
"/media" or "/mnt" omitted. If no name is specified, the default name "cdrom" is used.
There are four different methods of ejecting, depending on whether the device is a CD-ROM, SCSI device, removable floppy, or tape. By default
eject tries all four methods in order until it succeeds.
If the device is currently mounted, it is unmounted before ejecting.
COMMAND-LINE OPTIONS
-h This option causes eject to display a brief description of the command options.
-v This makes eject run in verbose mode; more information is displayed about what the command is doing.
-d If invoked with this option, eject lists the default device name.
-a on|1|off|0
This option controls the auto-eject mode, supported by some devices. When enabled, the drive automatically ejects when the device is
closed.
-c <slot>
With this option a CD slot can be selected from an ATAPI/IDE CD-ROM changer. Linux 2.0 or higher is required to use this feature. The CD-
ROM drive can not be in use (mounted data CD or playing a music CD) for a change request to work. Please also note that the first slot of
the changer is referred to as 0, not 1.
-t With this option the drive is given a CD-ROM tray close command. Not all devices support this command.
-T With this option the drive is given a CD-ROM tray close command if it's opened, and a CD-ROM tray eject command if it's closed. Not all
devices support this command, because it uses the above CD-ROM tray close command.
-x <speed>
With this option the drive is given a CD-ROM select speed command. The speed argument is a number indicating the desired speed (e.g. 8
for 8X speed), or 0 for maximum data rate. Not all devices support this command and you can only specify speeds that the drive is capable
of. Every time the media is changed this option is cleared. This option can be used alone, or with the -t and -c options.
-X With this option the CD-ROM drive will be probed to detect the available speeds. The output is a list of speeds which can be used as an
argument of the -x option. This only works with Linux 2.6.13 or higher, on previous versions solely the maximum speed will be reported.
Also note that some drive may not correctly report the speed and therefore this option does not work with them.
-n With this option the selected device is displayed but no action is performed.
-r This option specifies that the drive should be ejected using a CDROM eject command.
-s This option specifies that the drive should be ejected using SCSI commands.
-f This option specifies that the drive should be ejected using a removable floppy disk eject command.
-q This option specifies that the drive should be ejected using a tape drive offline command.
-p This option allow you to use /proc/mounts instead /etc/mtab. It also passes the -n option to umount(1).
-m This option allows eject to work with device drivers which automatically mount removable media and therefore must be always mount()ed.
The option tells eject to not try to unmount the given device, even if it is mounted according to /etc/mtab or /proc/mounts.
-V This option causes eject to display the program version and exit.
If you look closely at the front of the CD/DVD drive you should find a small hole which can be accessed by using a straightened paper clip. You insert the clip perpendicularly to the face and gently push it to physically unlatch the drive door. Once the door has opened you can move the tray outward;
CD stuck within drive If you suspect that a CD may be stuck within the drive, the tray needs to be ejected manually. Look for the small manual eject hole that ( not the head phone jack) located on the front of the drive. Unwind a paper clip and place one end of the paper clip into the hole to eject the CD-ROM tray.
EDIT: Sorry, I did not realize this was for a MAC. You can open a console and then you have a command line for 'eject /dev/sr0' or 'eject /dev/cdrom' should work for your device. You could look in '/dev/ for the cdrom which can be a link to /dev/sr0. The device will depend on '/dev/assignments', eject will umount that device then perform the device eject.
Hope this helps.
Have fun & enjoy!
Last edited by onebuck; 01-16-2015 at 04:21 PM.
Reason: note
I guess all I would really like right now is for ideas about how to get the CD that is stuck in my drive out. I use a Mac Mini and if I understand correctly, it ejects electronically, not mechanically, so no poking anything to solve the problem.
I searched for like "remove stuck cd out of mac mini" and there was a youtube result showing that you basically take the drive out and take the top off of the drive, get your CD and then re-assemble. Even then, they showed Apple/MAC commands or attempts to first try, but barring that, they went to the manual removal method.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.