allows mounting of EVMS partitions

Bug #76177 reported by Jerome Haltom
4
Affects Status Importance Assigned to Milestone
HAL
Won't Fix
Medium
hal (Ubuntu)
Invalid
Critical
Unassigned

Bug Description

Binary package hint: nautilus

This bug may in fact be part of HAL.

Nautilus for me lists a volume which I am allowed to mount: 245 MB Volume. Double clicking this icon in Nautilus CORRUPTS MY DATA.

The 245 MB Volume is representative of /dev/sda2, which is in actuality an EVMS volume which is ALREADY MOUNTED as /dev/evms/boot.

This is DANGEROUS.

Revision history for this message
Jerome Haltom (wasabi) wrote :

critical because it can cause unintentional data loss

Changed in nautilus:
importance: Undecided → Critical
description: updated
Revision history for this message
Jerome Haltom (wasabi) wrote :

Correcting the 59.6GB volume. That's a Windows partition. The only partition with the problem is /dev/evms/boot.

Revision history for this message
Jerome Haltom (wasabi) wrote :

Most applications which play with these sort of things do so by making sure the declared size of the file system (which has to be read from the file system) matches the actual size of the device. Otherwise, an explicit EVMS meta-data check at the end of the original file system may be fine.

description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

What version of Ubuntu do you use?

Revision history for this message
Jerome Haltom (wasabi) wrote : Re: [Bug 76177] Re: allows mounting of partitions that are already mounted (corruption!)

This is feisty.

On Sun, 2006-12-17 at 17:45 +0000, Sebastien Bacher wrote:
> What version of Ubuntu do you use?
>

Revision history for this message
Jerome Haltom (wasabi) wrote : Re: allows mounting of partitions that are already mounted (corruption!)

This is feisty. Mostly up to date.

hal (0.5.8.1-3ubuntu6) feisty; urgency=low
...
  * debian/patches/24_ignored_volumes.patch:
    - Replace the old policy about showing/hiding volumes: Now show all
      volumes, except those which are mounted automatically in /etc/fstab.
    - See https://wiki.ubuntu.com/MountAllLocalFilesystems for details.

 -- Martin Pitt <email address hidden> Thu, 7 Dec 2006 15:59:53 +0100

I suspect that take the blame.

Revision history for this message
John Vivirito (gnomefreak) wrote :

is this still a problem with hal version 0.5.8.1-4ubuntu1?

Changed in hal:
status: Unconfirmed → Needs Info
Revision history for this message
Jerome Haltom (wasabi) wrote :

Yes. Still a problem.

Changed in hal:
status: Needs Info → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote :

Can you please do 'lshal > hal.txt' and attach hal.txt here? Maybe EVMS volumes have some properties which we could use to detect the situation.

Revision history for this message
Martin Pitt (pitti) wrote :

Also, I never touched EVMS, so hints about how to detect an EVMS volume (without any nonstandard external dependencies) are appreciated. Otherwise I'll teach myself about evms, but it'll take a while.

Revision history for this message
Martin Pitt (pitti) wrote :

Still waiting for lshal.

Changed in hal:
status: Confirmed → Needs Info
Revision history for this message
Daniel Holbach (dholbach) wrote :

As described in the previous comments, your report lacks the information we need to investigate the problem further. We'll close this report for now - please reopen it if you can give us the missing information.

Changed in hal:
status: Needs Info → Rejected
Revision history for this message
Jerome Haltom (wasabi) wrote :

Sorry for the lateness of this reply. Email was being improperly filtered.

The drive which should not allow mounting is /dev/sda2. It seems to have no metadata indicating it is an EVMS volume. This is because such metadata is at the end of the partition, so it looks like a non-EVMS drive unless you examine the size.

Revision history for this message
Jerome Haltom (wasabi) wrote :

Would somebody else like to take a position on whether this is critical for Feisty? Data corruption by nothing more than a double-click is a bit evil.

I'm unsure if this effects previous distro releases.

Changed in hal:
status: Rejected → Unconfirmed
Revision history for this message
In , Martin Pitt (pitti) wrote :

In the bug above, the reporter has /dev/sda2 as an EVMS volume which is mounted as /dev/evms/boot. However, hal detects it as normal ext3 'filesystem' volume, so that people will see it in the Computer place and mount it. This is dangerous, though, since that will lead to data corruption.

Full lshal is at http://librarian.launchpad.net/7344710/hal.txt.

Now, hal already detects dm and lvm devices. I'm not familiar at all how evms works, so I don't have an off-hand suggestion how to detect such volumes. Any idea about additional information that I can ask from the original reporter?

Thank you!

Revision history for this message
Martin Pitt (pitti) wrote :

Thanks for the lshal output. So we now need to find out a command or another method which reliably detects whether or not a given device is an EVMS component.

Changed in hal:
status: Unconfirmed → Needs Info
Martin Pitt (pitti)
Changed in hal:
status: Needs Info → Confirmed
Revision history for this message
Jerome Haltom (wasabi) wrote :

Well, there is evms_gather_info, which returns a complete overview of the EVMS system state. It shows all EVMS volumes and their children. If a device shows up as a "child", then we should obviously exclude it. It's pretty slow to run though, and I'm not sure if it's appropriate to be run repeatedly on every device detection. Maybe it is, as long as it's watershed.

I'm also unsure how we should handle this case for systems that don't use EVMS. How do we know they don't use EVMS if they don't have EVMS installed? I am worried about the cast of a user inserting a hot plugable device which contains an EVMS volume, but the machine not having any of the EVMS packages installed. Do we want to attempt to mount this device? Would this be non-destructable in all cases? What if the user plugs it in, we auto mount it, and THEN the user installs EVMS after the fact, which then builds the EVMS volume and we mount that TOO? Or would we unmount the first volume once we knew it was a child? Before mounting the parent.

All of these decisions are hard ones to program.

An easy way out would be to put EVMS back into the default install.

I'd vote for that for unrelated reasons. =)

Actually, I'd really like to have that conversation again sometime. =/

Changed in hal:
status: Unknown → Confirmed
Revision history for this message
In , Zeuthen (zeuthen) wrote :

Kay, does libvolume_id recognize EVMS? Either way, that's where the bug is... HAL uses libvolume_id for all file system guessing.

Revision history for this message
In , Kay Sievers (kaysievers) wrote :

It does recognize some LVM metadata, not sure what EVMS is using.
Can you please provide the output of:
  /lib/udev/vol_id --export /dev/sda2

Revision history for this message
In , Martin Pitt (pitti) wrote :

I asked the original submitter for that information.

Revision history for this message
Martin Pitt (pitti) wrote :

Can you please copy&paste the output of

  sudo /lib/udev/vol_id --export /dev/sda2

here?

Thank you!

Changed in hal:
status: Confirmed → Needs Info
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for hal (Ubuntu) because there has been no activity for 60 days.]

Revision history for this message
In , Danny Kukawka (danny-kukawka) wrote :

No new infos since 22 months. Close the bug now.

Changed in hal:
status: Confirmed → Won't Fix
Changed in hal:
importance: Unknown → Medium
Changed in hal:
importance: Medium → Unknown
Changed in hal:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.