From: Anthony Anson Sent: 21 February 2005 11:42 63F7A21F1CA18143AFDBF28E2A7D6BBAE5E132@endor.kewill-europe.com from "Keith Watson" keith.watson@kewill.com contains these words:
I had to close Debian down before the CD drive would
operate again.
This happens to me every now and then. I find that opening a command shell and su'ing to root then issuing "eject /cdrom" (or
whatever the
CD mount point is) usually works.
The words have a familiar ring to them - but I'm not up to speed at using terminals yet, so...
Easy-peasy if you're using Debian (or any one of half a dozen other distros).
hold down alt and then press F1 (or F2, F3, F4.....) and a command session will appear (to get back to the desktop just hold down alt and press F7 - if you're using Debian that is :o) ).
Then at the logon prompt type 'root' and at the password prompt type your root password (which I assume you know?)
Type 'df' to get a list of what is mounted where.
one of the lines will say something like;
\dev\hdd [a number] [a number] [a number] 100% /cdrom
where the first bit refers to the CD rom device (it might be hde, hdf depending on how many HDDs you have or it might be emulated as a SCSI device e.g. /dev/scd0 or /dev/scd1)
the last bit on the line is the directory where your CD is mounted.
so you can then enter 'eject /dev/hdd' (or 'eject /dev/scd0' or whatever depending on which device the drive is set up as)
or you can enter the mount point e.g. 'eject /cdrom' (I prefer this as I can never remember what device the CD drive is but I can remember where it's mounted :o) )
then when you're finished just type 'logout' (or hold down ctrl and press D) and then alt+F7.
et voila!
PS when you've done this successfully at least once you can save pressure on your memory by using 'history | grep eject' to get a list from the command history where you've used this command before. Note the number before one of the commands (one that worked that is :o) ) and just type an exclaimation mark ( ! ) followed by the number to re-execute the command eg. if you get;
5 eject /cdrom 12 eject /cdrom 24 eject /cdrom
you can type !5 or !12 or !24 to re-execute the command.
Regards,
Keith ____________ Stand still. - The trees ahead and the bush beside you are not lost. - Albert Einstein
Keith Watson keith.watson@kewill.com wrote:
Easy-peasy if you're using Debian (or any one of half a dozen other distros).
hold down alt and then press F1 (or F2, F3, F4.....) and a command session will appear (to get back to the desktop just hold down alt and press F7 - if you're using Debian that is :o) ).
He's in X... if you say these things, get 'em right, for X to one of those you'll want Ctrl-Alt-F1 etc.
Now, I'd rather suggest opening an xterm... once you've got one of those...
su - <put in root password>
mount (look at output and decide what is the cdrom drive, usually mounted around /cdrom or /media/cdrom or /mnt/cdrom)
umount /mountpoint/of/cdrom/drive
if that fails, then use fuser as follows to find out what we're running that's got hold of it.
fuser -c -u /mountpoint/of/cdrom/drive
using ps and some grepping, you should be able to find out what has got hold of the cd drive and either kill or close it.
Hope that helps,
The message 20050221150017.GA4465@pitr from Brett Parker iDunno@sommitrealweird.co.uk contains these words:
/snip/
fuser -c -u /mountpoint/of/cdrom/drive
using ps and some grepping, you should be able to find out what has got hold of the cd drive and either kill or close it.
Hope that helps,
Ta - also saved. I shall have fun tonight.
The message 63F7A21F1CA18143AFDBF28E2A7D6BBA23C5C3@endor.kewill-europe.com from "Keith Watson" keith.watson@kewill.com contains these words:
Then at the logon prompt type 'root' and at the password prompt type your root password (which I assume you know?)
Not sure that I do - I get asked for a login and a password, but it's as 'user'.
Perhaps:
a) there isn't one; (But I'd guess that there would have to be one?)
b) it may be the same as the user one; (Which is not unlikely, since I forgot the first batch.)
c) I may have forgotten it; (Which is also quite plausible.)
d) I may never have known it (while I admit to being present/hovering at the installation, I utterly deny any deep understanding of what was going on.)
I'll try it and see.
If that doesn't work, I'll try a few other likely words.
The message 63F7A21F1CA18143AFDBF28E2A7D6BBA23C5C3@endor.kewill-europe.com from "Keith Watson" keith.watson@kewill.com contains these words:
you can type !5 or !12 or !24 to re-execute the command.
Thanks - saved for future use.
When the Windisc is in, the CD is J:
Perhaps Debian just gave up looking for it...