Subject: forcible umount of already removed cdrom?
To: None <netbsd-help@netbsd.org>
From: Darrin B. Jewell <jewell@mit.edu>
List: netbsd-help
Date: 12/21/1998 20:02:51
On a 1.3.2 sparc system, I had /dev/cd0a mounted
on /cdrom.  While it was still mounted, the drive
was opened and the disk removed.  Is there a way to
un-mount the disk without rebooting the system so
I can then mount another disk and use the cdrom drive?

Thanks,
Darrin

# cat /etc/fstab
/dev/sd0a / ffs rw 1 1
/dev/sd0b none swap sw
/dev/sd0e /var ffs rw 1 1
/dev/sd0f /usr ffs ro 1 1
/dev/sd0g /u1 ffs rw 1 1
/dev/sd0h /u2 ffs rw 1 1
/dev/cd0a /cdrom cd9660 ro,noauto 0 0

# mount
/dev/sd0a on / type ffs (local)
/dev/sd0f on /usr type ffs (local, read-only)
/dev/sd0e on /var type ffs (NFS exported, local)
/dev/sd0g on /u1 type ffs (local)
/dev/sd0h on /u2 type ffs (local)
/dev/cd0a on /cdrom type cd9660 (local, read-only)

# umount /cdrom
umount: /cdrom: Input/output error

# umount -f /cdrom
umount: /cdrom: Input/output error

# mount
/dev/sd0a on / type ffs (local)
/dev/sd0f on /usr type ffs (local, read-only)
/dev/sd0e on /var type ffs (NFS exported, local)
/dev/sd0g on /u1 type ffs (local)
/dev/sd0h on /u2 type ffs (local)
/dev/cd0a on /cdrom type cd9660 (local, read-only)