Re: umount problem with sbpcd

Darren J Moffat (darren@xarius.demon.co.uk)
Tue, 28 May 1996 12:33:37 +0100 (BST)


On Mon, 27 May 1996, Mirko Manea wrote:

> as root and type an umount /cdrom.

I don't have this problem.

> gulliver:~$ uname -a
> Linux gulliver 1.99.7 #1-pre-2.0 Wed May 22 21:31:38 MET DST 1996 i486
> gulliver:~$ cat /etc/fstab
> /dev/hda1 / ext2 defaults 1 1
> none /proc proc defaults 1 1
> /dev/cdrom /cdrom iso9660 defaults,user,noauto,ro 0 0
> /dev/fd0 /floppy/msdos msdos defaults,user,noauto 0 0
> /dev/fd0 /floppy/ext2 ext2 defaults,user,noauto 0 0

looks fine and very similar to my setup.

> gulliver:~$ mount -V
> (u)mount: version from util-linux-2.4
> gulliver:~$ mount /cdrom
> gulliver:~$ fuser -vm /cdrom # Nobody is using the mounted cdrom
> gulliver:~$ umount /cdrom
> umount: /cdrom mount disagrees with the fstab

Okay, I've worked it out (I think) you have /dev/cdrom as a symlink to
/dev/sbpcd right?

Either change the entry in /etc/fstab to be sbpcd or make cdrom a proper
device special file not a symlink. The other thing that may be a bit
wrong is specifying defaults and then other params, you generally do one
or the other (although doing both is correct, just a wee bit weird)

Here's my setup FYI.

/dev/hdb1 / ext2 defaults 1 1
/boot/swap swap swap defaults 0 0
/dev/hdb3 /usr ext2 defaults 1 2
/dev/hdb4 /usr/local ext2 defaults 1 3
none /proc proc defaults 0 0
/dev/hda1 /dos msdos noauto,user 1 0
/dev/cdrom /cdrom iso9660 noauto,user,ro 0 0
/dev/cdrom /cdrom/sunsite iso9660 noauto,user,ro 0 0
/dev/cdrom /cdrom/slackware iso9660 noauto,user,ro 0 0
/dev/cdrom /cdrom/disk3 iso9660 noauto,user,ro 0 0
/dev/cdrom /cdrom/disk4 iso9660 noauto,user,ro 0 0
/dev/fd0 /mnt msdos noauto,user 0 0

brw-r--r-- 1 root root 25, 0 Feb 2 22:54 /dev/cdrom

--
Darren J Moffat