I don’t know why but every time I plug my iPod it gets mounted automatically as root and therefore I can’t write anything in it. I mentioned this issue on the #suse irc channel posting mount output:
eugenio@openSUSE:~> mount
/dev/sda7 on / type ext4 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
gvfs-fuse-daemon on /home/eugenio/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=eugenio)
/dev/sda5 on /media/8b18fc5d-4253-45a6-832c-23d36ea7bef7 type ext4 (rw,nosuid,nodev,uhelper=devkit)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdd2 on /media/EUPOD type vfat (rw,nosuid,nodev,uhelper=devkit,uid=1000,gid=100,shortname=lower,dmask=0077,utf8=1,flush)
and someone said the mount parameters were wrong… I read some posts about editing the fstab file but I’m not really sure how to do this (if this is the solution) and I believe this could have worked on earlier versions (where HAL was used) Is there anything I can do to make opensuse mount my ipod automatically with full access to normal users?. Thank you.
hexguy123:
I don’t know why but every time I plug my iPod it gets mounted
automatically as root and therefore I can’t write anything in it. I
mentioned this issue on the #suse irc channel posting mount output:
> /dev/sdd2 on /media/EUPOD type vfat
> (rw,nosuid,nodev,uhelper=devkit,uid=1000,gid=100,shortname=lower,dmask=0077,utf8=1,flush)
Hi
It’s not the fstab entry that needs modifying it’s the udev rule. When
you unplug the device the fstab entry will disappear, hence if you add
it the next time the system boots it will throw a wobbly since the
device may/may not be present.
Have a look down in /etc/udev/rules.d/ is there an ipod entry of sorts,
or post the output of;
ls /etc/udev/rules.d/
–
Cheers Malcolm °¿° (Linux Counter #276890 )
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.42-0.1-default
up 15 days 10:59, 5 users, load average: 0.10, 0.06, 0.06
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18
Here’s the output:
40-alsa.rules 60-vboxdrv.rules
40-lomoco.rules 60-wacom.rules
41-soundfont.rules 70-kpartx.rules
51-hso-udev.rules 70-persistent-cd.rules
51-lirc.rules 70-persistent-net.rules
51-usb-modeswitch.rules 70-printers.rules
52-irda.rules 71-multipath.rules
52-usx2yaudio.rules 77-network.rules
55-libsane.rules 79-yast2-drivers.rules
56-sane-backends-autoconfig.rules 81-mount.rules
60-libpisock.rules 81-mptctl.rules
60-pcmcia.rules 99-iwlwifi-led.rules
60-vboxadd.rules
and I don’t know if this is usable but here goes 81-mount.rules:
Udev rules for udevmountd
Skip ‘add’ events for device-mapper
ACTION==“add”, SUBSYSTEM==“block”, KERNEL==“dm-", GOTO=“skip_mount”
ACTION==“add”, SUBSYSTEM==“block”, KERNEL=="md ”, GOTO=“skip_mount”
ACTION==“add”, SUBSYSTEM==“block”, ENV{FSTAB_OPTS}==“nofail ”, IMPORT=“udevmountd”
ACTION==“change”, SUBSYSTEM==“block”, KERNEL==“dm-", ENV{FSTAB_OPTS}==“nofail ”, IMPORT=“udevmountd”
ACTION==“change”, SUBSYSTEM==“block”, KERNEL=="md ”, ENV{FSTAB_OPTS}==“nofail ”, IMPORT=“udevmountd”
ACTION==“add|change”, ENV{FSCK_STATE}==“unknown|clean”, RUN+=“udevmountd add”
ACTION==“remove”, ENV{FSTAB_OPTS}==“nofail ”, RUN+=“udevmountd remove”
LABEL=“skip_mount”
Thank you for your quick response btw.
Hi
Sorry for the delay, have the flu Can you post the output from dmesg
when you plug the device in. Also what Desktop are you using and
openSUSE release.
–
Cheers Malcolm °¿° (Linux Counter #276890 )
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.42-0.1-default
up 16 days 11:27, 5 users, load average: 0.03, 0.08, 0.08
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18
Oh, get well then ^^
Here’s the output of dmesg when i plug my ipod:
314.356070] usb 2-1: new high speed USB device using ehci_hcd and address 5
314.490206] usb 2-1: New USB device found, idVendor=05ac, idProduct=1209
314.490227] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
314.490243] usb 2-1: Product: iPod
314.490253] usb 2-1: Manufacturer: Apple
314.490263] usb 2-1: SerialNumber: 000A270015D519ED
314.490508] usb 2-1: configuration #1 chosen from 2 choices
314.498122] scsi7 : SCSI emulation for USB Mass Storage devices
314.509811] usb-storage: device found at 5
314.509816] usb-storage: waiting for device to settle before scanning
315.509154] scsi 7:0:0:0: Direct-Access Apple iPod 1.62 PQ: 0 ANSI: 0
315.509566] sd 7:0:0:0: Attached scsi generic sg2 type 0
316.405717] sd 7:0:0:0: [sdb] 14658336 2048-byte logical blocks: (30.0 GB/27.9 GiB)
316.406977] sd 7:0:0:0: [sdb] Write Protect is off
316.406992] sd 7:0:0:0: [sdb] Mode Sense: 68 00 00 08
316.406999] sd 7:0:0:0: [sdb] Assuming drive cache: write through
316.408040] usb-storage: device scan complete
316.408980] sd 7:0:0:0: [sdb] 14658336 2048-byte logical blocks: (30.0 GB/27.9 GiB)
316.410339] sd 7:0:0:0: [sdb] Assuming drive cache: write through
316.410363] sdb: sdb1 sdb2
316.567833] sd 7:0:0:0: [sdb] 14658336 2048-byte logical blocks: (30.0 GB/27.9 GiB)
316.569357] sd 7:0:0:0: [sdb] Assuming drive cache: write through
316.569379] sd 7:0:0:0: [sdb] Attached SCSI removable disk
317.400472] FAT: invalid media value (0x2f)
317.400484] VFS: Can’t find a valid FAT filesystem on dev sdb1.
317.982585] FAT: invalid media value (0x2f)
317.982597] VFS: Can’t find a valid FAT filesystem on dev sdb1.
Im running openSUSE 11.2 with gnome. Thanks
hexguy123:
Oh, get well then ^^
Here’s the output of dmesg when i plug my ipod:
> 314.356070] usb 2-1: new high speed USB device using ehci_hcd and
> address 5
> 314.490206] usb 2-1: New USB device found, idVendor=05ac,
> idProduct=1209
> 314.490227] usb 2-1: New USB device strings: Mfr=1, Product=2,
> SerialNumber=3
> 314.490243] usb 2-1: Product: iPod
> 314.490253] usb 2-1: Manufacturer: Apple
> 314.490263] usb 2-1: SerialNumber: 000A270015D519ED
> 314.490508] usb 2-1: configuration #1 chosen from 2 choices
> 314.498122] scsi7 : SCSI emulation for USB Mass Storage devices
> 314.509811] usb-storage: device found at 5
> 314.509816] usb-storage: waiting for device to settle before
> scanning
> 315.509154] scsi 7:0:0:0: Direct-Access Apple
> iPod 1.62 PQ: 0 ANSI: 0
> 315.509566] sd 7:0:0:0: Attached scsi generic sg2 type 0
> 316.405717] sd 7:0:0:0: [sdb] 14658336 2048-byte logical blocks:
> (30.0 GB/27.9 GiB)
> 316.406977] sd 7:0:0:0: [sdb] Write Protect is off
> 316.406992] sd 7:0:0:0: [sdb] Mode Sense: 68 00 00 08
> 316.406999] sd 7:0:0:0: [sdb] Assuming drive cache: write through
> 316.408040] usb-storage: device scan complete
> 316.408980] sd 7:0:0:0: [sdb] 14658336 2048-byte logical blocks:
> (30.0 GB/27.9 GiB)
> 316.410339] sd 7:0:0:0: [sdb] Assuming drive cache: write through
> 316.410363] sdb: sdb1 sdb2
> 316.567833] sd 7:0:0:0: [sdb] 14658336 2048-byte logical blocks:
> (30.0 GB/27.9 GiB)
> 316.569357] sd 7:0:0:0: [sdb] Assuming drive cache: write through
> 316.569379] sd 7:0:0:0: [sdb] Attached SCSI removable disk
> 317.400472] FAT: invalid media value (0x2f)
> 317.400484] VFS: Can’t find a valid FAT filesystem on dev sdb1.
> 317.982585] FAT: invalid media value (0x2f)
> 317.982597] VFS: Can’t find a valid FAT filesystem on dev sdb1.
Im running openSUSE 11.2 with gnome. Thanks
Hi
Hmmm, wonder if the fact it doesn’t like sdb1 is making devkit go
funny. Maybe using the command (have no idea what the output will be
like) of;
devkit-disks --dump
–
Cheers Malcolm °¿° (Linux Counter #276890 )
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.42-0.1-default
up 18 days 3:16, 4 users, load average: 0.01, 0.07, 0.07
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53
I just plugged it and here’s the output of both dmesg and devkit-disks --dump:
DMESG
[66256.420103] usb 2-1: new high speed USB device using ehci_hcd and address 16
[66256.554552] usb 2-1: New USB device found, idVendor=05ac, idProduct=1209
[66256.554574] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[66256.554590] usb 2-1: Product: iPod
[66256.554601] usb 2-1: Manufacturer: Apple
[66256.554611] usb 2-1: SerialNumber: 000A270015D519ED
[66256.554879] usb 2-1: configuration #1 chosen from 2 choices
[66256.565286] scsi15 : SCSI emulation for USB Mass Storage devices
[66256.566921] usb-storage: device found at 16
[66256.566926] usb-storage: waiting for device to settle before scanning
[66257.565228] scsi 15:0:0:0: Direct-Access Apple iPod 1.62 PQ: 0 ANSI: 0
[66257.565652] sd 15:0:0:0: Attached scsi generic sg2 type 0
[66257.570114] usb-storage: device scan complete
[66259.567940] sd 15:0:0:0: [sdb] 14658336 2048-byte logical blocks: (30.0 GB/27.9 GiB)
[66259.569166] sd 15:0:0:0: [sdb] Write Protect is off
[66259.569183] sd 15:0:0:0: [sdb] Mode Sense: 68 00 00 08
[66259.569190] sd 15:0:0:0: [sdb] Assuming drive cache: write through
[66259.571428] sd 15:0:0:0: [sdb] 14658336 2048-byte logical blocks: (30.0 GB/27.9 GiB)
[66259.572800] sd 15:0:0:0: [sdb] Assuming drive cache: write through
[66259.572825] sdb: sdb1 sdb2
[66259.750682] sd 15:0:0:0: [sdb] 14658336 2048-byte logical blocks: (30.0 GB/27.9 GiB)
[66259.753811] sd 15:0:0:0: [sdb] Assuming drive cache: write through
[66259.753835] sd 15:0:0:0: [sdb] Attached SCSI removable disk
[66260.668091] FAT: invalid media value (0x2f)
[66260.668103] VFS: Can’t find a valid FAT filesystem on dev sdb1.
[66261.416423] FAT: invalid media value (0x2f)
[66261.416436] VFS: Can’t find a valid FAT filesystem on dev sdb1.
devkit-disks --dump (i skipped my hd and other devices)
========================================================================
Showing information for /org/freedesktop/DeviceKit/Disks/devices/sdb
native-path: /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host15/target15:0:0/15:0:0:0/block/sdb
device: 8:16
device-file: /dev/sdb
by-id: /dev/disk/by-id/usb-Apple_iPod_000A270015D519ED-0:0
by-id: /dev/disk/by-uuid/A88B-3652
by-path: /dev/disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0
detected at: Tue 02 Feb 2010 07:58:37 PM CET
system internal: 0
removable: 1
has media: 1 (detected at Tue 02 Feb 2010 07:58:37 PM CET)
detects change: 1
detection by polling: 1
detection inhibitable: 1
detection inhibited: 0
is read only: 0
is mounted: 0
mount paths:
mounted by uid: 0
presentation hide: 0
presentation nopolicy: 0
presentation name:
presentation icon: multimedia-player-ipod-white
size: 30020272128
block size: 2048
job underway: no
usage: filesystem
type: vfat
version: FAT32
uuid: A88B-3652
label: iPod
partition table:
scheme: mbr
count: 2
drive:
vendor: Apple
model: iPod
revision: 1.62
serial: 000A270015D519ED
detachable: 1
can spindown: 0
rotational media: 1
ejectable: 0
media:
compat:
interface: usb
if speed: 480000000 bits/s
ATA SMART: not available
========================================================================
Showing information for /org/freedesktop/DeviceKit/Disks/devices/sdb1
native-path: /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host15/target15:0:0/15:0:0:0/block/sdb/sdb1
device: 8:17
device-file: /dev/sdb1
by-id: /dev/disk/by-id/usb-Apple_iPod_000A270015D519ED-0:0-part1
by-id: /dev/disk/by-uuid/A88B-3652
by-path: /dev/disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0-part1
detected at: Tue 02 Feb 2010 07:58:38 PM CET
system internal: 0
removable: 0
has media: 1 (detected at Tue 02 Feb 2010 07:58:38 PM CET)
detects change: 0
detection by polling: 0
detection inhibitable: 0
detection inhibited: 0
is read only: 0
is mounted: 0
mount paths:
mounted by uid: 0
presentation hide: 1
presentation nopolicy: 0
presentation name:
presentation icon: multimedia-player-ipod-white
size: 98574336
block size: 512
job underway: no
usage: filesystem
type: vfat
version: FAT32
uuid: A88B-3652
label: iPod
partition:
part of: /org/freedesktop/DeviceKit/Disks/devices/sdb
scheme: mbr
number: 1
type: 0x00
flags:
offset: 129024
size: 98574336
label:
uuid:
========================================================================
Showing information for /org/freedesktop/DeviceKit/Disks/devices/sdb2
native-path: /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host15/target15:0:0/15:0:0:0/block/sdb/sdb2
device: 8:18
device-file: /dev/sdb2
by-id: /dev/disk/by-id/usb-Apple_iPod_000A270015D519ED-0:0-part2
by-id: /dev/disk/by-uuid/87D5-C9EA
by-path: /dev/disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0-part2
detected at: Tue 02 Feb 2010 07:58:38 PM CET
system internal: 0
removable: 0
has media: 1 (detected at Tue 02 Feb 2010 07:58:38 PM CET)
detects change: 0
detection by polling: 0
detection inhibitable: 0
detection inhibited: 0
is read only: 0
is mounted: 1
mount paths: /media/EUPOD
mounted by uid: 1000
presentation hide: 0
presentation nopolicy: 0
presentation name:
presentation icon: multimedia-player-ipod-white
size: 29921566720
block size: 512
job underway: no
usage: filesystem
type: vfat
version: FAT32
uuid: 87D5-C9EA
label: EUPOD
partition:
part of: /org/freedesktop/DeviceKit/Disks/devices/sdb
scheme: mbr
number: 2
type: 0x0b
flags:
offset: 98703360
size: 29921566720
label:
uuid:
^^