View previous topic :: View next topic |
Author |
Message |
rmh3093 Advocate
Joined: 06 Aug 2003 Posts: 2138 Location: Albany, NY
|
Posted: Mon Feb 06, 2006 8:13 pm Post subject: |
|
|
try renaming your udev rule to "00" instead of "10" to guarantee its the first rule used _________________ Do not meddle in the affairs of wizards, for they are subtle and quick to anger. |
|
Back to top |
|
|
torf n00b
Joined: 27 Apr 2004 Posts: 65 Location: Constance/Germany
|
Posted: Mon Feb 06, 2006 8:33 pm Post subject: |
|
|
Thanks for the tip, but that didn't change anything
Any more ideas? |
|
Back to top |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Mon Feb 06, 2006 9:49 pm Post subject: |
|
|
Now that's weird, because my udevtest output looks essentially the same (in this example from my cardreader):
Code: | $ udevtest /sys/block/sda usb
main: looking at device '/block/sda' from subsystem 'usb'
main: opened class_dev->name='sda'
udev_rules_get_name: add symlink 'usb/cardreader_cf'
udev_rules_get_name: rule applied, 'sda' becomes 'sda'
create_node: creating device node '/dev/sda', major = '8', minor = '0', mode = '0660', uid = '0', gid = '6'
create_node: creating symlink '/dev/usb/cardreader_cf' to '../sda' |
And of course the symlink is there like it should be - udevtest says it will create the link after all. The first thing I'd check if the device was missing after udev confirmed it's existance, is wether or not udev is actually mounted & running properly. You're not using devfs / an old kernel / an old version of udev by any chance? |
|
Back to top |
|
|
irfanmohammed n00b
Joined: 05 Aug 2005 Posts: 3
|
Posted: Tue Feb 07, 2006 1:40 am Post subject: |
|
|
I updated my kernal 2.6.15-gentoo-r1 and everything worked like a charm. Thanks. |
|
Back to top |
|
|
torf n00b
Joined: 27 Apr 2004 Posts: 65 Location: Constance/Germany
|
Posted: Wed Feb 08, 2006 11:54 am Post subject: |
|
|
Okay, this is strange. Just tried it again - it worked . Didn't change anything on the setup except for shutting down and booting again. But shouldn't have udevstart restarted udev anyway? Well, it works now, I'm happy. Thanks for your tips, guys, and sorry for the confusion. |
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Sun Feb 12, 2006 1:27 pm Post subject: |
|
|
There is problem when using ivman and Gnome that it shows both ipod partitions like "Apple iPod Music Player" and "Apple iPod Music Player (2)".
I fixed that by creating the following /usr/share/hal/fdi/policy/10osvendor/10-ipod-policy.fdi file: Code: | <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="block.is_volume" bool="true">
<match key="block.storage_device" string="/org/freedesktop/Hal/devices/storage_model_iPod">
<match key="volume.partition.number" int="0x1">
<merge key="block.storage_device" type="string">/org/freedesktop/Hal/devices/foo</merge>
<merge key="volume.policy.should_mount" type="bool">false</merge>
</match>
<match key="volume.fstype" string="hfs">
<match key="volume.partition.number" int="0x2">
<merge key="block.storage_device" type="string">/org/freedesktop/Hal/devices/foo</merge>
<merge key="volume.policy.should_mount" type="bool">false</merge>
</match>
</match>
</match>
</match>
</device>
</deviceinfo> |
I haven't tested it with hfs-formatted iPod (actually I'm not sure if the problem even exists with them), so let me know if it don't work. |
|
Back to top |
|
|
rush_ad l33t
Joined: 22 Jul 2004 Posts: 863 Location: New Jersey, USA
|
Posted: Sun Feb 12, 2006 5:55 pm Post subject: |
|
|
LordArthas wrote: | Hello!
This works like a charm on my iPod Nano (VFAT). Thank you for the excellent tutorial.
I only have a minor problem. When I eject /mnt/ipod I get the following message:
Code: |
eject: unable to eject, last error: Invalid argument
|
However, the device seems to be properly ejected as the iPod display stops showing the "do not disconnect" message.
Michele. |
i seem to have the same problem. found any solution? |
|
Back to top |
|
|
dougthug n00b
Joined: 19 Jan 2006 Posts: 64
|
Posted: Sun Feb 12, 2006 11:02 pm Post subject: |
|
|
Make sure you have eject 2.1.0 installed. This just went stable on x86 a week or so ago. Also, if you are trying to use it as a user other than root, you may need to
Code: | chmod +s /usr/bin/eject |
Doing both of these made it so that when I right-click my iPod in Gnome and 'Unmount Volume' it does it cleanly and error free as my normal user. Hope this helps... |
|
Back to top |
|
|
rush_ad l33t
Joined: 22 Jul 2004 Posts: 863 Location: New Jersey, USA
|
Posted: Mon Feb 13, 2006 2:05 am Post subject: |
|
|
dougthug wrote: | Make sure you have eject 2.1.0 installed. This just went stable on x86 a week or so ago. Also, if you are trying to use it as a user other than root, you may need to
Code: | chmod +s /usr/bin/eject |
Doing both of these made it so that when I right-click my iPod in Gnome and 'Unmount Volume' it does it cleanly and error free as my normal user. Hope this helps... |
yes, this worked very well. thanks a lot. |
|
Back to top |
|
|
Fanatic Apprentice
Joined: 02 May 2004 Posts: 173 Location: Stocktown
|
Posted: Tue Feb 14, 2006 5:58 pm Post subject: |
|
|
pussi wrote: | There is problem when using ivman and Gnome that it shows both ipod partitions like "Apple iPod Music Player" and "Apple iPod Music Player (2)".
I fixed that by creating the following /usr/share/hal/fdi/policy/10osvendor/10-ipod-policy.fdi file: Code: | <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="block.is_volume" bool="true">
<match key="block.storage_device" string="/org/freedesktop/Hal/devices/storage_model_iPod">
<match key="volume.partition.number" int="0x1">
<merge key="block.storage_device" type="string">/org/freedesktop/Hal/devices/foo</merge>
<merge key="volume.policy.should_mount" type="bool">false</merge>
</match>
<match key="volume.fstype" string="hfs">
<match key="volume.partition.number" int="0x2">
<merge key="block.storage_device" type="string">/org/freedesktop/Hal/devices/foo</merge>
<merge key="volume.policy.should_mount" type="bool">false</merge>
</match>
</match>
</match>
</match>
</device>
</deviceinfo> |
I haven't tested it with hfs-formatted iPod (actually I'm not sure if the problem even exists with them), so let me know if it don't work. |
Great, just what I've been looking for! I had the exact same problem with kde. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
ARC2300 Apprentice
Joined: 30 Mar 2003 Posts: 265
|
Posted: Wed May 03, 2006 2:45 am Post subject: Re: iPod and Gentoo |
|
|
UberLord wrote: | rmh3093 wrote: | [*]To disconnect your iPod properly run the following command:
Eject your iPod as root
To run eject as a non-root user run this once
Code: | chmod +s /usr/bin/eject |
|
The chmod +s should not be required with sys-apps/eject-2.1.4-r1 and a 2.6.16 based kernel |
I still needed to do the chmod +s, but I'm on ~x86, so that may make the difference. _________________ It's fun to take a trip
Put acid in your veins |
|
Back to top |
|
|
MilkSjeik n00b
Joined: 17 Apr 2005 Posts: 66 Location: Belgium
|
Posted: Sat May 06, 2006 3:25 pm Post subject: |
|
|
Works with my gf's iPod nano.
But when I browse the pod, I get: Code: | milksjeik@MelxacoTux /mnt/ipod $ ls -l
totaal 16
drwxr-xr-x 2 milksjeik users 4096 mei 5 18:46 Calendars
drwxr-xr-x 2 milksjeik users 4096 mei 5 18:46 Contacts
drwxr-xr-x 5 milksjeik users 4096 mei 5 18:46 iPod_Control
drwxr-xr-x 2 milksjeik users 4096 mei 5 18:46 Notes | Where do I put the music? I see the same folders on wintendo btw, but with iTunes it's possible to dump music on it. How do I do it with gentoo?
Edit: It's possible with something like Amarok. Does somebody now how I can browse it directly? |
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Sun May 07, 2006 9:04 am Post subject: |
|
|
You have to do it with some application. There's at least gtkpod, amarok and banshee that support ipods |
|
Back to top |
|
|
vandalman n00b
Joined: 16 Mar 2005 Posts: 52
|
Posted: Wed May 10, 2006 12:25 am Post subject: |
|
|
Here is the rule that I used to get it to work:
Code: | BUS=="scsi", SYSFS{model}=="iPod", KERNEL="sd?", SYMLINK="ipod" |
My iPod Mini shows up as /dev/sda
Thanks! |
|
Back to top |
|
|
LD Guru
Joined: 23 Dec 2003 Posts: 336 Location: Middle of No-Where Granbury, Tx
|
Posted: Thu May 11, 2006 2:49 am Post subject: |
|
|
I tried that rule, and had to remove the bus. I'm using a Dell E1505 with SATA hard drive so the hard drive comes up as sda and all the usb drives are coming up as ubb.
ANy idea what is causing this? _________________ [Owner/Operator: Dhampir Dreams]
Last.fm profile
Netflix Profile |
|
Back to top |
|
|
sdfg Apprentice
Joined: 11 Feb 2005 Posts: 200
|
Posted: Thu Sep 28, 2006 9:16 pm Post subject: |
|
|
Sorry to be a necromancer, but I need some help.
I've followed this so far. My /etc/udev/rules.d/00-ipod.rules is Code: | BUS=="scsi", SYSFS{model}=="iPod*", KERNEL=="sd?2", NAME=="%k", SYMLINK=="ipod" |
However, udevinfo -p /sys/block/sda -a /dev/sda returns Code: | Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
|
and udevtest /sys/block/sda/sda1 usb returns Code: | unable to open device 'usb' | .
Can anyone help? |
|
Back to top |
|
|
Itazuki n00b
Joined: 01 Feb 2005 Posts: 55 Location: Ottawa
|
Posted: Mon Oct 02, 2006 11:23 pm Post subject: iPod nano |
|
|
Yeah i've tried the following lines in /etc/udev/rules.d/60-ipod.rules.
BUS=="usb", SYSFS{manufacturer}=="Apple", SYSFS{product}=="iPod", KERNEL=="sd?2", GROUP="plugdev", SYMLINK+="ipod"
then i tried
BUS=="usb", SYSFS{manufacturer}=="Apple", SYSFS{product}=="iPod", KERNEL=="ub?2", GROUP="plugdev", SYMLINK+="ipod"
then i tired
BUS=="SCSI", SYSFS{manufacturer}=="Apple", SYSFS{product}=="iPod", KERNEL=="sd?2", GROUP="plugdev", SYMLINK+="ipod"
I did udevstart after changing the rule in that file each time but /dev/ipod is not created, i have a 1GB nano and it's Windows formatted.
udevinfo -p /sys/block/sda -a /dev/sda returns
udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.
udevtest /sys/block/sda
main: unable to open '/sys/block/sda'
any ideas? i can mount it by mount -t vfat /dev/sda2 /mnt/ipod _________________ Algonquin College Graduate...not that that means much |
|
Back to top |
|
|
bdm Guru
Joined: 20 Jan 2006 Posts: 305 Location: Canada, Barrie, Ontario
|
Posted: Sat Oct 21, 2006 9:48 pm Post subject: |
|
|
I got mine to work too with the help of roger55!
/etc/udev/rules.d/60-ipod.rules
Code: | BUS=="scsi", SYSFS{vendor}=="Apple*", SYSFS{model}=="iPod*", KERNEL=="sd?2", SYMLINK+="ipod" |
Last edited by bdm on Sat Oct 21, 2006 11:10 pm; edited 1 time in total |
|
Back to top |
|
|
sdfg Apprentice
Joined: 11 Feb 2005 Posts: 200
|
Posted: Sat Oct 21, 2006 10:31 pm Post subject: |
|
|
I got mine working, but /dev/ipod doesn't exist. Not that I'm bothered. /dev/ipod is just a convinient pointer - /dev/sda1 works just the same. That's how I sorted it out, just enter the info in fstab, tell udev to automount, and away it goes. |
|
Back to top |
|
|
thomas.g n00b
Joined: 23 Oct 2006 Posts: 3
|
Posted: Mon Oct 23, 2006 6:01 pm Post subject: Re: iPod and Gentoo |
|
|
[quote="rmh3093"][*]To get your iPod device node to show up as "/dev/ipod", create the file "[i]/etc/udev/rules.d/00-ipod.rules[/i]" and paste the following code into it.
[list]PC Formated iPod (vfat)
[code]BUS="scsi", SYSFS{model}="iPod*", KERNEL="sd?2", NAME="%k", SYMLINK="ipod"[/code]
Mac Formated iPod (hfs)
[code]BUS="scsi", SYSFS{model}="iPod*", KERNEL="sd?3", NAME="%k", SYMLINK="ipod"[/code][/list]
[*]To set the permissions so that non-root users can mount/unmount and read/write to the iPod paste the following code into the file "[i]/etc/security/console.perms[/i]".
[code]<ipod>=/dev/ipod
<console> 0600 <ipod> 0600 root[/code]
[*]To easily mount your iPod add the following code to "[i]/etc/fstab[/i]".
[code]/dev/ipod /media/ipod vfat users,exec,noauto,managed 0 0[/code]
[*]To disconnect your iPod properly run the following command:
[list]Eject your iPod as root
[code]eject /media/ipod[/code]
To run eject as a non-root user run this once
[code]chmod +s /usr/bin/eject[/code][/list][/quote]
My name is Thomas Geraets, and I love iPod!!!
\o/ |
|
Back to top |
|
|
MattSharp Apprentice
Joined: 15 Aug 2003 Posts: 258
|
Posted: Tue Dec 26, 2006 8:04 pm Post subject: |
|
|
Great thread, very helpful. Quick question.....
Once I run eject, is there anyway to "re-mount" it without disconnecting it and reconnecting it? Not a huge deal, just wondered. |
|
Back to top |
|
|
hgerstung Tux's lil' helper
Joined: 22 Nov 2004 Posts: 123 Location: Northwestern Germany (OWL)
|
Posted: Wed Dec 27, 2006 5:05 pm Post subject: |
|
|
Hi! Found a shiny new ipod video 30GB under the Christmas tree and already "integrated" it in my car (icelink), now I am looking for nice software to organize my music, videos and photos on my Gentoo box.
So far I am able to mount it and I already tried AmaroK and gtkpod, but both don't seem to be what I am looking for. I just installed floola (www.floola.com), which does not seem to be available in portage, and this looks slightly better, it seems to be faster and more eye-friendly than gtkpod and at least claims that it is supporting video files (unlike AmaroK).
My question is: How do you manage to put your video files on the ipod? I already found a howto which includes a ffmpeg-based script to convert my video files into an ipod-friendly format, but I did not manage to find the resulting .mov file on my ipod, no matter in which directoy I copied it. Floola somehow does not want me to add a .mov (or .mpg) file and AmaroK tells me that my player is not capable of playing this file when I put it in a playlist and choose "Transfer".
Best Regards,
Heiko |
|
Back to top |
|
|
rmh3093 Advocate
Joined: 06 Aug 2003 Posts: 2138 Location: Albany, NY
|
Posted: Thu Dec 28, 2006 5:52 pm Post subject: |
|
|
wow i just tried floola and it definitely looks way nicer... too bad the dev dosent have the source code posted _________________ Do not meddle in the affairs of wizards, for they are subtle and quick to anger. |
|
Back to top |
|
|
gerdesj l33t
Joined: 29 Sep 2005 Posts: 621 Location: Yeovil, Somerset, UK
|
Posted: Thu Dec 28, 2006 8:44 pm Post subject: |
|
|
torf wrote: | Okay, this is strange. Just tried it again - it worked . Didn't change anything on the setup except for shutting down and booting again. But shouldn't have udevstart restarted udev anyway? Well, it works now, I'm happy. Thanks for your tips, guys, and sorry for the confusion. |
Code: | #udevcontrol reload_rules |
Does the job of re-reading the config. I have seen several places on the web suggesting udevstart, which only starts udev and presumably does not do a restart or a re read.
Cheers
Jon |
|
Back to top |
|
|
|