LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having 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


Reply
  Search this Thread
Old 03-03-2019, 11:25 AM   #46
Ai_Programmer
Member
 
Registered: Feb 2019
Location: Montreal
Distribution: debian
Posts: 53

Original Poster
Rep: Reputation: Disabled

So the instructions from itsfoss worked! I'm now at the grub prompt/cli and found the list of commands but I don't know what to do with it.
 
Old 03-03-2019, 12:30 PM   #47
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
set root=(hd0,4)
linux /vmlinuz root=/dev/sda4
initrd /initrd.img
boot

If it boots run update-grub as root

Last edited by colorpurple21859; 03-03-2019 at 01:23 PM.
 
Old 03-03-2019, 12:52 PM   #48
Ai_Programmer
Member
 
Registered: Feb 2019
Location: Montreal
Distribution: debian
Posts: 53

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-03-2019, 01:04 PM   #49
Ai_Programmer
Member
 
Registered: Feb 2019
Location: Montreal
Distribution: debian
Posts: 53

Original Poster
Rep: Reputation: Disabled
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?
 
Old 03-03-2019, 01:25 PM   #50
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
I forgot to add the last line
boot
This is assuming debian is on the fourth partition
 
Old 03-03-2019, 06:07 PM   #51
Ai_Programmer
Member
 
Registered: Feb 2019
Location: Montreal
Distribution: debian
Posts: 53

Original Poster
Rep: Reputation: Disabled
It worked thanks!!! Now how do I make windows a choice in grub?

Last edited by Ai_Programmer; 03-03-2019 at 06:10 PM.
 
Old 03-03-2019, 07:48 PM   #52
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
add this to /etc/grub.d/40_custom then run update-grub

Code:
menuentry 'Windows Boot Manager' {
	set root='hd0,gpt1'
	chainloader /EFI/microsoft/Boot/bootmgfw.efi
}
 
Old 03-06-2019, 12:59 AM   #53
Ai_Programmer
Member
 
Registered: Feb 2019
Location: Montreal
Distribution: debian
Posts: 53

Original Poster
Rep: Reputation: Disabled
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


thanks
Nick
 
Old 03-06-2019, 04:50 AM   #54
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
debian doesn't use sudo by default.
use
Code:
su -
and give roots password
 
Old 03-06-2019, 06:27 PM   #55
Ai_Programmer
Member
 
Registered: Feb 2019
Location: Montreal
Distribution: debian
Posts: 53

Original Poster
Rep: Reputation: Disabled
thanks
 
Old 03-10-2019, 10:16 AM   #56
Ai_Programmer
Member
 
Registered: Feb 2019
Location: Montreal
Distribution: debian
Posts: 53

Original Poster
Rep: Reputation: Disabled
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?
 
Old 03-10-2019, 02:43 PM   #57
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
At least your not getting a grub-rescue prompt, at the grub cli what is the output of
Code:
set
Set will tell you were grub is looking for the grub.cfg file. It can be changed at the grub cli by something along the lines of
Code:
configfile (hd0,1)/ubunut/grub.cfg
or
Code:
configfile (hd0,4)/boot/grub/grub.cfg

Last edited by colorpurple21859; 03-10-2019 at 02:45 PM.
 
Old 03-11-2019, 10:57 AM   #58
Ai_Programmer
Member
 
Registered: Feb 2019
Location: Montreal
Distribution: debian
Posts: 53

Original Poster
Rep: Reputation: Disabled
Output of set:
The second command cleared the screen/cli
But configfile (hd0,4)/boot/grub/grub.cfg brought up a graphical grub.

Isn't this the rescue grub? :
Code:
grub>
It's what I see when I boot

Thank you for bringing me this far
Attached Thumbnails
Click image for larger version

Name:	1552318292705969.jpg
Views:	29
Size:	116.4 KB
ID:	30088  
 
Old 03-11-2019, 12:17 PM   #59
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Quote:
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.
 
Old 03-12-2019, 01:50 PM   #60
Ai_Programmer
Member
 
Registered: Feb 2019
Location: Montreal
Distribution: debian
Posts: 53

Original Poster
Rep: Reputation: Disabled
Permission denied:
Code:
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Dual boot without windows - Windows 10 UEFI dual boot with Metamorphose Panther(Debian/KDE) mithidieri Linux - Newbie 7 11-03-2017 12:10 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
GRUB dual boot problem: Boot "other" (windows) just restarts GRUB! stevod333 Linux - Software 13 04-06-2006 05:26 AM
help restoring boot record (dual boot) lukegt Linux - Newbie 3 01-15-2005 06:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 07:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration