Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.linux > #60899 > unrolled thread

About the "order" any bootable OS of a multi-boot PC sees the physical devices

Started bySoviet_Mario <SovietMario@CCCP.MIR>
First post2019-11-28 13:17 +0100
Last post2019-11-29 22:44 +0100
Articles 20 on this page of 33 — 7 participants

Back to article view | Back to alt.os.linux


Contents

  About the "order" any bootable OS of a multi-boot PC sees the physical devices Soviet_Mario <SovietMario@CCCP.MIR> - 2019-11-28 13:17 +0100
    Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices Bit Twister <BitTwister@mouse-potato.com> - 2019-11-28 06:42 -0600
      Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices "Carlos E.R." <robin_listas@es.invalid> - 2019-11-28 14:58 +0100
      Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices Soviet_Mario <SovietMario@CCCP.MIR> - 2019-11-28 17:34 +0100
        Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices Bit Twister <BitTwister@mouse-potato.com> - 2019-11-28 11:28 -0600
          Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices Bit Twister <BitTwister@mouse-potato.com> - 2019-11-28 11:34 -0600
        Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices "Carlos E.R." <robin_listas@es.invalid> - 2019-11-28 20:07 +0100
    Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices "Carlos E.R." <robin_listas@es.invalid> - 2019-11-28 15:01 +0100
      Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices Soviet_Mario <SovietMario@CCCP.MIR> - 2019-11-28 17:36 +0100
        Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices "Carlos E.R." <robin_listas@es.invalid> - 2019-11-28 20:02 +0100
        Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices Aragorn <thorongil@telenet.be> - 2019-11-28 23:31 +0100
          Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices Soviet_Mario <SovietMario@CCCP.MIR> - 2019-11-29 00:01 +0100
          Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-11-29 22:40 +0100
            Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices "Carlos E.R." <robin_listas@es.invalid> - 2019-11-30 15:03 +0100
              Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-11-30 17:17 +0100
                Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices "Carlos E.R." <robin_listas@es.invalid> - 2019-11-30 20:20 +0100
                  Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-12-01 20:18 +0100
                    Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices "Carlos E.R." <robin_listas@es.invalid> - 2019-12-02 04:52 +0100
                      Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-12-02 19:49 +0100
                        Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices "Carlos E.R." <robin_listas@es.invalid> - 2019-12-02 22:17 +0100
                          Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-12-02 23:22 +0100
                            Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices "Carlos E.R." <robin_listas@es.invalid> - 2019-12-03 14:40 +0100
                              Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2019-12-03 09:36 -0500
                                Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices "Carlos E.R." <robin_listas@es.invalid> - 2019-12-03 19:52 +0100
                                  Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-12-03 20:30 +0100
    Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices Soviet_Mario <SovietMario@CCCP.MIR> - 2019-11-28 17:54 +0100
      Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices Bit Twister <BitTwister@mouse-potato.com> - 2019-11-28 11:23 -0600
    Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices Jasen Betts <jasen@xnet.co.nz> - 2019-11-29 04:14 +0000
      Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices Soviet_Mario <SovietMario@CCCP.MIR> - 2019-11-29 14:20 +0100
        Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices Jasen Betts <jasen@xnet.co.nz> - 2019-11-29 19:54 +0000
          Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2019-11-29 15:21 -0500
          Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-11-29 22:50 +0100
      Re: About the "order" any bootable OS of a multi-boot PC sees the physical devices Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-11-29 22:44 +0100

Page 1 of 2  [1] 2  Next page →


#60899 — About the "order" any bootable OS of a multi-boot PC sees the physical devices

FromSoviet_Mario <SovietMario@CCCP.MIR>
Date2019-11-28 13:17 +0100
SubjectAbout the "order" any bootable OS of a multi-boot PC sees the physical devices
Message-ID<qrodte$ra7$1@dont-email.me>
a question about the subject.


The said order, is "distro-dependent" (that is, devices 
number are assigned locally and arbitrarily) or is it 
absolute (bios-dependent) and in turn depending on which 
connectors the disks are attached to the motherboard ?


The question arises from this uncertainty

would NECESSARILY a /dev/sda1  mounted in OS1  be the same 
physical device as  /dev/sda1  mounted in OS2, 3 etc ?


I am asking this in case of manual editing of FSTAB of 
"another distro" from a different one.


I am also assuming (but correct me if i'm wrong !) that 
UUIDs (and labels if supported) are absolute, that is stored 
phisically on the disks.


But before relying on "constant" (distro-independent) 
associations among UUIDs and /dev/sdXXX items, I also need 
to know if the second items are absolute or relative

dunno If I have been clear :\


-- 
1) Resistere, resistere, resistere.
2) Se tutti pagano le tasse, le tasse le pagano tutti
Soviet_Mario - (aka Gatto_Vizzato)

[toc] | [next] | [standalone]


#60902

FromBit Twister <BitTwister@mouse-potato.com>
Date2019-11-28 06:42 -0600
Message-ID<slrnqtvg4v.bjk.BitTwister@wb.home.test>
In reply to#60899
On Thu, 28 Nov 2019 13:17:45 +0100, Soviet_Mario wrote:
>
> a question about the subject.
>
>
> The said order, is "distro-dependent" (that is, devices
> number are assigned locally and arbitrarily) or is it
> absolute (bios-dependent) and in turn depending on which
> connectors the disks are attached to the motherboard ?
>
>
> The question arises from this uncertainty
>
> would NECESSARILY a /dev/sda1  mounted in OS1  be the same
> physical device as  /dev/sda1  mounted in OS2, 3 etc ?

Systemd went with UUID. /dev/xxxx was found to be unreliable with newer
systems. Order of io address probed, cable pin selection not available
on usb drives, slow drive spin up, and other sundry udev problems made
the UUID the preferred identification method.


> I am asking this in case of manual editing of FSTAB of
> "another distro" from a different one.

Well, if you "clone" a partition/dive, you have the problem of
duplicate UUID/label/partitionname.  :(


> I am also assuming (but correct me if i'm wrong !) that
> UUIDs (and labels if supported) are absolute,

Not if you "clone" it. UUIDS, labels, partition names would be duplicated.

> that is stored phisically on the disks.

Well, it does have to be stored somewhere.

partition name is stored in the GPT drive partition header, and is not
destroyed during partition formatting. UUID and label are destroyed
during formatting and needs replacing after formatting if used by
/etc/fstab, scripts, initrd generation,...


> But before relying on "constant" (distro-independent)
> associations among UUIDs and /dev/sdXXX items, I also need
> to know if the second items are absolute or relative

UUIDS and labels are "constant" until partition is formatted.
/dev/sdXXX depend on hardware and software, be it bios or system OS.

[toc] | [prev] | [next] | [standalone]


#60904

From"Carlos E.R." <robin_listas@es.invalid>
Date2019-11-28 14:58 +0100
Message-ID<fd05bg-mpv.ln1@Telcontar.valinor>
In reply to#60902
On 28/11/2019 13.42, Bit Twister wrote:
> On Thu, 28 Nov 2019 13:17:45 +0100, Soviet_Mario wrote:

...

>> that is stored phisically on the disks.
> 
> Well, it does have to be stored somewhere.
> 
> partition name is stored in the GPT drive partition header, and is not
> destroyed during partition formatting. 

Not really. There are two "labels" (aka names): one is stored on the GPT
table, another is stored inside the partition filesystem, in a different
manner for each filesystem type. The gpt label and the filesystem label
can be different.

Similarly, there are GPT UUID and filesystem UUIDs.

-- 
Cheers, Carlos.

[toc] | [prev] | [next] | [standalone]


#60907

FromSoviet_Mario <SovietMario@CCCP.MIR>
Date2019-11-28 17:34 +0100
Message-ID<qrosul$7mb$1@dont-email.me>
In reply to#60902
On 28/11/2019 13:42, Bit Twister wrote:
> On Thu, 28 Nov 2019 13:17:45 +0100, Soviet_Mario wrote:
>>
>> a question about the subject.
>>
>>
>> The said order, is "distro-dependent" (that is, devices
>> number are assigned locally and arbitrarily) or is it
>> absolute (bios-dependent) and in turn depending on which
>> connectors the disks are attached to the motherboard ?
>>
>>
>> The question arises from this uncertainty
>>
>> would NECESSARILY a /dev/sda1  mounted in OS1  be the same
>> physical device as  /dev/sda1  mounted in OS2, 3 etc ?
> 
> Systemd went with UUID. /dev/xxxx was found to be unreliable with newer
> systems. Order of io address probed, cable pin selection not available
> on usb drives, slow drive spin up, and other sundry udev problems made
> the UUID the preferred identification method.

don't understand this reply ... in FSTAB the informations 
are BOTH used and linked togheter, not only is UUIDs used. 
The UUIDs (or labels or else) are bount to a 
general/particular device path

> 
> 
>> I am asking this in case of manual editing of FSTAB of
>> "another distro" from a different one.
> 
> Well, if you "clone" a partition/dive, you have the problem of
> duplicate UUID/label/partitionname.  :(

I'll check the situation after GParted is done and before 
try to reboot.
I'll edit FSTAB manually as to the UUIDs, but I still have 
to understand what to do with /dev/sdXXX voices

> 
> 
>> I am also assuming (but correct me if i'm wrong !) that
>> UUIDs (and labels if supported) are absolute,
> 
> Not if you "clone" it. UUIDS, labels, partition names would be duplicated.
> 
>> that is stored phisically on the disks.
> 
> Well, it does have to be stored somewhere.

and also /dev/sdXXX are stored, or they are defined in the 
order (predictable ?) the system detects disks ?

> 
> partition name is stored in the GPT drive partition header, and is not
> destroyed during partition formatting. UUID and label are destroyed
> during formatting and needs replacing after formatting if used by
> /etc/fstab, scripts, initrd generation,...
> 
> 
>> But before relying on "constant" (distro-independent)
>> associations among UUIDs and /dev/sdXXX items, I also need
>> to know if the second items are absolute or relative
> 
> UUIDS and labels are "constant" until partition is formatted.
> /dev/sdXXX depend on hardware and software, be it bios or system OS.

bios or OS are very different in "predictability", as the 
bios is the same for all present and future distro, while 
different OSes could do what they prefer each :\

> 


-- 
1) Resistere, resistere, resistere.
2) Se tutti pagano le tasse, le tasse le pagano tutti
Soviet_Mario - (aka Gatto_Vizzato)

[toc] | [prev] | [next] | [standalone]


#60911

FromBit Twister <BitTwister@mouse-potato.com>
Date2019-11-28 11:28 -0600
Message-ID<slrnqu00uh.pn2.BitTwister@wb.home.test>
In reply to#60907
On Thu, 28 Nov 2019 17:34:27 +0100, Soviet_Mario wrote:
> On 28/11/2019 13:42, Bit Twister wrote:

> I'll edit FSTAB manually as to the UUIDs, but I still have
> to understand what to do with /dev/sdXXX voices

You can change the fstab entry to use UUID, LABEL, PARTLABEL, PARTUUID.

Go ahead and see what is available:

  lsblk -o NAME,TYPE,FSTYPE,MOUNTPOINT,LABEL,PARTLABEL

[toc] | [prev] | [next] | [standalone]


#60912

FromBit Twister <BitTwister@mouse-potato.com>
Date2019-11-28 11:34 -0600
Message-ID<slrnqu018h.pn2.BitTwister@wb.home.test>
In reply to#60911
On Thu, 28 Nov 2019 11:28:49 -0600, Bit Twister wrote:
> On Thu, 28 Nov 2019 17:34:27 +0100, Soviet_Mario wrote:
>> On 28/11/2019 13:42, Bit Twister wrote:
>
>> I'll edit FSTAB manually as to the UUIDs, but I still have
>> to understand what to do with /dev/sdXXX voices
>
> You can change the fstab entry to use UUID, LABEL, PARTLABEL, PARTUUID.
>
> Go ahead and see what is available:
>
>   lsblk -o NAME,TYPE,FSTYPE,MOUNTPOINT,LABEL,PARTLABEL
>

Whoops, forgot to add uuids

 lsblk -o NAME,FSTYPE,MOUNTPOINT,LABEL,UUID,PARTLABEL,PARTUUID

[toc] | [prev] | [next] | [standalone]


#60916

From"Carlos E.R." <robin_listas@es.invalid>
Date2019-11-28 20:07 +0100
Message-ID<lfi5bg-olj.ln1@Telcontar.valinor>
In reply to#60907
On 28/11/2019 17.34, Soviet_Mario wrote:
> On 28/11/2019 13:42, Bit Twister wrote:
>> On Thu, 28 Nov 2019 13:17:45 +0100, Soviet_Mario wrote:

...

> and also /dev/sdXXX are stored, or they are defined in the order
> (predictable ?) the system detects disks ?

Non predictable. As the kernel finds them. And that depends also on the
bios, and how the kernel talks with the bios or handles the bios.

>> UUIDS and labels are "constant" until partition is formatted.
>> /dev/sdXXX depend on hardware and software, be it bios or system OS.
> 
> bios or OS are very different in "predictability", as the bios is the same for all present and future distro, 
> while different OSes could do what they prefer each :\





-- 
Cheers, Carlos.

[toc] | [prev] | [next] | [standalone]


#60905

From"Carlos E.R." <robin_listas@es.invalid>
Date2019-11-28 15:01 +0100
Message-ID<8j05bg-u9.ln1@Telcontar.valinor>
In reply to#60899
On 28/11/2019 13.17, Soviet_Mario wrote:
> 
> a question about the subject.
> 
> 
> The said order, is "distro-dependent" (that is, devices number are
> assigned locally and arbitrarily) or is it absolute (bios-dependent) and
> in turn depending on which connectors the disks are attached to the
> motherboard ?

Not distro dependent, but rather kernel dependent. A different distro
can have a different kernel.

I understand it depends on the order the kernel sees the disks first.

> 
> 
> The question arises from this uncertainty
> 
> would NECESSARILY a /dev/sda1  mounted in OS1  be the same physical
> device as  /dev/sda1  mounted in OS2, 3 etc ?
> 
> 
> I am asking this in case of manual editing of FSTAB of "another distro"
> from a different one.

Use UUID or LABEL instead. Path I don't know if it changes.

> I am also assuming (but correct me if i'm wrong !) that UUIDs (and
> labels if supported) are absolute, that is stored phisically on the disks.

See the other replies.

-- 
Cheers, Carlos.

[toc] | [prev] | [next] | [standalone]


#60908

FromSoviet_Mario <SovietMario@CCCP.MIR>
Date2019-11-28 17:36 +0100
Message-ID<qrot1s$7mb$2@dont-email.me>
In reply to#60905
On 28/11/2019 15:01, Carlos E.R. wrote:
> On 28/11/2019 13.17, Soviet_Mario wrote:
>>
>> a question about the subject.
>>
>>
>> The said order, is "distro-dependent" (that is, devices number are
>> assigned locally and arbitrarily) or is it absolute (bios-dependent) and
>> in turn depending on which connectors the disks are attached to the
>> motherboard ?
> 
> Not distro dependent, but rather kernel dependent. A different distro
> can have a different kernel.
> 
> I understand it depends on the order the kernel sees the disks first.
> 
>>
>>
>> The question arises from this uncertainty
>>
>> would NECESSARILY a /dev/sda1  mounted in OS1  be the same physical
>> device as  /dev/sda1  mounted in OS2, 3 etc ?
>>
>>
>> I am asking this in case of manual editing of FSTAB of "another distro"
>> from a different one.
> 
> Use UUID or LABEL instead.

what does that "INSTEAD" mean ? I have to use both, in FSTAB 
both are mentioned and crosslinked ....

> Path I don't know if it changes.
> 
>> I am also assuming (but correct me if i'm wrong !) that UUIDs (and
>> labels if supported) are absolute, that is stored phisically on the disks.
> 
> See the other replies.
> 


-- 
1) Resistere, resistere, resistere.
2) Se tutti pagano le tasse, le tasse le pagano tutti
Soviet_Mario - (aka Gatto_Vizzato)

[toc] | [prev] | [next] | [standalone]


#60915

From"Carlos E.R." <robin_listas@es.invalid>
Date2019-11-28 20:02 +0100
Message-ID<o7i5bg-2fj.ln1@Telcontar.valinor>
In reply to#60908
On 28/11/2019 17.36, Soviet_Mario wrote:
> On 28/11/2019 15:01, Carlos E.R. wrote:
>> On 28/11/2019 13.17, Soviet_Mario wrote:
>>>
>>> a question about the subject.
>>>
>>>
>>> The said order, is "distro-dependent" (that is, devices number are
>>> assigned locally and arbitrarily) or is it absolute (bios-dependent) and
>>> in turn depending on which connectors the disks are attached to the
>>> motherboard ?
>>
>> Not distro dependent, but rather kernel dependent. A different distro
>> can have a different kernel.
>>
>> I understand it depends on the order the kernel sees the disks first.
>>
>>>
>>>
>>> The question arises from this uncertainty
>>>
>>> would NECESSARILY a /dev/sda1  mounted in OS1  be the same physical
>>> device as  /dev/sda1  mounted in OS2, 3 etc ?
>>>
>>>
>>> I am asking this in case of manual editing of FSTAB of "another distro"
>>> from a different one.
>>
>> Use UUID or LABEL instead.
> 
> what does that "INSTEAD" mean ? I have to use both, in FSTAB both are
> mentioned and crosslinked ....


Just that. use UUID or LABEL, do not use /dev/sdXX. If you see one
/dev/sdXX, change it to use UUID or LABEL _instead_ of sdXX.

No, you don't have to use both. Only one, UUID or LABEL. Or anything you
like from under "/dev/disk/by-*/

Yes, I know they are links. BUT they are not written on stone, they are
all created dynamically.

-- 
Cheers, Carlos.

[toc] | [prev] | [next] | [standalone]


#60920

FromAragorn <thorongil@telenet.be>
Date2019-11-28 23:31 +0100
Message-ID<20191128233110.573d7f33@nx-74205>
In reply to#60908
On 28.11.2019 at 17:36, Soviet_Mario scribbled:

> On 28/11/2019 15:01, Carlos E.R. wrote:
>
> > Use UUID or LABEL instead.  
> 
> what does that "INSTEAD" mean ? I have to use both, in FSTAB 
> both are mentioned and crosslinked ....

That is impossible.  What you MAY have in /etc/fstab could be
commented-out lines telling YOU what device/partition a particular UUID
points to, but most distributions will set up /etc/fstab with UUIDs.

There are other options than UUID, such as LABELs, but those are not
guaranteed to be unique, given that they are assigned by a biological
unit between the keyboard and the chair.  Likewise for PARTLABELs, but
PARTLABELs and PARTUUIDs only apply in GUID partition tables anyway.


-- 
With respect,
= Aragorn =

[toc] | [prev] | [next] | [standalone]


#60922

FromSoviet_Mario <SovietMario@CCCP.MIR>
Date2019-11-29 00:01 +0100
Message-ID<qrpjkn$s6f$2@dont-email.me>
In reply to#60920
Il 28/11/19 23:31, Aragorn ha scritto:
> On 28.11.2019 at 17:36, Soviet_Mario scribbled:
> 
>> On 28/11/2019 15:01, Carlos E.R. wrote:
>>
>>> Use UUID or LABEL instead.
>>
>> what does that "INSTEAD" mean ? I have to use both, in FSTAB
>> both are mentioned and crosslinked ....
> 
> That is impossible.  What you MAY have in /etc/fstab could be
> commented-out lines telling YOU what device/partition a particular UUID
> points to, but most distributions will set up /etc/fstab with UUIDs.

yes ... I had mis-remembered the commented out lines as true 
lines :\
what a dumbass I am :\

> 
> There are other options than UUID, such as LABELs, but those are not
> guaranteed to be unique, given that they are assigned by a biological
> unit between the keyboard and the chair. 

I used them and I am still using them. I am quite precise 
with things I UNDERSTAND :)

> Likewise for PARTLABELs, but
> PARTLABELs and PARTUUIDs only apply in GUID partition tables anyway.
> 
> 


-- 
1) Resistere, resistere, resistere.
2) Se tutti pagano le tasse, le tasse le pagano tutti
Soviet_Mario - (aka Gatto_Vizzato)

[toc] | [prev] | [next] | [standalone]


#60990

FromPascal Hambourg <pascal@plouf.fr.eu.org>
Date2019-11-29 22:40 +0100
Message-ID<5de19056$0$6477$426a74cc@news.free.fr>
In reply to#60920
Le 28/11/2019 à 23:31, Aragorn a écrit :
> 
> PARTLABELs and PARTUUIDs only apply in GUID partition tables anyway.

PARTUUIDs also apply in DOS/MBR partition tables, although they are 
synthetic partition UUIDs generated by the kernel from the disk 
identifier/signature stored in the MBR and the partition number instead 
of being stored in the partition table entries. You can check with blkid.

Note that logical partition numbers are not guaranteed to be stable, so 
the derived PARTUUIDs are not either.

[toc] | [prev] | [next] | [standalone]


#61020

From"Carlos E.R." <robin_listas@es.invalid>
Date2019-11-30 15:03 +0100
Message-ID<bf9abg-5j8.ln1@Telcontar.valinor>
In reply to#60990
On 29/11/2019 22.40, Pascal Hambourg wrote:
> Le 28/11/2019 à 23:31, Aragorn a écrit :
>>
>> PARTLABELs and PARTUUIDs only apply in GUID partition tables anyway.
> 
> PARTUUIDs also apply in DOS/MBR partition tables, although they are
> synthetic partition UUIDs generated by the kernel from the disk
> identifier/signature stored in the MBR and the partition number instead
> of being stored in the partition table entries. You can check with blkid.
> 
> Note that logical partition numbers are not guaranteed to be stable, so
> the derived PARTUUIDs are not either.

I have this instant only one MBR disk connected, in the form of a camera
memory card; it has uuid, but not partuuid.

:-?

-- 
Cheers, Carlos.

[toc] | [prev] | [next] | [standalone]


#61043

FromPascal Hambourg <pascal@plouf.fr.eu.org>
Date2019-11-30 17:17 +0100
Message-ID<5de29606$0$15196$426a74cc@news.free.fr>
In reply to#61020
Le 30/11/2019 à 15:03, Carlos E.R. a écrit :
> On 29/11/2019 22.40, Pascal Hambourg wrote:
>>
>> PARTUUIDs also apply in DOS/MBR partition tables, although they are
>> synthetic partition UUIDs generated by the kernel from the disk
>> identifier/signature stored in the MBR and the partition number instead
>> of being stored in the partition table entries. You can check with blkid.
> 
> I have this instant only one MBR disk connected, in the form of a camera
> memory card; it has uuid, but not partuuid.

Can you show ?

[toc] | [prev] | [next] | [standalone]


#61049

From"Carlos E.R." <robin_listas@es.invalid>
Date2019-11-30 20:20 +0100
Message-ID<j1sabg-64e.ln1@Telcontar.valinor>
In reply to#61043
On 30/11/2019 17.17, Pascal Hambourg wrote:
> Le 30/11/2019 à 15:03, Carlos E.R. a écrit :
>> On 29/11/2019 22.40, Pascal Hambourg wrote:
>>>
>>> PARTUUIDs also apply in DOS/MBR partition tables, although they are
>>> synthetic partition UUIDs generated by the kernel from the disk
>>> identifier/signature stored in the MBR and the partition number instead
>>> of being stored in the partition table entries. You can check with
>>> blkid.
>>
>> I have this instant only one MBR disk connected, in the form of a camera
>> memory card; it has uuid, but not partuuid.
> 
> Can you show ?

Here it goes. Using quotes because that's a trick to avoid line wrap by
the Thunderbird editor.

> Telcontar:~ # lsblk --output NAME,KNAME,RA,RM,RO,SIZE,TYPE,FSTYPE,LABEL,PARTLABEL,MOUNTPOINT,UUID,PARTUUID,WWN,MODEL,ALIGNMENT 
> NAME    KNAME  RA RM RO   SIZE TYPE  FSTYPE            LABEL         PARTLABEL     MOUNTPOINT         UUID                                 PARTUUID                             WWN MODEL            ALIGNMENT
...
> sdg     sdg   512  1  0  59.5G disk                                                                                                                                                 STORAGE DEVICE           0
> └─sdg1  sdg1  512  1  0  59.5G part  exfat             NIKON D3200                 /media/NIKON D3200 4CE4-7D7C                                                                                              0


-- 
Cheers, Carlos.

[toc] | [prev] | [next] | [standalone]


#61083

FromPascal Hambourg <pascal@plouf.fr.eu.org>
Date2019-12-01 20:18 +0100
Message-ID<5de41202$0$1715$426a34cc@news.free.fr>
In reply to#61049
Le 30/11/2019 à 20:20, Carlos E.R. a écrit :
> On 30/11/2019 17.17, Pascal Hambourg wrote:
>>>
>>> I have this instant only one MBR disk connected, in the form of a camera
>>> memory card; it has uuid, but not partuuid.
>>
>> Can you show ?
> 
> Here it goes. Using quotes because that's a trick to avoid line wrap by
> the Thunderbird editor.

You did not need to print so many columns. NAME,PARTUUID would have been 
enough. Or the output of

blkid /dev/sdg*

What is the kernel version ? It must be at least 3.8 to create PARTUUIDs 
for DOS/MBR. Also, the disk identifier (PTUUID) must not be null.

[toc] | [prev] | [next] | [standalone]


#61110

From"Carlos E.R." <robin_listas@es.invalid>
Date2019-12-02 04:52 +0100
Message-ID<ndeebg-8me.ln1@Telcontar.valinor>
In reply to#61083
On 01/12/2019 20.18, Pascal Hambourg wrote:
> Le 30/11/2019 à 20:20, Carlos E.R. a écrit :
>> On 30/11/2019 17.17, Pascal Hambourg wrote:
>>>>
>>>> I have this instant only one MBR disk connected, in the form of a
>>>> camera
>>>> memory card; it has uuid, but not partuuid.
>>>
>>> Can you show ?
>>
>> Here it goes. Using quotes because that's a trick to avoid line wrap by
>> the Thunderbird editor.
> 
> You did not need to print so many columns. 

But it is the command line I always use ;-)

> NAME,PARTUUID would have been
> enough. Or the output of
> 
> blkid /dev/sdg*
> 
> What is the kernel version ? It must be at least 3.8 to create PARTUUIDs
> for DOS/MBR.

4.12.14

> Also, the disk identifier (PTUUID) must not be null.

Who creates that one, the partitioner? This particular card is formatted
by the camera, and the camera complains otherwise.


> Telcontar:~ # lsblk --output NAME,KNAME,SIZE,TYPE,LABEL,PARTLABEL,UUID,PARTUUID,WWN,MODEL,PTUUID /dev/sdg
> NAME   KNAME  SIZE TYPE LABEL       PARTLABEL UUID                                 PARTUUID WWN MODEL            PTUUID
> sdg    sdg   59.5G disk                                                                         STORAGE DEVICE   
> └─sdg1 sdg1  59.5G part NIKON D3200           4CE4-7D7C                                                          
> Telcontar:~ # 

I have deleted some fields ;-)



-- 
Cheers, Carlos.

[toc] | [prev] | [next] | [standalone]


#61158

FromPascal Hambourg <pascal@plouf.fr.eu.org>
Date2019-12-02 19:49 +0100
Message-ID<5de55cae$0$20322$426a74cc@news.free.fr>
In reply to#61110
Le 02/12/2019 à 04:52, Carlos E.R. a écrit :
> On 01/12/2019 20.18, Pascal Hambourg wrote:
>> Le 30/11/2019 à 20:20, Carlos E.R. a écrit :
>>> On 30/11/2019 17.17, Pascal Hambourg wrote:
>>>>>
>>>>> I have this instant only one MBR disk connected, in the form of a
>>>>> camera memory card; it has uuid, but not partuuid.
(...)
>> Also, the disk identifier (PTUUID) must not be null.
> 
> Who creates that one, the partitioner? This particular card is formatted
> by the camera, and the camera complains otherwise.

The program/device which creates the partition table.

> Telcontar:~ # lsblk --output NAME,KNAME,SIZE,TYPE,LABEL,PARTLABEL,UUID,PARTUUID,WWN,MODEL,PTUUID /dev/sdg
> NAME   KNAME  SIZE TYPE LABEL       PARTLABEL UUID                                 PARTUUID WWN MODEL            PTUUID
> sdg    sdg   59.5G disk                                                                         STORAGE DEVICE
> └─sdg1 sdg1  59.5G part NIKON D3200           4CE4-7D7C
> Telcontar:~ #

I do not see anything in the PTUUID column. Could you check with fdisk ?

[toc] | [prev] | [next] | [standalone]


#61174

From"Carlos E.R." <robin_listas@es.invalid>
Date2019-12-02 22:17 +0100
Message-ID<ekbgbg-3lt.ln1@Telcontar.valinor>
In reply to#61158
On 02/12/2019 19.49, Pascal Hambourg wrote:
> Le 02/12/2019 à 04:52, Carlos E.R. a écrit :
>> On 01/12/2019 20.18, Pascal Hambourg wrote:
>>> Le 30/11/2019 à 20:20, Carlos E.R. a écrit :
>>>> On 30/11/2019 17.17, Pascal Hambourg wrote:
>>>>>>
>>>>>> I have this instant only one MBR disk connected, in the form of a
>>>>>> camera memory card; it has uuid, but not partuuid.
> (...)
>>> Also, the disk identifier (PTUUID) must not be null.
>>
>> Who creates that one, the partitioner? This particular card is formatted
>> by the camera, and the camera complains otherwise.
> 
> The program/device which creates the partition table.
> 
>> Telcontar:~ # lsblk --output
>> NAME,KNAME,SIZE,TYPE,LABEL,PARTLABEL,UUID,PARTUUID,WWN,MODEL,PTUUID
>> /dev/sdg
>> NAME   KNAME  SIZE TYPE LABEL       PARTLABEL
>> UUID                                 PARTUUID WWN MODEL            PTUUID
>> sdg    sdg   59.5G
>> disk                                                                        
>> STORAGE DEVICE
>> └─sdg1 sdg1  59.5G part NIKON D3200           4CE4-7D7C
>> Telcontar:~ #
> 
> I do not see anything in the PTUUID column. Could you check with fdisk ?

Telcontar:~ # fdisk -l /dev/sdg
Disk /dev/sdg: 59.5 GiB, 63864569856 bytes, 124735488 sectors
Disk model: STORAGE DEVICE
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start       End   Sectors  Size Id Type
/dev/sdg1  *    32768 124735487 124702720 59.5G  7 HPFS/NTFS/exFAT
Telcontar:~ #


-- 
Cheers, Carlos.

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | alt.os.linux


csiph-web