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
My mistake. I am used to just dealing with ntfs partitions, where I
dont even attempt to write, and just want to read.

umask=0000 should work.

Anthony

On 5/6/05, 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
> >
> >
>
> --
> -Eric 'shubes'
> "There is no such thing as the People;
>   it is a collectivist myth.
>   There are only individual citizens
>   with individual wills
>   and individual purposes."
> -William E. Simon (1927-2000),
>      Secretary of the Treasury (1974-1977)
>   "A Time For Truth" (1978), pg. 237

>
>
> ---------------------------------------------------
> 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