Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Automounting in userspace with ivman
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 18, 19, 20 ... 27, 28, 29  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
rohan28
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2004
Posts: 84
Location: Australia

PostPosted: Wed Jan 26, 2005 5:11 am    Post subject: Reply with quote

Phew... well, after significant wrangling, the new Ivman wiki is up :-) Have a look - http://ivman.sf.net.
Back to top
View user's profile Send private message
nightfrost
Apprentice
Apprentice


Joined: 07 Dec 2004
Posts: 293
Location: Sweden

PostPosted: Wed Jan 26, 2005 7:58 am    Post subject: Reply with quote

rohan28 wrote:
Phew... well, after significant wrangling, the new Ivman wiki is up :-) Have a look - http://ivman.sf.net.


Wow. Great job! :) I'll be posting some hardware stuff as soon as I can...
Back to top
View user's profile Send private message
kaltag
Tux's lil' helper
Tux's lil' helper


Joined: 28 Apr 2004
Posts: 116
Location: Boise, ID

PostPosted: Thu Jan 27, 2005 11:01 pm    Post subject: Reply with quote

Just got this setup and working on my laptop. Works beautifully on my Toshiba laptop with flash drives, CD/DVD and externel hard drives. The only issue is the known problem with blank CD-Rs not ejecting which is easy enough to fix. Great job!
_________________
Yeah, I know about the recovery console. Usually, it doesn't do anything more than I can do with a match, a weedwhacker, and a sledgehammer. Actually, it does a whole lot less. - Caffinehog
Back to top
View user's profile Send private message
rohan28
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2004
Posts: 84
Location: Australia

PostPosted: Sun Jan 30, 2005 1:05 am    Post subject: Reply with quote

New version of Ivman: 0.5_pre2.
Changes since 0.5_pre1:
* ivm.mountable match is more intelligent; it should no longer be necessary to have separate rules to avoid attempting to mount blank/audio CDs.
* ivm.mountable match is more verbose; if your device is not considered mountable, Ivman will tell you exactly why. Good for people whose hardware is not yet supported by Ivman.
* debugging output is better; all messages will go to system log if forked, or stdout if not forked. There should no longer be messages from libhal.
* lockfile actually works now! Ivman won't let you start more than one instance for a particular user.

Hopefully will be in portage soon.
Back to top
View user's profile Send private message
gabo
Tux's lil' helper
Tux's lil' helper


Joined: 24 Aug 2004
Posts: 134
Location: Lyon, France

PostPosted: Sun Jan 30, 2005 1:48 am    Post subject: Reply with quote

Hello !

Thanks a lot rohan28 ! ivman is awesome ! It works nicely and do perfectly what it's supposed to do :)
Back to top
View user's profile Send private message
frodoontop
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2004
Posts: 86

PostPosted: Sun Jan 30, 2005 5:08 pm    Post subject: Reply with quote

This is working great, however it's not really clear for me how or when ivman unmounts an usb-stick. It normally gets mounted as /dev/sda1. But if I plug it out and in, it's /dev/sdb1, so it won't get automounted again. Can somebody shed some light on this please?
Back to top
View user's profile Send private message
gabo
Tux's lil' helper
Tux's lil' helper


Joined: 24 Aug 2004
Posts: 134
Location: Lyon, France

PostPosted: Sun Jan 30, 2005 5:30 pm    Post subject: Reply with quote

frodoontop> You have to use udev.You can follow this guide to set it up : http://www.gentoo.org/doc/en/udev-guide.xml

Good luck ;)
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Mon Jan 31, 2005 12:44 pm    Post subject: Reply with quote

I've got udev and i have the same problem. You mean I should have my own rule for each usb device (2 usb-stick and a camera) that i have? There isn'i a more elegant solution?
Thanks
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
gabo
Tux's lil' helper
Tux's lil' helper


Joined: 24 Aug 2004
Posts: 134
Location: Lyon, France

PostPosted: Mon Jan 31, 2005 3:11 pm    Post subject: Reply with quote

ivman uses the kernel device name (%k in udev syntax). I does not use the symlink you can create using udev.

So, two solutions:
- do not use symlink for you devices names
- edit the file IvmMapping.xml and add a device mapping rule.

As for me, I added rules and it's fine :)
Back to top
View user's profile Send private message
rohan28
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2004
Posts: 84
Location: Australia

PostPosted: Mon Jan 31, 2005 11:48 pm    Post subject: Reply with quote

Onip: In general, you do not need to set up any fstab rules at all for completely removable hardware (i.e. you still need them for CD drives, but not for removable USB drives). It should all be automatic. Since you don't need fstab rules, you don't need to know in advance the device node, so it shouldn't matter if the USB stick gets a new name every time you plug it in (that's what usually happens to mine, but it still mounts fine).

Volumes will, by default, be mounted on /media/{volume_label}, or /media/usbdisk{n}, or something else in /media (note that this is the new FHS standard... /media for removable media, other stuff still goes in /mnt). You can change the default mount points in the HAL config files in /usr/share/hal/fdi .

If your hardware is not being automatically mounted... debugging output is your friend :-) Use ivman-0.5_pre2 with debug=true in /etc/ivman/IvmConfigBase.xml and see what gets put into the log around the time you plug your device in.

As for unmounting... the user is supposed to unmount removable volumes BEFORE unplugging them. CD/DVD drives seem to be an exception since they are not writable, and in many cases the kernel and Ivman can handle unplugging USB drives without unmounting just fine, but it's still always a dangerous thing to do (especially if your USB volumes can't be mounted with the 'sync' option). If you are having problems with mount points not being erased or fstab rules not disappearing when you unplug USB drives, remember to unmount them first.
Back to top
View user's profile Send private message
ahood
n00b
n00b


Joined: 27 May 2004
Posts: 8
Location: ENGLAND

PostPosted: Wed Feb 02, 2005 6:11 pm    Post subject: Reply with quote

Thanks to all the developer who have worked on ivman. Its a fantastic program. :D :D

I was inspired by the simple kdialog command posted on http://ivman.sourceforge.net/wiki/Custom_Rules so wrote a script that is called by ivman when a disc is inserted.

Here is my IvmActionsConfig.xml file and script:
IvmActionsConfig.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<ivm:ActionsConfig version="0.2" xmlns:ivm="http://www.eikke.com/ivm">

   <!--
      hal.volume.is_disc         to determine if a CD or dvd is inserted

      (not used) $hal.volume.disc.is_rewritable$      pass to script if the disc is rewritable (true or false)
      $hal.volume.disc.is_appendable$      pass to script if the disc is appendable (true or false)
      $hal.volume.disc.is_blank$      pass to script if the disc is blank (true or false)
      $hal.volume.disc.has_data$      pass to script if the disc has data on it (true or false)
      $hal.volume.disc.has_audio$      pass to script if the disc has audio on it (true or false)
      $hal.volume.disc.type$         pass to script what type the disc is (CD_ROM, CD_R, CD_RW, dvd_ROM)
      $hal.volume.is_mounted$         pass to script if the disc is mounted (true or false)
      $hal.volume.mount_point$      pass to script where the disc is mounted (/media/cdrecorder or /media/cdrom)
      $hal.volume.label$         pass to script what the disc label is
      $hal.block.device$         pass to script which drive the disc is inserted into (/dev/hdc or /dev/hdd)
   -->

   <ivm:Match name="hal.volume.is_disc" value="true">
      <ivm:Option name="exec" value="$HOME/.ivman/cd.sh $hal.volume.disc.is_appendable$ $hal.volume.disc.is_blank$ $hal.volume.disc.has_data$ $hal.volume.disc.has_audio$ $hal.volume.disc.type$ $hal.block.device$ $hal.volume.is_mounted$ $hal.volume.label$ $hal.volume.mount_point$" />
   </ivm:Match>


    <!-- autoplay video DVDs -->
   
    <ivm:Match name="hal.volume.disc.type" value="dvd_ROM">
        <ivm:Option name="execdvd" value="kdialog --icon $HOME/.ivman/xapp.png --caption 'DVD has been detected' --yesno 'DVD inserted.  Play?' &amp;&amp; xine -f -g dvd:$hal.block.device$" />
    </ivm:Match>
   
   
   <!-- ======================= KDE notifications ========================== -->
   <!-- Gives you nice info about plugged in usb printer. To restart cups, add this to the end of the 'exec' command:  &amp;&amp; /etc/init.d/cupsd restart-->
   
   <ivm:Match name="hal.info.category" value="printer">
       <ivm:Match name="hal.info.bus" value="usb">
           <ivm:Option name="exec" value="dcop knotify default notify 'Ivman' 'New Device' 'USB printer detected: $hal.info.vendor$ $hal.info.product$' '/usr/kde/3.3/share/sounds/KDE_Beep_Ahem.wav' '' 17 1" />
       </ivm:Match>
   </ivm:Match>
   
   <!-- ======================= end of KDE notifications =================== -->
   
</ivm:ActionsConfig>

My script cd.sh
Code:
#!/bin/sh
#
#
appendable=$1            #if the disc is appendable (true or false)
blank=$2            #if the disc is blank (true or false)
data=$3               #if the disc has data on it (true or false)
audio=$4            #if the disc has audio on it (true or false)
type=$5               #what type the disc is (cd_rom, cd_r, cd_rw, dvd_rom)
device=$6            #which drive the disc is inserted into (/dev/hdc or /dev/hdd)
mounted=$7            #if the disc is mounted (true or false)
label=$8            #what the disc label is
mount_point=$9            #where the disc is mounted (/media/cdrecorder or /media/cdrom)


function cd_media()
{
   if [ $audio = "true" ]; then
      if [ $data = "true" ]; then
         if [ $device = "/dev/hdc" ]; then
            kdialog --icon $HOME/.ivman/xapp.png --caption "CD with audio and data" --radiolist "Select a program to start:" 3 "KsCD - CD player" on \
               4  "Konqueror - file manager" off 5 "KAudioCreator - cd ripper" off 6 "K3B - burning software" off 8 "Eject CD" off
         else
            kdialog --icon $HOME/.ivman/xapp.png --caption "CD with audio and data" --radiolist "Select a program to start:" 3 "KsCD - CD player" on \
               4  "Konqueror - file manager" off 8 "Eject CD" off
         fi
      elif [ $data = "false" ]; then
         if [ $device = "/dev/hdc" ]; then
            kdialog --icon $HOME/.ivman/xapp.png --caption "Audio CD" --radiolist "Select a program to start:" 3 "KsCD - cd player" on \
               5 "KAudioCreator - cd ripper" off 7 "K3B - burning software" off 9 "Eject CD" off
         else
            kdialog --icon $HOME/.ivman/xapp.png --caption "Audio CD" --radiolist "Select a program to start:" 3 "KsCD - cd player" on \
               9 "Eject CD" off
         fi
      fi
   elif [ $blank = "true" ]; then
      if [ $device = "/dev/hdc" ]; then
         kdialog --icon $HOME/.ivman/xapp.png --caption "Blank CD" --radiolist "Select a program to start:" \
               6 "K3B - burning software" on 9 "Eject CD" off
      else
         kdialog --icon $HOME/.ivman/xapp.png --caption "Blank CD" --warningcontinuecancel "This is not a CD-Burner! \n The blank CD will now be ejected."
      fi
   elif [ $appendable = "true" ]; then
      if [ $device = "/dev/hdc" ]; then
         kdialog --icon $HOME/.ivman/xapp.png --caption "Appendable CD" --radiolist "Select a program to start:" 4 "Konqueror - file manager" on \
               6 "K3B - burning software" off 8 "Eject CD" off
      else
         kdialog --icon $HOME/.ivman/xapp.png --caption "Appendable CD" --radiolist "Select a program to start:" 4 "Konqueror - file manager" on \
               8 "Eject CD" off
               fi
   elif [ $data = "true" ]; then
      if [ $device = "/dev/hdc" ]; then
         kdialog --icon $HOME/.ivman/xapp.png --caption "CD with data" --radiolist "Select a program to start:" 4  "Konqueror - file manager" on \
            6 "K3B - burning software" off 8 "Eject CD" off
      else
         kdialog --icon $HOME/.ivman/xapp.png --caption "CD with data" --radiolist "Select a program to start:" 4  "Konqueror - file manager" on \
            8 "Eject CD" off
      fi
   fi
   return
}

function kaudiocreator_function()
{
   kdialog --icon $HOME/.ivman/xapp.png --caption "KAudioCreator - cd ripper" --error "Not implemented yet. Sorry! " && /usr/bin/eject $device
}

function kscd_function()
{
   autoplay=`cat $HOME/.kde/share/config/kscdrc | grep AUTOPLAY=`
   audiosystem=`cat $HOME/.kde/share/config/kscdrc | grep AudioSystem=`
   cddevice="CDDevice=$device"
   volume=`cat $HOME/.kde/share/config/kscdrc | grep Volume=`
   
   echo -e "[GENERAL]\n$autoplay\n$audiosystem\n$cddevice\n$volume" > $HOME/.kde/share/config/kscdrc && kscd
}

cd_media > /tmp/cd_mediaitem.$$         #call the function 'cd_media' and put results into a temp. file
cd_mediaitem=`cat /tmp/cd_mediaitem.$$`      #put the information from the file into the variable 'cd_mediaitem'

case $cd_mediaitem in
   "0") /usr/bin/eject $device;;      #continue with eject
   "1") exit;;            #when the button 'No' is pressed
   "2") exit;;            #cancel the eject
   "3") kscd_function;;         #start Kscd
   "4") konqueror $mount_point;;      #start Konqueror
   "5") kaudiocreator_function;;      #start KAudioCreator
   "6") k3b;;            #start K3B
   "7") k3b --copycd;;         #start K3B for CD copy
   "8") sudo /usr/bin/eject $device;;   #start Eject for mounted media
   "9") /usr/bin/eject $device;;      #start Eject of unmounted media
esac

rm -f /tmp/cd_mediaitem.$$         #remove the temp. file 'cd_mediaitem.$$'


As I'm a complete n00b please could anyone tell me if there is a better way to do this or is this alright? Thanks for all your great work.
Back to top
View user's profile Send private message
ahood
n00b
n00b


Joined: 27 May 2004
Posts: 8
Location: ENGLAND

PostPosted: Thu Feb 03, 2005 9:08 am    Post subject: Reply with quote

I forgot to add that I have two drives, a DVD drive (/dev/hdd) and CD-RW drive (/dev/hdc).
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Thu Feb 03, 2005 9:41 am    Post subject: Reply with quote

ahood wrote:
I was inspired by the simple kdialog command posted on http://ivman.sourceforge.net/wiki/Custom_Rules so wrote a script that is called by ivman when a disc is inserted.


I just want ivman users to know that there's an italian project called UDS that lets you create your own dialog on the fly and that is compatible with kdialog gtk1 & 2 and ncurses too. I havent still tried it because i'm still fighting with ivman and i don't have time to solve it now (fu....ing university :wink: ). It could be interesting because i think that with this scripts like ahood's one would play fine in each wm....

Byez
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
DrWoland
l33t
l33t


Joined: 13 Nov 2004
Posts: 603

PostPosted: Thu Feb 03, 2005 7:18 pm    Post subject: Reply with quote

Onip wrote:
ahood wrote:
I was inspired by the simple kdialog command posted on http://ivman.sourceforge.net/wiki/Custom_Rules so wrote a script that is called by ivman when a disc is inserted.


I just want ivman users to know that there's an italian project called UDS that lets you create your own dialog on the fly and that is compatible with kdialog gtk1 & 2 and ncurses too. I havent still tried it because i'm still fighting with ivman and i don't have time to solve it now (fu....ing university :wink: ). It could be interesting because i think that with this scripts like ahood's one would play fine in each wm....

Byez


That would pretty of nice.
Back to top
View user's profile Send private message
nightfrost
Apprentice
Apprentice


Joined: 07 Dec 2004
Posts: 293
Location: Sweden

PostPosted: Thu Feb 03, 2005 10:46 pm    Post subject: Reply with quote

Rohan: just thought I should mention that I've posted an issue concerning a 7-in-1 card reader at http://ivman.sourceforge.net/wiki/New_Hardware. Last thing was that I should post a debug output, but I just haven't had access to the computer with the 7-in-1 for a while. I haven't forgotten to submit the debug, and will do it as soon as I can. (I want to help out this lovely project in any way I can :wink: )[/b]
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Sat Feb 05, 2005 10:19 am    Post subject: Reply with quote

I'm giving another chance to ivman and I've got just a simple question. What version of hal & d-bus do you suggest?
Thanks
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
ikke
Apprentice
Apprentice


Joined: 14 Jan 2005
Posts: 225
Location: Belgium

PostPosted: Sat Feb 05, 2005 11:17 am    Post subject: Reply with quote

Onip wrote:
I'm giving another chance to ivman and I've got just a simple question. What version of hal & d-bus do you suggest?
Thanks
Hal: latest (0.4.5 afaik), DBUS: not 0.30, incompatible with HAL, so 0.20
_________________
Working day and night to enhance your Linux Desktop experience :)
Blog
Back to top
View user's profile Send private message
jerome40130
n00b
n00b


Joined: 07 Feb 2005
Posts: 1

PostPosted: Mon Feb 07, 2005 1:50 am    Post subject: Reply with quote

Hi

I'm trying ivman on my debian system (sorry not yet debian mailing list for ivman ...)
every thing look to work except the "mount point " creation in /media and the new entri in /etc/fstab

I have found the problemù : fstab-sync is not launch.
If I launch by hand : fstab-sync -a /org/freedesktop/Hal/devices/block_74C4-3E03

/media/USB is create and a new entri in fstab is create too

Whats going wrong ? hal or ivman ?
Is it a configure problem ?

Thanks for your answer

by

Jerome
Back to top
View user's profile Send private message
genus
n00b
n00b


Joined: 25 Aug 2004
Posts: 53

PostPosted: Mon Feb 07, 2005 9:40 pm    Post subject: Reply with quote

When I eject a data cd and hald is running /var/log/messages gets spammed with these messages:
Code:
Feb  7 22:32:52 homer VFS: busy inodes on changed media.
Feb  7 22:32:55 homer VFS: busy inodes on changed media.
Feb  7 22:32:55 homer VFS: busy inodes on changed media.
Feb  7 22:32:57 homer VFS: busy inodes on changed media.
Feb  7 22:32:59 homer VFS: busy inodes on changed media.
Feb  7 22:33:01 homer VFS: busy inodes on changed media.

When I put the data cd back in the cdrom player the messages stop.
After some googling it seems you get this message when a device is removed while mounted. So isn't the cd unmounted when ejected and shouldn't ivman take care of this or is this a hal related problem?

Any ideas how to prevent/correct this?

Arco
Back to top
View user's profile Send private message
rohan28
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2004
Posts: 84
Location: Australia

PostPosted: Tue Feb 08, 2005 1:44 am    Post subject: Reply with quote

genus: for the majority of CD drives, Linux doesn't know the CD is no longer available until after it is ejected, at which time it's too late to umount. There are a few drives which send an 'eject' signal to the OS when the eject button is pressed, allowing software to do whatever necessary before the disc becomes unavailable, and Ivman is supposed to already handle these drives, but they are really quite rare (actually, I think they are so rare that support for them might even have been removed from HAL recently, in which case Ivman won't handle them). So, there is not really any simple way around this problem I'm afraid... you can always manually umount CD drives before ejecting, but of course that's no fun. Just keep trying new versions of HAL and new kernels.

jerome40130: It's a problem with HAL... fstab-sync is not a separate daemon, it's launched from hald when a new device is added. On Gentoo, this is done automatically by a symlink, '/etc/hal/device.d/50-fstab-sync.hal' -> '/usr/sbin/fstab-sync'. Try creating that link and maybe it will work... or maybe not, due to different layout of files on Debian. In any case, you may want to tell the Debian admins that it would be a good thing to set up by default :-)

ahood: that is quite a nice script :-) I would, in fact, like to include some kind of nice script to handle all kinds of inserted media, on both Gnome and KDE desktops, although such a thing would always be optional for the user of course. Onip, I followed that link you gave, but unfortunately the thread is not in a language I understand... :-) In any case, I wouldn't want to force users to install another program for such a little thing... so it would only make sense to use that if it becomes widely adopted.

ahood, although I guess you generally wouldn't think it necessary, I want you to say one of the two following: "By the way, that script is released under the GPL" or "By the way, that script is released into the public domain". Then we can take that script and improve and add to it :-) (actually, I'm thinking it might be better to do it in Perl anyway...)
Back to top
View user's profile Send private message
frodoontop
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2004
Posts: 86

PostPosted: Tue Feb 08, 2005 12:48 pm    Post subject: Reply with quote

I was already running in udev it seemed. I commented the line in fstab for my usbstick and made the dir /media. To my big surprise there was a directory usbstick automatically created in /media when pluggin the stick. However it didn't mount, The debug message is as follows:

hal_interface.c:43 (hal_device_added) New Device: /org/freedesktop/Hal/devices/usb_device_66f_8000_1001_-1_0002F5DB03994C89
IvmConfigActions.c:42 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/usb_device_66f_8000_1001_-1_0002F5DB03994C89 can't be mounted because it is not a block device
hal_interface.c:43 (hal_device_added) New Device: /org/freedesktop/Hal/devices/usb_usb_device_66f_8000_1001_-1_0002F5DB03994C89_0
IvmConfigActions.c:42 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/usb_usb_device_66f_8000_1001_-1_0002F5DB03994C89_0 can't be mounted because it is not a block device
hal_interface.c:43 (hal_device_added) New Device: /org/freedesktop/Hal/devices/scsi_host_8
IvmConfigActions.c:42 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/scsi_host_8 can't be mounted because it is not a block device
hal_interface.c:43 (hal_device_added) New Device: /org/freedesktop/Hal/devices/scsi_8_0_0_0
IvmConfigActions.c:42 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/scsi_8_0_0_0 can't be mounted because it is not a block device
hal_interface.c:43 (hal_device_added) New Device: /org/freedesktop/Hal/devices/block_8_0
IvmConfigActions.c:46 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/block_8_0 is /dev/sda
IvmConfigActions.c:58 (ivm_device_is_mountable) /dev/sda can't be mounted because it is not a volume
IvmConfigActions.c:46 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/block_8_0 is /dev/sda
IvmConfigActions.c:58 (ivm_device_is_mountable) /dev/sda can't be mounted because it is not a volume
IvmConfigActions.c:46 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/block_8_0 is /dev/sda
IvmConfigActions.c:58 (ivm_device_is_mountable) /dev/sda can't be mounted because it is not a volume
hal_interface.c:43 (hal_device_added) New Device: /org/freedesktop/Hal/devices/block_8_1
IvmConfigActions.c:46 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/block_8_1 is /dev/sda1
IvmConfigActions.c:117 (ivm_device_is_mountable) /dev/sda1 is mountable and will be mounted if Ivman rules specify to do so
manager.c:454 (ivm_media_changed) Attempting to mount /dev/sda1
manager.c:339 (ivm_run_command) Running: /bin/mount -o umask=0007,gid=100 /dev/sda1
IvmConfigActions.c:42 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/scsi_8_0_0_0 can't be mounted because it is not a block device
IvmConfigActions.c:42 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/scsi_8_0_0_0 can't be mounted because it is not a block device
IvmConfigActions.c:46 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/block_8_1 is /dev/sda1
IvmConfigActions.c:117 (ivm_device_is_mountable) /dev/sda1 is mountable and will be mounted if Ivman rules specify to do so
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Any ideas?
Back to top
View user's profile Send private message
ahood
n00b
n00b


Joined: 27 May 2004
Posts: 8
Location: ENGLAND

PostPosted: Tue Feb 08, 2005 2:20 pm    Post subject: Reply with quote

rohan28: thats a good idea as it didn't cross my mind about a licence :oops: . It is released under the GPL.
Cheers rohan, keep up the good work. :D
Back to top
View user's profile Send private message
rohan28
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2004
Posts: 84
Location: Australia

PostPosted: Wed Feb 09, 2005 1:18 am    Post subject: Reply with quote

frodoontop: I have observed what I think is exactly the same error recently. In my case, Ivman worked fine, but fstab-sync was putting an 'iocharset=utf8' option for vfat filesystems in my fstab, and mount didn't like that for some reason (although, if you do 'man mount' and look at the options for FAT filesystems, it says it should work.)

Try editing /usr/share/hal/fdi/90defaultpolicy/storage-policy.fdi and removing/commenting this bit:
Code:

          <!-- Use UTF-8 charset for vfat -->
          <match key="volume.fstype" string="vfat">
              <merge key="volume.policy.mount_option.iocharset=utf8" type="bool">true</merge>
          </match>


This isn't the first time HAL's default settings have broken things for me :-(
Back to top
View user's profile Send private message
frodoontop
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2004
Posts: 86

PostPosted: Wed Feb 09, 2005 10:37 am    Post subject: Reply with quote

This works! Thank you! I had to find out how to comment an xml file though :P . This seems like a fault in the default settings for HAL indeed.

When using dmesg | tail it showed:

sda: sda1
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi1, channel 0, id 0, lun 0, type 0
usb-storage: device scan complete
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
Unable to load NLS charset utf8
FAT: IO charset utf8 not found
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
Unable to load NLS charset utf8
FAT: IO charset utf8 not found

<edit> I have posted a bugreport at freedesktop.org about this</edit>
Back to top
View user's profile Send private message
rohan28
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2004
Posts: 84
Location: Australia

PostPosted: Wed Feb 09, 2005 12:10 pm    Post subject: Reply with quote

Hmm. You can probably also fix this by turning on File Systems -> Native Language Support -> NLS UTF8 in your kernel config. It may not be good practise for whoever set those configs to assume we have this enabled, but it's probably a good thing to have enabled anyway.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 18, 19, 20 ... 27, 28, 29  Next
Page 19 of 29

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum