commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
sometimes this helps, when eject button fails
Ssh to your co-worker's box and watch them go crazy when the cd player ejects
My variation on an audio burning command from commandlinefu - this one doesn't crap out if you want to burn a CD in a directory whose permissions don't allow it, and instead rips everything to /tmp. If you mount your music partition like I do using Samba, you probably don't have write permission inside that file system in order to create the temporary directory other audio burning commands here use. Not a bad idea to add cdrom to your groups, and /bin/eject with visudo.
This command will lock the hardware eject button of your cdrom drive. Some uses are:
1: If you have a toddler and has discovered the cdrom button
2: If you are carrying a laptop in a bag or case and don't want it to eject if the button is inadvertently pressed.
To unlock the button use:
eject -i 0
Remounts a usb disk /dev/sdb, without having to physically remove and reinsert. (Gnome desktop)
this command limit the speed to 8 until next eject of your cdrom disc , can be usefulll when you don't want to listen the sound of your cdrom driver .
Decreasing the cdrom device speed may be more comfortable to watch films (for example)
Opens or closes the cdrom device.
This open the cd rom device and close it in a loop