LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   ipodtouch + slack 12.1 (https://www.linuxquestions.org/questions/slackware-14/ipodtouch-slack-12-1-a-682420/)

smoldah 11-10-2008 01:05 PM

ipodtouch + slack 12.1
 
Hello guys.. ive got an ipodtouch and can some1 here help me out how to mount it?

when i plug it into USB i cant mount it cuz at dmesg it appears this:
Quote:

usb 1-1: new high speed USB device using ehci_hcd and address 7
usb 1-1: configuration #1 chosen from 3 choices
it doesnt appear as sda or sdb or something like.
just these 2 lines..
then i've read in some forum ppl said that when the ehci_hcd appears i should do modprobe ehci_hcd. but after typing this command this is what appears in my dmesg:

Quote:

sysfs: duplicate filename 'ehci_hcd' can not be created
WARNING: at fs/sysfs/dir.c:424 sysfs_add_one()
Pid: 3969, comm: modprobe Tainted: P 2.6.24.5-smp #2
[<c01b8eff>] sysfs_add_one+0x9f/0xe0
[<c01b9438>] create_dir+0x48/0x90
[<c01b94a9>] sysfs_create_dir+0x29/0x50
[<c039397f>] kobject_get+0xf/0x20
[<c0393e43>] kobject_add+0x93/0x1b0
[<c0119a7f>] module_finalize+0x11f/0x140
[<c014a154>] mod_sysfs_setup+0x24/0xb0
[<c014b657>] sys_init_module+0x12b7/0x18c0
[<c05d6bb0>] usb_root_hub_lost_power+0x0/0x40
[<c01784d0>] do_sync_read+0x0/0x120
[<c0104336>] syscall_call+0x7/0xb
=======================
kobject_add failed for ehci_hcd with -EEXIST, don't try to register things with the same name in the same directory.
Pid: 3969, comm: modprobe Tainted: P 2.6.24.5-smp #2
[<c0393ec3>] kobject_add+0x113/0x1b0
[<c0119a7f>] module_finalize+0x11f/0x140
[<c014a154>] mod_sysfs_setup+0x24/0xb0
[<c014b657>] sys_init_module+0x12b7/0x18c0
[<c05d6bb0>] usb_root_hub_lost_power+0x0/0x40
[<c01784d0>] do_sync_read+0x0/0x120
[<c0104336>] syscall_call+0x7/0xb
=======================
so how can i solve this problem? i need to mount it so i could be able to sync it with amarok or gtkpod or whatever program. but the first step is to mount it.
aah and b4 making this thread i've been searching everywhere in this forum about slack+ipodtouch but havent found anything like

thx

johnson_steve 11-10-2008 01:33 PM

It's not going to show up as a usb mass storage device. apple used an encrypted filesystem for these and even if you are using itunes on mac or windows you can't use it like a usb harddisk the way you could with other ipods. this doesn't mean that it can't work with linux. I have an ipod touch working with gtkpod. it syncs over wifi so I don't even have to plug it in. First off you must jailbreak your ipod! this is the only way to make it work with linux and also offers so many other added benefits. then after it's jailbroken and running sshd with a static IP address (yes that is important) then you mount it over wifi with ssh and fuse and can use it with gtkpod just like any other mounted iPod. I've got everything working except photos, I can't seem to get those working, but everything else works great (including album art) It's a bit of a complicated setup and took me a while to get working but I can walk you through it if you'd like.

smoldah 11-10-2008 01:43 PM

ooooooh..

my ipodtouch is already jailbroken.. and i can access it using ssh. (of course sshd is running and it has a static ip)
but i've read several posts about using wi-fi sync+gtkpod like what u do, but most of people said that the transfer is pretty slow. is that true?

and can u tell me how can i mount it over wifi with ssh+fuse? or do u have any url explaining howto do it?



btw, thx for reply

johnson_steve 11-10-2008 04:40 PM

Doesn't seem any slower then my other iPods that use usb. and afaik there isn't another way to do it. can you log into your ipod as root without a password? like:
Code:

ssh root@10.0.0.3
once this is set up there are some scripts in a package called 'ipod-convenience' that will take care of the mounting / unmounting with fuse. It is most important that the first time you run 'ipod-touch-mount' that the ipod is plugged in. the script reads some info from lsusb and puts it on the ipod so that album art works. if it's not plugged in the first time album art won't work.

smoldah 11-10-2008 04:52 PM

Quote:

Originally Posted by johnson_steve (Post 3337626)
Doesn't seem any slower then my other iPods that use usb. and afaik there isn't another way to do it. can you log into your ipod as root without a password? like:
Code:

ssh root@10.0.0.3
once this is set up there are some scripts in a package called 'ipod-convenience' that will take care of the mounting / unmounting with fuse. It is most important that the first time you run 'ipod-touch-mount' that the ipod is plugged in. the script reads some info from lsusb and puts it on the ipod so that album art works. if it's not plugged in the first time album art won't work.

yea thats what im trying to find. i've made some changes in my ipodtouch.
first of all is to make it Passwordless login. generating a ssh-keygen without pass then copy it into my ipod.
after it, ive tested ssh root@192.168.0.3 and it logged in without asking passwd.
imho second step is to install sshfs right? i have downloaded sshfs 2.2 and installed it.
next step: sshfs root@192.168.0.23:/var/root /mnt/ipod // right?
i cant mount using the command above. it says:
Quote:

fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
but if i use this command: sshfs -o nonempty root@192.168.0.23:/var/root /mnt/ipod // success :O

and inside /mnt/ipod what i got is:
Library Media Photos iTunes_Control


right?
but i cant sync it with gtkpod i got this error:
Quote:

Error initialising iPod: Couldn't find the iPod firewire ID
:(

btw i cant find ipod-convenience in *.tgz :/

thx

johnson_steve 11-10-2008 05:18 PM

OK, the not empty thing means that there is something in the mount point just make sure your ipod isn't mounted and
Code:

rm -rf /mnt/iPod/*
the 'iPod firewire ID' is the bit of information from lsusb I was talking about. the scripts in the 'ipod-convenience' package which was iirc hard to find as anything but an ubuntu package. I have the 'ipod-convenience_0.9.orig.tar.gz' I can email it to you if you'd like. the instructions inside should help you sort it out.

johnson_steve 11-10-2008 05:44 PM

File sent.

GazL 11-11-2008 07:23 AM

This is why I don't buy Apple products. Would it really have hurt them to have these devices show up as a usb drive, make them more compatible with everything and allow their customers the convenience to drag/drop mp3s to the damn thing like 'lesser' mp3 players do? Oh, and would it really hurt them to support ogg and flac?

Sorry, couldn't resist ranting. This stuff really annoys me as I'd love to buy a ipod touch if it wasn't for this nonsense. Still, it won't be long before some less restrictive copycat devices show up on the market.

johnson_steve 11-11-2008 10:16 AM

Well one one hand they are forced to use drm to comply with their vendors and the record companies, on the other hand I have a beautiful little 1/4" thick touchscreen unix handheld with bash, tcpdump and lots of other goodies. Other then the photos every feature works better with linux then it did with my mac. so they had to close it up but it runs unix and they didn't exactly make it that difficult to get root access to the thing and do what ever you want with it.

MS3FGX 11-11-2008 10:16 PM

Quote:

Would it really have hurt them to have these devices show up as a usb drive, make them more compatible with everything and allow their customers the convenience to drag/drop mp3s to the damn thing like 'lesser' mp3 players do?
Yes actually, it would have.

The main advantage of the iPod is it's database. On "lesser" players, as you put it, playback is generally just sequential or random though the files as they appear on the device (best case, it might allow you to play whole directories).

The iPod's database allows for much more robust playback options. For example, you could want to listen to all albums by a single artist, or all albums of a specific genre or year of release. This simply isn't possible on a player that doesn't keep a database of ID3 tag information.

Apple could have designed the iPod to create it's own database when you put new songs onto it (and indeed, there are players from other manufacturers that do this), but then you have to wait for the relatively slow CPU in the player to go through all the songs and create the database, rather than have the much more powerful computer blow through it in 2 seconds.

I have an older Creative player that generates it's own database, and if there is enough music on there I have had to wait 2 to 3 minutes after I powered it on for it to generate the database before I could actually play any music. It doesn't sound like a lot, but if you add music often and have to sit through that "Updating Database..." dialog every time you turn it on, you will get sick of it real quick.

GazL 11-12-2008 11:34 AM

Quote:

Originally Posted by MS3FGX (Post 3338985)
Apple could have designed the iPod to create it's own database when you put new songs onto it (and indeed, there are players from other manufacturers that do this), but then you have to wait for the relatively slow CPU in the player to go through all the songs and create the database, rather than have the much more powerful computer blow through it in 2 seconds.

That's a fair point, though having the index creation offloaded to a more powerful host doesn't necessarily mean the device has to be so closed off. I know there are some 3rd party ipod 'loader' programs out there, but they've all been reverse engineered and on occasion Apple has been known to change the encryption keys in new ipod revisions which break them.

The simple fact is that Apple Inc. like to keep everything locked up tight. Perhaps if they provided a iTunes version for Linux, I might look more kindly on them, though i don't really like iTunes. It's way to bloated.

Cuetzpallin 11-18-2008 11:27 AM

As I can see, there is no way to make it work with linux as in the M$ OS?
I mean, drag and drop music, videos and photos like a charm?
I need to use a lot of software for different stuff?

MS3FGX 11-18-2008 12:28 PM

I am not sure what you are referring too. You need software to interface with the iPod on every platform; there is no drag and drop with an iPod.

johnson_steve 11-18-2008 06:22 PM

Quote:

Originally Posted by MS3FGX (Post 3346515)
I am not sure what you are referring too. You need software to interface with the iPod on every platform; there is no drag and drop with an iPod.

Yep no drag and drop even on OSX you need to use iTunes to put stuff on any ipod. I've had this ipod working with iTunes on OSX and Gtkpod on linux and the results are about the same. I can't seem to update the photos from gtkpod they seam to work but then they aren't on the ipod, but I can add songs to my iPod even if I forgot it in the car which you cannot do with an apple or PC.

Cuetzpallin 11-19-2008 11:32 AM

Quote:

Originally Posted by johnson_steve (Post 3346899)
Yep no drag and drop even on OSX you need to use iTunes to put stuff on any ipod. I've had this ipod working with iTunes on OSX and Gtkpod on linux and the results are about the same. I can't seem to update the photos from gtkpod they seam to work but then they aren't on the ipod, but I can add songs to my iPod even if I forgot it in the car which you cannot do with an apple or PC.

How do you do that? I mean, add songs to an Ipod on your car? hehe just curious.

And talking about gtkpod, it is possible to add movies and photos to an Ipod? or what other software do you use?


All times are GMT -5. The time now is 07:57 AM.