Main Menu

Recent posts

#81
Boot Managers / Re: How to install Plop Boot M...
Last post by Elmar - December 21, 2021, 19:57:35 PM
I reconstructed your disk layout with the 3 files. How did you partition the hard disk? Here, gparted reports an invalid partition table. The problem is the extended partition. I think there is a problem with the boundaries. From my point of view, its required to remove completely the extended partition and then recreate it.

On your computer, does gparted not report any problems?


Note: I think you created the extended partition because of the swap partition. You can also use a file as swap space. That means, you can use sda4 as primary partition and a custom file on sda4 as swap space. This gives more advantages than using a partition as swap space. But booting works also with the extended partition.
#82
Boot Managers / Re: How to install Plop Boot M...
Last post by Grunchy - December 21, 2021, 17:43:21 PM
Hi Elmar, thanks a lot for taking the time to help me out!

Here are those files:
#83
Boot Managers / Re: How to install Plop Boot M...
Last post by Elmar - December 21, 2021, 17:12:40 PM
The extlinux message is ok.

Start the livecd. Run as root

dd if=/dev/sda of=sda.bin count=63
dd if=/dev/sda4 of=sda4.bin count=1
dd if=/dev/sda5 of=sda5.bin count=1

And post the 3 files sda.bin, sda4.bin and sda5.bin
#84
Boot Managers / Re: How to install Plop Boot M...
Last post by Grunchy - December 21, 2021, 16:42:50 PM
Hi, thanks for doing that.
I'm still getting some kind of error from extlinux, it says:
extlinux --install /mnt --device /dev/sda5
/mnt is device /dev/sda5


I took some photos so you can see exactly what is happening 😆
#85
Boot Managers / Re: How to install Plop Boot M...
Last post by Elmar - December 20, 2021, 09:00:01 AM
I did this with the livecd successfully:

At first I cleared the boot sector of sda5 to make it impossible to boot and getting "No valid bootsector signature".
The syslinux.cfg stayed unchanged in the root of sda5.

Then booting the livecd of Lubuntu
In the terminal:
sudo bash    <- to not always have to write sudo
mount /dev/sda5 /mnt
apt install extlinux
extlinux --install /mnt --device /dev/sda5
reboot

-> Lubuntu booted from the Plop Boot Manager and sda5 without problems.


#86
Boot Managers / Re: How to install Plop Boot M...
Last post by Elmar - December 19, 2021, 20:53:21 PM
I have no time at the moment to test whats wrong with the chroot, which should work fine.

The easiest is to just reinstall Lubuntu, then do the extlinux stuff, then reinstall the Plop Boot Manager with option 2 (Rewrite loader only) in the Plop Boot manager Installer.
#87
Boot Managers / Re: How to install Plop Boot M...
Last post by Grunchy - December 19, 2021, 20:38:07 PM
So I discovered another environment known as "chroot": https://wiki.archlinux.org/title/Chroot

QuoteChanging root is commonly done for performing system maintenance on systems where booting and/or logging in is no longer possible. Common examples are:

  • Reinstalling the bootloader.

Using chroot
First, mount the temporary API filesystems:
# sudo mount /dev/sda5 /mnt
# cd /mnt
# mount -t proc /proc proc/
# mount -t sysfs /sys sys/
# mount --rbind /dev dev/
# mount --rbind /run run/


Finally, to change root into /location/of/new/root using a bash shell:
# chroot /mnt /bin/bash

Once I was in this Lubuntu 16.04 environment that had been installed on /dev/sda5, I was able to execute:
Quoteapt install extlinux
extlinux --install / --device /dev/sda5
vi /syslinux.cfg

Where I typed in:
prompt 0
timeout 1
default a

label a
kernel /boot/vmlinuz-4.15.0-45-generic
append initrd=/boot/initrd.img-4.15.0-45-generic root=/dev/sda5


Yet I still get this error:
Warning:
No valid bootsector signature
Continue boot? [y/n]

Then I fired up Gparted and changed /dev/sda5 to have the "boot" flag. No change.

I'm beginning to suspect there is more complexity at play here than was first appreciated...
#88
Boot Managers / Re: How to install Plop Boot M...
Last post by Grunchy - December 17, 2021, 18:17:21 PM
Elmar, hey that looks like really good information.

I had installed Lubuntu "/" on /dev/sda5 and "swap" on /dev/sda6.

However I cannot boot into the Lubuntu to try the commands you gave me.

So I booted into the Lubuntu installer CD and called up LXTerminal, did the "sudo apt install extlinux" and then "extlinux --install / --device /dev/sda5"

It came back with:
extlinux: not a fat, ntfs, ext2/3/4, btrfs, xfs orufs1/2 filesystem: /

So then I tried something like this, I dunno:

sudo mkdir /mnt/hdd
sudo mount /dev/sda5 /mnt/hdd
extlinux --install /mnt/hdd --device /dev/sda5

It came back:

/mnt/hdd is device /dev/sda5
extlinux: cannot open device /dev/sda5

So...?
#89
Boot Managers / Re: How to install Plop Boot M...
Last post by Elmar - December 09, 2021, 17:08:09 PM
Hello Grunchy,

I tried your setup. I know what the problem is and I have a solutions for you.

Lubuntu comes with Grub2 and the problem is that Grub2 can not be installed to a boot sector. Maybe its possible and I don't know how.

Instead of Grub2 you can use extlinux (part of syslinux) as Linux loader. The simplest configuration is to create the file /syslinux.cfg

prompt 0
timeout 1
default a

label a
kernel /boot/vmlinuz-4.15.0-45-generic
append initrd=/boot/initrd.img-4.15.0-45-generic root=/dev/sda5


Install extlinux to the boot sector of sda5 with "extlinux --install / --device /dev/sda5"

Now, Linux will boot from the Plop Boot Manager with *80h hda4 L1.

Note: You have to do a "sudo apt install extlinux".


#90
Boot Managers / Re: How to install Plop Boot M...
Last post by Grunchy - December 07, 2021, 01:28:16 AM
Elmar, hey. I have successfully set up PLoP to boot MS-DOS from primary hda1, Windows 98 from primary hda2, Windows XP from primary hda3... but have not had success getting PLoP to boot Lubuntu from hda4 L1 (hda4 = first extended partition, hda4 L1 is the first logical partition formatted ext4 mount point "/", hda4 L2 is the second logical partition which is used for Linux Swap).

I have installed Lubuntu 16.04 over and over into the extended partition hda4 L1, and made sure the partition definition for hda4 in PLoP is 100% correct, but every single time it comes back with:

Warning:
No valid bootsector signature
Continue boot? [y/n]

Of course y does nothing except put a flashing cursor, n just goes back to PLoP.

My Linux boot profile is

HDA
hda1
hda2
hda3
*80h hda4 L1 (boot to first logical partition of hda4)

HDB, HDC, HDD are all set to "don't touch" because my laptop doesn't have more than 1 hard drive (Toshiba Satellite 2400 circa 2002, 1.6 GHz Pentium 4, 512 MB DDR Ram, 3 x USB1, 160GB Hard Drive at HDA).

If I boot to the Lubuntu live CD and check what's at hda4 L1 there's definitely "boot" flag set and there's /boot/grub stuff there.