[SOLVED] restoring grub for dual boot with windows
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So I did that & then I then typed exit it said successful & presented me with my f12 boot menu with 2 identical choices. I hit enter & now my system rebooted to the Acer logo & is stuck there
Now back at grub this time I did those commands & then ctrl+alt+del & it rebooted to the grub prompt/cli. Is it supposed to reboot automatically after completing these commands?
So I've been enjoying linux & then had some bad news & forgot about this so sorry about not getting back to this thread.
Apparently I can't get back execute the above instructions because I'm not in the the sudoers file.
I wouldn't have made it this far without you guys
While this gave no errors so I thought it worked, I just rebooted my machine which leaves me at the grub cli. I thought the commands in post #47 put those commands to execute automatically every boot, how would we do that?
Isn't this the rescue grub? :
Code:
grub>
It's what I see when I boot
no, that just means either the grub.cfg doesn't exist, is in the wrong location, or grub bootloader is looking in wrong place.
rescue grub will look something like this :
Code:
grub rescue>
With your debian setup normally the set command prefix will be
Code:
prefix=(hd0,gpt4)/boot/grub
not
Code:
prefix=(hd0,gpt1)/boot/grub
If you copy the /boot/grub/grub.cfg on your root partition to /boot/grub/grub.cfg on your first partition(/dev/sda1) will fix it for the time being, with something like this:
run as root
Code:
mount /dev/sda1 /mnt
cp /boot/grub/grub.cfg /mnt/boot/grub/grub.cfg
To determine a more permanent solution post your /etc/fstab and /etc/default/grub
Last edited by colorpurple21859; 03-11-2019 at 09:12 PM.
nick@debian:~/tor-browser_en-US$ mount /dev/sda1 /mnt
mount: only root can do that
nick@debian:~/tor-browser_en-US$ sudo mount /dev/sda1 /mnt
[sudo] password for nick:
nick@debian:~/tor-browser_en-US$ cp /boot/grub/grub.cfg /mnt/boot/grub/grub.cfg
cp: failed to access '/mnt/boot/grub/grub.cfg': Permission denied
nick@debian:~/tor-browser_en-US$ sudo mount /dev/sda1 /mnt
mount: /dev/sda1 is already mounted or /mnt busy
/dev/sda1 is already mounted on /boot/efi
/dev/sda1 is already mounted on /mnt
nick@debian:~/tor-browser_en-US$ cp /boot/grub/grub.cfg /mnt/boot/grub/grub.cfg
cp: failed to access '/mnt/boot/grub/grub.cfg': Permission denied
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.