You are not logged in.

#1 2022-02-09 16:56:15

thinkanish
Member
Registered: 2012-08-12
Posts: 39

Question about boot partition.

Hi,

I previously posted on this forum regarding Arch not booting after a long time update here -
https://bbs.archlinux.org/viewtopic.php?id=273648

Now, I was successfully able to boot. The problem was, I have the partition setup like this :

/dev/sda5 - boot
/dev/sda7 - root
/dev/sda8 - var
/dev/sda9 - home

It was complaining that vmlinuz-linux was not found. But when I checked the boot partition (/dev/sda5), vmlinuz-linux was there.
I proceeded to mount all the partitions except the boot partition (/dev/sda5) and checked the /mnt/boot directory.  There I found that there is grub, initramfs and no vmlinuz-linux.
Now, I ran "pacman -S linux" without mounting boot partition and then did a reboot.
Now everything works fine. The system boots properly.

Now, my doubt is, what is the role of the boot partition (/dev/sda5)? should I continue with this setup? or should I repair the system?

Thanks

Offline

#2 2022-02-09 17:04:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,292

Re: Question about boot partition.

This depends on how GRUB is configured which depends on the mount setup with which you ran grub-install and grub-mkconfig. In this case you will have initially ran the grub-install command without having had the "boot" partition mounted. Which will lead to the default config and kernel lookup happening on the boot directory on your root partition.

So in that case yes, the boot partition serves no purpose. Whether you want to continue like this depends on what you want to do, yes you can definitely continue like this. If you have a need for the distinct partition for some reason, you need to mount it  and then explicitly rerun the grub-install command, copy/install the kernel images, and rerun grub-mkconfg.

Offline

#3 2022-02-09 17:08:12

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,690

Re: Question about boot partition.

I don't think you are booting from the volume from which you think you are booting.
Is this a BIOS or a uEFI system?  I bet you are booting straight to your root partition (which hints at BIOS)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2022-02-09 17:09:35

mkoan
Member
Registered: 2021-01-15
Posts: 6

Re: Question about boot partition.

Hi,
If your system works fine, after a reboot. Possibly you didn't unmount /dev/sda5 from the fstab file and after a kernel update, system repaired itself. You do not need to repair, system already repaired.

Offline

#5 2022-02-09 17:11:56

thinkanish
Member
Registered: 2012-08-12
Posts: 39

Re: Question about boot partition.

Hello,

Thanks for your replies.
Yes. I have a BIOS system.
okay then. I will continue with this setup.

Offline

#6 2022-02-09 18:01:11

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,690

Re: Question about boot partition.

Yeah, so I bet the MBR is configured to use the GRUB on your root volume, not the one on the boot volume.
I don't use grub myself, but I wager V1del's advise will get that MBR pointing to the boot partition as one would expect.

Personally, I boot using an EFI stub.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#7 2022-02-10 02:48:00

thinkanish
Member
Registered: 2012-08-12
Posts: 39

Re: Question about boot partition.

V1del wrote:

So in that case yes, the boot partition serves no purpose. Whether you want to continue like this depends on what you want to do, yes you can definitely continue like this. If you have a need for the distinct partition for some reason, you need to mount it  and then explicitly rerun the grub-install command, copy/install the kernel images, and rerun grub-mkconfg.

Thanks. May I know why there was a separate boot partition when one can directly boot from the root partition? (I am trying to guess the reason why I have did a separate partition since it was very long time ago).

Offline

#8 2022-02-10 03:06:17

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,690

Re: Question about boot partition.

uEFI requires a vfat partition.

For BIOS, If you have multiple operating systems, a separate boot partition is used to decouple them.  Why make BSD or Windows count on the existence of your Linux partition?  What if the Linux volume were to be corrupted?  You could no longer boot it, or any other OS that was configured in Grub on the dead partition.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#9 2022-02-10 08:53:19

thinkanish
Member
Registered: 2012-08-12
Posts: 39

Re: Question about boot partition.

okay. I am trying to gather my thoughts after reading your answer.
You say that if I have another OS (Windows or BSD) installed in my system along side arch, it is better to have a separate boot partition because, if when messing up with root partition, if I corrupt it, then I cannot boot into the other OS (windows or BSD) either. correct?

Its actually a BIOS/MBR system (very old ~12 years) dual booting Windows 7 with Archlinux. So, will go ahead and better repair my boot partition.

Thanks.

Offline

Board footer

Powered by FluxBB