help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to install gparted live on grub boot menu?


From: Bo Berglund
Subject: Re: How to install gparted live on grub boot menu?
Date: Sat, 30 Oct 2021 22:20:38 +0200

On Sat, 30 Oct 2021 18:21:29 +0200, josep lladonosa capell
<jlladonosa@gmail.com> wrote:
>Missatge de Bo Berglund <bo.berglund@gmail.com> del dia ds., 30 dÂ’oct. 2021
>a les 15:54:
>
>> Is there some easy to understand way which will do this?
>>
>> On Ubuntu Desktop:
>> - Create new 1GB ext4 partition /dev/somepart1 using GParted on Ubuntu
>> - sudo mkdir /mnt/gparted (create mount point)
>> - sudo mount /dev/somepart1 /mnt/gparted
>> - cd /mnt/gparted
>> - wget
>> https://downloads.sourceforge.net/gparted/gparted-live-1.3.1-1-amd64.iso
>>
>> Now I need to create the grub entry and this is where I have problems
>> because of the mixup
>> between grub and grub2 in the pages I have found.
>>
>> Can someone help filling in the final part of the actions I need?
>> The end result should be to have a last line in the boot menu saying:
>>
>> GParted Live

>>
>Hello, Bo,
>
>From what I have read I suppose that you just want to boot an ISO image
>from grub, right?

Yes, I have a new 1 GB partition on my hdd (inside an extended partition) where
I have downloaded the GParted Live ISO file.
I want the system to use this to boot GParted Live from the boot menu.

>One solution for me (I don't work on an EFI system, though) without extra
>partitioning and without the need of a bootable USB device and which does
>all the grub stuff for you  is just installing the package grub-imageboot.
>Install it in your main Ubuntu bootable system (Desktop).

I did this, it also installed something called memdisk into /boot
Note that my ISO file is in a *separate partition* which is mounted on
/boot/images via /etc/fstab using the UUID, so it is *not* part of the actual
partition where the Ubuntu Desktop lives.

>The grub-imageboot default configuration lets you boot the .iso images
>found in the /boot/images/ directory. You can have a look at the
>/etc/default/grub-imageboot file.
>
>After the copy of the iso file into /boot/images/, just do "sudo
>update-grub" to make them appear into the grub boot menu.

After I have done the apt install grub-imageboot and verified that the
/boot/images dir now contains the ISO file (after mounting the GParted
partition) I ran the sudo update-grub command which found the GParted iso file.

>It works for me on Ubuntu and Debian too.
>

When I rebooted there *was* a new entry in the boot menu for GParted!
"Bootable ISO Image: gparted-live-1.3.1-1-amd64"

So far so good!

But when I selected it the ISO did *not* load, instead I got an error:

error: file '/boot/memdisk' not found.
error: you need to load the kernel first.
Press any key to continue

Question:
Are your systems multi-boot with several operating systems or just one?
My contains 3 systems and I want to add a 4th, GParted Live

It seems like the memdisk file is the key here, it is put by apt into /boot on
the *running* desktop system and I don't understand how it can be accessible for
the boot unless the desktop partition is also mounted...

This seems to be the showstopper now.


-- 
Bo Berglund
Developer in Sweden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]