LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-25-2019, 11:16 AM   #61
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

Quote:
No return for sudo mkdir and sudo mount
Not sure what you expect here. You should just get back to a prompt after the mkdir and mount commands and there will be no output in the terminal. Since the command below showed output, that means you have the mount point /mnt/sda4 and it is mounted.

Quote:
cat /mnt/sda4/etc/fstab
 
Old 02-25-2019, 11:25 AM   #62
J Harp
Member
 
Registered: Sep 2009
Posts: 133

Original Poster
Rep: Reputation: 0
Thanks, I didn't know if I should see a return or not. I going to try the fix suggested by BW-userx now.
 
Old 02-25-2019, 12:37 PM   #63
J Harp
Member
 
Registered: Sep 2009
Posts: 133

Original Poster
Rep: Reputation: 0
Result of trying the fix by BW-userx. I used esc key and f9, and selected boot from efi file. It still boots to Windows. I'm not sure how to do what HAPPY TUX suggested.

sudo mount /dev/sda1 /mnt
EFI 'system volume information'
sudo !!
sudo ls /mnt
EFI 'system volume information'
sudo ls /mnt/EFI
Boot HP Microsoft ubuntu
sudo ls /mnt.efi/ubuntu
BOOTx64.CSV fw fwupx64.efi grub.cfg grubx64.efi mmx64.efi shimx64.efi
 
Old 02-25-2019, 01:37 PM   #64
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
HAPPY TUX suggestion was to
Code:
mv /mnt/EFI/BOOT/BOOTX64.EFI  /mnt/EFI/BOOT/BOOTX64.EFI.bak
and replace by
Code:
mv /mnt/EFI/ubuntu/grubx64.efi  /mnt/EFI/BOOT/BOOTX64.EFI
But I don't think this will fix your problem. I think you need to reinstall grub. Normally mint doesn't put it's grub.cfg in the efi/ubuntu directory.

You can reinstall grub with this

Code:
sudo umount /dev/sda1
sudo umount /dev/sda4
sudo mkdir /mnt/sda4
sudo mount /dev/sda4 /mnt/sda4
sudo mount /dev/sda1 /mnt/sda4/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt/sda4$i; done
sudo chroot /mnt/sda4
grub-install /dev/sda
update-grub
exit
reboot
The first few commands are to make sure the partitions are mounted correctly

Last edited by colorpurple21859; 02-25-2019 at 01:57 PM.
 
Old 02-25-2019, 04:26 PM   #65
J Harp
Member
 
Registered: Sep 2009
Posts: 133

Original Poster
Rep: Reputation: 0
Screw up, did it twice.

sudo umount /dev/sda1
umount: /dev/sda1: not mounted.
sudo umount /dev/sda4
umount: /dev/sda4: not mounted.
sudo mkdir /mnt/sda4
sudo mount /dev/sda4 /mnt/ /sda4/mnt
mount: /mnt/sda/: mount point does not exist.
sudo mount /dev/sda1 /mnt/sda4/boot/efi
mount: /mnt/sda4/efi: mount point does not exist.
sudo mount -B $i /mnt/sda/$i
mount: /mnt/sda/: mount point does not exist.
sudo chroot /mnt/sda4
chroot: failed to run command '/bin/bash': No such file or directory
sudo grub-install /dev/sda
Installing for i386-pc platform
grub-install: error: failed to get canonical path of `/cow'.
update-grub
grub-mkconfig: You must run this as root
sudo update-grub
/usr/sbin/grub-probe: failed to get canonical path of `/cow'.
exit


That's a toughie.

Last edited by J Harp; 02-25-2019 at 04:29 PM.
 
Old 02-25-2019, 04:58 PM   #66
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
Quote:
sudo mount /dev/sda4 /mnt/ /sda4/mnt
this is wrong should be
Code:
sudo mount /dev/sda4 /mnt/sda4
your missing the rest of this line:
Quote:
sudo mount -B $i /mnt/sda/$i
should be
Code:
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt/sda4$i; done

Last edited by colorpurple21859; 02-25-2019 at 05:11 PM.
 
Old 02-25-2019, 05:08 PM   #67
J Harp
Member
 
Registered: Sep 2009
Posts: 133

Original Poster
Rep: Reputation: 0
OK, I'll try to fix it, about to go cross eyed typing the returns.
 
Old 02-25-2019, 05:12 PM   #68
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
if you can connect to internet from live usb you can copy past the commands
 
Old 02-25-2019, 05:40 PM   #69
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
Quote:
Normally mint doesn't put it's grub.cfg in the efi/ubuntu directory
If Mint is like Ubuntu, it will have a grub.cfg file in the EFI/ubuntu directory which is generally just 3 lines and it points to the actual grub.cfg file on the filesystem /boot/grub/ partition. Apparently, Mint still creates an EFI directory named ubuntu. The links below discuss this. It looks like Mint still uses an ubuntu directory on EFI.

https://askubuntu.com/questions/8043...-launch-ubuntu

https://linuxmint-installation-guide...atest/efi.html

Last edited by yancek; 02-25-2019 at 06:00 PM.
 
Old 02-25-2019, 07:00 PM   #70
J Harp
Member
 
Registered: Sep 2009
Posts: 133

Original Poster
Rep: Reputation: 0
Can't connect to wifi, hope this asus will hold up to finish this.

sudo umount /dev/sda1
umount: /dev/sda1: not mounted.
sudo umount /dev/sda4
umount: /dev/sda4: not mounted.
sudo mkdir /mnt/sda4
mkdir: cannot create directory '/mnt/sda4': File exists
sudo mount /dev/sda4 /mnt/sda4
sudo mount /dev/sda1 /mnt/sda4/boot/efi
mount: mnt,sda4/boot/efi: mount point does not exist.
for i in /dev /dev/pts /proc sys run; do sudo mount -B /mnt/sda4$i; done
mount: /mnt/sda4run: mouint point does not exist
sudo chroot /mnt/sda4
root@mint:/#
root@mint:/# sudo grub-install dev/sda
Installing for x86_64-efi platform
grub-install: error: cannot find EFI directory
root@mint:/# sudo update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-20-generic
Found initrd image: /boot/initrd.img-4.15.0-20-gemeric
WARNING: Filed to connect to lvemtad. Falling back to device scanning.
Adding boot menu entry for EFI firmware configuration
done
root@mint:/# sudo mount /dev/sda1 /mnt/sda4/boot/efi
mount: /mnt/sda4/boot/efi: Mopunt point does not exist


I tried going back and correcting the missing / but got the same return.
 
Old 02-25-2019, 07:06 PM   #71
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
after "mount /dev/sda4 /mnt/sda4"
what is the output of
Code:
ls /mnt/sda4/boot
if it says it doesn't exist, the what is output of
Code:
ls /mnt/sda4
 
Old 02-25-2019, 07:11 PM   #72
J Harp
Member
 
Registered: Sep 2009
Posts: 133

Original Poster
Rep: Reputation: 0
Still booting to windows. yancek, I'll look at those links. got to get off this one before it quits again.
 
Old 02-25-2019, 07:56 PM   #73
J Harp
Member
 
Registered: Sep 2009
Posts: 133

Original Poster
Rep: Reputation: 0
ls mnt/sda4/boot
ls: cannot access '/mnt/sda4': No such file or directory
ls /mnt/sda4
ls: cannot access '/mnt/sda4': No such file or directory
 
Old 02-25-2019, 08:02 PM   #74
J Harp
Member
 
Registered: Sep 2009
Posts: 133

Original Poster
Rep: Reputation: 0
that was cannot access '/mnt/sda4/boot': No such file or directory
 
Old 02-25-2019, 08:04 PM   #75
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
you do know every time you reboot the usb you have to reenter the commands from the start again.
Code:
sudo mkdir /mnt/sda4
sudo mount /dev/sda4 /mnt/sda4
ls /mnt/boot
 
  


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
networking fails under linux mint 17 on a laptop. eleonora46 Linux - Networking 2 10-11-2014 01:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:07 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