LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-12-2019, 02:00 PM   #61
Ai_Programmer
Member
 
Registered: Feb 2019
Location: Montreal
Distribution: debian
Posts: 53

Original Poster
Rep: Reputation: Disabled
Lightbulb


just an FYI as I just thought of it after my previous post
Code:
nick@debian:~/tor-browser_en-US$ su
Password: 
root@debian:/home/nick/tor-browser_en-US# cp /boot/grub/grub.cfg /mnt/boot/grub/grub.cfg
cp: cannot create regular file '/mnt/boot/grub/grub.cfg': No such file or directory
root@debian:/home/nick/tor-browser_en-US# cd /mnt/boot/grub
bash: cd: /mnt/boot/grub: No such file or directory
root@debian:/home/nick/tor-browser_en-US# cd /mnt/boot/
bash: cd: /mnt/boot/: No such file or directory
root@debian:/home/nick/tor-browser_en-US# cd /mnt/
root@debian:/mnt# ls
boot-repair  EFI  System Volume Information
root@debian:/mnt# md boot
bash: md: command not found
root@debian:/mnt# mkdir boot
root@debian:/mnt# cd boot
root@debian:/mnt/boot# mkdir grub
root@debian:/mnt/boot# cp /boot/grub/grub.cfg /mnt/boot/grub/grub.cfg
fingers crossed
 
Old 03-12-2019, 02:04 PM   #62
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,569

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
You need sudo/root rights to write to anything outside your user /home directory unless you change ownership/permission. Run the cp command preceded with sudo or logged in as root user. I see you posted again while I was writing so have you resolved your problem?

Last edited by yancek; 03-12-2019 at 02:05 PM.
 
Old 03-12-2019, 02:22 PM   #63
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
This is all wrong, you can delete the boot directory you created under /mnt

Quote:
root@debian:/mnt# ls
boot-repair EFI System Volume Information
root@debian:/mnt# md boot
bash: md: command not found
root@debian:/mnt# mkdir boot
root@debian:/mnt# cd boot
root@debian:/mnt/boot# mkdir grub
root@debian:/mnt/boot# cp /boot/grub/grub.cfg /mnt/boot/grub/grub.cfg
Quote:
/dev/sda1 is already mounted on /boot/efi
therefore
Code:
root@debian: cp /boot/grub/grub.cfg  /boot/efi/boot/grub/grub.cfg
 
Old 03-12-2019, 04:14 PM   #64
Ai_Programmer
Member
 
Registered: Feb 2019
Location: Montreal
Distribution: debian
Posts: 53

Original Poster
Rep: Reputation: Disabled
No it gives me the same grub prompt where I must type:

Code:
configfile (hd0,4)/boot/grub/grub.cfg
 
Old 03-12-2019, 04:24 PM   #65
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
what is output of
Code:
ls /boot/efi/boot/grub
 
Old 03-12-2019, 06:47 PM   #66
Ai_Programmer
Member
 
Registered: Feb 2019
Location: Montreal
Distribution: debian
Posts: 53

Original Poster
Rep: Reputation: Disabled
Code:
$ sudo ls /boot/efi/boot/grub
[sudo] password for nick: 
grub.cfg
 
Old 03-12-2019, 06:55 PM   #67
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
cp /boot/grub/grub.cfg /boot/efi/EFI/ubuntu/grub.cfg
 
Old 03-12-2019, 08:22 PM   #68
Ai_Programmer
Member
 
Registered: Feb 2019
Location: Montreal
Distribution: debian
Posts: 53

Original Poster
Rep: Reputation: Disabled
apparently I only have a file EFI in /boot not a folder:
Code:
# cp /boot/grub/grub.cfg /boot/EFI/ubuntu/grub.cfg
cp: cannot create regular file '/boot/EFI/ubuntu/grub.cfg': No such file or directory
root@debian:/usr/bin# cp /boot/grub/grub.cfg /boot/efi/ubuntu/grub.cfg
cp: cannot create regular file '/boot/efi/ubuntu/grub.cfg': No such file or directory
root@debian:/usr/bin# cd /boot
root@debian:/boot# ls ef*
boot  boot-repair  EFI	System Volume Information
root@debian:/boot# cd EFI
bash: cd: EFI: No such file or directory
 
Old 03-13-2019, 05:53 AM   #69
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
linux is case sensitive
Quote:
root@debian:/boot# cd EFI
that would be efi not EFI.
Quote:
cp /boot/grub/grub.cfg /boot/EFI/ubuntu/grub.cfg
should be
Code:
cp /boot/grub/grub.cfg /boot/efi/EFI/ubuntu/grub.cfg

Last edited by colorpurple21859; 03-13-2019 at 05:57 AM.
 
Old 03-17-2019, 10:11 AM   #70
Ai_Programmer
Member
 
Registered: Feb 2019
Location: Montreal
Distribution: debian
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
linux is case sensitive that would be efi not EFI.

should be
Code:
cp /boot/grub/grub.cfg /boot/efi/EFI/ubuntu/grub.cfg
it worked! I now see the grub with the choices. I'm trying your other instruction for having windows as a boot option
 
Old 03-17-2019, 01:19 PM   #71
Ai_Programmer
Member
 
Registered: Feb 2019
Location: Montreal
Distribution: debian
Posts: 53

Original Poster
Rep: Reputation: Disabled
It worked! I see both choices! thanks
 
  


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 09:53 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