LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mount permissions (https://www.linuxquestions.org/questions/linux-newbie-8/mount-permissions-241949/)

baseballtwin86 10-12-2004 09:21 PM

Mount permissions with iPod
 
I finally got my ipod mounted (after recompiling my kernel and all that fun stuff). The ipod mounts, and I can read the file system when logged in as root, but cannot read it as a regular user. I have chmod'ed the /mnt/ipod but it still doesn't allow me to access it as a regular user. Any idea?

Thanks

Harpune 10-12-2004 10:26 PM

How are you mounting your Ipod? Do you have a /mnt/ipod entry in your /etc/fstab file or are you just typing the command 'mount /dev/sda1 /mnt/ipod'?

If you have an entry in your fstab for the ipod, add the options 'uid=<your user id>,gid=<your group id>

for instance, if the line originally looks like this:
/dev/sda1 /home/shriver/usb vfat defaults 0 0
try something like this:
/dev/sda1 /home/shriver/usb vfat uid=1000,gid=1000,users,owner 0 0
(for explanations of the option type 'man mount')

If you mount the ipod with the mount command, add those options like this:
'mount -o uid=1000,gid=1000,owner,users /dev/ipod /mnt/ipod'

that should set the mounted partition as being owned by the specified user.

Good luck.

baseballtwin86 10-13-2004 11:03 AM

Hmm, the problem seems to have gotten more complicated:

When I run
Code:

mount /dev/sda2 /mnt/ipod
I am able to mount the ipod and explore the file system as root but cannot access the file system as a regular user.

When
Code:

/dev/sda2 /mnt/ipod vfat uid=1000,gid=1000,user,root 0 0
is in fstab and I run
Code:

mount /mnt/ipod
I get

Code:

wrong fs type, bad option, bad superblock on /dev/sda2, or too many mounted file systems
The same error occurs when I type
Code:

mount -o uid=1000,gid=1000,root,kennethleiter, -t  vfat /dev/sda2 /mnt/ipod
directly into the terminal. However, I am sure of the filesystem type: here is the partition table from fdisk:

Code:

Disk /dev/sda: 20.0 GB, 20000268288 bytes
255 heads, 63 sectors/track, 2431 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1          5      40131    0  Empty
/dev/sda2  *          6        2431    19486845    b  W95 FAT


misophist 10-13-2004 03:31 PM

If I remember correctly, vfat is for newer win98 machines and uses 32 bit words. Fat, which is what the table shows, is 16 bit. Try changing the fstab to fat. You may need to load the fat module.


All times are GMT -5. The time now is 09:08 AM.