Author Topic: Switch from CSM to UEFI  (Read 4029 times)

Per E. Johannessen

  • Sr. Member
  • ****
  • Posts: 270
  • Karma: +3/-0
    • View Profile
Re: Switch from CSM to UEFI
« Reply #15 on: October 31, 2024, 06:14:11 pm »
Thanks to all for info, I haven't decided what "route" to take yet but will report when done.
The MBR-to-GPT converter developed by Rich would be a great tool to have, and I would not expect it to be freeware.
Hope that AN can imagine a use for it now. (USD 2500 is a bit too much for my budget, although I'd happily pay a reasonable fee for a user license.)

Andi B.

  • Hero Member
  • *****
  • Posts: 871
  • Karma: +14/-2
    • View Profile
Re: Switch from CSM to UEFI
« Reply #16 on: November 01, 2024, 05:12:32 pm »
Sorry Rich that I've to say that, but ArcaNoae offers a way to convert MBR to GPT via dfsan. I found it in one of the ArcaOS readme files. Maybe gpt.txt? I already saw a menu entry in DFSee some time ago doing that. ArcaOS also comes with a simple GPT partition creation tool (PTE.exe I think). I created a 2TB partition with it on a 8TB disk a few days ago.

ivan

  • Hero Member
  • *****
  • Posts: 1602
  • Karma: +20/-0
    • View Profile
Re: Switch from CSM to UEFI
« Reply #17 on: November 01, 2024, 06:23:16 pm »
DFSee 17.0 also has the ability to convert MBR to GPT and also do any other required changes.  I would think that every OS/2 user has a copy of that free release.

Rich Walsh

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +24/-0
  • ONU! (OS/2 is NOT Unix!)
    • View Profile
Re: Switch from CSM to UEFI
« Reply #18 on: November 01, 2024, 06:43:55 pm »
ArcaNoae offers a way to convert MBR to GPT via dfsan. [...] I already saw a menu entry in DFSee some time ago doing that.

When you select that menu entry in DFSee, the one-line help at the bottom of the screen says:
"Convert an MBR-style disk to an EMPTY GPT one [...]". In contrast, my tool takes an in-use MBR disk with up to 127 partitions and converts it in-place without the loss of a single byte of data. They're just not the same.

Quote
ArcaOS also comes with a simple GPT partition creation tool (PTE.exe I think).

I wrote PTE. It was intended to be a temporary GPT partition table editor for use until GPT support could be integrated into existing tools. I did so subsequently by adding GPT support to MiniLVM. As such, PTE is obsolete (though still functional) and should be removed from the distro.

Rich Walsh

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +24/-0
  • ONU! (OS/2 is NOT Unix!)
    • View Profile
Re: Switch from CSM to UEFI
« Reply #19 on: November 01, 2024, 07:29:56 pm »
DFSee 17.0 also has the ability to [...] do any other required changes.

Actually, it doesn't.

While a disk is identified by OS/2 as "MBR", DFSee can convert it to GPT and (presumably) create GPT partitions. However, once you reboot and OS/2 identifies the disk as "GPT", DFSee is incapable of performing any changes to the partition table because it is read-only. DFSee doesn't know how to get write-access nor does it know how to coordinate the physical GPT partitions with the emulated MBR disks that LVM sees. The GPT disk itself is invisible to DFSee.

Honestly, this is waaaaay more complicated than it looks. Skip DFSee and use David A's 'InitDisk.exe' to do a destructive conversion, then reboot and use MiniLVM to create partitions (including the UEFI system partition).

Note: DFSee is still able to perform operations within a partition (e.g. finding lost files or editing binary data) because the GPT partitions are always read-write. However, what DFSee thinks it's seeing is the only partition on an MBR disk.
« Last Edit: November 01, 2024, 07:34:13 pm by Rich Walsh »

Andi B.

  • Hero Member
  • *****
  • Posts: 871
  • Karma: +14/-2
    • View Profile
Re: Switch from CSM to UEFI
« Reply #20 on: November 01, 2024, 08:40:48 pm »
Rich thanks for clarification.

I tried to setup this new 8TB drive with MiniLVM as GPT but couldn't find out how to do. Maybe I have to create an EFI partition there? But I've already 2 EFI partitions on other drives. I really tried with MiniLVM but it does not work (for me). I can't convince MiniLVM to create a GPT layout. I also can't add another 2TB partition on this 8TB drive with MiniLVM cause there is no free space anymore. PTE can't do this too.

PTE - looks a bit strange cause the big font. But it worked for at least one nearly 2TB partition.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5095
  • Karma: +117/-1
    • View Profile
Re: Switch from CSM to UEFI
« Reply #21 on: November 01, 2024, 10:08:03 pm »
Rich thanks for clarification.

I tried to setup this new 8TB drive with MiniLVM as GPT but couldn't find out how to do. Maybe I have to create an EFI partition there? But I've already 2 EFI partitions on other drives. I really tried with MiniLVM but it does not work (for me). I can't convince MiniLVM to create a GPT layout. I also can't add another 2TB partition on this 8TB drive with MiniLVM cause there is no free space anymore. PTE can't do this too.

PTE - looks a bit strange cause the big font. But it worked for at least one nearly 2TB partition.

Too old of a minilvm? Note that the latest is called the "Installation Volume Manager" and seems to handle GPT fine.

ivan

  • Hero Member
  • *****
  • Posts: 1602
  • Karma: +20/-0
    • View Profile
Re: Switch from CSM to UEFI
« Reply #22 on: November 01, 2024, 11:37:00 pm »
OK. I stand corrected especially since I have no intentions of changing what works for me to something that might not work - that is why I have several computers at my desk connected by an HDMI/usb switch.

Andi B.

  • Hero Member
  • *****
  • Posts: 871
  • Karma: +14/-2
    • View Profile
Re: Switch from CSM to UEFI
« Reply #23 on: November 02, 2024, 01:43:17 pm »
Too old of a minilvm? Note that the latest is called the "Installation Volume Manager" and seems to handle GPT fine.
v 2.52. Included with ArcaOS 5.1.0 EN. Built 2023-08-23. Maybe that's to old. But I really tried. Even looked into the help without any hint.

I even cleared start of the disk with DFSee and started again. But could not find how to select GPT when creating the first partition.
« Last Edit: November 02, 2024, 05:42:17 pm by Andi B. »

Steven Levine

  • Newbie
  • *
  • Posts: 48
  • Karma: +10/-0
    • View Profile
Re: Switch from CSM to UEFI
« Reply #24 on: November 02, 2024, 06:46:16 pm »
Andi,

GPT maintains two copies of the GPT tables.  To clear them completely with dfsee, you need to clear both the first and last cylinders of the disk when booted to a setup that does not load the GPT filter driver.  The other option is to use InitDisk.

Rich Walsh

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +24/-0
  • ONU! (OS/2 is NOT Unix!)
    • View Profile
Re: Switch from CSM to UEFI
« Reply #25 on: November 02, 2024, 08:15:21 pm »
v 2.52. Included with ArcaOS 5.1.0 EN. Built 2023-08-23. Maybe that's to old. But I really tried. Even looked into the help without any hint.

I even cleared start of the disk with DFSee and started again. But could not find how to select GPT when creating the first partition.

I think there's a basic misunderstanding here: neither MiniLVM nor PTE _create_ a GPT disk. They are partition editors that know how to manipulate an *existing* GPT disk. To create one, you must use 'InitDisk.exe' or DFSee.

After a reboot, MiniLVM will clearly identify which disks are GPT and which are MBR. 'PTE' will only display GPT and will ignore MBR (IIRC). The other partition editors ('lvm.exe' and that java thing) are useless for GPT because they can't see the actual GPT disk.


Andi B.

  • Hero Member
  • *****
  • Posts: 871
  • Karma: +14/-2
    • View Profile
Re: Switch from CSM to UEFI
« Reply #26 on: November 03, 2024, 09:46:59 am »
v 2.52. Included with ArcaOS 5.1.0 EN. Built 2023-08-23. Maybe that's to old. But I really tried. Even looked into the help without any hint.

I even cleared start of the disk with DFSee and started again. But could not find how to select GPT when creating the first partition.

I think there's a basic misunderstanding here: neither MiniLVM nor PTE _create_ a GPT disk. They are partition editors that know how to manipulate an *existing* GPT disk. To create one, you must use 'InitDisk.exe' or DFSee.

After a reboot, MiniLVM will clearly identify which disks are GPT and which are MBR. 'PTE' will only display GPT and will ignore MBR (IIRC). The other partition editors ('lvm.exe' and that java thing) are useless for GPT because they can't see the actual GPT disk.
Does make sense now. But maybe you understand the confusion. Usually we used the standard tools (fdisk, lvmgui, MiniLVM) or DFSee to create all partitions and volumes. There is also the strong advise to only use ArcaOS tools to create volumes. I guess most of us know about these mentioned tools.

But I for myself never heard about (maybe I've heard but didn't recognize) InitDisk or PTE until a few days ago. Although I created one of my disks with GPT layout, probably during one of my ArcaOS installation trials, I didn't know InitDisk is needed.

So thanks for clarification.