Recreating Windows partitions using MX Linux and Gparted?  [Solved]

Message
Author
User avatar
tobyo
Posts: 37
Joined: Tue Oct 08, 2024 4:21 pm

Recreating Windows partitions using MX Linux and Gparted?

#1 Post by tobyo »

Hi, I installed Linux onto a Windows tablet a while back, I didn't realise that I had wiped the partitions that Windows needed to boot from.

It now will not boot from any Windows based USB sticks, and recovery tools that use Windows do not boot.

I tried Ventoy with MediCat (a bunch of recovery tools) and with most of the tools I get an error when I try to boot them:

No boot file found for UEFI!
Maybe the image does not support IA32 UEFI!

The original device ISO tries to boot but crashes.

I suspect this is down to the Windows partitions (MSR and EFI etc.) missing on the internal drive (a soldered MMC).

I found a script on the ISO that will recreate the partitions, but this is for DiskPart.

Code: Select all

rem == CreatePartitions-UEFI.txt ==
rem == These commands are used with DiskPart to
rem    create four partitions
rem    for a UEFI/GPT-based PC.
rem    Adjust the partition sizes to fill the drive
rem    as necessary. ==
select disk 0
clean
convert gpt
rem == 1. System partition =========================
create partition efi size=100
rem    ** NOTE: For Advanced Format 4Kn drives,
rem               change this value to size = 260 ** 
format quick fs=fat32 label="System"
assign letter="S"
rem == 2. Microsoft Reserved (MSR) partition =======
create partition msr size=16
rem == 3. Windows partition ========================
rem ==    a. Create the Windows partition ==========
create partition primary 
rem ==    b. Create space for the recovery tools ===
shrink minimum=900
rem       ** NOTE: Update this size to match the
rem                size of the recovery tools 
rem                (winre.wim)                    **
rem ==    c. Prepare the Windows partition ========= 
format quick fs=ntfs label="Windows"
assign letter="W"
rem === 4. Recovery partition ======================
create partition primary
format quick fs=ntfs label="Recovery"
assign letter="R"
set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
gpt attributes=0x8000000000000001
list volume
exit
So I am wondering if anyone knows if I can recreate these partitions using MX Linux?

I can boot MX Linux from a USB stick and open Gparted.

The device's recovery ISO contains a Boot and EFI folder, so I would assume I could copy the contents into their partitions if created?
Hopefully from that point I could then boot from the recovery ISO and reinstall Windows.
Last edited by tobyo on Fri Mar 14, 2025 6:22 am, edited 2 times in total.

User avatar
Eadwine Rose
Administrator
Posts: 14932
Joined: Wed Jul 12, 2006 2:10 am

Re: Recreating Windows partitions using MX Linux and Gparted?

#2 Post by Eadwine Rose »

Please boot the USB stick, post the QSI off of the USB stick, there might be other info requested as well.

Also post the output of

Code: Select all

lsblk -f
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
tobyo
Posts: 37
Joined: Tue Oct 08, 2024 4:21 pm

Re: Recreating Windows partitions using MX Linux and Gparted?

#3 Post by tobyo »

Thank you Eadwine

I am sorry but I do not know what you mean by QSI, could you please explain?

This is the output from: lsblk -f

Code: Select all

NAME        FSTYPE FSVER LABEL    UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0       squash 4.0                                                       0   100% /live/linux
sda         iso966 Jolie MX-Live  2025-01-12-19-33-31-00                              
├─sda1      iso966 Jolie MX-Live  2025-01-12-19-33-31-00                     0   100% /live/boot-dev
└─sda2      vfat   FAT16 EFI-LIVE 8089-2441                                           
mmcblk0                                                                               
├─mmcblk0p1 vfat   FAT32 NO_LABEL 0055-E620                                           
└─mmcblk0p2 ext4   1.0            26ea0c49-5d97-4e61-8294-bba0932385d9                
mmcblk0boot0
                                                                                      
mmcblk0boot1
The device, a Linx Vision 8, currently has a custom version of Lubuntu installed, it performs better than Windows for some tasks but has some issues, hence I am trying to reinstall Windows.
It has a Intel Atom® x5-Z8300 Processor (2M Cache, up to 1.84 GHz), I believe this is a 64-bit processor but uses a 32-bit UEFI or something along those lines. This is another reason there are issues getting it to boot.

User avatar
Eadwine Rose
Administrator
Posts: 14932
Joined: Wed Jul 12, 2006 2:10 am

Re: Recreating Windows partitions using MX Linux and Gparted?

#4 Post by Eadwine Rose »

Quick System Info, in the menu :) Use copy for forum, and then paste in a post.
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
tobyo
Posts: 37
Joined: Tue Oct 08, 2024 4:21 pm

Re: Recreating Windows partitions using MX Linux and Gparted?

#5 Post by tobyo »

Ah, that makes sense, here is the QSI:

Code: Select all

[CODE]System:
  Kernel: 6.1.0-29-amd64 [6.1.123-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/antiX/vmlinuz quiet splasht nosplash
  Desktop: Xfce v: 4.20.0 tk: Gtk v: 3.24.38 info: xfce4-panel wm: xfwm v: 4.20.0 vt: 7
    dm: LightDM v: 1.32.0 Distro: MX-23.5_x64 Libretto Jan 12  2025 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Laptop System: LINX product: VISION004 v: N/A serial: <superuser required>
  Mobo: Baseboard0592361006 model: SMB-F8004 v: Type2 - Board Version
    serial: <superuser required> UEFI: INSYDE v: VISION004.I22K.9.07 date: 10/31/2016
Battery:
  ID-1: axp288_fuel_gauge charge: 30% condition: N/A volts: 3.4 min: N/A model: N/A type: Li-ion
    serial: N/A status: discharging
CPU:
  Info: model: Intel Atom x5-Z8300 bits: 64 type: MCP arch: Airmont level: v2 built: 2015-17
    process: Intel 14nm family: 6 model-id: 0x4C (76) stepping: 3 microcode: 0x363
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 224 KiB desc: d-4x24 KiB; i-4x32 KiB
    L2: 2 MiB desc: 2x1024 KiB
  Speed (MHz): avg: 512 high: 560 min/max: 480/1840 scaling: driver: intel_cpufreq
    governor: ondemand cores: 1: 480 2: 560 3: 530 4: 480 bogomips: 11520
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass status: Not affected
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines; STIBP: disabled; RSB filling; PBRSB-eIBRS: Not
    affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics
    driver: i915 v: kernel arch: Gen-8 process: Intel 14nm built: 2014-15 ports: active: DSI-1
    empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:22b0 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.20.0 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: crocus gpu: i915 display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 800x1280 s-dpi: 96 s-size: 211x338mm (8.31x13.31") s-diag: 398mm (15.69")
  Monitor-1: DSI-1 res: 800x1280 hz: 60 size: N/A modes: 800x1280
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel HD Graphics (CHV) direct-render: Yes
Audio:
  Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Imaging Unit
    driver: intel_atomisp2_pm v: kernel bus-ID: 00:03.0 chip-ID: 8086:22b8 class-ID: 0480
  API: ALSA v: k6.1.0-29-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Wireless 3165 driver: iwlwifi v: kernel modules: wl pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 bus-ID: 01:00.0 chip-ID: 8086:3165 class-ID: 0280
  IF: wlan0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 bus-ID: 1-4:3
    chip-ID: 8087:0a2a class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 2.1 lmp-v: 4.2
    sub-v: 1000 hci-v: 4.2 rev: 1000
  Info: acl-mtu: 1021:5 sco-mtu: 96:6 link-policy: rswitch hold sniff
    link-mode: peripheral accept service-classes: rendering, capturing, object transfer, audio,
    telephony
Drives:
  Local Storage: total: 147.46 GiB used: 0 KiB (0.0%)
  ID-1: /dev/mmcblk0 maj-min: 179:0 vendor: Toshiba model: 032G72 size: 29.12 GiB block-size:
    physical: 512 B logical: 512 B type: SSD serial: <filter> rev: 0x7 scheme: GPT
  SMART Message: Unknown smartctl error. Unable to generate data.
  ID-2: /dev/sda maj-min: 8:0 type: USB vendor: SanDisk model: USB 3.2Gen1 size: 114.6 GiB
    block-size: physical: 512 B logical: 512 B type: N/A serial: <filter> rev: 1.00 scheme: GPT
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
  ID-3: /dev/sdb maj-min: 8:16 type: USB vendor: SanDisk model: Cruzer Micro size: 3.75 GiB
    block-size: physical: 512 B logical: 512 B type: N/A serial: <filter> rev: 8.02 scheme: MBR
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
  Message: No partition data found.
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 42.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: pm: dpkg pkgs: 2133 libs: 1065 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb https://mxrepo.com/mx/repo/ bookworm main non-free
Info:
  Processes: 218 Uptime: 1m wakeups: 1 Memory: 1.82 GiB used: 1022.6 MiB (54.8%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI
[/code]

User avatar
Eadwine Rose
Administrator
Posts: 14932
Joined: Wed Jul 12, 2006 2:10 am

Re: Recreating Windows partitions using MX Linux and Gparted?

#6 Post by Eadwine Rose »

Hopefully someone will show up soon who can help you out :)
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
tobyo
Posts: 37
Joined: Tue Oct 08, 2024 4:21 pm

Re: Recreating Windows partitions using MX Linux and Gparted?

#7 Post by tobyo »

Thank you Eadwine

User avatar
j2mcgreg
Global Moderator
Posts: 6996
Joined: Tue Oct 23, 2007 12:04 pm

Re: Recreating Windows partitions using MX Linux and Gparted?

#8 Post by j2mcgreg »

After a bit of searching, I was able to locate a site where you can get a Win 10 iso specifically for the LINX tablet:
https://mega.nz/file/qMBDEKjK#TVGxTkiBL ... OnpFEiWJeM
I could be wrong, but my instincts are screaming that this is dodgy. However you have a bricked tablet so it might be worth the risk. Your choice.
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;

In Linux, newer isn't always better. The best solution is the one that works.

User avatar
tobyo
Posts: 37
Joined: Tue Oct 08, 2024 4:21 pm

Re: Recreating Windows partitions using MX Linux and Gparted?  [Solved]

#9 Post by tobyo »

Thank you j2mcgreg

I have this image, and surprisingly the same URL was supplied to me by Linx.
But unfortunately it will not boot, but I think it did boot from the ISO before I installed Lubuntu.

I believe I need to reformat the drive and recreate the partitions that Windows needs before the installer will run.
I managed to do this with another computer a while back; although that computer would boot into recovery tools (as the partitions were correct I think).

I am planning to boot into a Live MX Linux USB, then use gparted and try to recreate the steps that the DiskPart script does.
I have since found more details for each Windows partition such as the typical sizes and specific partition IDs.

I think if I can just get the original ISO to boot the rest should work as the installer should reformat the drive and partitions (maybe).

Typically the battery has run down on the tablet, and it only has one micro USB port so I have to wait until it is fully charged before I can attempt anything else.
I was using a micro USB to USB-A, then a 4 port USB hub with keyboard, mouse and the OS on USB stick. It is quite a pain.

User avatar
tobyo
Posts: 37
Joined: Tue Oct 08, 2024 4:21 pm

Re: Recreating Windows partitions using MX Linux and Gparted?

#10 Post by tobyo »

After a lot of tinkering I can confirm that an MX Linux Live USB and GParted can recreate the partitions needed by Windows in order to boot from a Windows installer!

And once created the OEM ISO would then boot, this then recreated all the partitions again (according to the installer) and now I have Windows running again on my old tablet :-) I only use it for old emulators but I am still pleased it is working.

Everything else is running MX Linux of course ;-)

Thanks to all for help and advice.

Post Reply

Return to “General”