Re: [ilugd] Giving up on scratched CDs and ejecting mounted CDs

2005-10-07 Thread Pankaj kaushal
Saurabh Nanda wrote:
 Hi,
 
 Firstly, could anyone please tell me what's the philosophy behind
 'locking' the CD-ROM tray when a CD has been mounted. Why can't I
 eject a mounted CD? Additionally, is there some way with which I may
 eject mounted CDs?

There is a bug on this,
http://bugzilla.ubuntu.com/show_bug.cgi?id=11480

P.
-- 
Wir wollen dass ihr uns alles glaubt.

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/



Re: [ilugd] Giving up on scratched CDs and ejecting mounted CDs

2005-10-07 Thread Raj Mathur
 Pankaj == Pankaj kaushal [EMAIL PROTECTED] writes:

Pankaj [snip]

Pankaj Wir wollen dass ihr uns alles glaubt.

``My woollen gloves are all torn''?

g,dr

-- 
Raj Mathur[EMAIL PROTECTED]  http://kandalaya.org/
   GPG: 78D4 FC67 367F 40E2 0DD5  0FEF C968 D0EF CC68 D17F
  It is the mind that moves

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/



Re: [ilugd] Giving up on scratched CDs and ejecting mounted CDs

2005-09-28 Thread Gaurav Mishra
to simple commands assuming drive location is /mnt/cdrom

umount -f  /mnt/cdrom

fuser -mv /mnt/cdrom shows the pid
and kill pid

:)

On 28 Sep 2005 03:39:47 -, bimal  pandit
[EMAIL PROTECTED] wrote:
 Dear Sir,

   ---SNIP-

 Thus, one can't unmount the CD cuz it's supposedly busy, and one can't eject
 the
 CD cuz it's mounted. The only solution being a reboot.

   ---SNIP-

 use umount -l device also could use fuser to identify the PID/Process
 which is making your device busy and then kill it.

 please refer man pages of both for more options/clarifications.

 regards,

 Bimal Pandit
 ___
 ilugd mailinglist -- ilugd@lists.linux-delhi.org
 http://frodo.hserus.net/mailman/listinfo/ilugd
 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
 http://www.mail-archive.com/ilugd@lists.linux-delhi.org/

 Event: Freedel 2005, 17th  18th September, 2005 - http://freedel.in



--
Smooth Sea Never makes a Skilled Mariner
Linux User #348873
http://gauravmishra.modblog.com
___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/

Event: Freedel 2005, 17th  18th September, 2005 - http://freedel.in


Re: [ilugd] Giving up on scratched CDs and ejecting mounted CDs

2005-09-27 Thread Abhijit Menon-Sen
At 2005-09-27 15:11:19 +0530, [EMAIL PROTECTED] wrote:

 Firstly, could anyone please tell me what's the philosophy behind
 'locking' the CD-ROM tray when a CD has been mounted.

So that you can't eject a mounted CD.

 Why can't I eject a mounted CD?

Because the VFS would be unhappy if mounted media suddenly disappeared
from under it (and was potentially replaced with something different).
That applies to all mounts, not just CDs.

 Additionally, is there some way with which I may eject mounted CDs?

Use subfs.

-- ams

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/

Event: Freedel 2005, 17th  18th September, 2005 - http://freedel.in


Re: [ilugd] Giving up on scratched CDs and ejecting mounted CDs

2005-09-27 Thread Saurabh Nanda
 Because the VFS would be unhappy if mounted media suddenly disappeared
 from under it (and was potentially replaced with something different).
 That applies to all mounts, not just CDs.

But doesn't the VFS already handle such situations with USB pen drives
and to some extent with network file systems as well?

--- Abhijit's Reply ---
 But doesn't the VFS already handle such situations with USB pen drives

No. Hotplug handles such things, not the VFS, and that's a comparatively
recent development. If you could write something that generated hotplug
events when you closed or opened the CD tray, I suppose you could make
it do the right thing.

subfs takes a different approach, but has much the same effect.


Nandz
PS: Re-posting on the list as it may be relevant to some.
--
http://nandz.blogspot.com
http://foodieforlife.blogspot.com

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/

Event: Freedel 2005, 17th  18th September, 2005 - http://freedel.in


Re: [ilugd] Giving up on scratched CDs and ejecting mounted CDs

2005-09-27 Thread Mayank Jain
On 9/27/05, Saurabh Nanda [EMAIL PROTECTED] wrote:
 Thus, one
 can't unmount the CD cuz it's supposedly busy, and one can't eject the
 CD cuz it's mounted. The only solution being a reboot.

# considering your cdrom is mounted somewhere on /mnt/cdrom
lsof | grep cdrom

kill -9 pid

--
regards,
makuchaku
---
http://makuchaku.info
When you speak out with the courage of your convictions, people listen!
-- Valmik Thapar, Wildlife Conservationist.

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/

Event: Freedel 2005, 17th  18th September, 2005 - http://freedel.in


Re: [ilugd] Giving up on scratched CDs and ejecting mounted CDs

2005-09-27 Thread Saurabh Nanda
 # considering your cdrom is mounted somewhere on /mnt/cdrom
 lsof | grep cdrom

 kill -9 pid

I've tried killing the process (say cp) but that doesn't solve the
problem. I'll try this as well.

But even this solution is a workaround! The CD driver should give up
after some time and throw an error!

Nandz.
--
http://nandz.blogspot.com
http://foodieforlife.blogspot.com

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/

Event: Freedel 2005, 17th  18th September, 2005 - http://freedel.in


Re: [ilugd] Giving up on scratched CDs and ejecting mounted CDs

2005-09-27 Thread Mayank Jain
On 9/27/05, Saurabh Nanda [EMAIL PROTECTED] wrote:
  # considering your cdrom is mounted somewhere on /mnt/cdrom
  lsof | grep cdrom
 
  kill -9 pid
 But even this solution is a workaround! The CD driver should give up
 after some time and throw an error!

Cant say what's the default read timeout for cdrom's. But yes, this
will surely kill the reading process. I use this almost everyday :-)

--
regards,
makuchaku
---
http://makuchaku.info
When you speak out with the courage of your convictions, people listen!
-- Valmik Thapar, Wildlife Conservationist.

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/

Event: Freedel 2005, 17th  18th September, 2005 - http://freedel.in


Re: [ilugd] Giving up on scratched CDs and ejecting mounted CDs

2005-09-27 Thread bimal pandit
Dear Sir,

---SNIP-

Thus, one can't unmount the CD cuz it's supposedly busy, and one can't eject the
CD cuz it's mounted. The only solution being a reboot.

---SNIP-

use umount -l device also could use fuser to identify the PID/Process 
which is making your device busy and then kill it.

please refer man pages of both for more options/clarifications.

regards,

Bimal Pandit
___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/

Event: Freedel 2005, 17th  18th September, 2005 - http://freedel.in