Re: Need help with mount and /etc/fstab

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Mark Phillips
Date:  
To: plug-discuss
Subject: Re: Need help with mount and /etc/fstab
Joseph,

Do you know if there is there any inherent value is use hfsplus over
vfat on the iPod?

I could try hooking the ipod to my windows machine to initialize it and
add a few songs and then try gtkpod again. However, this would remove
the hfsplus from the iPod.

Thanks!

Mark

Joseph Sinclair wrote:

>
>I'd bet the journal files are part of the iPod filesystem. I'd avoid messing with them, as you could leave the iPod unusable.
>
>Definitely put some content on the device; some of what appears to be filesystem errors may well be part of Apple's design to tie the iPod to iTunes, and it may be that an initial connection to the iTunes software will clean it up enough to get gtkPod working.
>
>Eric "Shubes" wrote:
>
>
>>Mark,
>>I'm at a loss for any other suggestions. As I said before, I know
>>nothing about ipods. gtkpod developers should be of some help. Good luck
>>with it, and let us know how you make out.
>>
>>Mark Phillips wrote:
>>
>>
>>
>>>The directories have some other directories, but all of them are
>>>empty. I did a chmod -R when I made the changes.
>>>
>>>I am not sure how to proceed outside of the three options I outlined.
>>>
>>>Thanks for your thoughts!
>>>
>>>Mark
>>>
>>>Eric "Shubes" wrote:
>>>
>>>
>>>
>>>>I think that it's encouraging that this conforms to another system.
>>>>
>>>>What about the contents of those directories? I'm thinking that
>>>>permissions there might be restrictive. chmod -R will do a recursive
>>>>change.
>>>>
>>>>Let me know.
>>>>
>>>>P.S.
>>>>#1 I doubt that will help.
>>>>#2 sounds dangerous. I wouldn't do unless I had a backup to restore
>>>>with.
>>>>#3 Who knows, but I doubt it.
>>>>
>>>>Mark Phillips wrote:
>>>>
>>>>
>>>>
>>>>>Eric,
>>>>>
>>>>>I changed the permissions on some of the files and gtkpod still
>>>>>cannot do what it wants to.
>>>>>
>>>>>This is what I have right now. This also conforms to what a user on
>>>>>#debain has on his ipod, except he has a vfat system, so no
>>>>>.journal, .journal_info_block and .Trashes. gtkpod still cannot
>>>>>initialize the Calendars, Contacts, Notes and iPod_Control
>>>>>directories. Also, the -------------- for .journal and
>>>>>.journal_info_block are strange - not sure what that means
>>>>>
>>>>>softball:/# ls -al /media/ipod0
>>>>>total 1029
>>>>>drwxr-xr-x 1 root root 10 May 6 13:08 .
>>>>>drwxr-xr-x 5 root root 4096 May 6 07:53 ..
>>>>>d-wx-wx-wt 1 99 99 3 Apr 7 2004 .Trashes
>>>>>---------- 1 root root 8388608 Jan 15 2004 .journal
>>>>>---------- 1 root root 4096 Jan 15 2004 .journal_info_block
>>>>>drwxrwxrwx 1 emily emily 2 Dec 28 1962 Calendars
>>>>>drwxrwxrwx 1 emily emily 4 Jan 23 1963 Contacts
>>>>>drwxrwxrwx 1 emily emily 3 Jan 23 1963 Notes
>>>>>drwxrwxrwx 1 emily emily 5 May 5 13:30 iPod_Control
>>>>>softball:/#
>>>>>
>>>>>Some ideas; not sure which one to pursue first:
>>>>>
>>>>>1. Change ownership of .journal, .journal_info_block and .Trashes to
>>>>>emily.emily. Make emily.emily own everything.
>>>>>1A. chmod a+rwx for all files on the device and owner.group=emily.emily
>>>>>2. Delete all the files in /media/ipod0 and have gtkpod recreate
>>>>>them. I have no idea what that will do to the ipod.
>>>>>3. Connect the ipod to a mac and itunes, add some songs, and then
>>>>>try it with linux again. Since this ipod is fresh out of the box and
>>>>>never used, maybe iTunes will correct any problems in the file
>>>>>system. Does this even sound reasonable??
>>>>>
>>>>>Thanks for your thoughts!
>>>>>
>>>>>Mark
>>>>>
>>>>>Eric "Shubes" wrote:
>>>>>
>>>>>
>>>>>
>>>>>>I don't think that's the right umask.
>>>>>>
>>>>>>The filesystem appears to be mounted rw all right. The problem
>>>>>>appears to be that Contacts and Notes aren't readable or writable.
>>>>>>Compare security bits with Calendars. Why they're set that way (by
>>>>>>the Ipod, I presume) I don't know. If you "chmod u+r Contacts
>>>>>>Notes", that should turn the read bit for user on. "chmod u+rw
>>>>>>Contacts Notes", that should make them read-write.
>>>>>>
>>>>>>I'd do so with caution. I don't know anything about Ipods, but I'd
>>>>>>look into its setup, and try and figure out why Calendars is rw,
>>>>>>while Contacts and Notes are not readable nor writable.
>>>>>>
>>>>>>User and group 99 are defined by ipod, but are undefined on your
>>>>>>linux box, which is why they're listed simply as 99, as the system
>>>>>>doesn't have a name or group corresponding to that number. I don't
>>>>>>think that's a problem though, as the security bits for those
>>>>>>directories are all on.
>>>>>>
>>>>>>Mark Phillips wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>>I tried
>>>>>>>softball:~# mount -t hfsplus -o defaults,user,umask=0222 /dev/sda3
>>>>>>>/media/ipod0
>>>>>>>
>>>>>>>and got the same results...
>>>>>>>
>>>>>>>softball:~# ls -al /media/ipod0
>>>>>>>total 1029
>>>>>>>drwxr-xr-x 1 root root 10 May 5 10:13 .
>>>>>>>drwxr-xr-x 5 root root 4096 May 6 07:53 ..
>>>>>>>d-wx-wx-wt 1 99 99 3 Apr 7 2004 .Trashes
>>>>>>>---------- 1 root root 8388608 Jan 15 2004 .journal
>>>>>>>---------- 1 root root 4096 Jan 15 2004 .journal_info_block
>>>>>>>drwxr--r-- 1 emily emily 2 Dec 28 1962 Calendars
>>>>>>>d--x--x--x 1 emily emily 4 Jan 23 1963 Contacts
>>>>>>>d--x--x--x 1 emily emily 3 Jan 23 1963 Notes
>>>>>>>drwxrwxrwx 1 99 99 5 May 5 13:30 iPod_Control
>>>>>>>softball:~# Did I add the umask parameter correctly?
>>>>>>>
>>>>>>>Mark
>>>>>>>
>>>>>>>Anthony Boynes wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>You might try adding the umask option.
>>>>>>>>
>>>>>>>>umask=0222
>>>>>>>>
>>>>>>>>Anthony
>>>>>>>>
>>>>>>>>On 5/6/05, Mark Phillips <> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>I am trying to figure out the correct parameters to mount my iPod.
>>>>>>>>>
>>>>>>>>>I am running kernel 2.6.7-1-386 with Debian sarge. The iPod is
>>>>>>>>>accessed
>>>>>>>>>as a scsi device, and I am using gtkpod to access the device.
>>>>>>>>>However, I
>>>>>>>>>am having a problem just running mount to access the iPod's
>>>>>>>>>drive correctly.
>>>>>>>>>
>>>>>>>>>No matter what combination of parameters I try, the file
>>>>>>>>>permissions for
>>>>>>>>>the mounted files end up as user and group 99, which I think are
>>>>>>>>>root,
>>>>>>>>>and I cannot get rw permissions for the files.
>>>>>>>>>
>>>>>>>>>For example,
>>>>>>>>>
>>>>>>>>>mount -t hfsplus -o rw,defaults,user /dev/sda3 /media/ipod0
>>>>>>>>>
>>>>>>>>>results in
>>>>>>>>>#mount
>>>>>>>>>/dev/sda3 on /media/ipod0 type hfsplus (rw,noexec,nosuid,nodev)
>>>>>>>>>
>>>>>>>>>and
>>>>>>>>>
>>>>>>>>>#ls -al /media/ipod0
>>>>>>>>>total 1029
>>>>>>>>>drwxr-xr-x 1 root root 10 May 5 10:13 .
>>>>>>>>>drwxr-xr-x 5 root root 4096 May 6 07:53 ..
>>>>>>>>>d-wx-wx-wt 1 99 99 3 Apr 7 2004 .Trashes
>>>>>>>>>---------- 1 root root 8388608 Jan 15 2004 .journal
>>>>>>>>>---------- 1 root root 4096 Jan 15 2004 .journal_info_block
>>>>>>>>>drwxr--r-- 1 emily emily 2 Dec 28 1962 Calendars
>>>>>>>>>d--x--x--x 1 emily emily 4 Jan 23 1963 Contacts
>>>>>>>>>d--x--x--x 1 emily emily 3 Jan 23 1963 Notes
>>>>>>>>>drwxrwxrwx 1 99 99 5 May 5 13:30 iPod_Control
>>>>>>>>>
>>>>>>>>>I cannot read or write any of the files in Calendars, Contacts
>>>>>>>>>or Notes
>>>>>>>>>(no rw) and I cannot add music to iPod_Control (because of the
>>>>>>>>>user/group 99).
>>>>>>>>>
>>>>>>>>>I read the man page for mount and it says "defaults" should set
>>>>>>>>>these
>>>>>>>>>options - rw, suid, dev, exec, auto, nouser, and async, and user
>>>>>>>>>should
>>>>>>>>>trump the nouser option for defaults. I want the owner and group
>>>>>>>>>to be
>>>>>>>>>"user" (emily, in this case) and to have "rw" permissions on all
>>>>>>>>>the files.
>>>>>>>>>
>>>>>>>>>Can someone help me unravel the mysteries of mount? My daughter is
>>>>>>>>>really pestering me to get her new iPod to work...She is even
>>>>>>>>>threatening to re-install Windows on her machine to run iTunes!!
>>>>>>>>>
>>>>>>>>>Thanks!
>>>>>>>>>
>>>>>>>>>Mark
>>>>>>>>>
>>>>>>>>>---------------------------------------------------
>>>>>>>>>PLUG-discuss mailing list -
>>>>>>>>>To subscribe, unsubscribe, or to change you mail settings:
>>>>>>>>>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>---------------------------------------------------
>>>>>>>>PLUG-discuss mailing list -
>>>>>>>>To subscribe, unsubscribe, or to change you mail settings:
>>>>>>>>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>---------------------------------------------------
>>>>>>>PLUG-discuss mailing list -
>>>>>>>To subscribe, unsubscribe, or to change you mail settings:
>>>>>>>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>---------------------------------------------------
>>>>>PLUG-discuss mailing list -
>>>>>To subscribe, unsubscribe, or to change you mail settings:
>>>>>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>---------------------------------------------------
>>>PLUG-discuss mailing list -
>>>To subscribe, unsubscribe, or to change you mail settings:
>>>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>>
>>>
>>>
>>>
>>
>>
>
>---------------------------------------------------
>PLUG-discuss mailing list -
>To subscribe, unsubscribe, or to change you mail settings:
>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>
>

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss