View previous topic :: View next topic |
Author |
Message |
furanku l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/5333238953eca3139523fa.jpg)
Joined: 08 May 2003 Posts: 905 Location: Hamburg, Germany
|
Posted: Tue Sep 18, 2007 12:40 pm Post subject: udev rules to access iPod from virtualbox? |
|
|
Hi!
I needed to reset my iPod to factory defaults after deleting linux from it (needed the space) and thereby something went wrong, so it was screwd up and just showed th "exlamation mark folder" icon, asking for support.
I tried to reformat it and reinstall the original Apple OS back, using iTunes under Windos in VirtulaBox. At first, the iPod wasn't recognized by Windows, it showed up in the Windows device manager, but couldn't get activated (Code 10). I found out that it's a problem with the permissions in the /proc/bus/usb directory. Beeing bold, I manually set everything in the path to the iPod device file to chmod 777 (I know its a big security hole), and the iPod showd up and i could start iTunes to reformat the iPod.
The problem is, that in that process the iPod gets rebooted and then udev again sets the to restrictive permissions, so for some reasons yet not understood the iPod now works, but just has 9GB out of 30 GB accessible. The upgrade to the new firmware (1.0 -> 1.2.1) failed for the same reason.
So has anyone alreadey modified the udev rules that prevents virtualbox from accessing the iPod?
My normal user account is member in the following groups: disk wheel audio cdrom video games usb users plugdev scanner qemu vmware vboxusers
[Edit] I solved the "9 GB out of 30 GB available" problem, by createing a new vfat filesystem on the iPod data partition, Amarok after that initialized the data bank. So the iPod is completely usable again. But I still would be interested in a solution of the udev rules problem.
Last edited by furanku on Tue Sep 18, 2007 3:54 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ewaller Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/7668018564cf911c363a1c.png)
Joined: 11 Aug 2005 Posts: 264 Location: Pasadena, CA
|
Posted: Fri Oct 05, 2007 8:11 pm Post subject: |
|
|
furanku,
You did not state which version of the kernel you are using. I just managed to solve this problem by updating 50-udev.rules as follows
Code: | # usbfs-like device nodes
# the way to go up to kernel 2.6.21 (and above if setting USB_DEVICE_CLASS=y)
SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="usb", MODE="0664"
# starting from kernel 2.6.22 use this rule
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", \
NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", GROUP="usb", MODE="0666"
|
Note that I am using a 2.6.22 kernel and did turn off the (depreciated) USB_DEVICE_CLASS flag in my kernel configuration, So in my case, the second rule applies. The files in /proc/bus/usb do not reflect these permissions, but nodes in /dev/bus/usb/ do reflect the permissions of the second rule. After I did this, the USB devices in virtual box un-grayed and worked perfectly (USB Drives and USB serial devices)
Good Luck,
ewaller _________________ Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
furanku l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/5333238953eca3139523fa.jpg)
Joined: 08 May 2003 Posts: 905 Location: Hamburg, Germany
|
Posted: Sat Oct 06, 2007 1:16 pm Post subject: |
|
|
Thanks a lot,
I am using a 2.6.22 kernel, but still had the USB_DEVICE_CLASS support compiled into the kernel. Using your udev rule and turning the USB_DEVICE_CLASS off now all USB hardware runs fine in virtualbox ... except the iPod, which still behaves strangely. I guess the problem is now on the iPod/iTunes side, not on the Virtualbox/Linux side, probably a iPod HD problem (but it works flawless as USB storage device in disk mode and the selfdiagnosis reports no errors ... strange!)
Thank you very much again, ewaller! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|