lkml.org 
[lkml]   [2000]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: EEK! Able to eject mounted Zip Disk (2.3.46/2.2.13)
On Thu, Mar 02, 2000 at 11:08:58AM +0000, Simon Huggins wrote:

> [root@byers /home/www]# mount /mnt/zip
> [root@byers /home/www]# eject /dev/sdb
>
> Click and out it comes...
>
> [root@byers /home/www]# mount
> /dev/sdb4 on /mnt/zip type vfat (rw,gid=1000,umask=007)
> [root@byers /home/www]# mount /mnt/zip
> mount: /dev/sdb4 already mounted or /mnt/zip busy
> mount: according to mtab, /dev/sdb4 is already mounted on /mnt/zip
>
> If I do:
> eject /dev/sdb4
> then it tells me it's mounted and refuses.

I suspect the following:
- eject uses privately constructed SCSI commands to eject your disk
so you are doing this entirely behind the back of everybody,
the kernel does not know what you did.
- refusing to eject /dev/sdb4 is something eject.c does for you;
you might fix eject.c to also refuse /dev/sdb; send the patch
to the maintainer.


-
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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.069 / U:0.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site