LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Trouble mounting ipod. Hal issue and mount point issue. (https://www.linuxquestions.org/questions/slackware-14/trouble-mounting-ipod-hal-issue-and-mount-point-issue-724223/)

okos 05-06-2009 03:35 PM

Trouble mounting ipod. Hal issue and mount point issue.
 
Ive had a few issues with mounting my ipod and a usb drive that has several partitions.

First issue. Depending on the device I mounted first, sometimes the ipod would mount as /dev/sda1 and sometimes as /dev/sdb1. This would really screw things up. To resolve this issue,I setup udev rules as follows for both my usb drive and for the ipod. I setup the rules so that the usb drive is /dev/sda1 - /dev/sda2 - and /dev/sda5 and the ipod as /dev/sdb1

Code:

#SDA1
KERNEL=="sd*", SUBSYSTEMS=="block", ATTR{start}=="63", ATTR{size}=="191446542", OWNER="dp", NAME="sda1"

#SDA2
KERNEL=="sd*", SUBSYSTEMS=="block", ATTR{size}=="409593240", OWNER="dp", NAME="sda2"

#SDA5
KERNEL=="sd*", SUBSYSTEMS=="block", ATTR{size}=="409593177", OWNER="dp", NAME="sda5"

# SDA Ipod
SUBSYSTEMS=="scsi", DRIVERS=="sd", ATTRS{model}=="iPod", ATTRS{vendor}=="Apple  ", NAME="sdb1"

I also setup fstab to direct where to mount the devices and who can mount the device.
Code:

/dev/hdc2        swap            swap        defaults        0  0
/dev/hdc1        /                ext3        defaults        1  1
/dev/hdc3        /vm              ext3        auto,users,exec,rw,sync        1  2
#/dev/sda2        /backup          ext3        auto,users,exec,rw,sync        1  2
#/dev/sda1        /mybook          vfat        auto,users,exec,rw,sync        1  0
#/dev/sda5        /rainbow        vfat        auto,users,exec,rw,sync        1  0
#/dev/cdrom      /mnt/cdrom      auto        noauto,owner,ro  0  0
#/dev/fd0        /mnt/floppy      auto        noauto,owner    0  0
devpts          /dev/pts        devpts      gid=5,mode=620  0  0
proc            /proc            proc        defaults        0  0
tmpfs            /dev/shm        tmpfs      defaults        0  0
#/backup/slackware-12.2-install-dvd.iso /iso users,iso9660 ro,loop,auto 0 0

/dev/sdb1        /ipod        vfat auto,users,exec,rw,sync        1  0

In spite of this setup, I still have problems mounting as a user instead of as root. Other times I see that the devices are are not shown as setup in the udev rules.

Problem 2 : I had not mounted my ipod in a while. Now, I am not able to mount it at all as a user. When using konqueror I get the following error.
Quote:

A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")
I know nothing about Hal.
Furthermore when trying to mount using command line, I get the following error:
Code:

mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
      missing codepage or helper program, or other error
      In some cases useful info is found in syslog - try
      dmesg | tail  or so

dmesg | tail
Code:

sd 5:0:0:0: [sda] 7999487 512-byte hardware sectors (4096 MB)
sd 5:0:0:0: [sda] Write Protect is off
sd 5:0:0:0: [sda] Mode Sense: 68 00 00 08
sd 5:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1 sda2
sd 5:0:0:0: [sda] Attached SCSI removable disk
sd 5:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete
FAT: invalid media value (0x2f)
VFS: Can't find a valid FAT filesystem on dev sda1.

I am not sure what "invalid media value means".

rworkman 05-07-2009 10:50 PM

The dbus error looks like your user isn't a member of the plugdev group.
The invalid media value error looks like the filesystem on the device is corrupt.

okos 05-10-2009 11:51 PM

Problem solved. I guess it was a hal issue. Or more accurately, a typo in the /etc/group file.

How I solved the problem:

I googled "Hal.Device.Volume" which led me to the following link.

http://www.jefferyfernandez.id.au/20...ng-of-volumes/

Having read the article, I figured that perhaps I had forgotten to add myself to the plugdev group.

I guess when I had manually added myself to plugdev a while back, I separated the user name from root with a colon instead of a comma.


All times are GMT -5. The time now is 04:16 PM.