11.2 partition isolation issue

You never mount those partitions. They behave like the extended partition. That’s what make it so absurd to have them around in a filemanager or on the desktop. Here’s a snip of dmesg:

    1.560110]  sda:
    1.560147]  sdb: sdb1 sdb2 sdb3 sdb4 < sda1 sda2 sda3 sda4 < sdb5 sda5 sdb6 sda6 sda7 sdb7 sdb8 sda8 sdb9 sda9
    1.620042] usb 3-1: new full speed USB device using ohci_hcd and address 2
    1.620557]  sdb10 sda10 sdb11 sda11 sdb12 sda12 sdb13 >
    1.650722]  sda13 sda14 sda15 **sdb2: <bsd: sdb14 sdb15 sdb16 sdb17 sdb18 sdb19 >**
    1.669938]  sda16 **sdb3: <bsd: sdb20 sdb21 sdb22 sdb23 sdb24 sdb25 >**
    1.682544]  sda17
    1.682615] sd 4:0:0:0: [sdb] Attached SCSI disk
    1.693280]  sda18 sda19 sda20 >
    1.725195]  **sda2: <bsd: sda21 sda22 sda23 sda24 sda25 sda26 sda27 >**
    1.739277]  **sda3: <bsd: sda28 sda29 sda30 sda31 sda32 sda33 >**
    1.740360] sd 2:0:0:0: [sda] Attached SCSI disk

What I mount are the partitions sda21-33 and sdb14-25.
Again it’s a bug. These primary Unix partitions should never appear on a desktop and the /lib/udev/rules.d rule I modified should apply or another later rule in /etc/udev/rules.d.

On 2010-12-30 15:36, please try again wrote:

> You never mount those partitions. They behave like the extended
> partition. That’s what make it so absurd to have them around in a
> filemanager or on the desktop. Here’s a snip of dmesg:

Ah, I understand. It is a bug, as you say. You should report it at
Bugzilla, then, the desktop should ignore them automatically. Unless the
partition type is one that is also used for something else :-?


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

On 2010-12-30 15:36, hcvv wrote:

> BTW, as end-user, you can right click on these icons and “hide” them.

An unhide later?


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Yes, when you right click in empty space in the panel there is a Show All.

On 2010-12-30 22:36, hcvv wrote:

>> And unhide later?

> Yes, when you right click in empty space in the panel there is a Show
> All.

I don’t get that one… Maybe because I don’t have anything in hiding now.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Glad you got it. The partition type is not used for anything else. It ist 0xA5 (for FreeBSD), but could also be 0xA6 (OpenBSD) or 0xA9 (NetBSD). All these partitions are just “containers” for other partitions. If you take a look in the file /lib/udev/rules.d/80-udisk.rules (installed with the package udisks) you will see the following section, which specify which partition types should be hidden (I did wrap the lines for more readability). I further added type 0xa5 to this list. But it had no effect.

# Partitions which desktops should not display
#

# Apple Bootstrap partitions
ENV{UDISKS_PARTITION_SCHEME}=="apm", ENV{UDISKS_PARTITION_TYPE}=="Apple_Bootstrap", ENV{UDISKS_PRESENTATION_HIDE}="1"

# special MBR partition types (EFI, hidden, etc.)
# see [noparse]http://www.win.tue.nl/~aeb/partitions/partition_types-1.html[/noparse]
ENV{UDISKS_PARTITION_SCHEME}=="mbr", \
  ENV{UDISKS_PARTITION_TYPE}=="0x00|0x11|0x12|0x14|0x16|0x17|0x1b|0x1c|0x1e|\
0x27|0x3d|0x84|0x8d|0x90|0x91|0x92|0x93|0x97|0x98|0x9a|0x9b|0xbb|0xc2|\
0xc3|0xdd|0xef|**0xa5**", \
  ENV{UDISKS_PRESENTATION_HIDE}="1"

Notice that 0x27 - the famous Windows RE partition from Windows 7 - is in that list.

There are two items shown here, when the Show all is’nt there for the reason you mention, then the other one Add Item should still be there imho.
Sorry, I wanted to make a screen picture from this, but the right click menu disappears when I click in the Ksnapshot window. I Right click below the last item in that panel which is Dustbin in mine.

And what about a miriad of other types, like those voor Volume Manager. I think dices were used here :slight_smile:

On 2010-12-31 11:06, hcvv wrote:

> There are two items shown here, when the Show all is’nt there for the
> reason you mention, then the other one Add Item should still be there
> imho.

It isn’t :-?

> Sorry, I wanted to make a screen picture from this, but the right click
> menu disappears when I click in the Ksnapshot window. I Right click
> below the last item in that panel which is Dustbin in mine.

The photo can be made with gimp, create, screenshot, delayed X seconds :wink:
Full screen, include mouse pointer. Then copy a region, paste as new.

When I first managed to start X, back in 1998 (it took me weeks
of reading manuals and configuring by editing text files, no help
mail lists, no forums), and I tried “the gimp” I was astonished,
that a so called “free system” made by “afficionados”, hobbyists,
could have shuch a good piece of software. It still surprises me.

I think I know where you mean. Nautilus, Places panel: mine displays
username, desktop, filesytem, floppy, trash. But there is no empty space
below to click. There is another panel below, with named places I have
added, and I do remember an “add new” that I don’t see now.

What I do now is drag an icon from the display at the right to the
left-bottom panel, and so I get a new “place”.

It maybe that I have 11.2 and things change a bit.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

On 2010-12-31 05:36, please try again wrote:
>
> robin_listas;2271914 Wrote:
>>
>> Ah, I understand. It is a bug, as you say. You should report it at
>> Bugzilla, then, the desktop should ignore them automatically. Unless
>> the
>> partition type is one that is also used for something else :-?
>>
>
> Glad you got it. The partition type is not used for anything else. It
> ist 0xA5 (for FreeBSD), but could also be 0xA6 (OpenBSD) or 0xA9
> (NetBSD). All these partitions are just “containers” for other
> partitions.

Not having used BSD, I’m not familiar with that O:-)

> If you take a look in the file
> /lib/udev/rules.d/80-udisk.rules (installed with the package udisks) you
> will see the following section, which specify which partition types
> should be hidden (I did wrap the lines for more readability).

I noticed it, but didn’t know what to make of it. Udev is like chinese (or
greek?) to me :wink:

> I further
> added type 0xa5 to this list. But it had no effect.

Curious.

> Notice that 0x27 - the famous Windows RE partition from Windows 7 - is
> in that list.

I see it - but why famous? I’s still half awake only :wink:


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

This thread is really interesting and full of surprises and discoveries.
Speaking of nautilus (not Dolphin! I think the Dolphin’s issue is solved with the hal policy), I just switched to a machine with the following /etc/fstab (snip). I hope you can read it, Carlos, as I used bold and color for more clarity (well, maybe not for everyone).


.../...
# Fedora
# /dev/sda15
**UUID=87644496-7141-444d-809f-42d7d1432016    /usr/local/mnt/fedora              ext3          defaults,noauto,nodev            0   2**
# /dev/sda16
**UUID=3d345116-ef59-447b-97e3-0a8696f03a20    /usr/local/mnt/fedora/usr          ext4          defaults,noauto,nodev            0   2**
# /dev/sda18
**UUID=cd0f18b5-6fd2-4e16-892f-f2a0e64173a4    /usr/local/mnt/fedora/usr/local    ext4          defaults,noauto,nodev            0   2**
# /dev/sda17
**UUID=3f091dfd-ede5-4993-952b-82c42c81cfdc    /usr/local/mnt/fedora/var          ext4          defaults,noauto,nodev            0   2**
#
# ArchLinux
# /dev/sdb6
**UUID=d0f134b3-a468-4f72-95aa-cd09c498ba8c    /usr/local/mnt/arch                ext3          defaults,noauto,nodev            0   2**
# /dev/sdb7
**UUID=fa05f5ae-6c75-4221-8712-50e69aa1ecfd    /usr/local/mnt/arch/usr            ext4          defaults,noauto,nodev            0   2**
# /dev/sdb8
**UUID=0e9cefcd-5e38-4ac7-8de8-749433ac9f59    /usr/local/mnt/arch/var            ext4          defaults,noauto,nodev            0   2**
# /dev/sdb9
**UUID=7ccc6cbb-89dd-4e5e-827e-4ae23d3f19b3    /usr/local/mnt/arch/usr/local      ext4          defaults,noauto,nodev            0   2**
#
# Debian
# /dev/sda19
#UUID=0e1f8f2f-e9bc-4fdc-b917-b599fa7b1620    /usr/local/mnt/debian              ext3          defaults,noauto,nodev            0   2
# /dev/sdb10
#UUID=bbc5c1b6-56f6-4af1-a482-0d3a674df9b5    /usr/local/mnt/debian/usr          ext3          defaults,noauto,nodev            0   2
# /dev/sdb11
#UUID=245f9ef8-3937-4baa-9748-4664bec34d67    /usr/local/mnt/debian/usr/local    ext3          defaults,noauto,nodev            0   2
# /dev/sdb12
#UUID=222c7f62-2a7f-41a1-aa39-95167768d853    /usr/local/mnt/debian/var          ext4          defaults,noauto,nodev            0   2
#
.../...

Notice that - for some reason - all the Debian partitions are commented out. So This fstab produces that in nautilus:

http://img31.imageshack.us/img31/4668/nautilus.th.png](ImageShack - Best place for all of your image hosting and image sharing needs)

Debian root partition doesn’t have a label. That’s why it has the name “Filesystem” in nautilus, just like the other ones - which are not even filesystem partitions (I haven’t hidden those yet by adding entries as described in post #36, but at least I know how to do it now). Now I uncommented these entries, saved /etc/fstab and the icons vanished instantly in nautilus - no need to restart, not even to refresh. So Carlos was absolutely right about nautilus - but no one has ever doubted about it. :wink:

Just type one of the commands below in a terminal. (At least) one of these programs might be installed and work for you

gnome-screenshot --interactive
xfce4-screenshooter
ksnapshot

or, if you don’t have KDE, nor Gnome, nor Xfce but ImageMagick installed:

import -window root snap.jpg

or

import -window ID snap.jpg

In the later case, you’ll have to get the Window ID first with xprop. (Not sure it works with any Window manager). You’ll find the picture in the given file in the current directory (or anywhere else if specified).

Me too. Gimp is one of the best programs I know. It is amazingly stable under Linux as well as all BSDs. I heard the Windows version is not so good - probably because of the poor GTK implementation - but to be honnest … I don’t care (about Windows).

Some simple and useful commands:

udisks --enumerate

and

udisks --show-info /dev/sdX

or

udevadm info -q property -n sdaX

You might also want to take a look at the latest version of the halinfo script here, which I could have renamed too, as it can now query either the hal or the udev database (and should produce exactly the same output in both cases).

The photo can be made with gimp, create, screenshot, delayed X seconds :wink:

yes, stupid me, that is the solution for such cases. Here is the link to the picture http://www.xs4all.nl/~hcvv/Dolphy.jpeg.

On 2010-12-31 13:36, please try again wrote:

> Some simple and useful commands:
>
>
> Code:
> --------------------
> udisks --enumerate
> --------------------

I don’t have that program. It is 11.3 only.

> udevadm info -q property -n sdaX
> --------------------

Not bad.

> You might also want to take a look at the latest version of the halinfo
> script ‘here’ (http://tinyurl.com/2u5738w), which I could have renamed
> too, as it can now query either the hal or the udev database (and should
> produce exactly the same output in both cases).

Noted :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Yes, but where is the bug?

  • It is not in Gnome (it affects nautilus under KDE or LXDE as well - but not XFCE(!))
  • It is not in Nautilus (it affects other open/save dialogs, like in Gimp for example)
  • It is not limited to openSUSE (it affects all Linux distros)
  • Is it in udisks ? (?)

It is there for 11.2:
Index of /repositories/GNOME:/Backports:/2.30/openSUSE_11.2

On 2010-12-31 12:36, please try again wrote:

> Speaking of nautilus (not Dolphin! I think the Dolphin’s issue is
> solved with the hal policy), I just switched to a machine with the
> following /etc/fstab (snip). I hope you can read it, Carlos, as I used
> bold and color for more clarity (well, maybe not for everyone).

Color is lost, and bold translates to uppercase - which should not happen
for a block marked “code”. That’s a bug in the gateway, I guess.

But I can make it out :slight_smile:

>
>
> Notice that - for some reason - all the Debian partitions are commented
> out.

Curious, yes.

> So This fstab produces that in nautilus:
>
> ‘[image: http://img31.imageshack.us/img31/4668/nautilus.th.png]’
> (http://img31.imageshack.us/img31/4668/nautilus.png)
>
> Debian root partition doesn’t have a label.

You can add it, I suppose it will not harm the Debian side. It also helps
while installing from the dvd, as you can see the labels.

> Now I uncommented these entries, saved
> /etc/fstab and the icons vanished instantly in nautilus - no need to
> restart, not even to refresh. So Carlos was absolutely right about
> nautilus - but no one has ever doubted about it. :wink:

Interesting - I did not know that Nautilus doesn’t need a restart to catch
up on such changes.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

On 2010-12-31 14:36, hcvv wrote:
>
>> The photo can be made with gimp, create, screenshot, delayed X seconds
>> :wink:
> yes, stupid me, that is the solution for such cases. Here is the link
> to the picture http://www.xs4all.nl/~hcvv/Dolphy.jpeg.

Ah, dolphin! I thought you were talking of nautilus! X’-)

Another trick: how to make a program display in English when you want to
report something to others:

LANG=en_US.UTF-8 program

I actually have a script for that, could be an alias:

> cer@Telcontar:~> cat /usr/local/bin/ingles
> #!/bin/sh
> LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 DICTIONARY=english KDE_LANG=en_US.UTF-8 $*


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)