Java Jive
2024-06-22 20:30:35 UTC
This is a deliberate X-post between Linux & Windows groups because, as
per subject, I wish to create one USB stick that can act as a rescue
system for both Linux & Windows 7 & 10
As a half-way house test-bench, I have partitioned an external HD in a
USB drive-bay as follows:
P1 Ubuntu 22 | P2 Clonezilla | P3 Win 10 Install | P4 Ghost & ISO images
The PCs involved are:
1 Dell Precision M6700 x 2
2 Dell Inspiron 15RSE 7520
3 Dell Precision M6300
PROBLEM #1:
I can boot from the external HD on PC3, & I think PC2 but cannot check
just now as I'm using it to write this, but certainly not on either of
PC1, which both give the message "Invalid Partition Table!". AFAICT,
their BIOS settings are set to support fully legacy booting, which is
what this disk is partitioned as, and they boot happily from their own
internal legacy partitioned disks, but not this external one. They also
boot happily from a number of USB sticks. The most obvious difference
between these two PCs and the others is that they both have two internal
HDs:
Disk 0, /dev/sda, contains just two data partitions.
Disk 1, /dev/sdb, contains four OS partitions:
Win 7
Win 10
Win 7 32-Bit
Ubuntu 22
Can anyone suggest how I can arrange things so that all the PCs can boot
from this external HD?
PROBLEM #2
I can boot into Clonezilla 3.1.2, but not into its syslinux.cfg menu as
happens when I boot from the USB directly; the method I found online
seems designed to boot directly into the first option of the syslinux
menu, not to invoke the menu itself. How can I boot via grub into the
same menu that you get when booting it as a USB?
The method that I found online suggests placing the following grub
fragment in either ...
/boot/grub/grub.cfg
... but that won't survive updates to grub, or to ...
/etc/grub.d/40_custom
... which will:
menuentry "Clonezilla" {
savedefault
set root=(hd0,2)
linux /live/vmlinuz boot=live union=overlay username=user config
components quiet noswap nolocales edd=on nomodeset
ocs_live_run=\"ocs-live-general\" ocs_live_extra_param=\"\"
keyboard-layouts= ocs_live_batch=\"no\" locales= vga=788 ip=frommedia
nosplash live-media-path=/live bootfrom=/dev/sda2 toram=live,syslinux,EFI
initrd /live/initrd.img
}
PROBLEM #3
I have added to Clonezilla's syslinux.cfg menu an option of my own to
boot into an ISO of an old W98 console for running Dell Diagnostics, a
legacy version of Ghost, etc. When booting from the original USB stick,
I see the new option, and it seems to find the ISO and gets some way
into booting it, but then stalls with the message:
Loading boot sector... booting...
I can't seems to find a way of chaining to IO.SYS. Can anyone suggest
how I might do this? This is what I put in the syslinux.cfg menu:
label EmerDellGhost
# MENU DEFAULT
# MENU HIDE
MENU LABEL Emergency W98 Boot - Legacy Ghost & Dell Diagnostics
# MENU PASSWD
kernel memdisk
append initrd=/live/EmerDellGhost.iso
TEXT HELP
Run Windows 98 boot with legacy Ghost (2003) and
Dell Diagnostics for Latitude D610 & Precision M6300
ENDTEXT
SUCCESSES
In case it's of interest or help to others, I've managed to boot into a
variety of ISOs of Windows installation media. This is how I managed it:
For the unzipped ISO in Partition 3 above, Grub's os-probe finds the PE
environment for itself and correctly sets up to boot into it.
For booting directly from ISOs which have not been unzipped, WimBoot is
needed ...
https://github.com/ipxe/wimboot/releases
... which I placed by itself in a directory WimBoot in Partition 4.
Then as described above and as found online I added the following
fragment to ...
/etc/grub.d/40_custom
... and it and others like it all work:
menuentry "Windows 7 Home Premium 64-Bit Install" --unrestricted --class
Windows {
savedefault
set iso_path="(hd0,msdos4)/Windows_7_Home_Premium_64Bit_x17-58997.iso"
loopback loop "$iso_path"
linux16 (hd0,msdos4)/WimBoot/wimboot
initrd16 \
newc:bootmgr:(loop)/bootmgr \
newc:BCD:(loop)/boot/bcd \
newc:boot.sdi:(loop)/boot/boot.sdi \
newc:boot.wim:(loop)/sources/boot.wim
}
per subject, I wish to create one USB stick that can act as a rescue
system for both Linux & Windows 7 & 10
As a half-way house test-bench, I have partitioned an external HD in a
USB drive-bay as follows:
P1 Ubuntu 22 | P2 Clonezilla | P3 Win 10 Install | P4 Ghost & ISO images
The PCs involved are:
1 Dell Precision M6700 x 2
2 Dell Inspiron 15RSE 7520
3 Dell Precision M6300
PROBLEM #1:
I can boot from the external HD on PC3, & I think PC2 but cannot check
just now as I'm using it to write this, but certainly not on either of
PC1, which both give the message "Invalid Partition Table!". AFAICT,
their BIOS settings are set to support fully legacy booting, which is
what this disk is partitioned as, and they boot happily from their own
internal legacy partitioned disks, but not this external one. They also
boot happily from a number of USB sticks. The most obvious difference
between these two PCs and the others is that they both have two internal
HDs:
Disk 0, /dev/sda, contains just two data partitions.
Disk 1, /dev/sdb, contains four OS partitions:
Win 7
Win 10
Win 7 32-Bit
Ubuntu 22
Can anyone suggest how I can arrange things so that all the PCs can boot
from this external HD?
PROBLEM #2
I can boot into Clonezilla 3.1.2, but not into its syslinux.cfg menu as
happens when I boot from the USB directly; the method I found online
seems designed to boot directly into the first option of the syslinux
menu, not to invoke the menu itself. How can I boot via grub into the
same menu that you get when booting it as a USB?
The method that I found online suggests placing the following grub
fragment in either ...
/boot/grub/grub.cfg
... but that won't survive updates to grub, or to ...
/etc/grub.d/40_custom
... which will:
menuentry "Clonezilla" {
savedefault
set root=(hd0,2)
linux /live/vmlinuz boot=live union=overlay username=user config
components quiet noswap nolocales edd=on nomodeset
ocs_live_run=\"ocs-live-general\" ocs_live_extra_param=\"\"
keyboard-layouts= ocs_live_batch=\"no\" locales= vga=788 ip=frommedia
nosplash live-media-path=/live bootfrom=/dev/sda2 toram=live,syslinux,EFI
initrd /live/initrd.img
}
PROBLEM #3
I have added to Clonezilla's syslinux.cfg menu an option of my own to
boot into an ISO of an old W98 console for running Dell Diagnostics, a
legacy version of Ghost, etc. When booting from the original USB stick,
I see the new option, and it seems to find the ISO and gets some way
into booting it, but then stalls with the message:
Loading boot sector... booting...
I can't seems to find a way of chaining to IO.SYS. Can anyone suggest
how I might do this? This is what I put in the syslinux.cfg menu:
label EmerDellGhost
# MENU DEFAULT
# MENU HIDE
MENU LABEL Emergency W98 Boot - Legacy Ghost & Dell Diagnostics
# MENU PASSWD
kernel memdisk
append initrd=/live/EmerDellGhost.iso
TEXT HELP
Run Windows 98 boot with legacy Ghost (2003) and
Dell Diagnostics for Latitude D610 & Precision M6300
ENDTEXT
SUCCESSES
In case it's of interest or help to others, I've managed to boot into a
variety of ISOs of Windows installation media. This is how I managed it:
For the unzipped ISO in Partition 3 above, Grub's os-probe finds the PE
environment for itself and correctly sets up to boot into it.
For booting directly from ISOs which have not been unzipped, WimBoot is
needed ...
https://github.com/ipxe/wimboot/releases
... which I placed by itself in a directory WimBoot in Partition 4.
Then as described above and as found online I added the following
fragment to ...
/etc/grub.d/40_custom
... and it and others like it all work:
menuentry "Windows 7 Home Premium 64-Bit Install" --unrestricted --class
Windows {
savedefault
set iso_path="(hd0,msdos4)/Windows_7_Home_Premium_64Bit_x17-58997.iso"
loopback loop "$iso_path"
linux16 (hd0,msdos4)/WimBoot/wimboot
initrd16 \
newc:bootmgr:(loop)/bootmgr \
newc:BCD:(loop)/boot/bcd \
newc:boot.sdi:(loop)/boot/boot.sdi \
newc:boot.wim:(loop)/sources/boot.wim
}
--
Fake news kills!
I may be contacted via the contact address given on my website:
www.macfh.co.uk
Fake news kills!
I may be contacted via the contact address given on my website:
www.macfh.co.uk