Re: Need help with mount and /etc/fstab

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Anthony Boynes
Date:  
To: plug-discuss
Subject: Re: Need help with mount and /etc/fstab
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