LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-29-2020, 03:24 PM   #16
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by colorpurple21859 View Post
this is assuming /dev/sda6 is still the linux root partition, boot the live installer open a terminal
Code:
sudo apt install grub-pc
sudo mount /dev/sda6 /mnt
sudo grub-install --target=i386-pc --boot-directory=/mnt/boot /dev/sda
reboot, if your able to boot into endea, run
Code:
sudo update-grub
Hii, your method is something new.
I would love to try that out.
Before that i have tried the commands in my other endea kde laptop.
among the 3 commands.. only 1 exist.

command not found:
update-grub
grub-pc

this package is available
grub-install


so, should i install "update-grub and grub-pc" before hand ?
 
Old 12-29-2020, 03:59 PM   #17
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,506

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
In an earlier post, you indicated there was no option to disable EFI, pretty common. You also said there was an option to turn CSM on or off, make sure it is on. Your system is booting from the install media in EFI mode and you should be booting in Legacy mode with CSM enabled/on

In your last post you indicate several commands fail. I've never hears of the Linux OS you are trying to use and can't find it online but some of the commands such as update-grub are basically used on Ubuntu and several other systems. The standard command and the script that is actually run from 'update-grub' is grub-mkconfig. Look in your /boot/grub directory to see if you have a directory named i386-pc. If you don't, just copy it there from /usr/lib/grub directory and run grub-install as suggested again.

If whatever OS you are actually trying to install isn't a Debian/Ubuntu derivative it likely doesn't use apt or apt-get. Is it?
 
Old 12-29-2020, 04:42 PM   #18
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
Post the website where you downloaded the iso from and the full name of the iso you are using.
 
Old 12-29-2020, 05:55 PM   #19
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
In an earlier post, you indicated there was no option to disable EFI, pretty common. You also said there was an option to turn CSM on or off, make sure it is on. Your system is booting from the install media in EFI mode and you should be booting in Legacy mode with CSM enabled/on

In your last post you indicate several commands fail. I've never hears of the Linux OS you are trying to use and can't find it online but some of the commands such as update-grub are basically used on Ubuntu and several other systems. The standard command and the script that is actually run from 'update-grub' is grub-mkconfig. Look in your /boot/grub directory to see if you have a directory named i386-pc. If you don't, just copy it there from /usr/lib/grub directory and run grub-install as suggested again.

If whatever OS you are actually trying to install isn't a Debian/Ubuntu derivative it likely doesn't use apt or apt-get. Is it?
Yes, i have turned on CSM all the time. because without it, i simply can't boot into win7 .

Code:
Your system is booting from the install media in EFI mode and you should be booting in Legacy mode with CSM enabled/on
Yes, i want the linux usb stick to boot in legacy bios boot mode (CSM is always on), but it just telling me my system is EFI enabled (during installation).
When i boot up from liveusb, the grub menu option for installation of Endea linux already indicates UEFI.. Click image for larger version

Name:	efi-12-30_01-02.jpg
Views:	12
Size:	27.6 KB
ID:	35080
I have burn this Endea linux into usbstick using Rufus (i have specificly selected MBR) when i do the burning.


Yes, I do have i386-pc . May i know what is it for ?

Yes, i am using endea.. the apt install is not available. I should be using pacman -S instead.

Last edited by andrewysk; 12-29-2020 at 06:05 PM.
 
Old 12-29-2020, 06:23 PM   #20
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Post the website where you downloaded the iso from and the full name of the iso you are using.
I think it is from here. The latest version .
However, i have tried a older version downloaded from endeavouros website (which was a few months old iso), it was having exact same problem.. only then i tried Github version.. both having exact same problem.

Code:
https://github.com/endeavouros-team/ISO/releases/download/0-EndeavourOS-development-ISO-releases/endeavouros-devel-2020.12.25-x86_64.iso
@colorpurple, i have tried your grub cli just now.
Quote:
sudo apt install grub-pc
sudo mount /dev/sda6 /mnt
sudo grub-install --target=i386-pc --boot-directory=/mnt/boot /dev/sda

reboot, if your able to boot into endea, run
Code:

sudo update-grub
This is what i have done. I again install the linux, refuse to install /boot/efi when it prompted me warning..Click image for larger version

Name:	efi.jpg
Views:	11
Size:	62.3 KB
ID:	35081
rebooted, but laptop prompt cant' find bootable device or such error..
I used "boot repair iso" stick to fix the MBR again.. then it able to show windows boot menu with win7 and endea.
Win7 loaded fine, but endea only goes in as much as grub>
Hence i didnt try
Code:
sudo update-grub

Last edited by andrewysk; 12-29-2020 at 06:25 PM.
 
Old 12-29-2020, 06:54 PM   #21
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 the
Code:
grub>
enter
Code:
grub> set
and post a screen shot of the output.
Quote:
used "boot repair iso" stick to fix the MBR again.
generate a boot-info file and post.

Last edited by colorpurple21859; 12-29-2020 at 06:58 PM.
 
Old 12-30-2020, 05:36 AM   #22
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
at the
Code:
grub>
enter
Code:
grub> set
and post a screen shot of the output.
generate a boot-info file and post.
Click image for larger version

Name:	grubset.jpg
Views:	16
Size:	41.4 KB
ID:	35086

Quote:
Code:
boot-repair-4ppa125                                              [20201230_1047]

============================= Boot Repair Summary ==============================



Default settings: ______________________________________________________________

The default repair of the Boot-Repair utility would purge (in order to fix packages) and reinstall the grub2 of
sda3 into the MBR of sda.
Additional repair would be performed: unhide-bootmenu-10s      

Confirmation request before suggested repair: __________________________________

Warning: continuing without internet would leave your system unbootable. Please connect internet.
WindowsEFI detected. You may want to retry after activating the [Separate /boot/efi partition:] option.
Are you sure you want to continue anyway?

Final advice in case of suggested repair: ______________________________________


The boot of your PC is in UEFI mode. You may want to retry after changing it to BIOS-compatibility/CSM/Legacy mode.

User settings: _________________________________________________________________

grub-probe: error: cannot find a GRUB drive for /dev/sdb4.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb4.  Check your device.map.
/usr/share/boot-sav/bs-cmd_terminal.sh: line 177: warning: command substitution: ignored null byte in input
ping: google.com: Temporary failure in name resolution
ping: google.com: Temporary failure in name resolution
The settings chosen by the user will restore the [(generic mbr)] MBR in sda, and make it boot on sda2.
Additional repair will be performed: unhide-bootmenu-10s



Unhide GRUB boot menu in sda3/etc/default/grub

============================== Restore MBR of sda ==============================

dd if=/usr/lib/syslinux/mbr/mbr.bin of=/dev/sda
parted /dev/sda set 2 boot on
Information: You may need to update /etc/fstab.


                                                                          
SET@_progressbar1.pulse()
parted /dev/sda set 3 boot off
Information: You may need to update /etc/fstab.


                                                                          
SET@_label0.set_text('''Unhide boot menu. This may require several minutes...''')

Unhide GRUB boot menu in sda3/boot/grub/grub.cfg

Boot successfully repaired.

You can now reboot your computer.


============================ Boot Info After Repair ============================

 => Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sda.
 => WEE is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Boot/BCD

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  EndeavourOS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/syslinux/syslinux.cfg

sda4: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  Unknown
    Boot sector info: 

sda5: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda6: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        /boot/grub/i386-pc/core.img

sdb1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  SYSLINUX 6.04 6.04-pre2-11-gbf6db5b4*..........................................G....2....0..........
    Boot sector info:  Syslinux looks at sector 2699456 of /dev/sdb1 for its 
                       second stage. SYSLINUX is installed in the  directory. 
                       No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /menu.lst /boot/grub/grub.cfg /syslinux.cfg /grldr 
                       /efi/BOOT/grubx64.efi /grldr /ldlinux.sys

sdb4: __________________________________________________________________________

    File system:       iso9660
    Boot sector type:  Grub2 (v1.99-2.00)
    Boot sector info:  Grub2 (v1.99-2.00) is installed in the boot sector of 
                       sdb4 and looks at sector 0 of the same hard drive for 
                       core.img, but core.img can not be found at this 
                       location.
    Operating System:  
    Boot files:        /boot/grub/grub.cfg /boot/grub/i386-pc/core.img


================================ 2 OS detected =================================

OS#1:   EndeavourOS Linux (rolling) on sda3
OS#2:   Windows 7 on sda2

============================ Architecture/Host Info ============================

CPU architecture: 64-bit
Live-session OS is Ubuntu 64-bit (Boot-Repair-Disk 64bit 20200604, bionic, x86_64)


===================================== UEFI =====================================

BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.
SecureBoot disabled.

efibootmgr -v
BootCurrent: 000A
Timeout: 0 seconds
BootOrder: 000A,0007,0008,000B,0009,0006
Boot0000  BIOS Setup       	FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0001  Boot Menu	FvFile(86488440-41bb-42c7-93ac-450fbf7766bf)
Boot0002  Diagnostic Screen	FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380)
Boot0003  Recovery and Utility	FvFile(0b150fda-3bdd-4406-9859-448177476993)
Boot0004  Diagnostic Program	FvFile(29f85733-2b1a-4821-8f61-2614778c0c73)
Boot0005  Diagnostic Progrogram ROM	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,c0f527e7c05f4d498df59dc81ac2cfdd00)
Boot0006  Floppy Disk Drive:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot0007* Drive0 HDD:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f600)
Boot0008* CD/DVD Drive:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,23e6a6e08bae6940adb9a7b5c5f00628)
Boot0009  NETWORK:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)
Boot000A* USB HDD:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803)
Boot000B* USB CD/DVD:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,d630a9056829ce41861e8c380ff2225a)
Boot000C* Erase Disk	FvFile(43f9b080-c902-4737-b306-487050f7caa5)

d6c2e79aa2ba2a2e8e6445e9a6d493c0   sda1/Boot/bootx64.efi
d6c2e79aa2ba2a2e8e6445e9a6d493c0   sda1/Microsoft/Boot/bootmgfw.efi
14ad048614c1dd440626b01300674116   sda1/Microsoft/Boot/bootmgr.efi


============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

sda	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, has-os,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda2	: is-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda3	: is-os,	64, pacman,	no-docgrub,	grub2,	grub-install,	no-grubenv,	grub-mkconfig -o /boot/grub,	farbios
sda6	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

sda1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	bootmgr,	is-winboot
sda2	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	is-winboot
sda3	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda6	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sda1	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sda2	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sda3	: not-sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	customized,	sda
sda6	: maybesepboot,	no-kernel,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: 0x8eb65c05
      Boot     Start       End   Sectors   Size Id Type
sda1            2048    206847    204800   100M  7 HPFS/NTFS/exFAT
sda2  *       206848 488488960 488282113 232.9G  7 HPFS/NTFS/exFAT
sda3       488491008 570411007  81920000  39.1G 83 Linux
sda4       570411008 976773119 406362112 193.8G  5 Extended
sda5       927621120 976773119  49152000  23.4G 82 Linux swap / Solaris
sda6       570413056 927621119 357208064 170.3G 83 Linux
Partition table entries are not in disk order.
Disk sdb: 14.6 GiB, 15669919744 bytes, 30605312 sectors
Disk identifier: 0x79970c7b
      Boot   Start      End  Sectors  Size Id Type
sdb1  *      16128 30605311 30589184 14.6G  c W95 FAT32 (LBA)
sdb4       9483216 15436727  5953512  2.9G  0 Empty
Disk zram0: 1.4 GiB, 1529651200 bytes, 373450 sectors
Disk zram1: 1.4 GiB, 1529651200 bytes, 373450 sectors

parted -lm (filtered): _________________________________________________________

sda:500GB:scsi:512:4096:msdos:ATA TOSHIBA MQ01ABF0:;
1:1049kB:106MB:105MB:ntfs::;
2:106MB:250GB:250GB:ntfs::;
3:250GB:292GB:41.9GB:ext4::boot;
4:292GB:500GB:208GB:::;
6:292GB:475GB:183GB:ext4::;
5:475GB:500GB:25.2GB:linux-swap(v1)::;
sdb:15.7GB:scsi:512:512:loop:SanDisk Cruzer Blade:;
1:0.00B:15.7GB:15.7GB:fat32::;
zram1:1530MB:unknown:4096:4096:loop:Unknown:;
1:0.00B:1530MB:1530MB:linux-swap(v1)::;
zram0:1530MB:unknown:4096:4096:loop:Unknown:;
1:0.00B:1530MB:1530MB:linux-swap(v1)::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL            PARTLABEL
sda                                                                                                        
├─sda1 ntfs     442C45772C456550                     8eb65c05-01                          System Reserved  
├─sda2 ntfs     303847DD3847A0A8                     8eb65c05-02                                           
├─sda3 ext4     5c487842-7591-49e3-8d50-77304544091e 8eb65c05-03                                           
├─sda5 swap     cace8ba5-48dd-427f-bd26-635b0f82f6ae 8eb65c05-05                                           
└─sda6 ext4     ad4b0102-0def-4218-89ad-b29d29646d99 8eb65c05-06                                           
sdb                                                                                                        
├─sdb1 vfat                                          79970c7b-01                          WINSETUP         
└─sdb4 iso9660  2020-03-11-13-57-55-00               79970c7b-04                          MANJARO_KDE_1902 
zram0                                                                                                      
zram1                                                                                                      

df (filtered): _________________________________________________________________

       Avail Use% Mounted on
sda1    53.5M  46% /mnt/boot-sav/sda1
sda2    16.7G  93% /mnt/boot-sav/sda2
sda3      29G  19% /mnt/boot-sav/sda3
sda6   158.1G   0% /mnt/boot-sav/sda6
sdb1     8.9G  39% /cdrom

Mount options: __________________________________________________________________

sda1   rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda2   rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda3   rw,relatime
sda6   rw,relatime
sdb1   ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro

====================== sda3/boot/grub/grub.cfg (filtered) ======================

EndeavourOS, on linux   5c487842-7591-49e3-8d50-77304544091e
EndeavourOS, on linux (fallback initramfs)   gnulinux-linux-fallback-5c487842-7591-49e3-8d50-77304544091e
### END /etc/grub.d/30_os-prober ###

========================== sda3/etc/fstab (filtered) ===========================

# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=5c487842-7591-49e3-8d50-77304544091e /              ext4    defaults,noatime 0 1
UUID=ad4b0102-0def-4218-89ad-b29d29646d99 /home          ext4    defaults,noatime 0 2

======================= sda3/etc/default/grub (filtered) =======================

GRUB_DEFAULT=0
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR="EndeavourOS"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet nowatchdog"
GRUB_CMDLINE_LINUX=""
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
GRUB_TIMEOUT_STYLE=menu
GRUB_TERMINAL_INPUT=console
GRUB_GFXMODE=auto
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_THEME=/boot/grub/themes/EndeavourOS/theme.txt
GRUB_DISABLE_SUBMENU=y

================== sda3/boot/syslinux/syslinux.cfg (filtered) ==================

# Config file for Syslinux -
# /boot/syslinux/syslinux.cfg
#
# Comboot modules:
#   * menu.c32 - provides a text menu
#   * vesamenu.c32 - provides a graphical menu
#   * chain.c32 - chainload MBRs, partition boot sectors, Windows bootloaders
#   * hdt.c32 - hardware detection tool
#   * reboot.c32 - reboots the system
#
# To Use: Copy the respective files from /usr/lib/syslinux to /boot/syslinux.
# If /usr and /boot are on the same file system, symlink the files instead
# of copying them.
#
# If you do not use a menu, a 'boot:' prompt will be shown and the system
# will boot automatically after 5 seconds.
#
# Please review the wiki: https://wiki.archlinux.org/index.php/Syslinux
# The wiki provides further configuration examples
DEFAULT arch
PROMPT 0        # Set to 1 if you always want to display the boot: prompt
TIMEOUT 50
# You can create syslinux keymaps with the keytab-lilo tool
#KBDMAP de.ktl
# Menu Configuration
# Either menu.c32 or vesamenu32.c32 must be copied to /boot/syslinux
UI menu.c32
#UI vesamenu.c32
# Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu
MENU TITLE Arch Linux
#MENU BACKGROUND splash.png
MENU COLOR border       30;44   #40ffffff #a0000000 std
MENU COLOR title        1;36;44 #9033ccff #a0000000 std
MENU COLOR sel          7;37;40 #e0ffffff #20ffffff all
MENU COLOR unsel        37;44   #50ffffff #a0000000 std
MENU COLOR help         37;40   #c0ffffff #a0000000 std
MENU COLOR timeout_msg  37;40   #80ffffff #00000000 std
MENU COLOR timeout      1;37;40 #c0ffffff #00000000 std
MENU COLOR msg07        37;40   #90ffffff #a0000000 std
MENU COLOR tabmsg       31;40   #30ffffff #00000000 std
# boot sections follow
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*
LABEL arch
    MENU LABEL Arch Linux
    LINUX ../vmlinuz-linux
    APPEND root=/dev/sda3 rw
    INITRD ../initramfs-linux.img
LABEL archfallback
    MENU LABEL Arch Linux Fallback
    LINUX ../vmlinuz-linux
    APPEND root=/dev/sda3 rw
    INITRD ../initramfs-linux-fallback.img
#LABEL windows
#        MENU LABEL Windows
#        COM32 chain.c32
#        APPEND hd0 1
LABEL hdt
        MENU LABEL HDT (Hardware Detection Tool)
        COM32 hdt.c32
LABEL reboot
        MENU LABEL Reboot
        COM32 reboot.c32
LABEL poweroff
        MENU LABEL Poweroff
        COM32 poweroff.c32

==================== sda3: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
 232.930667877 = 250.107400192  boot/grub/grub.cfg                             1
 236.720272064 = 254.176456704  boot/vmlinuz-linux                             1
 237.278186798 = 254.775513088  boot/initramfs-linux-fallback.img              3
 236.901363373 = 254.370902016  boot/initramfs-linux.img                       2

================== sda3: Location of files loaded by Syslinux ==================

           GiB - GB             File                                 Fragment(s)
 247.085262299 = 265.305780224  boot/syslinux/syslinux.cfg                     1

===================== sda3: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root   270 Dec 29 00:46 06_grub-customizer_menu_color_helper
-rwxr-xr-x 1 root root 11040 Dec 30 10:38 10_linux
-rw-r--r-- 1 root root 11069 Jul 29 20:51 10_linux.bak
-rwxr-xr-x 1 root root 12051 Jul 29 20:51 20_linux_xen
-rwxr-xr-x 1 root root 11304 Dec 30 10:38 30_os-prober
-rw-r--r-- 1 root root 11291 Jul 29 20:51 30_os-prober.bak
-rwxr-xr-x 1 root root   214 Jul 29 20:51 40_custom
-rwxr-xr-x 1 root root   216 Jul 29 20:51 41_custom
-rwxr-xr-x 1 root root  1219 May 16  2020 60_memtest86+
drwxr-xr-x 4 root root  4096 Dec 29 00:46 backup
drwxr-xr-x 2 root root  4096 Dec 29 00:46 proxifiedScripts

============= sda3/etc/grub.d/06_grub-customizer_menu_color_helper =============

#!/bin/sh
	
	if [ "x${GRUB_BACKGROUND}" != "x" ] ; then
		if [ "x${GRUB_COLOR_NORMAL}" != "x" ] ; then
		echo "set color_normal=${GRUB_COLOR_NORMAL}"
		fi
	
		if [ "x${GRUB_COLOR_HIGHLIGHT}" != "x" ] ; then
		echo "set color_highlight=${GRUB_COLOR_HIGHLIGHT}"
		fi
	fi
	

==================== sda6: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
 376.120780945 = 403.856613376  boot/grub/i386-pc/core.img                     1

=========================== sdb1/menu.lst (filtered) ===========================

color black/cyan yellow/cyan
timeout 10

#graphicsmode 0x6A
graphicsmode -1 640 480:800 24:32 || graphicsmode -1
## Menu AutoNumber
write 0x8274 0x2001

#graphicsmode -1 800:640 -1 24:32 || graphicsmode -1
#font /unifont.hex.gz


#clear mappings and set root in case we return from bootmgr
map --unmap=0:0xff
map --unhook
map --rehook
ls /usbdrive.tag > nul || find --set-root --devices=hf /usbdrive.tag > nul
ls /default > nul && default /default



title linuxmint-19.2-mate-64bit from partition 0
map --unmap=0:0xff
map --unhook && map --rehook
cat --hex --locate=PoLPu@ (md)0x3D0+0x130 > nul && echo Cannot continue if PLoP is active, please start this entry without loading PLoP first && echo && pause Press any key to return to the main menu && configfile /menu.lst
set /a dev=*0x8280&0xff
root (%dev%,0)
set ISO=/ISO/linuxmint-19_2-mate-64bit.iso
ls %ISO% > nul || find --set-root --devices=hf /usbdrive.tag|| echo Error! Could not find usbdrive.tag && echo  && pause Press any key to return to the main menu && configfile /menu.lst
ls %ISO% > nul || find --set-root --devices=hf %ISO% || echo Error! Could not find %ISO% && echo  && pause Press any key to return to the main menu && configfile /menu.lst
map %ISO% (0xff) || map --heads=0 --sectors-per-track=0 %ISO% (0xff) || echo FATAL ERROR mapping %ISO%, please check if file is present and defragmented && pause Press any key to return to main menu && configfile /menu.lst
#http://reboot.pro/topic/9916-grub4dos-isohybrided/page-2#entry88531
#http://www.rmprepusb.com/tutorials/tails
set /a dev=*0x82a0&0xff
debug 1
parttype (%dev%,3) | set check=
debug off
set check=%check:~-5,4%
if "%check%"=="0x00" partnew (%dev%,3) 0 0 0 && partnew (%dev%,3) 0x00 %ISO%
if not "%check%"=="0x00" echo WARNING: PARTITION TABLE 4 IN BIOS DEVICE %dev% IS ALREADY IN USE! && echo  && echo To prevent possible data loss will not continue further && pause && configfile /menu.lst
map --rehook
root (0xff)
chainloader (0xff)

title manjaro-kde-19.0.2-200311-linux54 from partition 0
map --unmap=0:0xff
map --unhook && map --rehook
cat --hex --locate=PoLPu@ (md)0x3D0+0x130 > nul && echo Cannot continue if PLoP is active, please start this entry without loading PLoP first && echo && pause Press any key to return to the main menu && configfile /menu.lst
set /a dev=*0x8280&0xff
root (%dev%,0)
set ISO=/ISO/manjaro-kde-19_0_2-200311-linux54.iso
ls %ISO% > nul || find --set-root --devices=hf /usbdrive.tag|| echo Error! Could not find usbdrive.tag && echo  && pause Press any key to return to the main menu && configfile /menu.lst
ls %ISO% > nul || find --set-root --devices=hf %ISO% || echo Error! Could not find %ISO% && echo  && pause Press any key to return to the main menu && configfile /menu.lst
map %ISO% (0xff) || map --heads=0 --sectors-per-track=0 %ISO% (0xff) || echo FATAL ERROR mapping %ISO%, please check if file is present and defragmented && pause Press any key to return to main menu && configfile /menu.lst
#http://reboot.pro/topic/9916-grub4dos-isohybrided/page-2#entry88531
#http://www.rmprepusb.com/tutorials/tails
set /a dev=*0x82a0&0xff
debug 1
parttype (%dev%,3) | set check=
debug off
set check=%check:~-5,4%
if "%check%"=="0x00" partnew (%dev%,3) 0 0 0 && partnew (%dev%,3) 0x00 %ISO%
if not "%check%"=="0x00" echo WARNING: PARTITION TABLE 4 IN BIOS DEVICE %dev% IS ALREADY IN USE! && echo  && echo To prevent possible data loss will not continue further && pause && configfile /menu.lst
map --rehook
root (0xff)
chainloader (0xff)

====================== sdb1/boot/grub/grub.cfg (filtered) ======================

Boot-Repair-Disk session
Boot-Repair-Disk session (failsafe)

========================= sdb1/syslinux.cfg (filtered) =========================

default menu.c32
prompt 0
menu title UNetbootin
timeout 100
label unetbootindefault
menu label Default
kernel /ubnkern
append initrd=/ubninit file=/cdrom/preseed/lubuntu.seed boot=casper quiet splash ---
label ubnentry0
menu label ^Help
kernel /ubnkern
append initrd=/ubninit 
label ubnentry1
menu label ^64bit session
kernel /casper/vmlinuz
append initrd=/casper/initrd file=/cdrom/preseed/lubuntu.seed boot=casper  quiet splash ---
label ubnentry2
menu label ^64bit session (failsafe)
kernel /casper/vmlinuz
append initrd=/casper/initrd file=/cdrom/preseed/lubuntu.seed boot=casper  noapic noapm nodma nomce nolapic nomodeset nosmp vga=normal ---
label ubnentry3
menu label Boot-Repair-Disk session
kernel /casper/vmlinuz
append initrd=/casper/initrd file=/cdrom/preseed/lubuntu.seed boot=casper quiet splash --
label ubnentry4
menu label Boot-Repair-Disk session (failsafe)
kernel /casper/vmlinuz
append initrd=/casper/initrd file=/cdrom/preseed/lubuntu.seed boot=casper noapic noapm nodma nomce nolapic nomodeset nosmp vga=normal --

=========================== sdb1/grldr embedded menu ===========================

pxe detect
configfile
default 0
timeout 1

title find /menu.lst, /boot/grub/menu.lst, /grub/menu.lst
	errorcheck off
	configfile /boot/grub/menu.lst
	configfile /grub/menu.lst
	if "%@root%"=="(ud)" && calc *0x82A0=*0x82b9&0xff
	if "%@root:~1,1%"=="f" && find --set-root --devices=f /menu.lst && configfile /menu.lst
	find --set-root --ignore-floppies --ignore-cd /menu.lst && configfile /menu.lst
	find --set-root --ignore-floppies --ignore-cd /boot/grub/menu.lst && configfile /boot/grub/menu.lst
	find --set-root --ignore-floppies --ignore-cd /grub/menu.lst && configfile /grub/menu.lst
	errorcheck on
	commandline

title commandline
	commandline

title reboot
	reboot

title halt
	halt



==================== sdb1: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
            ?? = ??             menu.lst                                       1
            ?? = ??             boot/grub/grub.cfg                             1

================== sdb1: Location of files loaded by Syslinux ==================

           GiB - GB             File                                 Fragment(s)
            ?? = ??             syslinux.cfg                                   1
            ?? = ??             ldlinux.sys                                    1
            ?? = ??             ldlinux.c32                                    1

=============== sdb1: Version of COM32(R) files used by Syslinux ===============

 ldlinux.c32                        :  not a COM32/COM32R module

====================== sdb4/boot/grub/grub.cfg (filtered) ======================

menuentry --class=efi "${efi}   ${efi}
menuentry --hotkey=q --class=find.none "No EFI files detected.   No EFI files detected.
menuentry --hotkey=q --class=cancel "Cancel   Cancel
menuentry --class=lang.${ll} "lang=${ll}   lang=${ll}
menuentry --class=cancel --hotkey=q "Cancel (${def_timezone})   Cancel (${def_timezone})
menuentry --class=cancel --hotkey=q "Cancel (${def_timezone})   Cancel (${def_timezone})
menuentry --class=cancel --hotkey=q "Cancel (${def_keyboard})   Cancel (${def_keyboard})
menuentry --class=cancel --hotkey=q "Cancel (${def_drv})   Cancel (${def_drv})
menuentry --class=lang.${def_bootlang} "lang=${def_bootlang}   lang=${def_bootlang}
menuentry --class=lang.cs "Čeština   Čeština
menuentry --class=lang.da "Dansk   Dansk
menuentry --class=lang.he "עִבְרִית   עִבְרִית
menuentry --class=lang.ja "日本語   日本語
menuentry --class=lang.pl "Polski   Polski
menuentry --class=lang.ro "Romānă   Romānă
menuentry --class=tz.$class --hotkey=u "$hour2d:$min2d $title   $hour2d:$min2d $title
     {true}
menuentry --class=reboot "Reboot!   Reboot!

menuentry --class=manjaro "Installed BIOS-System on $installed   Installed BIOS-System on $installed
menuentry --class=edit "$clinput   $clinput
menuentry --class=type --hotkey=tab "   
menuentry --hotkey=h --class=help "help   help

==================== sdb4: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             1
            ?? = ??             boot/grub/i386-pc/core.img                     1
            ?? = ??             boot/vmlinuz-x86_64                            1
            ?? = ??             boot/initramfs-x86_64.img                      1


======================== Unknown MBRs/Boot Sectors/etc =========================

Unknown BootLoader on sda4



========= Devices which don't seem to have a corresponding hard drive ==========

sdc 

=============================== StdErr Messages ================================

hexdump: /dev/sda4: No such device or address
hexdump: /dev/sda4: No such device or address
File descriptor 63 (pipe:[42385]) leaked on lvs invocation. Parent PID 1781: /bin/bash

Last edited by andrewysk; 12-30-2020 at 05:37 AM.
 
Old 12-30-2020, 06:03 AM   #23
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
This should allow to boot into system, at the grub prompt
Code:
grub> linux (hd0,3)/boot/vmlinuz-linux  root=/dev/sda3
grub> initrd (hd0,3)/boot/initramfs-linux.img
grub> boot
after booting into endea, open a terminal
Code:
sudo grub-mkconfig -o /home/boot/grub/grub.cfg
reboot this should give you back your grub menu and the ability to boot back into your system

Quote:
then it able to show windows boot menu with win7 and endea.
Are you using easybcd to boot linux from windows boot menu?

Last edited by colorpurple21859; 12-30-2020 at 09:24 AM.
 
Old 12-30-2020, 07:14 AM   #24
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,506

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
Quote:
Yes, I do have i386-pc . May i know what is it for ?
The i386 directory and contents are used for a Legacy/CSM install so if you have that directory on the usb of Endea, you should be able to install Legacy/CSM. The x86_64-efi directory and its contents are used for an EFI install.
x86_64 is for 64 bit processors. i386 is for 32 bit processors.

If you scroll down in the bootinfo output to the section labelled UEFI, you can clearly see EFI entries for windows there and also that at some point, windows was installed EFI with an EFI partition (sda1). sda1 is no longer an EFI partition. It also shows the drive is not GPT which is required for an EFI install of windows. Not sure what happened there?

The bootinfoscript also shows syslinux as well as grub installed on sda3 but no grub.cfg file is shown. I would expect that executing the commands suggested above would boot Endeavour.
 
Old 12-30-2020, 08:32 AM   #25
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
removed. duplicated

Last edited by andrewysk; 12-30-2020 at 08:40 AM.
 
Old 12-30-2020, 08:34 AM   #26
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
For now this is a mess,
The ops first post about the system is full of miss-information at this point, It is a uefi system booting window 7 in legacy mode, the partition table shown in the first post pics, is no longer valid due to the reinstalls.
That op says there is an entry for endea in windows bootloader, which suggest the op maybe using easybcd.
The boot repair suggest that syslinux is install to the mbr of the drive, I think syslinux is broken based on the last few lines of post #20.
The grub set command shows grub bootcode installed at /dev/sda6 looking for the grub.cfg at /dev/sda6/boot/grub, sda6 is mounted at /home in the fstab for endea,

edit, I changed the grub-mkconfig command in post 23

Last edited by colorpurple21859; 12-30-2020 at 09:19 AM.
 
Old 12-30-2020, 08:38 AM   #27
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
The i386 directory and contents are used for a Legacy/CSM install so if you have that directory on the usb of Endea, you should be able to install Legacy/CSM. The x86_64-efi directory and its contents are used for an EFI install.
x86_64 is for 64 bit processors. i386 is for 32 bit processors.



The bootinfoscript also shows syslinux as well as grub installed on sda3 but no grub.cfg file is shown. I would expect that executing the commands suggested above would boot Endeavour.
Hii yancek,
Quote:
If you scroll down in the bootinfo output to the section labelled UEFI, you can clearly see EFI entries for windows there and also that at some point, windows was installed EFI with an EFI partition (sda1). sda1 is no longer an EFI partition. It also shows the drive is not GPT which is required for an EFI install of windows. Not sure what happened there?
When you said above, were you refering to "boot repair summary" ?

I suppose the "EFI entries for windows" was due to i did a "install grub into sda partition" that i tried out last night (using boot repair iso)..

Last edited by andrewysk; 12-30-2020 at 08:41 AM.
 
Old 12-30-2020, 09:37 AM   #28
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
This should allow to boot into system, at the grub prompt
Code:
grub> linux (hd0,3)/boot/vmlinuz-linux  root=/dev/sda3
grub> initrd (hd0,3)/boot/initramfs-linux.img
grub> boot
after booting into endea, open a terminal
Code:
sudo grub-mkconfig -o /home/boot/grub/grub.cfg
reboot this should give you back your grub menu and the ability to boot back into your system


Are you using easybcd to boot linux from windows boot menu?
i used easybcd once to add the linux into windows boot menu. but it does not work. (added linux in window boot menu, but does not run linux)
Not remember if i used easy bcd successfully to fix windows issue the other time or not.. i guess not (if i have windows boot issue, i won't be able to boot in windows to use easybcd).

Last edited by andrewysk; 12-30-2020 at 09:39 AM.
 
Old 12-30-2020, 10:03 AM   #29
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Cool

Quote:
Originally Posted by colorpurple21859 View Post
This should allow to boot into system, at the grub prompt
Code:
grub> linux (hd0,3)/boot/vmlinuz-linux  root=/dev/sda3
grub> initrd (hd0,3)/boot/initramfs-linux.img
grub> boot
after booting into endea, open a terminal
Code:
sudo grub-mkconfig -o /home/boot/grub/grub.cfg
reboot this should give you back your grub menu and the ability to boot back into your system
Wow! @colorpurple21859,
Genius!... You are the Guru of Linux !
It works.. ! my windows boot menu is working! and linux grub is working! lol

The first of the kind, Double boot menu (first windows boot menu, then grub menu) lol

windows boot menu created by Easybcd (created when i first used it to fix boot)
Click image for larger version

Name:	winbootmenu.jpg
Views:	14
Size:	53.3 KB
ID:	35088
windows boot menu
-------------------
win7 > boot into win7
endea linux > go to grub menu

Click image for larger version

Name:	grubmenu.jpg
Views:	12
Size:	53.1 KB
ID:	35089
grub boot menu
--------------
1st three > boot to linux in their own designated way Click image for larger version

Name:	xfce.jpg
Views:	13
Size:	58.0 KB
ID:	35090
4th win7 sda1 > boot into win7
5th win7 sda2 > loop back to windows boot menu

At least it works!! .
Q1.
May i know what is linux now in ? EFI or legacy ? how to check (my brain freezed.. too much info at one shoot ..lol)

Q2.
I don't know how to remove the win7 boot menu.. i suppose i can use easybcd to remove it ? so that i can straight away go into grub menu
*Since grub menu is accessed from win7 boot menu, if i remove win7 boot menu, will it causes grub is no longer accessible or no longer working ?
Q3.
In grub menu: 5th boot option (win7 sda2) is not the bootloader of win7.. hence can be remove..
i will learn to change it.

Last edited by andrewysk; 12-30-2020 at 10:35 AM.
 
Old 12-30-2020, 10:28 AM   #30
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
Q1: Your booting in legacy mode, in legacy mode /sys/firmware/efi directory doesn't exist.
Q2: open a terminal
Code:
sudo grub-install /dev/sda
sudo grub-mkconfig -o /boot/grub/grub.cfg
This will install the grub boot-loader into the mbr of your drive and update the grub.cfg on endea partition.

Last edited by colorpurple21859; 12-30-2020 at 10:44 AM.
 
  


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
Right click menu flickers and gone. Happen mostly on first few right click . Endea Linux andrewysk Linux - Distributions 12 10-01-2020 05:28 PM
Howto: Undo midnight commander (mc) no longer showing hidden files and folders Rava Linux - Software 4 10-25-2014 03:54 PM
UEIF Dual Boot Win7 & CentOS only boots Win7 wigglytoes Linux - General 3 12-30-2013 05:53 AM
[SOLVED] dual booting. i have installed windows vista after ubuntu. want 2 recover grub. hemanthm17 Linux - Newbie 3 08-20-2011 03:21 PM
[SOLVED] After Upgrading from Win7-32 to WIN7-64 can't mount cifs shares pobrika Linux - Networking 2 07-21-2010 08:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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