Re: umount - URGENT - solved (again)

2000-01-12 Thread Blazej Sawionek
It seemed to me that I already expressed may thanks, but apparently it didn't 
hit the right person.
So once again:
among lots of pieces of advice (I remain grateful to everybody who wanted to be 
helpful) I got two answers that really solved my problem:
1)
Dave Sherohman wrote:
 lsof should give you the pid of any processess using it.

2)
[EMAIL PROTECTED] wrote:
 Try man fuser and learn how to find out which process is still blocking
 the device.

Thanks again!
Blazej

I know it is a bit late, but I havent read my mail since than. This is in reply 
to:
Dave Sherohman wrote:
 
 Wayne Topa said:
  Try a paper clip, strightened out, and inserted into the little hole
  in the front of the CDROM drive.  Works on the 3 I have.
 
 I thought you weren't supposed to do that while the system is powered up.
 Something about possibly damaging the hardware.  Is that no longer a problem?
 (Or did I just image the whole thing...)


Re: umount - URGENT

2000-01-10 Thread Dave Wiard
 A better instruction would be to umount /dev/cdrom,
 since this will almost always be a symlink pointing to
 your cdrom device.  Far more systems use /dev/cdrom
 for their cdrom devices than use /dev/hdd, because
 this includes nearly everybody with /dev/hdd,
 /dev/sdd, /dev/hdsomeotherletter and
 /dev/sdsomeotherletter as the cdrom device.

that's great, but what if the problematic cd happens to be the second cd 
device?  /dev/cdrom won't help if that's the case, so using 
/dev/thedevice is a better choice, IMHO, if you know the device you want
to umount.

--
dave wiard
[EMAIL PROTECTED]


Re: umount - URGENT

2000-01-08 Thread Wayne Topa

Subject: Re: umount - URGENT
Date: Fri, Jan 07, 2000 at 02:12:33PM -0600

In reply to:Dave Sherohman

Quoting Dave Sherohman([EMAIL PROTECTED]):
| Wayne Topa said:
|  Try a paper clip, strightened out, and inserted into the little hole
|  in the front of the CDROM drive.  Works on the 3 I have.
| 
| I thought you weren't supposed to do that while the system is powered up.
| Something about possibly damaging the hardware.  Is that no longer a problem?
| (Or did I just image the whole thing...)

I don't recall reading that warning anywhere.  I have had to do it on
each of the 3 CDROM systems over the past 5 years and they are all
still working.  Of course I may just be using the right brand of
paperclip.  :-)YMMV

Regards
-- 
I have a dream: 1073741824 bytes free.
___


Re: umount - URGENT

2000-01-08 Thread Fish Smith
Use in every console 'cd' to take the user to 'the
home'. CD insn't
anybodys's home at your computer? 

Then using 'su' umount it by giving 'umount dev/hdd'
(assuming that
your
cd is at hdd as mine...) 

A better instruction would be to umount /dev/cdrom,
since this will almost always be a symlink pointing to
your cdrom device.  Far more systems use /dev/cdrom
for their cdrom devices than use /dev/hdd, because
this includes nearly everybody with /dev/hdd,
/dev/sdd, /dev/hdsomeotherletter and
/dev/sdsomeotherletter as the cdrom device.

And you might want to watch using cd for two diff.
meanings within the same sentence.  you did it twice
and I found it rather confusing until I reread your
post twice.

Tschus,

=
Fish of Borg
Visit me on the web!  
http://www.geocities.com/TimesSquare/Frontier/4874/stccg.html 
///Archaeologists near mount Sinai have discovered what appears to be a missing 
page from the Bible.  The page is currently being carbon dated in Bonn.  If 
genuine it belongs at the beginning of the Bible and is believed to read To my 
Darling Candy.  All Characters portrayed within this book are fictitious and 
any resemblance to persons living or dead is entirely coincidental.///Red Dwarf
__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com


Re: umount - URGENT

2000-01-08 Thread Nathan E Norman
On Fri, 7 Jan 2000, Michael Stenner wrote:

 : On Fri, Jan 07, 2000 at 05:47:37PM +0100, Blazej Sawionek wrote:
 :  I've just fallen into serious trouble: can not umount my CD-ROM - it
 :  is reported as beeing used.  I'm sure it is not, what may have
 :  happened is that I was examining it's contents with `mc' which died
 :  suddenly.
 : 
 :  I desperatly need this CD out _right_now_ so please if anybody knows
 :  the answer - give it ASAP.
 : 
 : For future reference...
 : 
 : while it's a good habit to demand successful umounts before removing
 : media, remember that it IS a cdROM after all.  You're certainly not
 : going to damage it by just pushing the button and taking the thing
 : out.  Sure the os will complain, but you'll have the disk in your
 : hand.

If the OS does complain, edit /etc/mtab

(Again, this should never be done with rw media!!)

--
Nathan Norman
MidcoNet  410 South Phillips Avenue  Sioux Falls, SD
mailto:[EMAIL PROTECTED]   http://www.midco.net
finger [EMAIL PROTECTED] for PGP Key: (0xA33B86E9)



umount - URGENT

2000-01-07 Thread Blazej Sawionek
I've just fallen into serious trouble:
can not umount my CD-ROM - it is reported as beeing used.
I'm sure it is not, what may have happened is that I was examining it's 
contents with `mc' which died suddenly.

I desperatly need this CD out _right_now_ so please if anybody knows the answer 
- give it ASAP.

Blazej


Re: umount - URGENT

2000-01-07 Thread Robert Waldner
maybe mc is hasn't died completely? with ist working directory pointing to the 
the cdrom? or you have another wd to the cd anywhere else...

On Fri, 07 Jan 2000 17:47:37 +0100, Blazej Sawionek writes:
I've just fallen into serious trouble:
can not umount my CD-ROM - it is reported as beeing used.
I'm sure it is not, what may have happened is that I was examining it's conten
ts with `mc' which died suddenly.

I desperatly need this CD out _right_now_ so please if anybody knows the answe
r - give it ASAP.

Blazej


-- 
-- +++ EUnet/[EMAIL PROTECTED], 15.-17.2.'2k, Ebene02/Stand08 +++
- ___   - Robert WaldnerEUnet/AT tech staff 
 //   /  ___   _/_ -- [EMAIL PROTECTED]   RW960-RIPE
--- /--- /   / /   / /___/ /  --- ---EUnet EDV-DienstleistungsgesmbH---
-- /___ /___/ /   / /___  /_  Diefenbachgasse 35A-1150 Wien
-   - Tel: +43 1 89933 Fax: +43 1 89933 533



Re: umount - URGENT

2000-01-07 Thread I can. Thank you.
if anyone has a shell open that is is within the directory structure of
the cd then it will report as being in use when you try to unmount
it. make sure every account logged on to the machine is in a different
directory (ie home directory) and you should be able to get the cd out

On Fri, 7 Jan 2000, Blazej Sawionek wrote:

 I've just fallen into serious trouble:
 can not umount my CD-ROM - it is reported as beeing used.
 I'm sure it is not, what may have happened is that I was examining it's 
 contents with `mc' which died suddenly.
 
 I desperatly need this CD out _right_now_ so please if anybody knows the 
 answer - give it ASAP.
 
 Blazej
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 
 


Re: umount - URGENT

2000-01-07 Thread Todd Suess

Perhaps a reboot would free the device?  I know it's drastic,
but you did say RIGHT NOW.

Regards,

Todd



At 05:52 PM 1/7/00 +0100, Robert Waldner wrote:
maybe mc is hasn't died completely? with ist working directory pointing to 
the the cdrom? or you have another wd to the cd anywhere else...


On Fri, 07 Jan 2000 17:47:37 +0100, Blazej Sawionek writes:
I've just fallen into serious trouble:
can not umount my CD-ROM - it is reported as beeing used.
I'm sure it is not, what may have happened is that I was examining it's 
conten

ts with `mc' which died suddenly.

I desperatly need this CD out _right_now_ so please if anybody knows the 
answe

r - give it ASAP.

Blazej


--
-- +++ EUnet/[EMAIL PROTECTED], 15.-17.2.'2k, Ebene02/Stand08 +++
- ___   - Robert WaldnerEUnet/AT tech staff
 //   /  ___   _/_ -- [EMAIL PROTECTED]   RW960-RIPE
--- /--- /   / /   / /___/ /  --- ---EUnet EDV-DienstleistungsgesmbH---
-- /___ /___/ /   / /___  /_  Diefenbachgasse 35A-1150 Wien
-   - Tel: +43 1 89933 Fax: +43 1 89933 533



--
Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  
/dev/null


Re: umount - URGENT

2000-01-07 Thread Dave Sherohman
Blazej Sawionek said:
 I've just fallen into serious trouble:
 can not umount my CD-ROM - it is reported as beeing used.
 I'm sure it is not, what may have happened is that I was examining it's 
 contents with `mc' which died suddenly.
 
 I desperatly need this CD out _right_now_ so please if anybody knows the 
 answer - give it ASAP.

lsof should give you the pid of any processess using it.  Then just bring out
the kill -9...

-- 
Geek Code 3.1:  GCS d- s+: a- C++ UL++$ P L++ E- W--(++) N+ o+ !K
w---$ O M- !V PS+ PE Y+ PGP t 5++ X+ R++ tv- b++ DI D G e* h+ r++ y+


Re: umount - URGENT

2000-01-07 Thread pseelig
On Fri, 7 Jan 2000, Blazej Sawionek wrote:

 can not umount my CD-ROM - it is reported as beeing used.
(...)
 I desperatly need this CD out _right_now_ so please if anybody knows
 the answer - give it ASAP.
 
Try man fuser and learn how to find out which process is still blocking
the device.
Cheers, P. *8^)
-- 
If not specific to HP please always reply to 
Paul Seelig [EMAIL PROTECTED]


Re: umount - URGENT

2000-01-07 Thread Michael Stenner
On Fri, Jan 07, 2000 at 05:47:37PM +0100, Blazej Sawionek wrote:
 I've just fallen into serious trouble: can not umount my CD-ROM - it
 is reported as beeing used.  I'm sure it is not, what may have
 happened is that I was examining it's contents with `mc' which died
 suddenly.

 I desperatly need this CD out _right_now_ so please if anybody knows
 the answer - give it ASAP.

For future reference...

while it's a good habit to demand successful umounts before removing
media, remember that it IS a cdROM after all.  You're certainly not
going to damage it by just pushing the button and taking the thing
out.  Sure the os will complain, but you'll have the disk in your
hand.

(Do not apply this advice to floppies, zip disks, etc.)

   -Michael
   
-- 
  Michael Stenner   Office Phone: 919-660-2513
  Duke University, Dept. of Physics   [EMAIL PROTECTED]
  Box 90305, Durham N.C. 27708-0305


Re: umount - URGENT

2000-01-07 Thread Carl Fink
On Fri, Jan 07, 2000 at 01:52:15PM -0500, Michael Stenner wrote:
 while it's a good habit to demand successful umounts before removing
 media, remember that it IS a cdROM after all.  You're certainly not
 going to damage it by just pushing the button and taking the thing
 out.  Sure the os will complain, but you'll have the disk in your
 hand.

I've hever been able to open a CD drive without unmounting the volume -- the
drawer won't open.
-- 
Carl Fink   [EMAIL PROTECTED]
Manager, Dueling Modems Computer Forum
http://dm.net


Re: umount - URGENT

2000-01-07 Thread virtanen

Try to see, if there is someone in some other console using it anyway. 
If 'anybody' is cd'd on your cd's directories you cannot umount it I
think.

Use in every console 'cd' to take the user to 'the home'. CD insn't
anybodys's home at your computer? 

Then using 'su' umount it by giving 'umount dev/hdd' (assuming that your
cd is at hdd as mine...) 

Did it work?

hv 


Re: umount - URGENT

2000-01-07 Thread Brian Servis
*- On  7 Jan, Carl Fink wrote about Re: umount - URGENT
 On Fri, Jan 07, 2000 at 01:52:15PM -0500, Michael Stenner wrote:
 while it's a good habit to demand successful umounts before removing
 media, remember that it IS a cdROM after all.  You're certainly not
 going to damage it by just pushing the button and taking the thing
 out.  Sure the os will complain, but you'll have the disk in your
 hand.
 
 I've hever been able to open a CD drive without unmounting the volume -- the
 drawer won't open.

Along the same linesthis is the one mechanism of mac/sun/other(?)
floppies that I would like to see somehow on x86 machines.  I would much
rather have a 'soft' eject button like on a cdrom or a software eject
like the mac/sun floppies rather than a mechanical eject like on the x86
floppies.

Does anybody know the fundemental reasons why the x86 platform has not
adopted such a setup?

Thanks,

Brian Servis
-- 

Mechanical Engineering  |  Never criticize anybody until you  
Purdue University   |  have walked a mile in their shoes,
[EMAIL PROTECTED]   |  because by that time you will be a
http://www.ecn.purdue.edu/~servis   |  mile away and have their shoes.


RE: umount - URGENT

2000-01-07 Thread Dave Wiard
 while it's a good habit to deman successful umounts before removing
 media, remember that it IS a cdROM after all.  You're certainly not
 going to damage it by just pushing the button and taking the thing
 out.  Sure the os will complain, but you'll have the disk in your
 hand.

thous this isn't always an option.  my cd drive, when mounted, is hardware
locked so the tray won't open until the OS unlocks it.  simply pushing the
button won't do anything.

--
dave wiard
[EMAIL PROTECTED]


Re: umount - URGENT

2000-01-07 Thread Wayne Topa

Subject: Re: umount - URGENT
Date: Fri, Jan 07, 2000 at 01:58:50PM -0500

In reply to:Carl Fink

Quoting Carl Fink([EMAIL PROTECTED]):
| On Fri, Jan 07, 2000 at 01:52:15PM -0500, Michael Stenner wrote:
|  while it's a good habit to demand successful umounts before removing
|  media, remember that it IS a cdROM after all.  You're certainly not
|  going to damage it by just pushing the button and taking the thing
|  out.  Sure the os will complain, but you'll have the disk in your
|  hand.
| 
| I've hever been able to open a CD drive without unmounting the volume -- the
| drawer won't open.

Try a paper clip, strightened out, and inserted into the little hole
in the front of the CDROM drive.  Works on the 3 I have.

HTH
-- 
ASCII stupid question, get a stupid ANSI!
___


Soft ejects (was Re: umount - URGENT)

2000-01-07 Thread Gary Hennigan
Brian Servis [EMAIL PROTECTED] writes:
 *- On  7 Jan, Carl Fink wrote about Re: umount - URGENT
  On Fri, Jan 07, 2000 at 01:52:15PM -0500, Michael Stenner wrote:
  while it's a good habit to demand successful umounts before removing
  media, remember that it IS a cdROM after all.  You're certainly not
  going to damage it by just pushing the button and taking the thing
  out.  Sure the os will complain, but you'll have the disk in your
  hand.
  
  I've hever been able to open a CD drive without unmounting the volume -- the
  drawer won't open.
 
 Along the same linesthis is the one mechanism of mac/sun/other(?)
 floppies that I would like to see somehow on x86 machines.  I would much
 rather have a 'soft' eject button like on a cdrom or a software eject
 like the mac/sun floppies rather than a mechanical eject like on the x86
 floppies.
 
 Does anybody know the fundemental reasons why the x86 platform has not
 adopted such a setup?

This is personal preference, of course, but I hate the soft button
setup. To me it seems to be one of those the machine is smarter than
the operator type deals, and, in general, my machine isn't smarter
than me (note the in general;).

My SGI is entirely soft button. If it crashes sometimes I can't even
turn the power off on it, I end up having to unplug the stupid thing
to reset it!

Of course it wouldn't be a determining factor on my decision to buy a
machine, but it would be a factor.

Gary


Re: umount - URGENT

2000-01-07 Thread Dave Sherohman
Wayne Topa said:
 Try a paper clip, strightened out, and inserted into the little hole
 in the front of the CDROM drive.  Works on the 3 I have.

I thought you weren't supposed to do that while the system is powered up.
Something about possibly damaging the hardware.  Is that no longer a problem?
(Or did I just image the whole thing...)

-- 
Geek Code 3.1:  GCS d- s+: a- C++ UL++$ P L++ E- W--(++) N+ o+ !K
w---$ O M- !V PS+ PE Y+ PGP t 5++ X+ R++ tv- b++ DI D G e* h+ r++ y+


Re: Soft ejects (was Re: umount - URGENT)

2000-01-07 Thread Dave Sherohman
Gary Hennigan said:
 My SGI is entirely soft button. If it crashes sometimes I can't even
 turn the power off on it, I end up having to unplug the stupid thing
 to reset it!

That's excessive, of course, but I'd like to see something along the lines of
the option on most ATX BIOSes to have a manual poweroff require you to hold
in the power button for 4 seconds.  This prevents you from absent-mindedly
turning it off at a Bad Time, while still allowing a 'manual override' if
your OS crashes.  The same concept applies to disks, etc.  (I don't like to
think about all the times I've switched floppies, tried to mount the new one,
and discovered that I forgot to unmount the previous disk...)

The problem here, though, is that if something manages to crash the BIOS (or
internal drive circuitry) controlling the sticky button, you're SOL again,
just like with your SGI.  But those sorts of things tend to not crash, so I
doubt that it's a major problem.

-- 
Geek Code 3.1:  GCS d- s+: a- C++ UL++$ P L++ E- W--(++) N+ o+ !K
w---$ O M- !V PS+ PE Y+ PGP t 5++ X+ R++ tv- b++ DI D G e* h+ r++ y+


Re: umount - URGENT

2000-01-07 Thread MallarJ2
In a message dated 1/7/2000 12:56:05 PM Central Standard Time, 
[EMAIL PROTECTED] writes:

 while it's a good habit to demand successful umounts before removing
  media, remember that it IS a cdROM after all.  You're certainly not
  going to damage it by just pushing the button and taking the thing
  out.  Sure the os will complain, but you'll have the disk in your
  hand.
  

I don't know about you - but I have two PCs that won't let me eject the CD 
unless I umount the device.

Perhaps an undocumented feature?

-Jay


Re: umount - URGENT

2000-01-07 Thread Michael Stenner
On Fri, Jan 07, 2000 at 03:56:17PM -0500, [EMAIL PROTECTED] wrote:
 In a message dated 1/7/2000 12:56:05 PM Central Standard Time, 
 [EMAIL PROTECTED] writes:
 
  while it's a good habit to demand successful umounts before removing
   media, remember that it IS a cdROM after all.  You're certainly not
   going to damage it by just pushing the button and taking the thing
   out.  Sure the os will complain, but you'll have the disk in your
   hand.
   
 
 I don't know about you - but I have two PCs that won't let me eject the CD 
 unless I umount the device.
 
 Perhaps an undocumented feature?

I think mine has (I know my old one did) a little hole, which I call
the No, Really! button.  Made for a paper clip to stick in.  I have
used this method while powered up before with no obvious bad results.
I can't promise the same good fortune for all drives, though.

Let me just take this moment to complain that while automating all of
these things can be nifty, it's real pain sometimes, too.  I wish
manufactures would take more care in providing good physical overrides 
that don't say pushing this button will eject your cd, but it may
also trash the drive.

-Michael

-- 
  Michael Stenner   Office Phone: 919-660-2513
  Duke University, Dept. of Physics   [EMAIL PROTECTED]
  Box 90305, Durham N.C. 27708-0305


Re: umount - URGENT

2000-01-07 Thread Miquel van Smoorenburg
In article [EMAIL PROTECTED],
Brian Servis  [EMAIL PROTECTED] wrote:
Along the same linesthis is the one mechanism of mac/sun/other(?)
floppies that I would like to see somehow on x86 machines.  I would much
rather have a 'soft' eject button like on a cdrom or a software eject
like the mac/sun floppies rather than a mechanical eject like on the x86
floppies.

Does anybody know the fundemental reasons why the x86 platform has not
adopted such a setup?

Because the crappy cheap x86 PC hardware doesn't support it ?

Mike.
-- 
There's a lot to be said for not saying a lot.
-- 
The From: and Reply-To: addresses are internal news2mail gateway addresses.
Reply to the list or to [EMAIL PROTECTED] (Miquel van Smoorenburg)


Re: umount - URGENT

2000-01-07 Thread Rob Mahurin
On Fri, Jan 07, 2000 at 03:56:17PM -0500, [EMAIL PROTECTED] wrote:
 In a message dated 1/7/2000 12:56:05 PM Central Standard Time, 
 [EMAIL PROTECTED] writes:
 
  while it's a good habit to demand successful umounts before removing
   media, remember that it IS a cdROM after all.  You're certainly not
   going to damage it by just pushing the button and taking the thing
   out.  Sure the os will complain, but you'll have the disk in your
   hand.
   
 
 I don't know about you - but I have two PCs that won't let me eject the CD 
 unless I umount the device.
 
 Perhaps an undocumented feature?
 

In /usr/src/linux/drivers/block/ide-cd.c:

 * 3.00  Aug 22, 1995 -- Implement CDROMMULTISESSION ioctl.
 *   Implement CDROMREADAUDIO ioctl (UNTESTED).
 *   Use input_ide_data() and output_ide_data().
 *   Add door locking.

Rob

-- 
Dump the condiments.  If we are to be eaten, we don't need to taste good.
-- Visionaries cartoon