cannot mount partitions in two different hard disks with the same label at same time

in my laptop with opensuse 12.2 and kde 4.10 I had a sata hard disk with some partitions and one of them was labeled with label=dati (I call it the dati partition of the old disk).
I cloned the hard disk and successfully substituted the old one with the new one and installed on it opensuse 12.3 and kde 4.10.
so, also the new disk has one partition with label=dati (I call it the dati partition of the new disk).
this is the fstab of the new disk with opensuse 12.3 (that is like the one on old disk with opensuse 12.2)

LABEL=susefactory / ext3 acl,user_xattr 1 1
LABEL=swap swap swap defaults 0 0
LABEL=dati /dati ext3 defaults 1 2
LABEL=homefactory /home ext3 defaults 1 2

now I put the old hard disk in a usb box and connect the usb to the laptop, well, I cannot access to the old and the new dati partition at the same time.
if I open the /dati folder I can see the content of the dati partition of the new disk, if I mount the dati partition on the old disk connected via usb (in dolphin I can see the just connectet usb device and the dati partition so I rightclick on it and mount it) in the /dati folder (where should be mounted the dati partition of the new disk) now, I can see the content of the dati partition of the old disk.
what I expect is that the opensuse should mount usb devices in /var/something/media folder as usual in opensuse 12.3, why this?? is this a bug?? can be corrected???

many thanks, ciao, :slight_smile: Pier

EDITED: Oh, sorry, I assumed you used KDE to (auto-)mount it. If you want to manually mount it by label, behavior is correct. How can system distinguish between two different devices having the same label?

Try removing this line from /etc/fstab and using standard KDE automount feature. It may work. Or simply change label on one disk to dati-new or whatever. It is the most obvious solution :slight_smile:

yehs, I’m using KDE…:slight_smile:

I want to mount the internal sata disk mounted by label, and the usb one mounted by what the system like to do but label…

I don’t know how can system distinguish between two different devices having the same label, but it should!!!, one is connected via sata internal interface and the other one via usb external box,

I will try to remove the /etc/fstab line…, but, it seems not easy or very close to impossible :), to tell to KDE where automatically mount removable devices…, I would like to mount the new disk partition in /dati…, it is possible to do it with kde??? without fstab???
thnx, ciao, Pier…

That is nicely said, but even you can see that in your fstab there is not mentioning of the type of bus used for the device. Thus even you can come to the conclusion that the system can not know the difference between two partitions that have the same label, where that is the only differrence between the two. Even I can not tell which one you mean when you only say it is the one with the green sticker and both have a green sticker.

On 2013-03-31 10:36, arvidjaar wrote:
> Everything can be corrected given enough time and interest. Start with
> opening bug report.

And it will be closed as INVALID fast :slight_smile:

(well, as fast as they can read bugzillas, which is actually very slow)

No, you can not have two partitions with the same label and mount the
right one using label, and this is a kernel issue, not an openSUSE
issue. Probably unsolvable.

If you have an internal disk with that label, it will mount first. When
you plug the cloned disk, it will see the labels, and will supersede the
old one. Only one label is seen, IIRC the last one.

What you have to do (well, the OP) is change the labels of one of the
disks. The tools are “e2label”, “xfs_admin”, “reiserfstune”. For other
types of filesystems, look up their manuals :slight_smile:

Do not use the yast partition manager for this. Or do, and tell us if it
works, out of curiosity.

Ah, and you have to change the labels using references like /dev/sdb2,
not the label :-p


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

I’m pretty sure you can mount using any other method but label, and if necessary as a loop device.

Then, might be tricky using Dolphin but almost certainly you should be able to browse in a console.

TSU

On 2013-03-31 18:06, tsu2 wrote:
> I’m pretty sure you can mount using any other method but label,

Yes, of course you can. Well, not any method: the ‘uuid’ are
automatically created identifiers inside the partition, so a clone
copies them the same as labels, so same problem :slight_smile:

But they are also editable or recreatable.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)