Good morning, I want grub to be totally independent of windows and linux mint partitions. I have already a installation of grub that work in /boot but it is in the partition of linux mint. So I followed different links and here is what I have done:
#first I mount my ext2 partition which is on sdb partition 4
sudo mount -o rw /dev/sdb4 /mnt
#then I install grub in my partition
sudo grub-install --root-directory=/mnt /dev/sdb
sudo chmod 777 -R /mnt
#then I configure grub to have the OS list
sudo grub-mkconfig -o /mnt/boot/grub/grub.cfg
grub
# this part is supposed to make my new grub work.
root (hd1,3) # 3 is 4 - 1
setup (hd1) # 1 is 2 for sdb - 1
quit
sudo update-grub
reboot
to be sure which grub is used I have modified grub.cfg of /root So I restart and it is again the old grub which is used, which cmd is missing ? I also put gulp flag or boot flag with legacy boot with gparted but the partition still don’t appear in bios.
The following text is my motivation, it is not part of the problem description and you can jump this part. My goal is to have an ext2 or better fat32 partition because with some software is it possible to access ext2 partition from windows and this will allow me to create a script to automatically restart on linux from windows by modifying grub. I also want to access linux physical partition from windows with virtualbox (It already works in the other way), I have already succeed but I have to use an iso of grub that redetect each time which OSs I have on my system. And I think if I understand how to make grub totally independent it will solve my problem to use it in virtualbox.
Thank you