Messages in this thread | | | From | "Michael H. Warfield" <> | Subject | Re: Ejecting a mounted CD-ROM works :-( | Date | Thu, 18 Feb 1999 21:49:26 -0500 (EST) |
| |
Raphael Becker enscribed thusly:
> Hi *
> I did some experiments with cdrecord last few days, for example how to > eject a CDROM ...
> ok, let_s do that > # cdrecord dev=0,2,0 -eject
> *click**screeek**click* > CD is ejected from my cdrom now :-)
> Ok, try to eject a mounted(!!) cd-rom. This should make some headace > to the kernel, this is the reason why cdroms (eject-button) are locked > while mounted, right?
> rhb1:~ # mount > /dev/sda5 on / type ext2 (rw) > [snip] > /dev/sda9 on /brenner/image1 type ext2 (rw)
> rhb1:~ # mount /cdrom
> rhb1:~ # mount
> /dev/sda5 on / type ext2 (rw) > [snip] > /dev/scd0 on /cdrom type iso9660 (ro,noexec,nosuid,nodev)
> rhb1:~ # cdrecord dev=0,2,0 -eject
> Cdrecord release 1.6.1 Copyright (C) 1995-1998 J_rg Schilling > scsidev: '0,2,0' > scsibus: 0 target: 2 lun: 0 > Device type : Removable CD-ROM > Version : 2 > Response Format: 2 > Capabilities : TERMIOP SYNC > Vendor_info : 'PIONEER ' > Identifikation : 'CD-ROM DR-U06S ' > Revision : '1.04' > Device seems to be: Generic mmc CD-ROM. > Using generic SCSI-3/mmc CD driver (mmc_cd). > Driver flags : SWABAUDIO
> [the cd comes out]
> rhb1:~ # mount
> /dev/sda5 on / type ext2 (rw) > [snip] > /dev/scd0 on /cdrom type iso9660 (ro,noexec,nosuid,nodev)
> rhb1:~ #
> What should be fixed, "cdrecord" or something in the kernel?
The physical device was busy... It should not be allowed to eject. The kernel should have blocked it...
> Greetings > Raphael > -- > _ _ Powered by SuSE___ ___ _ > | | (_)_ _ _ ___ __ |_ ) |_ ) / | > | |__| | ' \ || \ \ / / / _ / / _| | > |____|_|_||_\_,_/_\_\ /___(_)___(_)_|
Mike -- Michael H. Warfield | (770) 985-6132 | mhw@WittsEnd.com (The Mad Wizard) | (770) 925-8248 | http://www.wittsend.com/mhw/ NIC whois: MHW9 | An optimist believes we live in the best of all PGP Key: 0xDF1DD471 | possible worlds. A pessimist is sure of it!
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |