View Full Version : Lost access to USB Hard Drive in Babylon Beta
ShakeyBobWillis
2009-04-25, 23:43
I recently updated to XBMC Babylon (Beta) and I seem to have lost access to my external HDD plugged into the USB port. Or more specifically, lost access to it in file mode. I also can no longer add source folders from that HDD.
In filemanager, typically you can see the /dev and /mnt directories. The /mnt tree is typically where the external HDD is. I no longer even see the /dev and /mnt options in file manager. Which, as a side note, is kind of amusing because in the Babylon alpha I had like 4 /dev and 2 /mnt and couldn't remove the multiple extras.
I can play anything that's already in my library when I'm in library mode. When I go to file mode (any type...music, movies, tv shows, videos) all I get as a list are the plugins I have in (NBC, CBS, PBS) and the 'add source' option. I go into that but again, I no longer have a n option to add any folders from the external HDD. I have since deleted the entire database figuring that a fresh start might need, but now it doesn't pick anything up to repopulate the database.
Apple TV OS 2.3.0
Launcher 3.0
XBMC Babylon (beta1)
Installed via Launcher 3.0
Here's the most recent console log. http://pastebin.com/mfea9279
Most recent crash reporter log. http://pastebin.com/m25b68c19
I tried to pastebin the XBMC log but I keep getting a fatal error. Is there another way to send it?
althekiller
2009-04-25, 23:45
If there's no /dev/ entry, the kernel didn't recognize it so there's not much we can do.
ShakeyBobWillis
2009-04-25, 23:49
So what you're saying is XBMC Babylon will no longer let me access the external HDD?
Am I then to assume I should just go back to Atlantis and stay there?
althekiller
2009-04-25, 23:55
Actually I misread the first time, thinking you were using linux. I'm not 100 how osx handles the /dev directory. If it's anything like linux, the kernel hasn't seen the device so there's no way XBMC will be able to do anything with it in userspace.
ShakeyBobWillis
2009-04-26, 00:02
Actually I misread the first time, thinking you were using linux. I'm not 100 how osx handles the /dev directory. If it's anything like linux, the kernel hasn't seen the device so there's no way XBMC will be able to do anything with it in userspace.
That's what's confusing to me. While it didn't 'see' it to add more sources from it, it still allowed me to play anything that was already in the library database and through library view.
*edit* So that must mean that in some sense it is still seeing it.
althekiller
2009-04-26, 00:10
Probably going to need that xbmc debug log. Maybe try a different paste site or try to generate the log again in a much shorter session (ie start xbmc, generate log, close xbmc).
yea i second the bug, nitotv sees the usb drive fine, but its not listing the /Volumes/ stuff in XBMC.
I added a new source manually in XML for my usb drive, and it works fine. good for a temporary fix.
<source>
<name>USB Drive</name>
<path pathversion="1">/Volumes/USB DRIVE/</path>
</source>
ShakeyBobWillis
2009-04-26, 00:26
XBMC log
http://pastebin.com/m57c5afe0
ShakeyBobWillis
2009-04-26, 00:31
yea i second the bug, nitotv sees the usb drive fine, but its not listing the /Volumes/ stuff in XBMC.
I added a new source manually in XML for my usb drive, and it works fine. good for a temporary fix.
<source>
<name>USB Drive</name>
<path pathversion="1">/Volumes/USB DRIVE/</path>
</source>
Where exactly would I add that? What xml file?
althekiller
2009-04-26, 00:37
Don't worry about it. Users have no business adding sources manually anymore. If it's not working from the GUI, you need to complain until we fix it. :)
EDIT: That load of failed accesses to win32 looking paths is surely wrong. I've tickled davilla. I'm sure he'll comment when he has a chance.
ShakeyBobWillis
2009-04-26, 00:42
*complaincomplaincomplain* :D
Where exactly would I add that? What xml file?
its in the userdata folder of your XBMC install (sources.xml). but like althekiller said, i wouldn't recommend it unless you know what you are doing. i've been doing it since the xbmp days so its just a bad habit. i was just doing it to prove xbmc is still recognizing the usb port and it was just a problem with the source list.
humm, thanks for the heads up AlTheKiller.
Two things:
You log show lots of :
14:18:26 T:2684407808 M: 18309120 WARNING: Trying to access old style dir: C:\
14:18:26 T:2684407808 M: 18223104 WARNING: Trying to access old style dir: E:\
14:18:26 T:2684407808 M: 18223104 WARNING: Trying to access old style dir: F:\
like to track this down as I've never seen it before. If you could ssh in and "tail -f" xbmc.log then take notice what you are doing when this starts spewing.
http://trac.xbmc.org/changeset/19244 is responsible for the removal of /dev and /mnt from showing in the GUI.
I'll look into adding /mnt back, can't remember which of my AppleTV has USB enabled :)
I'd also like to see the output of "mount" when the USB drive is attached.
"mount" is parsed and the results used to show mounted volumes so something is getting excluded when the USB drive is attached.
if root or mnt could just be accessible through add source, that'd be good enough for me. it autodetecting stuff and automatically creating sources is overkill.
if root or mnt could just be accessible through add source, that'd be good enough for me. it autodetecting stuff and automatically creating sources is overkill.
still would like to see the output of "mount" when the USB drive is attached. this could be a very simple error to fix.
ShakeyBobWillis
2009-04-26, 03:17
humm, thanks for the heads up AlTheKiller.
Two things:
You log show lots of :
like to track this down as I've never seen it before. If you could ssh in and "tail -f" xbmc.log then take notice what you are doing when this starts spewing.
http://trac.xbmc.org/changeset/19244 is responsible for the removal of /dev and /mnt from showing in the GUI.
I'll look into adding /mnt back, can't remember which of my AppleTV has USB enabled :)
I'd also like to see the output of "mount" when the USB drive is attached.
"mount" is parsed and the results used to show mounted volumes so something is getting excluded when the USB drive is attached.
I'm a fairly novice ssh'er, what would be the actual command lines and steps I need to do to get you the info?
I also note you said that the /mnt was specifically removed. Is there another way I would be able to add a source on the USB port as the path is /mnt/Volumes/'HDD Name'?
still would like to see the output of "mount" when the USB drive is attached. this could be a very simple error to fix.
you want me to unmount and mount it manually or look in a certain log file? xbmc.log doesn't say anything when i replug it in, i do get an error in console log when i unplug it saying i didn't unmount it properly blah blah, but nothing when plugging it back it in.
I'm a fairly novice ssh'er, what would be the actual command lines and steps I need to do to get you the info?
I also note you said that the /mnt was specifically removed. Is there another way I would be able to add a source on the USB port as the path is /mnt/Volumes/'HDD Name'?
ssh in, type "mount", copy the results, paste here.
edit sources.xml and add;
<source>
<name>USB Drive</name>
<path pathversion="1">/mnt/Volumes/'HDD Name'</path>
</source>
ShakeyBobWillis
2009-04-26, 03:31
/dev/disk0s3 on / (local, journaled)
devfs on /dev (local)
fdesc on /dev (union)
<volfs> on /.vol
/dev/disk0s4 on /mnt (local, journaled)
/dev/disk1s1 on /mnt/Scratch/Volumes/MULTIMEDIA (local, journaled)
ShakeyBobWillis
2009-04-26, 03:33
What bout the other thing you mentioned about "tail -f" the xbmc log to see those "14:18:26 T:2684407808 M: 18309120 WARNING: Trying to access old style dir: C:\" type errors. I'll get that info for you too I, how do I go about that?
/dev/disk0s3 on / (local, journaled)
devfs on /dev (local)
fdesc on /dev (union)
<volfs> on /.vol
/dev/disk0s4 on /mnt (local, journaled)
/dev/disk1s1 on /mnt/Scratch/Volumes/MULTIMEDIA (local, journaled)
MULTIMEDIA is not showing it's file system. (local, journaled) implies hfs+ journaled.
normally it would show something like this;
/dev/disk0s2 on / (hfs, local, journaled)
thanks.
What bout the other thing you mentioned about "tail -f" the xbmc log to see those "14:18:26 T:2684407808 M: 18309120 WARNING: Trying to access old style dir: C:\" type errors. I'll get that info for you too I, how do I go about that?
startup xbmc on the atv
ssh in;
tail -f /Users/frontrow/Library/Logs/xbmc.log
now watch the output and when you do something on the atv that show the "WARNING: Trying to access old style dir: C:\" in the output, try and narrow it down to doing some action which causes the spew.
ShakeyBobWillis
2009-04-26, 03:44
startup xbmc on the atv
ssh in;
tail -f /Users/frontrow/Library/Logs/xbmc.log
now watch the output and when you do something on the atv that show the "WARNING: Trying to access old style dir: C:\" in the output, try and narrow it down to doing some action which causes the spew.
Ok. It started shooting out those errors when I went to Configure System-->Filemanager
*edit* after I clicked on and opened File Manager...not just directing to it.
ShakeyBobWillis
2009-04-26, 04:18
I took your suggestion of adding the Volumes into the sources.xml and that worked fine for allowing me to see the HDD and the various media folders in it. In File Manager, I can click on any media file and it will play.
Here's the source.xml file: http://pastebin.com/d2027bcab
However, when i go to Watch a Movie, or Listen to Music, etc. and try to rebuild the databases, when I go to File Mode (since the databases are empty right now nothing shows up on Library mode) the only two options I still get are VIDEO PLUGINS and ADD SOURCE.
When I go to ADD SOURCE and try to browse to the HDD it still doesn't show it (and this is previously where I would direct it to the HDD via the /mnt option. My only options are DVD Drive, HDHomrun, Home Folder, Replay TV, SAP, UPNP, Video playlists, video plugins, SMB, Add network Location.
I also have 'Update Library on Startup' enabled, but nothing happens
I took your suggestion of adding the Volumes into the sources.xml and that worked fine for allowing me to see the HDD and the various media folders in it. In File Manager, I can click on any media file and it will play.
Here's the source.xml file: http://pastebin.com/d2027bcab
However, when i go to Watch a Movie, or Listen to Music, etc. and try to rebuild the databases, when I go to File Mode (since the databases are empty right now nothing shows up on Library mode) the only two options I still get are VIDEO PLUGINS and ADD SOURCE.
When I go to ADD SOURCE and try to browse to the HDD it still doesn't show it (and this is previously where I would direct it to the HDD via the /mnt option. My only options are DVD Drive, HDHomrun, Home Folder, Replay TV, SAP, UPNP, Video playlists, video plugins, SMB, Add network Location.
I also have 'Update Library on Startup' enabled, but nothing happens
something strange here, sources.xml should have
<source>
<name>Volumes</name>
<path pathversion="1">/Volumes/</path>
</source>
in all the sections. preflight does this setup on new installs if it does not find ~/Library/Application\ Support/XBMC/.setup_complete
this an existing sources.xml from an AppleTV, pre-beta1
http://pastebin.com/m469bc465
ShakeyBobWillis
2009-04-26, 04:40
Should I just manually delete the sources.xml and let it repopulate itself?
Should I just manually delete the sources.xml and let it repopulate itself?
If you want to try. make a copy of your existing one, delete source.xml and
~/Library/Application\ Support/XBMC/.setup_complete
this is a hidden file (the dot in front) so "ls" will not show it, "ls -a" will.
then run xbmc.app and then preflight will run at startup because it will not find ".setup_complete".
then look at source.xml to see if it looks similar to mine.
ShakeyBobWillis
2009-04-26, 05:44
Ok, i deleted both of those files and ran XBMC.
Here's my source.xml now: http://pastebin.com/m5023ef26
Volumes now automatically shows up in File Manager and the files view and I can now set content for each media folder on the external HDD. It is currently repopulating my Movie database. This looks to have fixed the problem on my end. I don't know whether or not that still means somethings amiss when updating to Babylon beta 1 for other users in general.
Thanks for the help on a Saturday afternoon/evening. I appreciate it guys.
ok, this looks like it was a problem with a previous version of xbmc and the installed sources.xml. The current preflight code is working as designed and with a proper sources.xml and external USB drives can be seen under the Volumes source.
ShakeyBobWillis
2009-04-26, 06:03
Yeah. I like that Volumes shows up directly in Babylon. It saves a bunch of clicks when I have to do things like browse to add cover art manually, etc. Now I can skip clicking /mnt and /scratch every time as I make my way to the HDD.
Yeah. I like that Volumes shows up directly in Babylon. It saves a bunch of clicks when I have to do things like browse to add cover art manually, etc. Now I can skip clicking /mnt and /scratch every time as I make my way to the HDD.
yes, that's the way it should be working and one of the reasons that /dev and /mnt were nuked as they were redundant and confusing.