K
K
Kolya2020-02-04 09:48:02
linux
Kolya, 2020-02-04 09:48:02

How to move the boot partition in Linux?

Hello!
I have 2 disks sda with windows 7 and sdb with openSuse. Loads first sdb and selects the system.
I had the urge to reinstall Windows. And the Windows installer wrote its 100 MB "system reserved" partition to sdb (into an unallocated area) And rubbed my bootloader. I did not transfer the boot directory to a separate partition, it is in /.
I was very frustrated and restored it like this :

mount /dev/sdb1 /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-install /dev/sdb
exit
umount /mnt/dev
umount /mnt/proc
umount /mnt/sys
umount /mnt


It turned out this:
Устр-во Загрузочный начало Конец Секторы Размер Идентификатор Тип
/dev/sdb1 2048 419432447 419430400 200G 83 Linux
/dev/sdb2 419432448 427821055 8388608 4G 82 Linux
/dev/sdb3 * 427821056 428025855 204800 100M 7 HPFS/N

Do I understand correctly that /dev/sdb3 is not so easy for me to delete (because of the asterisk in the "Bootable" label).
How do I move the boot label to /dev/sdb1? And in general, is it necessary? Does this "*" label for Linux matter?
Maybe you can somehow through Yast?
5e3914375f796306947956.png
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kolya, 2020-02-04
Pechenyushkin

No guys. Everything is not right. My MBR is:

sudo fdisk /dev/sdb
a
3
a
1
w

It was not necessary to rewrite the bootloader. He seemed to have stayed where he was.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question