Answer the question
In order to leave comments, you need to log in
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
Устр-во Загрузочный начало Конец Секторы Размер Идентификатор Тип
/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
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question