I wish to create one USB stick that can act as a rescue system for both Linux & Windows 7 & 10
The nice thing about the Ventoy 'idea' is that you could have a wide selection of linux rescue distro/s and the hirens pe & 15.
You would do your rescue work from a live boot.
Also consider such as Rescatux, Sparky Rescue, SystemRescue, etc.
Sparky's is 1.8G.
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?
Mike Easter wrote:
The nice thing about the Ventoy 'idea' is that you could have a wide
selection of linux rescue distro/s and the hirens pe & 15.
You would do your rescue work from a live boot.
Also consider such as Rescatux, Sparky Rescue, SystemRescue, etc.
Sparky's is 1.8G.
More on Sparky's
https://wiki.sparkylinux.org/doku.php/sparky_rescue
Java Jive wrote:
I wish to create one USB stick that can act as a rescue system for both Linux & Windows 7 & 10
I think I would choose a linux rescue type distro of my choice plus a
Hirens such as the PE one so it would cover 10 and put both .iso/s on a Ventoy stick. There are also a lot of things on the old Hirens 15
(which is XP and a lot of MSDOS & linux) that aren't on the PE that
might be useful for Win related stuff and would cover that angle.
The nice thing about the Ventoy 'idea' is that you could have a wide selection of linux rescue distro/s and the hirens pe & 15.
You would do your rescue work from a live boot.
Hiren's PE 3G .iso
Hiren's 15.2 0.6G .iso
clonezilla-live-3.1.2-22-i686 0.36G .iso
Also consider such as Rescatux, Sparky Rescue, SystemRescue, etc.
Sparky's is 1.8G.
On 22/06/2024 22:12, Mike Easter wrote:
Mike Easter wrote:
The nice thing about the Ventoy 'idea' is that you could have a wide
selection of linux rescue distro/s and the hirens pe & 15.
You would do your rescue work from a live boot.
Also consider such as Rescatux, Sparky Rescue, SystemRescue, etc.
Sparky's is 1.8G.
More on Sparky's
https://wiki.sparkylinux.org/doku.php/sparky_rescue
Thanks to both yourself & Jeff Gaines for your replies, I've downloaded Ventoy & Sparky and will investigate them. However, in the meantime can anyone help with the specific problems listed?
Anyone able to download all three?
When I was a boy, a rescue disk was just that, 1.44M max (OK just for
DOS)
The Atari 1040ST, released in 1986 with 1 MB of memory, was the first home computer with a cost per kilobyte of RAM under US$1/KB.
https://sourceforge.net/projects/ventoy/files/v1.0.99/
Java Jive wrote:
Well, I *thought* I'd downloaded Ventoy, but now I see that the download
failed. Of the three formats here tried in two browsers ...
https://sourceforge.net/projects/ventoy/files/v1.0.99/
... only the zip seems to download. I get about 175-185 of 196MB of the
live CD iso, and about 10-14 of 20MB of the tar.gz, but never a complete
download of either. Due to the sodding Javascript obfuscation, WayBack
doesn't work on these pages.
Anyone able to download all three?
sourceforge doesn't allow me to press the "don't accept cookies" button.
firefox+ghostery
Yes, it seems to be some sort of silly-buggers protectionism, for FREE
OPEN SOURCE SOFTWARE, for chrissake! What I think may have been
happening in my case was that a certain amount of time was allowed for
the size of the download, and because I have a moderately slow rural
mobile connection, the portcullis was coming down just before the
downloads could complete.
However, I've found a way around it ...
<Right-Click> the failed item in your browser's downloads page, and
paste it into a new tab, remove the part
after the '?', which from
memory was ?viasf=1. This takes you to a mirror without all the silly buggers, and it just works, or at least did for me.
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.
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
Java Jive <java@evij.com.invalid> writes:
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.
https://serverfault.com/questions/98950/how-do-i-chain-boot-from-grub-to-syslinux
proposes this:
set root='hd1,msdos1'
chainloader +1
boot
Does that work with root= adjusted to your system?
Although the Ventoy CD iso wouldn't boot after being copied to a USB by Rufus,
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
Still a problem, I suspect still with the role of the Boot Sector in chaining to IO.SYS. I've tried to use Ventoy to boot RawWriteWin *.img files of Emergency W98 boot floppies ...
error: no such partition
Disk I/O error
Replace the disk, and then press any key
.... and ISOs made with ImgBurn ...
[goes straight through to the PC's normal grub menu
without any visible message being given]
.... but I still can't get a bootable result. Any further help with
this would be welcome.
However, I forgot to mention before that I want to adapt both it and any Live Linux ISOs to boot with a UK keyboard layout, as, particularly in Clonezilla, the process of choosing one manually is tedious in the extreme. Can anyone help with how to do that?
On 24/06/2024 11:01, Java Jive wrote:
However, I forgot to mention before that I want to adapt both it and
any Live Linux ISOs to boot with a UK keyboard layout, as,
particularly in Clonezilla, the process of choosing one manually is
tedious in the extreme. Can anyone help with how to do that?
I've solved this for Clonezilla by editing /syslinux/syslinux.cfg,
globally finding & replacing as follows:
locales= => locales=en_GB.UTF-8
keyboard-layouts= => keyboard-layouts=gb
Hopefully something similar will work for the Linux Live ISOs, but I
have yet to investigate those.
On 01/07/2024 19:54, Java Jive wrote:
On 24/06/2024 11:01, Java Jive wrote:
However, I forgot to mention before that I want to adapt both it and
any Live Linux ISOs to boot with a UK keyboard layout, as,
particularly in Clonezilla, the process of choosing one manually is
tedious in the extreme. Can anyone help with how to do that?
I've solved this for Clonezilla by editing /syslinux/syslinux.cfg,
globally finding & replacing as follows:
locales= => locales=en_GB.UTF-8
keyboard-layouts= => keyboard-layouts=gb
Hopefully something similar will work for the Linux Live ISOs, but I
have yet to investigate those.
Perhaps should have mentioned that the allowable values for other parts
of the world can be found in any Debian-based distro as follows ...
Locales: /usr/share/i18n/SUPPORTED
Keyboard: /usr/share/X11/xkb/rules/base.lst
However, I forgot to mention before that I want to adapt both it and any Live Linux ISOs to boot with a UK keyboard layout, as, particularly in Clonezilla, the process of choosing one manually is tedious in the extreme.
Java Jive wrote:
However, I forgot to mention before that I want to adapt both it and
any Live Linux ISOs to boot with a UK keyboard layout, as,
particularly in Clonezilla, the process of choosing one manually is
tedious in the extreme.
I don't understand yet.
If I were going to /try/ to boot live w/ a locale, I think I would do it
w/ a boot parameter rather than changing the .iso, but the part I
haven't figured out yet is why it should be tedious in the extreme to
change the locale in the live /after/ the boot and then just log out and back in, but then I haven't actually tested doing that.
Mike Easter wrote:
Java Jive wrote:
However, I forgot to mention before that I want to adapt both it and
any Live Linux ISOs to boot with a UK keyboard layout, as,
particularly in Clonezilla, the process of choosing one manually is
tedious in the extreme.
I don't understand yet.
If I were going to /try/ to boot live w/ a locale, I think I would do
it w/ a boot parameter rather than changing the .iso, but the part I
haven't figured out yet is why it should be tedious in the extreme to
change the locale in the live /after/ the boot and then just log out
and back in, but then I haven't actually tested doing that.
It's because to change the keyboard layout there's a nested series of
menus which, believe me, are tedious to negotiate.
10.2 Customizing locale and language
When the live system boots, language is involved in two steps:
Java Jive wrote:
However, I forgot to mention before that I want to adapt both it and
any Live Linux ISOs to boot with a UK keyboard layout, as,
particularly in Clonezilla, the process of choosing one manually is
tedious in the extreme.
Mike Easter wrote:
Java Jive wrote:
However, I forgot to mention before that I want to adapt both it and
any Live Linux ISOs to boot with a UK keyboard layout, as,
particularly in Clonezilla, the process of choosing one manually is
tedious in the extreme.
The other strategy which I don't employ w/ Ventoy, is to rig it w/ persistence.
https://www.ventoy.net/en/plugin_persistence.html
As the page shows, this includes Clonezilla, see note.
More on Sparky's
https://wiki.sparkylinux.org/doku.php/sparky_rescue
On 24/06/2024 11:01, Java Jive wrote:
.... still can't get a bootable result. Any further help with
this would be welcome.
Given sector-by-sector images of ...
W98 console mode emergency boot floppy (RawWriteWin)
W98 console mode emergency boot USB - entire disk (dd if=/dev/sdx)
W98 console mode emergency boot USB - partition (dd if=/dev/sdx1)
.... I've now obtained the results of tests in the following table -
which probably need a fixed font to display properly - details notes
are appended ...
Floppy Disk Partition
Ubuntu 22 mount: Y N Y (USB reversed compared to rest)
Ubuntu 22 qemu: Y Y N Ventoy: N N N Clonezilla: Y Y N
Grub2 - loop: N N N
Grub2 - memdisk: Y N* N
* This was particularly disappointing, because this, or the partition equivalent, is what I'd most like to achieve as the alternatives that do work are more convoluted, and given the previous patterns of results,
once the floppy image worked in this arrangement, I expected the hard
disk image to work as well, but sadly it didn't :-(
If anyone can suggest a way of getting either the disk or partition
image to boot directly with Grub2, I'd be very grateful.
Next, CloneZilla USB stick, with SysLinux.cfg entries as follows:
Floppy.img
label EmergencyW98
# MENU DEFAULT
# MENU HIDE
MENU LABEL Emergency W98 Boot Disk (Floppy)
# MENU PASSWD
kernel memdisk
append initrd=/live/Floppy.img
TEXT HELP
Boot Windows '98 emergency console
ENDTEXT
Boots!
USB-Disk.img
label EmerDellGhostImg
# MENU DEFAULT
# MENU HIDE
MENU LABEL Emergency W98 Boot - Dell Diags & Legacy Ghost (disk)
# MENU PASSWD
kernel memdisk
append initrd=/live/USB-Disk.img
TEXT HELP
Boot Windows '98 console with Dell Diagnostics
for Latitude D610 & Precision M6300 & Ghost (2003)
ENDTEXT
Boots!
[variously snipped for brevity]
So, putting aside for the moment the problem of trying to directly load
the emergency W98 USB image from Grub2, given that the only practical
way I've found so far of booting it successfully was adding it as an
option to the SysLinux menu of a Clonezilla USB, I've been investigating trying to boot Clonezilla directly off a hard disk partition, and I'm baffled, because I can't work out how the devil Clonezilla is booting
itself off a USB, so that I can reproduce it on a HD.
My knowledge of traditional booting methods is pretty good, or at least
was but perhaps is now getting rusty. Some years ago, I published a
page on my site detailing how PCs booted off a legacy MBR hard disk:
https://www.macfh.co.uk/JavaJive/PCHardware/PCBootProcess.html
Briefly, each sector is 0x200 (512) bytes long, and there's a chain
loading system from sector to sector to load an OS.
A) PC BIOS in RO non-volatile memory ...
B) ... Loads the first sector of the first hard disk, the Master Boot
Record (MBR), and checks for two bytes at offset 0x1FE (510) which must
be 0x55 0xAA identifying it as boot code. If these are found the BIOS jumps to run the code in this sector. This code reads a partition table
at
looking for the first partition marked active and then
if one is found ...
C) ... Loads the first sector of that partition, the Partition Boot
Record (PBR), again checks for the same two bytes at offset 0x1FE, and
again if found jumps to run the code there. The code in the PBR then
loads the operating system in that sector in an OS-dependent way.
By contrast there *IS* something out of the ordinary, but not in a[...]
helpful way, in the PBR of a working Clonezilla Partition:
00000000 eb 58 90 53 59 53 4c 49 4e 55 58 00 02 08 c2 10 |.X.SYSLINUX.....|
00000040 80 01 29 b5 6b 34 f2 43 4c 4f 4e 45 5a 5f 33 31 |..).k4.CLONEZ_31|[...]
00000050 32 20 46 41 54 33 32 20 20 20 fa fc 31 c9 8e d1 |2 FAT32 ..1...|
000001d0 fd 8a 16 74 7b 06 cd 13 07 c3 42 6f 6f 74 20 65
|...t{.....Boot e|
000001e0 72 72 6f 72 0d 0a 00 00 00 00 00 00 00 00 00 00 |rror............|
000001f0 00 00 00 00 00 00 00 00 fe 02 b2 3e 18 37 55 aa |...........>.7U.|
The thing to note is that the only clear text strings are 'SYSLINUX', 'CLONEZ_312', 'FAT32', and 'Boot error'.
The second string is the disk label, the third is the name of the
partition format, and the fourth is obviously an error message if
something goes wrong.
So it seems certain that, somehow or other, normal Clonezilla on a USB
is *NOT* being booted via its PBR, because there is no file called
SYSLINUX off the root, only a directory and there doesn't seem to be a
way of selecting a particular file in that directory, and anyway, as described below, the menu looks different than when booted directly from
the USB.
Notes:
! The grub2 'chainloader' command expects a boot sector or a file
thereof, and if the boot signature 55 AA is not present at offset 1FE,
it aborts with:
error: invalid signature.
Press any key to continue...
! The memdisk pseudo-kernel expects a genuine disk image, and if not
given one variously aborts, crashes out, or hangs, for example at:
Loading boot sector... booting...
https://wiki.syslinux.org/wiki/index.php?title=MEMDISK
Sysop: | Luis Silva |
---|---|
Location: | Lisbon |
Users: | 763 |
Nodes: | 10 (0 / 10) |
Uptime: | 179:53:02 |
Calls: | 111 |
Files: | 46,971 |
Messages: | 11,214 |