An open community 
of Macintosh users,
for Macintosh users.

FineTunedMac Dashboard widget now available! Download Here

Previous Thread
Next Thread
Print Thread
Device not configured
#19824 12/24/11 01:33 PM
Joined: Aug 2009
OP Offline

Joined: Aug 2009
I was working quite a bit yesterday with external drives and a couple got uncleanly dismounted. I noticed an error in my backup log this morning that turned out to be a defunct mount point in /Volumes.

But I can't get rid of it. Normally I'd just rm -d it or even trash it from Finder, but this one doesn't want to go away.

Code:
apple:/Volumes nfisher $ ls
MBP		Service Data 1

apple:/Volumes nfisher $ ls -la
ls: Service Data 1: Device not configured
total 8
drwxrwxrwt@  4 root  admin   136 Dec 23 16:29 .
drwxrwxr-x@ 88 root  admin  3060 Dec 23 12:36 ..
lrwxr-xr-x   1 root  admin     1 Dec 14 19:29 MBP -> /

apple:/Volumes nfisher $ rm -d Service\ Data\ 1
rm: Service Data 1: Device not configured

apple:/Volumes nfisher $ cd /dev

apple:/dev nfisher $ ls -la | grep disk
brw-r-----   1 root     operator   14,   0 Dec 14 19:28 disk0
brw-r-----   1 root     operator   14,   1 Dec 14 19:28 disk0s1
brw-r-----   1 root     operator   14,   2 Dec 14 19:28 disk0s2
brw-r-----   1 nfisher  operator   14,   6 Dec 23 14:25 disk1s3
crw-r-----   1 root     operator   14,   0 Dec 14 19:28 rdisk0
crw-r-----   1 root     operator   14,   1 Dec 14 19:28 rdisk0s1
crw-r-----   1 root     operator   14,   2 Dec 14 19:28 rdisk0s2
crw-r-----   1 nfisher  operator   14,   6 Dec 23 14:25 rdisk1s3

apple:/dev nfisher $ disktool -u /Volumes/Service\ Data\ 1 
/Volumes/Service Data 1 device will be unmounted ...
***Notifications Complete for type 1
***Responding yes to unmount - disk1s3
***Disk NOT Unmounted('disk1s3'), errorCode(16), dissenter(-1)
*** Call Failed  disk1s3, 1, 16 ***

apple:/dev nfisher $ disktool -u rdisk1s3
rdisk1s3 device will be unmounted ...
***Notifications Complete for type 1
^C
(hangs)

apple:/dev nfisher $ umount /Volumes/Service\ Data\ 1 
umount: unmount(/Volumes/Service Data 1): Device not configured

apple:/dev nfisher $ hdiutil eject /Volumes/Service\ Data\ 1 
hdiutil: eject failed - Device not configured


So, am I rebooting to fix this? I don't like to surrender to things like this... it does not show up in disk utility


I work for the Department of Redundancy Department
Re: Device not configured
Virtual1 #19826 12/24/11 04:53 PM
Joined: Sep 2009
Offline

Joined: Sep 2009
Originally Posted By: Virtual1
apple:/Volumes nfisher $ ls
MBP Service Data 1

apple:/Volumes nfisher $ ls -la
ls: Service Data 1: Device not configured

"Device not configured" is a strange error for a simple ls command.

Usually a bad mount turns up as a basic directory... but that one seems to be in some state of limbo (somewhere between a mount and a folder).

When things get tricky, I normally like to see more info than the ordinary -la options (such as ACLs, flags, xattrs and even inode numbers). Given the strange error you got, i don't expect this to work... but i would've liked to have seen:

ls -Orbitlake@ /Volumes


Your prompt being $ tells me you weren't in a root shell... so chances are that sudo was probably needed for rm to work. But again, that "Device not configured" is not something i've ever had to deal with before.

It may have been useful to see these two commands as well:

df -h

mount



Last edited by Hal Itosis; 12/24/11 04:57 PM.
Re: Device not configured
Hal Itosis #19828 12/24/11 07:01 PM
Joined: Aug 2009
OP Offline

Joined: Aug 2009

Code:
apple:/Volumes root # ls
MBP		Service Data 1
apple:/Volumes root # ls -Orbitlake@ .
ls: Service Data 1: Device not configured
total 4
1743189 lrwxr-xr-x   1 root  admin  -         1 Dec 14 19:29 MBP -> /
      2 drwxrwxr-x@ 88 root  admin  -      3060 Dec 23 12:36 ..
	com.apple.FinderInfo	  32 
	com.apple.metadata:kMDItemFinderComment	  42 
1742250 drwxrwxrwt@  4 root  admin  hidden  136 Dec 23 16:29 .
	com.apple.FinderInfo	  32 
 0: group:everyone deny add_file,add_subdirectory,directory_inherit,only_inherit
apple:/Volumes root # rm -d Service\ Data\ 1 
rm: Service Data 1: Device not configured

orbit lake huh? that's an easy one to remember



I work for the Department of Redundancy Department
Re: Device not configured
Virtual1 #19832 12/24/11 10:09 PM
Joined: Sep 2009
Offline

Joined: Sep 2009
It is truly bizarre that plain old ls does list the directory entry showing the name for 'Service Data 1' ...but the long option -l seems to give that error.

The inode number for /Volumes (1742250) is not only high but very close to the value for the symlink pointing to / which gets refreshed every boot... suggesting that the /Volumes folder itself may have been recently (re)created. Not that that tells us much, but it does seem unusual to me. E.g., checking the creation date of /Volumes on my 2010 MBP:

$ mdls -name kMDItemFSCreationDate /Volumes
kMDItemFSCreationDate = 2009-05-18 14:29:24 -0400

while that metadata may be the result of a migration, something tells me that your /Volumes folder has recently undergone a replacement or something. (::shrug::)

What do you see in /Volumes when you go there with Finder? Does it show any icon for Service Data 1? Is its kind an alias or a folder or what?

--

I think rebooting is probably the best/only track... as that item is in a very odd state, and it may not be wise to try fiddling with matters in that case.

You skipped my other 2 commands for some reason [?]


Re: Device not configured
Hal Itosis #19839 12/25/11 04:38 AM
Joined: Aug 2009
OP Offline

Joined: Aug 2009
Originally Posted By: Hal Itosis

You skipped my other 2 commands for some reason [?]

whoopsie

Code:
apple:~ root # df -h
Filesystem      Size   Used  Avail Capacity  Mounted on
/dev/disk0s2   698Gi  415Gi  284Gi    60%    /
devfs          108Ki  108Ki    0Bi   100%    /dev
map -hosts       0Bi    0Bi    0Bi   100%    /net
map auto_home    0Bi    0Bi    0Bi   100%    /home
map -fstab       0Bi    0Bi    0Bi   100%    /Network/Servers
/dev/disk1s3    41Gi   19Gi   22Gi    48%    /Volumes/Service Data 1
apple:~ root # mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
map -fstab on /Network/Servers (autofs, automounted, nobrowse)
/dev/disk1s3 on /Volumes/Service Data 1 (hfs, local, nodev, nosuid, journaled, noowners)


I work for the Department of Redundancy Department
Re: Device not configured
Virtual1 #33256 03/03/15 06:33 PM
Joined: Mar 2015
Offline

Joined: Mar 2015
I experienced similar (but not identical) behavior, and eventually found that I had a Terminal.app tab where the current directory was under the mount point in a directory that no longer existed. When I cd’d out of the directory I was able to unmount it as normal.

Re: Device not configured
orinthe #33257 03/03/15 07:02 PM
Joined: Aug 2009
OP Offline

Joined: Aug 2009
yep I still don't quite understand why having a shell opened CD'd to a folder prevents the folder from being removed.


I work for the Department of Redundancy Department

Moderated by  alternaut, dkmarsh, joemikeb 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.4.33 Page Time: 0.019s Queries: 28 (0.012s) Memory: 0.6046 MB (Peak: 0.6811 MB) Data Comp: Zlib Server Time: 2024-03-28 14:22:29 UTC
Valid HTML 5 and Valid CSS