I delete my bootloader!

i was resize my HDD to install new windows {for games] and by mistake i delete the boot partition

after rebooting i get the grub terminal now its gone after install windows 8.1 any Idea to rest it I do not want re-inauguration again

EXT4 manjaro

First, you must be sure if disk is msdos partitioned or gpt partitioned
But looks like bios-legacy boot and msdos partitioned. Let’s go with that. Your unallocated portion is (just a bit) troubling.
But more troubling is "by mistake i delete the boot partition " Do you really have a separate /boot partition (meaning sda5? ) or did you just resize some partition and it’s messed up?

So boot up a livecd and at terminal. And refer case 2 (windows).

sudo mount /dev/sda1 /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sda

Reboot, If reboot to grub prompt, come back here again.
Otherwise if just messed up, it will reboot to your grub menu.

ps: don’t forget to ‘update-grub’ (refer link) after rebooting successfully.

first thing thx for reply , now i follow the setup and wen i reboot and select manjaro after 5 ,10 ,15 min no reponse showing black screen !!

Follow this tutorial to install and update Grub. Don’t forget to update it.

I think you should check your /etc/fstab to see if you had separate /boot partition. So from live media mount your /dev/sda1 and post here your /etc/fstab

If separate partition really was deleted, you need not only restore grub, but kernel and initramfs also. There are two ways how to do it. Either create new boot partition, or just use /boot folder without separate partition.

just resize some partition

her is =

/etc/fstab: static file system information

/dev/mapper/root-image / auto defaults 0 0
/dev/sda2 swap swap defaults 0 0 #configured by manjaro-tools

now i get this

No, this is not from your /dev/sda1
This is from live iso.

sorry

/etc/fstab: static file system information.

Use ‘blkid’ to print the universally unique identifier for a device; this may

be used with UUID= as a more robust way to name devices that works even if

disks are added and removed. See fstab(5).

UUID=4d422504-62bd-4e88-b201-ccd41c9e7737 / ext4 defaults,noatime 0 1
UUID=6f5dc98a-30c6-41d8-879f-b791f3ca0e39 swap swap defaults,noatime 0 0

OK, you really didn’t have separate /boot partition. Then you need just to restore your grub.

how ! and i want to add windows to the grub :confused:

See @gohlip’s post above and link to his tutorial

After you manage to boot Manjaro, sudo update-grub will find Windows and add it to grub

Other people (real geeks) said what you need.
But as an advice from a newbie; change the flag of partitions first.
I mean un-tick Windows partition as boot and tick the manjaro partition as boot.

To Solve this error, open gParted. This is fixed by setting the flag of the GRUB partition to “bios_grub”.

Then do the tutorial I posted again. It should work.

Probably it is not needed. BIOS_GRUB flag is only for gpt partition table. See
http://gparted.org/display-doc.php%3Fname%3Dhelp-manual#gparted-manage-partition-flags
and
https://www.gnu.org/software/grub/manual/grub.html#BIOS-installation

@bich0o you can check partition table type with parted /dev/sda print command

thx all but i try all setups and i Fail i delete it and install it again and i will buckup evrything

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by Bytemark