ext2 USB hard disk doesn't mount
#1
I have an usb adatpater that i use to hook my pata 2,5" hd to my htpc, the hd is formatted ext2. The problem is that xbmc doesn't mount at all the disk, here's my specs:


XBMC version: r22817
Linux version: Gentoo 2008, updated 13/09/09. Whole system built from source with custom CFLAGS.
Architecture: x86_64
Install method: using gentoo ebuild, compiled from sources
Kernel: 2.6.30-gentoo-r4

Hardware: Zotac ION-itx with NVIDIA ION and ATOM 330 dual core.

my log: http://pastebin.com/m5d59e68a

Yesterday I tried to fetch the latest svn version but the problem is not solved even in that version, if needed I can post that log too.

I know the svn is not stable at the moment, so if i have to wait for a stable revision, just ignore this.

thanks
Reply
#2
Hmm weird. Could you pastebin the output of
Code:
hal-device
when the drive is plugged in.

And I'll try to see if it's just gentoo specific or if I can dupplicate it.
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#3
Ok, that's the dmesg | tail output when I plug the disk:

http://pastebin.com/m202d0d5a

and this is the hal-device output

http://pastebin.com/m129310b7


If could be useful Hal version is 0.5.11-r9 (stable in gentoo) and the hard disk is a PATA Hitachi, 60 GB.
Reply
#4
Any news? thx
Reply
#5
Seems to me that linux itself finds the usbdrive just fine and mounts
it as sdb1 in write/read mode and detects the filesystem as EXT2 as you say.

So it seems like this can be a XBMC issue.

Could you enable debug logging in XBMC and do a restart of your system with the usb device plugged in and start XBMC. then post the COMPLETE Debug Log file on pastebin.
PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
Reply
#6
Well, linux finds the usb drive but DOESN'T mount it automatically. And that's correct. In fact even if I plug any other fat or ntfs usb drive in linux without launching xbmc, linux doesn't mount it automatically (I checked).

A correct behavior should be that linux finds the drive and then xbmc (when launched) mounts it. But this doesn't work for my ext2 usb drive...

I did a restart of the htpc with the drive plugged, then started xbmc with debug logging, here's the full log:

http://pastebin.com/m1ff33e55

While xbmc was running I checked from console if the drive was mounted, but obviously it wasn't Sad

EDIT: just a note, my system disk have 3 partions:
1 - boot (ext2)
2 - root (ext3)
3 - swap

just in case you see two ext2 entries in the log
Reply
#7
Code:
11:38:02 T:1099290656 M:1475018752  NOTICE: HAL: Generating global device list                                                                  
11:38:02 T:1099290656 M:1474891776   DEBUG: HAL: Added - disk | UUID 7044aed9-b0c4-4d95-a262-346f73d88698 | FileSystem swap | HotPlugged NO  | Type 1 |Approved NO                                                                                                                                
11:38:02 T:1099290656 M:1474891776  NOTICE: LFS: Added - disk | Volume (swap)                                                                    
11:38:02 T:1099290656 M:1474891776   DEBUG: HAL: Added - disk | UUID 9075dd81-b9e1-4908-a606-a499eb71a628 | FileSystem ext3 | Mounted on / | HotPlugged NO  | Type 1 |Approved NO                                                                                                                
11:38:02 T:1099290656 M:1474891776  NOTICE: LFS: Added - disk | Volume (ext3)                                                                    
11:38:02 T:1099290656 M:1474891776   DEBUG: HAL: Added - disk | UUID a8d6b28b-0634-4906-a9e2-657ec6f3c2cc | FileSystem ext2 | HotPlugged NO  | Type 1 |Approved YES                                                                                                                              
11:38:02 T:1099290656 M:1474891776  NOTICE: LFS: Added - disk | Volume (ext2)                                                                    
11:38:02 T:1099290656 M:1474891776   DEBUG: HAL: Added - disk | UUID e0ffb957-456b-4a64-bb29-0babedda0cff | FileSystem ext2 | HotPlugged YES | Type 1 |Approved YES                                                                                                                              
11:38:02 T:1099290656 M:1474891776  NOTICE: LFS: Added - disk | Volume (ext2)                                                                    
11:38:02 T:1099290656 M:1474891776    INFO: HAL: Generated global device list, found 96                                                          
11:38:02 T:1099290656 M:1474891776    INFO: HAL: Sucessfully initialized                                                                        
11:38:02 T:1099290656 M:1474891776  NOTICE: initialize done

Seems like XBMC finds 4 drives with four different UUID's. one USB device should only have one unique UUID no matter have many partitions it has.
The swap partition was not approved, the ext3 partition was not approved.

UUID a8d6b28b... and UUID e0ffb957... seems however to be mounted correctly by XBMC. which i guess is your ext2 partion on that disk.
Is this available as a source in XBMC ?

Im no expert but to me it seems like a disk drive with multiple partions gets assigned it's own UUID pr partition which i dont understand.

What i would do was to try a regular usbstick or drive containg only one partion to see how that gets detected.

You are also running SVN 22927, i bellive 22528 or something like that was the latest "stable" svn build. Might be an idea to revert back to a older more stable build also.

Best of luck.
PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
Reply
#8
I can verify the trouble in ubuntu aswell, seems like ext2 doesn't allow uid flag (used for read-write). This needs to be altered or atleast fallback to read-only.

I'd say make a ticket refering to this thread and CC me so I don't forget.

Cheers,
Tobias.
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#9
New ticket created: http://trac.xbmc.org/ticket/7216

If you mean that ext2 doesn't support "uid" mount option, I agree.
From man mount, the ext2 fs support these options in addition to commons ones: http://pastebin.com/m76455824

The fat fs instead supports the uid option, for example.

By the way neither ext3 fs allows uid, so probably the bug could affect even an ext3 usb drive. But must be tested.
Reply
#10
i was going crazy trying to solve this problem, but it seems that there is other people experiencing the same issue. I hope that this can be solved soon...

kind regards
Reply
#11
Any news regarding this matter?

I have a problem where usb key is recognized, but wont mount automatically.
Same is for usb hard drive.

Cheers...
Reply
#12
the same Problem with my HFS Disk on the newest SVN
In the last stable Version xbmc or Linux mounted the HFS partition from my USB Drive automaticly
Reply
#13
fixed in r23976.

Since I don't have HAL anymore on my development machine this isn't an ideal fix, we just append uid on vfat, but it should hopefully be enough for most people.

If another filesystem pops up that supports uid please don't be shy messing me about it and I'll add it.

Cheers,
Tobias
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#14
so 23976 should fix ntfs/fat usb drives not mounting as well?
Reply
#15
and HFS Partition twice ?
Reply

Logout Mark Read Team Forum Stats Members Help
ext2 USB hard disk doesn't mount0