Bug 19369

Summary: Inadequate error reporting in "mount" command.
Product: Base System Reporter: zerkle <zerkle>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-STABLE   
Hardware: Any   
OS: Any   

Description zerkle 2000-06-19 00:10:01 UTC
When updating to 4.0-STABLE, I remembered to create /dev/acd0c for
my CD-ROM, but forgot to create /dev/acd0.  The fstab was correct.

/dev/acd0c              /cdrom          cd9660  ro,noauto       0       0

The error message that resulted was singularly unhelpful.  To wit:

su-2.03# mount /cdrom
cd9660: No such file or directory

Note the lack of mention of /dev/acd0, which is what I needed.

Doing it manually was no help, either:

su-2.03# mount_cd9660 /dev/acd0 /cdrom
mount_cd9660: No such file or directory

Fix: 

Update the error message code of mount or mount_cd9660, as
appropriate.

It should simply mention the full path name of the special device
file it wants.
How-To-Repeat: Remove acd0, attempt a mount, and see how unhelpful the
error messages are.
Comment 1 zerkle 2000-06-19 04:17:56 UTC
I'm not familiar with this followup mechanism.  Someone correct me if
I'm doing this wrong.

My "Description" section has a tiny error.  This was wrong:

su-2.03# mount_cd9660 /dev/acd0 /cdrom

Of course, I really meant:

su-2.03# mount_cd9660 /dev/acd0c /cdrom
Comment 2 iedowse freebsd_committer freebsd_triage 2001-08-25 23:55:56 UTC
State Changed
From-To: open->closed


This appears to have been fixed in both -current and -stable: 

# mount /cdrom 
cd9660: /dev/acd0c: No such file or directory 

Thanks for the bug report!