[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: umount



Something like

apt-get install lsof
lsof +D /cdrom

will show you the processes holding the device busy.
The following will kill all those processes (for which you have the permission):

kill `lsof +D /cdrom -t`; kill -HUP `lsof +D /cdrom -t`; sleep 10; kill -9 `lsof +D /cdrom -t`

(Not tested since I do not have a cdrom around)

Gui unmount programs should (and maybe some even do?) have nicer handling, i.e. show the user the processes having open files on the device and asking whether they should kill those processes.

Christian.


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: