Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Only the hypocrite is really rotten to the core." -- Hannah Arendt.


computers / alt.os.linux / EFI/Legacy mixed hardware data transport

SubjectAuthor
* EFI/Legacy mixed hardware data transportbad sector
+- Re: EFI/Legacy mixed hardware data transportJoerg Walther
+- Re: EFI/Legacy mixed hardware data transportDavid W. Hodgins
`* Re: EFI/Legacy mixed hardware data transportPaul
 `- Re: EFI/Legacy mixed hardware data transportbad sector

1
EFI/Legacy mixed hardware data transport

<2r6dnYMX3Jh_Dlr4nZ2dnZfqnPidnZ2d@giganews.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2201&group=alt.os.linux#2201

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 10 Feb 2024 15:18:58 +0000
Date: Sat, 10 Feb 2024 05:19:07 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Newsgroups: alt.os.linux
Content-Language: hu
From: forget...@_INVALID.net (bad sector)
Subject: EFI/Legacy mixed hardware data transport
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <2r6dnYMX3Jh_Dlr4nZ2dnZfqnPidnZ2d@giganews.com>
Lines: 178
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-Wzoo998m0hdIfAvunJ2+vuWqwxdDQSXOMe9s1GMnIRPn1CNZcPm4N3UsLTeT0I2qnBNlq2iJCbtop08!Y2A+g8JNnkA87YUTDZVg4/egLV/aNqbUBMViaiKa3IM0/4lKTEnQDZA59wNowyu79E7a1FWFsmc=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: bad sector - Sat, 10 Feb 2024 10:19 UTC

I'm trying to decide on a method to move data between my
Legacy-BIOS desktopo and my EFI laptop. My initial plan
was to use one of the 3.5" drives normally sitting in the
desktop raid tray and connect it in turn to the laptop via
a sata/usb adapter. Looks like a problematic avenue but I
don't wanna buy a usb-portable disk just for this. It's my
first rodeo involving an EFI/Legacy hardware mix and it gets
dizzying, even though I split it into two separate threads :-)

Using my Lenovo T480 laptop

If I do 'fdisk -l' with just a 2tb sata plugged-in via a sata usb adapter
=========================================================================

# fdisk -l
Disk /dev/nvme0n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: SPCC M.2 PCIe SSD
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: gpt
Disk identifier: 1F5BF8E3-EF76-4A16-BF3E-78B891EAB2B3

Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 2099199 2097152 1G EFI System
/dev/nvme0n1p2 2099200 14682111 12582912 6G Linux swap
....
/dev/nvme0n1p17 1986019328 2000408575 14389248 6.9G Linux filesystem

*GPT PMBR size mismatch (3907029167 != 488378645) will be corrected by
write*

Disk /dev/sdc: 1.82 TiB, 2000398934016 bytes, 488378646 sectors
Disk model: EZBX-00AYRA0
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device Boot Start End Sectors Size Id Type
*/dev/sdc1 1 488378645 488378645 1.8T ee GPT*

If I do 'fdisk -l' with a usb stick plugged-in as well
==================================================================
# fdisk -l
Disk /dev/nvme0n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: SPCC M.2 PCIe SSD
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: gpt
Disk identifier: 1F5BF8E3-EF76-4A16-BF3E-78B891EAB2B3

Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 2099199 2097152 1G EFI System
/dev/nvme0n1p2 2099200 14682111 12582912 6G Linux swap
....
/dev/nvme0n1p16 1818247168 1986019327 167772160 80G Linux root (x86)
/dev/nvme0n1p17 1986019328 2000408575 14389248 6.9G Linux filesystem

Disk /dev/sdb: 29.3 GiB, 31457280000 bytes, 61440000 sectors
Disk model: Flash Disk
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: 0xdefe1877

Device Boot Start End Sectors Size Id Type
/dev/sdb1 8192 61439999 61431808 29.3G 83 Linux
*GPT PMBR size mismatch (3907029167 != 488378645) will be corrected by
write*

Disk /dev/sdc: 1.82 TiB, 2000398934016 bytes, 488378646 sectors
Disk model: EZBX-00AYRA0
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device Boot Start End Sectors Size Id Type
*/dev/sdc1 1 488378645 488378645 1.8T ee GPT*

If I do 'fdisk -l' with a 1tb dos data disk and a usb stick plugged-in
======================================================================

# fdisk -l
Disk /dev/nvme0n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: SPCC M.2 PCIe SSD
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: gpt
Disk identifier: 1F5BF8E3-EF76-4A16-BF3E-78B891EAB2B3

Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 2099199 2097152 1G EFI System
/dev/nvme0n1p2 2099200 14682111 12582912 6G Linux swap
.....
/dev/nvme0n1p15 1650475008 1818247167 167772160 80G Linux filesystem
/dev/nvme0n1p16 1818247168 1986019327 167772160 80G Linux root (x86)
/dev/nvme0n1p17 1986019328 2000408575 14389248 6.9G Linux filesystem

Disk /dev/sdb: 29.3 GiB, 31457280000 bytes, 61440000 sectors
Disk model: Flash Disk
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: 0xdefe1877

Device Boot Start End Sectors Size Id Type
/dev/sdb1 8192 61439999 61431808 29.3G 83 Linux

Disk /dev/sdc: 931.51 GiB, 1000204886016 bytes, 244190646 sectors
Disk model: JPVT-00A1YT0
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x8efc6e65

Device Boot Start End Sectors Size Id Type
/dev/sdc1 256 244190645 244190390 931.5G 83 Linux

This 2.5" 1tb WD dos spinner may have other issues but
that's another topic to keep this one simple :-)

1
the following appears in both cases but in different places:

"GPT PMBR size mismatch (3907029167 != 488378645) will be corrected by
write"

- which disk does it apply to?
- why is it there at all?
- what's the fix?

2
the single partition on my 2tb data disk created on my
Legacy-BIOS desktop and plugged-in via the sata/usb
adapter shows up in the EFI laptop as :

/dev/sdc1 1 488378645 488378645 1.8T ee GPT

doesn't make any sense and *cannot be mounted*. Fdisking
it on the Legacy-BIOS desktop shows:

Disk /dev/sdb: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: WDC WD20EZBX-00A
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 6EED7FA9-4976-4436-9309-71A2D6371B80

Device Start End Sectors Size Type
/dev/sdb1 2048 3907029134 3907027087 1.8T Linux filesystem

Re: EFI/Legacy mixed hardware data transport

<hl8fsi9cgjvqiqdvui03fkei0gp4kpjl93@joergwalther.my-fqdn.de>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2204&group=alt.os.linux#2204

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx47.iad.POSTED!not-for-mail
From: joerg.wa...@magenta.de (Joerg Walther)
Newsgroups: alt.os.linux
Subject: Re: EFI/Legacy mixed hardware data transport
Message-ID: <hl8fsi9cgjvqiqdvui03fkei0gp4kpjl93@joergwalther.my-fqdn.de>
References: <2r6dnYMX3Jh_Dlr4nZ2dnZfqnPidnZ2d@giganews.com>
X-Newsreader: Forte Agent 6.00/32.1186
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 16
X-Complaints-To: abuse@easynews.com
Organization: Easynews - www.easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Sat, 10 Feb 2024 17:25:20 +0100
X-Received-Bytes: 1142
 by: Joerg Walther - Sat, 10 Feb 2024 16:25 UTC

bad sector wrote:

>I'm trying to decide on a method to move data between my
>Legacy-BIOS desktopo and my EFI laptop.

The T480 has pretty good Wifi, it connects to my router at 866Mbit/s
(5GHz) and I use it regulary to copy BIG files (5 - 20 GB) to my NAS.
If you do not have a NAS you could use tools like Synthing or you could
just do it via ftp.

-jw-

--

And now for something completely different...

Re: EFI/Legacy mixed hardware data transport

<op.2ixrh0x3a3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2206&group=alt.os.linux#2206

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!i2pn.org!news.niel.me!news.gegeweb.eu!gegeweb.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: alt.os.linux
Subject: Re: EFI/Legacy mixed hardware data transport
Date: Sat, 10 Feb 2024 12:14:14 -0500
Organization: A noiseless patient Spider
Lines: 56
Message-ID: <op.2ixrh0x3a3w0dxdave@hodgins.homeip.net>
References: <2r6dnYMX3Jh_Dlr4nZ2dnZfqnPidnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="85ed5c9107dd597b64bfbad46ace9398";
logging-data="3435822"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/0blm6CUPkg1loTnWl6oFMZZyIQP3Z9VQ="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:XN9d/Cy6ODfpKYjnXgnL54QFi0Y=
 by: David W. Hodgins - Sat, 10 Feb 2024 17:14 UTC

On Sat, 10 Feb 2024 05:19:07 -0500, bad sector <forgetski@_invalid.net> wrote:

> I'm trying to decide on a method to move data between my
> Legacy-BIOS desktopo and my EFI laptop. My initial plan
> was to use one of the 3.5" drives normally sitting in the
> desktop raid tray and connect it in turn to the laptop via
> a sata/usb adapter. Looks like a problematic avenue but I
> don't wanna buy a usb-portable disk just for this. It's my
> first rodeo involving an EFI/Legacy hardware mix and it gets
> dizzying, even though I split it into two separate threads :-)

The question/subject is misleading as this is about partition tables, not
about boot firmware.

Uefi firmware supports using either gpt or mbr partition tables though some badly
written firmware requires the boot drive to use a gpt partition table.

Legacy bios firmware supports using either gpt or mbr partition tables though some
very old bios firmware requires the boot drive to use a mbr partition table.

> Using my Lenovo T480 laptop
>
> If I do 'fdisk -l' with just a 2tb sata plugged-in via a sata usb adapter
> =========================================================================
>
> # fdisk -l
> Disk /dev/nvme0n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
> Disk model: SPCC M.2 PCIe SSD
> 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: gpt
> Disk identifier: 1F5BF8E3-EF76-4A16-BF3E-78B891EAB2B3
>
> Device Start End Sectors Size Type
> /dev/nvme0n1p1 2048 2099199 2097152 1G EFI System
> /dev/nvme0n1p2 2099200 14682111 12582912 6G Linux swap
> ...
> /dev/nvme0n1p17 1986019328 2000408575 14389248 6.9G Linux filesystem
>
> *GPT PMBR size mismatch (3907029167 != 488378645) will be corrected by
> write*

I've never seen the GPT PMBR size mismatch before. A search leads to
https://arstech.net/gpt-pmbr-size-mismatch/
which recommends running "parted -l" and responding with "fix" when asked.

Do that before continuing to use the drive in either system.

The sata/usb adapter should work fine in both systems using either a gpt or
mbr partition table, since it will not be used as the boot drive.

Once the existing gpt partition table has been fixed, how is using it
problematic?

Regards, Dave Hodgins

Re: EFI/Legacy mixed hardware data transport

<uq9am9$4g3g$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2216&group=alt.os.linux#2216

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.os.linux
Subject: Re: EFI/Legacy mixed hardware data transport
Date: Sat, 10 Feb 2024 21:16:40 -0500
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <uq9am9$4g3g$1@dont-email.me>
References: <2r6dnYMX3Jh_Dlr4nZ2dnZfqnPidnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 11 Feb 2024 02:16:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bf8093eaaba2df8177e51d135cb275a0";
logging-data="147568"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/htKdTs8Wzjy3dSqgo5RjHAcg1G9XC5XY="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:lgmkc6QzlsHp2/5BH4WUgjEVfx4=
Content-Language: en-US
In-Reply-To: <2r6dnYMX3Jh_Dlr4nZ2dnZfqnPidnZ2d@giganews.com>
 by: Paul - Sun, 11 Feb 2024 02:16 UTC

On 2/10/2024 5:19 AM, bad sector wrote:
> I'm trying to decide on a method to move data between my
> Legacy-BIOS desktopo and my EFI laptop. My initial plan
> was to use one of the 3.5" drives normally sitting in the
> desktop raid tray and connect it in turn to the laptop via
> a sata/usb adapter. Looks like a problematic avenue but I
> don't wanna buy a usb-portable disk just for this. It's my
> first rodeo involving an EFI/Legacy hardware mix and it gets
> dizzying, even though I split it into two separate threads :-)

I don't know what your problem is in this case, but
Linux has two utilities now.

sudo gdisk /dev/sda # Identifies whether disk is GPT or MBR

sudo fdisk /dev/sda # If MBR, use this utility

GDisk has an Advanced options thing that offers some useful
features. I think one of the features, is clearing the two
GPT tables (primary, and the secondary at the end of the disk),
so some of the dumber utilities stop thinking a disk is GPT
when it isn't.

*******

Your other thread, refers to materials such as this.

512n The original hard drives. Up until recently, a few were still available
512e Most modern drives for consumers are like this. 512 on the outside, 4K on the inside.
The cache is used to hide read-modify-write operations to support 512e.
4Kn Server room 4K logical, 4K physical drives. Up until recently,
these were definitely to be avoided, and Newegg stopped selling these
to consumers (too many returns).

Then there is this item:

4Ke Adapter. Converts some kind of drive, into a 4K logical, 4K physical drive.
An OS which really supports 4Kn, would likely eat the declaration it
is 4Kn and pretend not to know or care there is monkey business going on.
Older OSes, will not like this adapter emulation, any more than they
would like it if you connected a 4Kn to a SATA port.

Paul

Re: EFI/Legacy mixed hardware data transport

<qJCdnVKHdtJY2k74nZ2dnZfqnPSdnZ2d@giganews.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2254&group=alt.os.linux#2254

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!i2pn.org!news.samoylyk.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border-1.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 19 Feb 2024 12:21:25 +0000
Date: Mon, 19 Feb 2024 07:21:25 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
From: forget...@_INVALID.net (bad sector)
Subject: Re: EFI/Legacy mixed hardware data transport
Newsgroups: alt.os.linux
References: <2r6dnYMX3Jh_Dlr4nZ2dnZfqnPidnZ2d@giganews.com>
<uq9am9$4g3g$1@dont-email.me>
Content-Language: en-US
In-Reply-To: <uq9am9$4g3g$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <qJCdnVKHdtJY2k74nZ2dnZfqnPSdnZ2d@giganews.com>
Lines: 69
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-qVYqC/66SxmJPIS/kSHcKq6no/hLv8h3NxYFqXSGPHelD2YKyHO+Ok9+nUljaL49F3ws1CNECK8ICVG!c9w6IurLFZNk4nWIHh22Xr87oo2RfWHvk94sQVFx20VW8hGK8CMkSMwTmcnW7h3dQw42dAK4nydL
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Received-Bytes: 4156
 by: bad sector - Mon, 19 Feb 2024 12:21 UTC

On 2/10/24 21:16, Paul wrote:
> On 2/10/2024 5:19 AM, bad sector wrote:
>> I'm trying to decide on a method to move data between my
>> Legacy-BIOS desktopo and my EFI laptop. My initial plan
>> was to use one of the 3.5" drives normally sitting in the
>> desktop raid tray and connect it in turn to the laptop via
>> a sata/usb adapter. Looks like a problematic avenue but I
>> don't wanna buy a usb-portable disk just for this. It's my
>> first rodeo involving an EFI/Legacy hardware mix and it gets
>> dizzying, even though I split it into two separate threads :-)
>
> I don't know what your problem is in this case, but
> Linux has two utilities now.

My previous laptop was a 16" Asus G7 gaming type i7 which I thought was
overkill. When it finally crapped out I promised myself I would not buy
another one. BUT I could move not just data but entire Linux partitions
between that and my AMD desktop with no regard or respect for anything
using just a SATA/usb adapter.

> sudo gdisk /dev/sda # Identifies whether disk is GPT or MBR
>
> sudo fdisk /dev/sda # If MBR, use this utility

I've been using fdisk only

> GDisk has an Advanced options thing that offers some useful
> features. I think one of the features, is clearing the two
> GPT tables (primary, and the secondary at the end of the disk),
> so some of the dumber utilities stop thinking a disk is GPT
> when it isn't.
>
> *******
>
> Your other thread, refers to materials such as this.
>
> 512n The original hard drives. Up until recently, a few were still available
> 512e Most modern drives for consumers are like this. 512 on the outside, 4K on the inside.
> The cache is used to hide read-modify-write operations to support 512e.
> 4Kn Server room 4K logical, 4K physical drives. Up until recently,
> these were definitely to be avoided, and Newegg stopped selling these
> to consumers (too many returns).
>
> Then there is this item:
>
> 4Ke Adapter. Converts some kind of drive, into a 4K logical, 4K physical drive.
> An OS which really supports 4Kn, would likely eat the declaration it
> is 4Kn and pretend not to know or care there is monkey business going on.
> Older OSes, will not like this adapter emulation, any more than they
> would like it if you connected a 4Kn to a SATA port.
>
> Paul

As I've since learned here, the mickey-mouse adaptor and EFI are the
root issues and one answer might be FTP transfering instead of adapters.
Interim I've just ordered a 124 gb usb stick, I might even set
Legacy-BIOS only in the laptop BIOS seeing that I really have less than
no use for it myself and w10 doesn't need it either if run in vBox.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor