LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-06-2009, 03:35 PM   #1
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 37
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".

Last edited by okos; 05-06-2009 at 03:47 PM.
 
Old 05-07-2009, 10:50 PM   #2
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
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.
 
Old 05-10-2009, 11:51 PM   #3
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Original Poster
Rep: Reputation: 37
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD sound issue/mount issue JonathanCC *BSD 4 02-03-2009 11:52 PM
Exaile iPod mount point asm06230 Linux - Hardware 2 11-09-2008 08:46 PM
iPod detection issue with Helix Banshee: ipod-debug-dump.sh - strange output! mahantya Suse/Novell 2 04-27-2007 08:14 PM
iPod detection issue with Banshee: ipod-debug-dump.sh - strange output! mahantya Linux - Software 0 03-26-2007 05:08 PM
ipod mounting issue davimint Slackware 1 01-14-2007 09:16 PM


All times are GMT -5. The time now is 11:27 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration