Bug 30817

Summary: Addition to kern/28166: impossibility of mounting CD-ROM
Product: Base System Reporter: Eugene Grosbein <ports>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-STABLE   
Hardware: Any   
OS: Any   

Description Eugene Grosbein 2001-09-25 15:50:00 UTC
	It is impossible to mount CD-ROM in some cases.

Fix: 

Unknown for me. This bug seems to be related with another one
	explained in http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28166
How-To-Repeat: 	1. Insert any CD-ROM into drive. 
	Make shure it can be mounted:
		
		# mount -t cd9660 /dev/acd0a /cdrom
		# umount /cdrom

	2. Now eject tray manually using 'eject' button of front panel of drive
	Then insert in back using command:
		
		# cdcontrol -f /dev/acd0a close
	
	3. Now it's impossible to mount CD-ROM:
		
		# mount -t cd9660 /dev/acd0a /cdrom
		cd9660: /dev/acd0a: Device busy

	You have to eject and reinsert CD manually to revive your drive.
Comment 1 Peter Pentchev 2001-12-12 14:31:38 UTC
On Tue, Sep 25, 2001 at 10:34:31PM +0800, Eugene Grosbein wrote:
> 
> >Number:         30817
> >Category:       kern
> >Synopsis:       Addition to kern/28166: impossibility of mounting CD-ROM
> >Originator:     Eugene Grosbein
> >Release:        FreeBSD 4.4-STABLE i386
> >Organization:
> ISP Svyaz Service
> >Environment:
> System: FreeBSD 4.4-STABLE #0: Thu Sep 20 19:58:56 KRAST
> 	ATAPI CD-ROM
> 
> >Description:
> 	It is impossible to mount CD-ROM in some cases.
> 
> >How-To-Repeat:
> 	1. Insert any CD-ROM into drive. 
> 	Make shure it can be mounted:
> 		
> 		# mount -t cd9660 /dev/acd0a /cdrom
> 		# umount /cdrom
> 
> 	2. Now eject tray manually using 'eject' button of front panel of drive
> 	Then insert in back using command:
> 		
> 		# cdcontrol -f /dev/acd0a close
> 	
> 	3. Now it's impossible to mount CD-ROM:
> 		
> 		# mount -t cd9660 /dev/acd0a /cdrom
> 		cd9660: /dev/acd0a: Device busy
> 
> 	You have to eject and reinsert CD manually to revive your drive.

Are you sure that this 'Device busy' did not occur during the sense
period, while the drive itself was trying to find out what kind of disc
you had just popped in?  Wait a few seconds (usually until the light
on the drive stops blinking) and try mounting it again.

G'luck,
Peter

-- 
If this sentence didn't exist, somebody would have invented it.
Comment 2 Søren Schmidt freebsd_committer freebsd_triage 2001-12-12 14:51:58 UTC
State Changed
From-To: open->closed

This works for me both on -current & -stable
Comment 3 Eugene Grosbein 2001-12-12 15:28:51 UTC
> > >How-To-Repeat:
> >       1. Insert any CD-ROM into drive.
> >       Make shure it can be mounted:
> >
> >               # mount -t cd9660 /dev/acd0a /cdrom
> >               # umount /cdrom
> >
> >       2. Now eject tray manually using 'eject' button of front panel of drive
> >       Then insert in back using command:
> >
> >               # cdcontrol -f /dev/acd0a close
> >
> >       3. Now it's impossible to mount CD-ROM:
> >
> >               # mount -t cd9660 /dev/acd0a /cdrom
> >               cd9660: /dev/acd0a: Device busy
> >
> >       You have to eject and reinsert CD manually to revive your drive.
> 
> Are you sure that this 'Device busy' did not occur during the sense
> period, while the drive itself was trying to find out what kind of disc
> you had just popped in?  Wait a few seconds (usually until the light
> on the drive stops blinking) and try mounting it again.

Of course, I tied to mount after the driver stops blinking.
And I had 'Device busy' message immediately and drive did not even blinked.
I've just reproduced this here. My system is now 4.4-STABLE of 24 November
2001.

Eugene Grosbein
Comment 4 bizi 2001-12-12 15:52:18 UTC
----- Original Message -----
From: "Eugene Grosbein" <eugen@grosbein.pp.ru>
To: <freebsd-bugs@FreeBSD.org>
Sent: Wednesday, December 12, 2001 4:30 PM
Subject: Re: kern/30817: Addition to kern/28166: impossibility of mounting
CD-ROM

have you tried to unmount the cdrom with forcing, befor mount ?

like this:

# cdcontrol -f /dev/acd0a

Now it's impossible to mount CD-ROM:

# mount -t cd9660 /dev/acd0a /cdrom
cd9660: /dev/acd0a: Device busy

but first try this:

# umount -f  /cdrom
(important: you must force it with -f)

# mount -t cd9660 /dev/acd0a /cdrom
now it should be possible to mount...

    thx & cu
    Fabrizio
Comment 5 bizi 2001-12-12 15:52:18 UTC
----- Original Message -----
From: "Eugene Grosbein" <eugen@grosbein.pp.ru>
To: <freebsd-bugs@FreeBSD.org>
Sent: Wednesday, December 12, 2001 4:30 PM
Subject: Re: kern/30817: Addition to kern/28166: impossibility of mounting
CD-ROM

have you tried to unmount the cdrom with forcing, befor mount ?

like this:

# cdcontrol -f /dev/acd0a

Now it's impossible to mount CD-ROM:

# mount -t cd9660 /dev/acd0a /cdrom
cd9660: /dev/acd0a: Device busy

but first try this:

# umount -f  /cdrom
(important: you must force it with -f)

# mount -t cd9660 /dev/acd0a /cdrom
now it should be possible to mount...

    thx & cu
    Fabrizio
Comment 6 Eugene Grosbein 2001-12-12 16:14:06 UTC
> have you tried to unmount the cdrom with forcing, befor mount ?
> 
> like this:
> 
> # cdcontrol -f /dev/acd0a
> 
> Now it's impossible to mount CD-ROM:
> 
> # mount -t cd9660 /dev/acd0a /cdrom
> cd9660: /dev/acd0a: Device busy
> 
> but first try this:
> 
> # umount -f  /cdrom
> (important: you must force it with -f)
> 
> # mount -t cd9660 /dev/acd0a /cdrom
> now it should be possible to mount...


Not sure I understand you. CD is not mounted in this example,
there is nothing to unmount. If you insist to run 'umount -f' brefore
mounting,
I tried this. Obviously, this doesn't help.

Eugene Grosbein