You are not logged in.

#1 2004-12-31 09:32:54

alexthelion
Member
From: Switzerland
Registered: 2004-03-06
Posts: 117

Mounting drives on a udev+hal+gnome-volume-manager setup

Hi,

I set up Arch Linux on a friends computer. The setup seems to work, for example gnome-cd is started when one inserts an Audio CD. However, everything that involves mounting does not work. The error message given by gnome-volume-manager is

mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       or too many mounted file systems

* /bin/mount has sid set, 755, owner and file group are root
* udev is set up correctly, so /dev/hdc for example does have write rights for the group disk, and the user is member of that group.


What could be wrong?

Offline

#2 2005-01-01 04:49:45

segmental
Member
Registered: 2004-11-07
Posts: 51

Re: Mounting drives on a udev+hal+gnome-volume-manager setup

I am a little confused.

What does /dev/sda1 have to do with /dev/hdc?

Offline

#3 2005-01-01 12:06:59

alexthelion
Member
From: Switzerland
Registered: 2004-03-06
Posts: 117

Re: Mounting drives on a udev+hal+gnome-volume-manager setup

The problem was mainly about mounting, and not about /dev/sda or /dev/hdc. We found the solution:

The "mount" binary in Arch's current is confused by the entry "managed" that hal puts in /etc/fstab. You can correct this by

a) Adding a policy file in /usr/share/hal/fdi/95userpolicy named, for example, local.fdi that hinders hal from doing so:

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->

<deviceinfo version="0.2">

  <!-- Default policies merged onto computer root object  -->
  <device>
    <match key="info.udi" string="/org/freedesktop/Hal/devices/computer">
      <merge key="storage.policy.default.managed_keyword.primary" type="string">user</merge>
    </match>
  </device>

</deviceinfo>

Then restart hal by typing

/etc/rc.d/hal restart

as root

b) Patching "mount" as described in Arch Linux bug #1930.[/code]

Offline

Board footer

Powered by FluxBB