LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-06-2005, 12:54 PM   #1
tdotman
LQ Newbie
 
Registered: May 2005
Posts: 3

Rep: Reputation: 0
Problem writing file to iPod using gtkpod


Hi, I recently installed gtkpod to access my iPod under Linux. It's a FAT32 iPod, and it's mounted fine. Gtkpod can see the tracks, and I can get files off the iPod. But when I try to add new files I get the following message:

Error writing PC file "/media/ipod/iPod_Control/Music/f02/gtkpod01210.mp3".

This seems kind of weird, because the file I'm trying to add isn't even called gtkpod01210.mp3. The iPod is definitely mounted writable, so it must be something else.

I have two machines running Fedora Core 3, and I get the same problem on both of them. Any suggestions would be appreciated.
 
Old 05-06-2005, 04:18 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
GtkPod renames the files as they are moved onto the iPod. Check your /var/log/messages for filesystem error messages.

Pretty much every iPod I've seen has had to be reformatted at least once (make sure your firmware is up to date). You can reformat and initialize your iPod (assuming you have a good backup) with the following under Linux (assuming your iPod is /dev/sda2 mounted at /media/ipod):

(quit gtkpod)
umount /media/iPod
mkdosfs -F32 /dev/sda2
mount /media/iPod

Restart gtkpod and from the file menu, select "Create iPod's Directories". When that's done, reset your iPod.

Now you can reload the iPod. If you reset your iPod and ever get the exclamation-folder icon, it just means that the iPod directories need to be recreated. This usually means that the filesystem has been trashed, so you need to rerun the steps above. I suspect that the firmware some iPods shipped with had a bug in the filesystem handling. Once they've been updated and reformatted, they seem fine forever.

Last edited by macemoneta; 05-07-2005 at 10:07 AM.
 
Old 05-07-2005, 09:45 AM   #3
tdotman
LQ Newbie
 
Registered: May 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Success

Thanks for the tip. I ended up plugging it into a windoze box to update the firmware, and then I just did a "restore" on it while it was plugged in. Now it works fine.

If was going to go the mkdosfs route, I think I'd need to add -F32 too.
 
Old 05-07-2005, 10:02 AM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I'm not sure if the restore reformats the iPod, or just erases and rewrites. If not, any filesystem corruption still exists, but may be obscured. I had originally tried this route, and found that the iPod was still acting funny; it would freeze while playing and have to be reset, or the same song would be listed multiple times (even though it was only on the iPod once). If you see strange symptoms like that, you'll know that you need to reformat from scratch. If restore does reformat, then perhaps the bug is in the Windows iPodSetup.

Yes, you need to specify -F32, sorry about the omission.
 
Old 01-19-2006, 10:49 PM   #5
reh_42
LQ Newbie
 
Registered: Sep 2005
Posts: 29

Rep: Reputation: Disabled
Macintosh iPods

Quote:
Originally Posted by macemoneta

(quit gtkpod)
umount /media/iPod
mkdosfs -F32 /dev/sda2
mount /media/iPod
What if you have an iPod formatted for a Macintosh? Would I run the same series of commands, or would I change the second line (like I think I should)?

Thank you!
 
Old 01-20-2006, 06:48 AM   #6
tdotman
LQ Newbie
 
Registered: May 2005
Posts: 3

Original Poster
Rep: Reputation: 0
If your iPod is formatted for MacInstosh and you run those commands, it will no longer be formatted for McIntosh (and all your music will be gone).

I upgraded the firmware and did a "restore" under windows and then when I tried to access it with gtkpod it worked fine. Just make sure all your files are backed up first. That's what I would try first, and if that doesn't work try a linux format.
 
Old 01-22-2006, 02:51 PM   #7
reh_42
LQ Newbie
 
Registered: Sep 2005
Posts: 29

Rep: Reputation: Disabled
I tried to do this, but it's not working correctly. Here is what happened (my iPod is named Pepe Roni, by the way):

# umount /media/Pepe\ Roni/
# mkdosfs -F32 /dev/sdb3
mkdosfs 2.11 (12 Mar 2005)
# mount /media/Pepe\ Roni/
mount: wrong fs type, bad option, bad superblock on /dev/sdb3,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so


What do I do now? Should I edit either the /etc/fstab or /etc/mtab?

Thank you,

Ruth

Last edited by reh_42; 01-22-2006 at 02:52 PM.
 
Old 01-22-2006, 03:11 PM   #8
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
It's /etc/fstab you want to edit. Change the entry for /dev/sdb3 to specify a filesystem type of vfat.
 
Old 01-22-2006, 07:41 PM   #9
reh_42
LQ Newbie
 
Registered: Sep 2005
Posts: 29

Rep: Reputation: Disabled
Thank you so very much.
 
Old 01-23-2006, 05:35 PM   #10
reh_42
LQ Newbie
 
Registered: Sep 2005
Posts: 29

Rep: Reputation: Disabled
Shoot - okay, it didn't work. I don't have an iTunes.db file (I'm not sure if this inevitably matters).

I opened gtkpod and read the device. It picked up the two songs that I had added from my friend's iTunes whenever I updated the firmware. I then added a directory (/home/audio) to the iPod. After it was finished, I tried to sync it and was once again presented with the warning screen of ...

"Could not open file '/media/IPOD .....mp3' for writing"

What in the world is happening?

Last edited by reh_42; 01-23-2006 at 05:36 PM.
 
Old 01-23-2006, 06:45 PM   #11
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
From the gtkpod 'File' menu, select 'Create iPod's Directories' to create the directory structure needed on the iPod. That directory structure was lost when the partition was formatted. Also, make sure the /etc/fstab entry specifies rw access is permitted.

Last edited by macemoneta; 01-23-2006 at 06:46 PM.
 
Old 01-23-2006, 10:59 PM   #12
reh_42
LQ Newbie
 
Registered: Sep 2005
Posts: 29

Rep: Reputation: Disabled
I created the iPod directories and added a song then synced, but was left with the same problem.


Here is what my /etc/fstab entry looks like.

<file system> <mount point> <type> <options> <dump> <pass>
/dev/sdb2 /media/IPOD vfat rw,nosuid,nodev,auto 0 0


Here is what my /etc/mtab entry looks like.

/dev/sdb2 /media/IPOD vfat rw,nosuid,nodev 0 0
 
Old 01-23-2006, 11:30 PM   #13
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
You usually need the 'users' or 'uid=xxx,gid=xxx' options to set proper ownership permissions in /etc/fstab. For example:

/dev/sdb2 /media/IPOD vfat users,rw,nosuid,nodev,auto 0 0

or

/dev/sdb2 /media/IPOD vfat uid=reh_42,gid=reh_42,rw,nosuid,nodev,auto 0 0

Also, in previous posts you referred to /dev/sdb3; are you specifying the correct partition in /etc/fstab?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gtkpod is not working with my Ipod shuffle Riadgoas Linux - Hardware 5 01-14-2006 04:26 AM
gtkpod - Problem creating iPod directories rose_bud4201 Linux - Software 0 09-20-2005 10:06 PM
Ipod Shuffle using GTKPod notregistered Linux - General 4 08-12-2005 09:19 AM
copying songs from iPod using gtkpod traybore19 Linux - Software 0 06-21-2005 02:45 PM
ipod on linux (gtkpod) cloids Linux - General 1 01-01-2004 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration