difference between /media/boot and /boot in Ubuntu-minimal image

Post Reply
gnome_shell
Posts: 28
Joined: Mon Oct 04, 2021 2:35 am
languages_spoken: english
ODROIDs: ODROID-HC2
Has thanked: 5 times
Been thanked: 1 time
Contact:

difference between /media/boot and /boot in Ubuntu-minimal image

Post by gnome_shell »

Hi all,

I am using the latest Ubuntu minimal image from Odroids' official download repository. There are two boot folders on that installation:

/dev/mmcblk1p1 (label=boot) is mounted on /media/boot with type=vfat
/boot is just part of the root filesystem / , no extra partition or block device mounted here

the content of those folders differs. What is the reason for having those two boot folders and how are they handled by Ubuntu minimal image ? Can anyone shed some light into, please?

User avatar
odroid
Site Admin
Posts: 38352
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2128 times
Been thanked: 1264 times
Contact:

Re: difference between /media/boot and /boot in Ubuntu-minimal image

Post by odroid »

/media/boot VFAT partition contains boot blobs and configuration files.
The VFAT partition could be accessible some users who want to recover/maintain boot related files if they have only Windows host PC.

/boot directory has not been used in ODROID specific Ubuntu images.
We just kept it for backward compatibility with some old system software.
These users thanked the author odroid for the post:
gnome_shell (Mon Oct 25, 2021 8:36 pm)

gnome_shell
Posts: 28
Joined: Mon Oct 04, 2021 2:35 am
languages_spoken: english
ODROIDs: ODROID-HC2
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: difference between /media/boot and /boot in Ubuntu-minimal image

Post by gnome_shell »

when booting the system only /media/boot is needed, right? If understood correctly theoretically /boot of the root filesystem could be wiped ? If we run update-initramfs -u it tries to look for an existing initrd, does it look in /boot or in /media/boot ?

mdrjr
Site Admin
Posts: 11799
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 43 times
Contact:

Re: difference between /media/boot and /boot in Ubuntu-minimal image

Post by mdrjr »

Hello,

/boot is kept as its part of the LFS we also use it to store kernel, dtb, initramfs in case you need those.
/media/boot is the first partition of the boot media, its VFAT (for a reason, see below). This partition contains the kernel+dtb(s)+initramfs needed to boot. (bootloader, u-boot reads from this vfat partition).

We do this way on our boards to allow people with windows machines to edit config/boot.ini files.
If that wasn't a requirement we would use /boot instead.

I hope it answer your questions.

Let me know if you have any other questions
These users thanked the author mdrjr for the post:
gnome_shell (Wed Nov 24, 2021 1:55 pm)

gnome_shell
Posts: 28
Joined: Mon Oct 04, 2021 2:35 am
languages_spoken: english
ODROIDs: ODROID-HC2
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: difference between /media/boot and /boot in Ubuntu-minimal image

Post by gnome_shell »

sorry for late reply but: many thanks for this clarifying reply.

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 1 guest