Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iPod and Gentoo
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Mon Feb 06, 2006 8:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
torf
n00b
n00b


Joined: 27 Apr 2004
Posts: 65
Location: Constance/Germany

PostPosted: Mon Feb 06, 2006 8:33 pm    Post subject: Reply with quote

Thanks for the tip, but that didn't change anything :?

Any more ideas?
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Mon Feb 06, 2006 9:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
irfanmohammed
n00b
n00b


Joined: 05 Aug 2005
Posts: 3

PostPosted: Tue Feb 07, 2006 1:40 am    Post subject: Reply with quote

I updated my kernal 2.6.15-gentoo-r1 and everything worked like a charm. Thanks.
Back to top
View user's profile Send private message
torf
n00b
n00b


Joined: 27 Apr 2004
Posts: 65
Location: Constance/Germany

PostPosted: Wed Feb 08, 2006 11:54 am    Post subject: Reply with quote

Okay, this is strange. Just tried it again - it worked :D. 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
View user's profile Send private message
pussi
l33t
l33t


Joined: 08 May 2004
Posts: 727
Location: Finland

PostPosted: Sun Feb 12, 2006 1:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
rush_ad
l33t
l33t


Joined: 22 Jul 2004
Posts: 863
Location: New Jersey, USA

PostPosted: Sun Feb 12, 2006 5:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
dougthug
n00b
n00b


Joined: 19 Jan 2006
Posts: 64

PostPosted: Sun Feb 12, 2006 11:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
rush_ad
l33t
l33t


Joined: 22 Jul 2004
Posts: 863
Location: New Jersey, USA

PostPosted: Mon Feb 13, 2006 2:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Fanatic
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 173
Location: Stocktown

PostPosted: Tue Feb 14, 2006 5:58 pm    Post subject: Reply with quote

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. 8)
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sun Apr 23, 2006 11:23 pm    Post subject: Re: iPod and Gentoo Reply with quote

rmh3093 wrote:
[*]To disconnect your iPod properly run the following command:
    Eject your iPod as root
    Code:
    eject /media/ipod

    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 :)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
ARC2300
Apprentice
Apprentice


Joined: 30 Mar 2003
Posts: 265

PostPosted: Wed May 03, 2006 2:45 am    Post subject: Re: iPod and Gentoo Reply with quote

UberLord wrote:
rmh3093 wrote:
[*]To disconnect your iPod properly run the following command:
    Eject your iPod as root
    Code:
    eject /media/ipod

    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
View user's profile Send private message
MilkSjeik
n00b
n00b


Joined: 17 Apr 2005
Posts: 66
Location: Belgium

PostPosted: Sat May 06, 2006 3:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
pussi
l33t
l33t


Joined: 08 May 2004
Posts: 727
Location: Finland

PostPosted: Sun May 07, 2006 9:04 am    Post subject: Reply with quote

You have to do it with some application. There's at least gtkpod, amarok and banshee that support ipods
Back to top
View user's profile Send private message
vandalman
n00b
n00b


Joined: 16 Mar 2005
Posts: 52

PostPosted: Wed May 10, 2006 12:25 am    Post subject: Reply with quote

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
View user's profile Send private message
LD
Guru
Guru


Joined: 23 Dec 2003
Posts: 336
Location: Middle of No-Where Granbury, Tx

PostPosted: Thu May 11, 2006 2:49 am    Post subject: Reply with quote

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
View user's profile Send private message
sdfg
Apprentice
Apprentice


Joined: 11 Feb 2005
Posts: 200

PostPosted: Thu Sep 28, 2006 9:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Itazuki
n00b
n00b


Joined: 01 Feb 2005
Posts: 55
Location: Ottawa

PostPosted: Mon Oct 02, 2006 11:23 pm    Post subject: iPod nano Reply with quote

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
View user's profile Send private message
bdm
Guru
Guru


Joined: 20 Jan 2006
Posts: 305
Location: Canada, Barrie, Ontario

PostPosted: Sat Oct 21, 2006 9:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
sdfg
Apprentice
Apprentice


Joined: 11 Feb 2005
Posts: 200

PostPosted: Sat Oct 21, 2006 10:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
thomas.g
n00b
n00b


Joined: 23 Oct 2006
Posts: 3

PostPosted: Mon Oct 23, 2006 6:01 pm    Post subject: Re: iPod and Gentoo Reply with quote

[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
View user's profile Send private message
MattSharp
Apprentice
Apprentice


Joined: 15 Aug 2003
Posts: 258

PostPosted: Tue Dec 26, 2006 8:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
hgerstung
Tux's lil' helper
Tux's lil' helper


Joined: 22 Nov 2004
Posts: 123
Location: Northwestern Germany (OWL)

PostPosted: Wed Dec 27, 2006 5:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Thu Dec 28, 2006 5:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
gerdesj
l33t
l33t


Joined: 29 Sep 2005
Posts: 621
Location: Yeovil, Somerset, UK

PostPosted: Thu Dec 28, 2006 8:44 pm    Post subject: Reply with quote

torf wrote:
Okay, this is strange. Just tried it again - it worked :D. 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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
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