You are not logged in.

#1 2021-03-18 08:30:38

Jwdev
Member
Registered: 2021-03-18
Posts: 9

Grub don't show any other things

Hi, I must specify the first, my English is not well. So please talk a little simpler.

My problem is Grub not shows me anything outside the my arch. (Used to have another operating system and i did not see it and now i don't see any GNU/Linux Distro in my flash even it's arch.)

My computer is not supporting UEFI, so i have a legacy bios, i tried to understand arch wiki but i could not.

$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0    7:0    0  97.1M  1 loop /var/lib/snapd/snap/core/9993
loop1    7:1    0  97.7M  1 loop /var/lib/snapd/snap/core/10185
loop2    7:2    0 310.8M  1 loop /var/lib/anbox/rootfs
sda      8:0    0 149.1G  0 disk
├─sda1   8:1    0   100G  0 part /
├─sda2   8:2    0     2G  0 part [SWAP]
└─sda3   8:3    0    47G  0 part
sdb      8:16   1  14.3G  0 disk
├─sdb1   8:17   1   634M  0 part
├─sdb2   8:18   1    61M  0 part
└─sdb3   8:19   1   300K  0 part
sr0     11:0    1  1024M  0 rom

Last edited by Jwdev (2021-03-18 16:15:16)

Offline

#2 2021-03-18 10:19:52

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,366

Re: Grub don't show any other things

Have you re-made grub.cfg? If yes, check /etc/default/grub and look for:

GRUB_DISABLE_OS_PROBER="true"

Change "true" to "false" and re-do:

sudo grub-mkconfig -o /boot/grub/grub.cfg

See if that helps.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

#3 2021-03-18 10:30:23

Jwdev
Member
Registered: 2021-03-18
Posts: 9

Re: Grub don't show any other things

Roken wrote:

Have you re-made grub.cfg?

No, i don't. I looked my default grub config and I don't have such a setting. Should I add?

This is my grub config,

# GRUB boot loader configuration

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT=true

# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU=y

Last edited by Jwdev (2021-03-18 16:14:40)

Offline

#4 2021-03-18 10:54:00

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,366

Re: Grub don't show any other things

What's your disk layout?

sudo fdisk -l

And the contents of grub.cfg?

cat /boot/grub/grub.cfg

Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

#5 2021-03-18 11:04:55

Jwdev
Member
Registered: 2021-03-18
Posts: 9

Re: Grub don't show any other things

Disk /dev/sda: 149.05 GiB, 160041885696 bytes, 312581808 sectors
Disk model: WDC WD1600AAJS-0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xdd3460a3

Device     Boot     Start       End   Sectors  Size Id Type
/dev/sda1            2048 209717247 209715200  100G 83 Linux
/dev/sda2       209717248 213911551   4194304    2G 82 Linux swap / Solaris
/dev/sda3       213911552 312580095  98668544   47G 83 Linux


Disk /dev/loop0: 97.06 MiB, 101777408 bytes, 198784 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 97.74 MiB, 102486016 bytes, 200168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 310.8 MiB, 325902336 bytes, 636528 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
GPT PMBR size mismatch (1424023 != 30031871) will be corrected by write.
The backup GPT table is not on the end of the device.


Disk /dev/sdb: 14.32 GiB, 15376318464 bytes, 30031872 sectors
Disk model: Cruzer Blade    
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 31323032-3230-4130-B130-303531383334

Device       Start     End Sectors  Size Type
/dev/sdb1       64 1298431 1298368  634M Linux filesystem
/dev/sdb2  1298432 1423359  124928   61M EFI System
/dev/sdb3  1423360 1423959     600  300K Microsoft basic data
$ 
$ sudo cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  b5c5bb48-9f9b-4c35-9b22-f484fab10286
else
  search --no-floppy --fs-uuid --set=root b5c5bb48-9f9b-4c35-9b22-f484fab10286
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b5c5bb48-9f9b-4c35-9b22-f484fab10286' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  b5c5bb48-9f9b-4c35-9b22-f484fab10286
	else
	  search --no-floppy --fs-uuid --set=root b5c5bb48-9f9b-4c35-9b22-f484fab10286
	fi
	echo	'Loading Linux linux-lts ...'
	linux	/boot/vmlinuz-linux-lts root=UUID=b5c5bb48-9f9b-4c35-9b22-f484fab10286 rw  loglevel=3 quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/intel-ucode.img /boot/initramfs-linux-lts.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-b5c5bb48-9f9b-4c35-9b22-f484fab10286' {
	menuentry 'Arch Linux, with Linux linux-lts' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-advanced-b5c5bb48-9f9b-4c35-9b22-f484fab10286' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  b5c5bb48-9f9b-4c35-9b22-f484fab10286
		else
		  search --no-floppy --fs-uuid --set=root b5c5bb48-9f9b-4c35-9b22-f484fab10286
		fi
		echo	'Loading Linux linux-lts ...'
		linux	/boot/vmlinuz-linux-lts root=UUID=b5c5bb48-9f9b-4c35-9b22-f484fab10286 rw  loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/intel-ucode.img /boot/initramfs-linux-lts.img
	}
	menuentry 'Arch Linux, with Linux linux-lts (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-fallback-b5c5bb48-9f9b-4c35-9b22-f484fab10286' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  b5c5bb48-9f9b-4c35-9b22-f484fab10286
		else
		  search --no-floppy --fs-uuid --set=root b5c5bb48-9f9b-4c35-9b22-f484fab10286
		fi
		echo	'Loading Linux linux-lts ...'
		linux	/boot/vmlinuz-linux-lts root=UUID=b5c5bb48-9f9b-4c35-9b22-f484fab10286 rw  loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initramfs-linux-lts-fallback.img
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

Last edited by Jwdev (2021-03-18 16:14:12)

Offline

#6 2021-03-18 12:18:15

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Grub don't show any other things

Please edit your post and use [ code ] tags (not quote tags) when posting output.

https://gitlab.archlinux.org/archlinux/ … s-and-code
https://bbs.archlinux.org/help.php#bbcode

Offline

#7 2021-03-18 16:14:57

Jwdev
Member
Registered: 2021-03-18
Posts: 9

Re: Grub don't show any other things

2ManyDogs wrote:

Please edit your post and use [ code ] tags (not quote tags) when posting output.

https://gitlab.archlinux.org/archlinux/ … s-and-code
https://bbs.archlinux.org/help.php#bbcode

Okay.

Offline

#8 2021-03-18 16:43:18

StJimmy
Member
From: Rheinland
Registered: 2020-02-26
Posts: 72

Re: Grub don't show any other things

Perhaps an obvious question, but do you have the package os-prober installed?
If not, install it, then re-run

grub-mkconfig -o /boot/grub/grub.cfg

as root or

sudo grub-mkconfig -o /boot/grub/grub.cfg

as a normal user.


Nanos gigantum humeris insidentes.

Offline

#9 2021-03-18 17:34:42

Jwdev
Member
Registered: 2021-03-18
Posts: 9

Re: Grub don't show any other things

StJimmy wrote:

Perhaps an obvious question, but do you have the package os-prober installed?
If not, install it, then re-run

grub-mkconfig -o /boot/grub/grub.cfg

as root or

sudo grub-mkconfig -o /boot/grub/grub.cfg

as a normal user.

I already installaed os-prober, and i use this command soo much times before.

Offline

#10 2021-03-18 18:03:55

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Grub don't show any other things

Did you remember to mount the partition(s) that contain the other operating system(s) before running the grub-mkconfig command?

Reference: https://wiki.archlinux.org/index.php/GR … ng_systems


Jin, Jîyan, Azadî

Offline

#11 2021-03-18 18:20:27

Jwdev
Member
Registered: 2021-03-18
Posts: 9

Re: Grub don't show any other things

Head_on_a_Stick wrote:

Did you remember to mount the partition(s) that contain the other operating system(s) before running the grub-mkconfig command?

Reference: https://wiki.archlinux.org/index.php/GR … ng_systems

I tried for my usb (It has a fresh arch iso). But i don't know which one i need mount, so i tried all of them

$ sudo mount /dev/(sdb/sdb1/sdb2/sdb3) /mnt (I made each individually separately.)
$ sudo grub-mkconfig -o /boot/grub/grub.cfg

Is there anything I do wrong?

Last edited by Jwdev (2021-03-18 18:22:15)

Offline

#12 2021-03-18 18:26:07

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Grub don't show any other things

Jwdev wrote:

i don't know which one i need mount

Mount the root partition under /mnt and mount the /boot partition under /mnt/boot afterwards if there is a separate /boot partition.

Jwdev wrote:
$ sudo mount /dev/(sdb/sdb1/sdb2/sdb3) /mnt (I made each individually separately.)

What does "I made each individually separately" mean, exactly? What were the *exact* commands that you used? Please post them all verbatim.

If you ran this

# mount /dev/sdb /mnt
# mount /dev/sdb1 /mnt
# mount /dev/sdb2 /mnt
# mount /dev/sdb3 /mnt

Then each command would overlay the partition so only the last one would reflect the contents of /mnt.


Jin, Jîyan, Azadî

Offline

#13 2021-03-18 18:31:25

Jwdev
Member
Registered: 2021-03-18
Posts: 9

Re: Grub don't show any other things

Head_on_a_Stick wrote:
Jwdev wrote:

i don't know which one i need mount

Mount the root partition under /mnt and mount the /boot partition under /mnt/boot afterwards if there is a separate /boot partition.

Jwdev wrote:
$ sudo mount /dev/(sdb/sdb1/sdb2/sdb3) /mnt (I made each individually separately.)

What does "I made each individually separately" mean, exactly? What were the *exact* commands that you used? Please post them all verbatim.

If you ran this

# mount /dev/sdb /mnt
# mount /dev/sdb1 /mnt
# mount /dev/sdb2 /mnt
# mount /dev/sdb3 /mnt

Then each command would overlay the partition so only the last one would reflect the contents of /mnt.

I have done it as follows,

sudo mount /dev/sdb1 /mnt
sudo grub-mkconfig -o /boot/grub/grub.cfg

Then i rebooted and it's not working, after i did each for sdb2.

I can't understand english very well, I need to do that?

sudo mount /dev/sdb /mnt/boot

in addition is there no root partition I see in sdb partition. It looks like this.

sdb      8:16   1  14.3G  0 disk
├─sdb1   8:17   1   634M  0 part
├─sdb2   8:18   1    61M  0 part
└─sdb3   8:19   1   300K  0 part

It's not an operating system in installed other disk. It's a live iso for arch linux. So i don't know what is root partition or anything.

Last edited by Jwdev (2021-03-18 18:35:38)

Offline

#14 2021-03-18 18:48:44

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Grub don't show any other things

I think you must have wiped the operating system on /dev/sdb — 634MiB (sdb1) isn't enough room for an entire distribution, sdb2 is an EFI system partition and sdb3 seems to be a Windows partition.

Last edited by Head_on_a_Stick (2021-03-18 18:48:54)


Jin, Jîyan, Azadî

Offline

#15 2021-03-18 19:03:58

Jwdev
Member
Registered: 2021-03-18
Posts: 9

Re: Grub don't show any other things

Head_on_a_Stick wrote:

I think you must have wiped the operating system on /dev/sdb — 634MiB (sdb1) isn't enough room for an entire distribution, sdb2 is an EFI system partition and sdb3 seems to be a Windows partition.

https://ibb.co/D4NW2jw It looks like this in gui file manager.

Offline

#16 2021-03-20 10:16:08

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Grub don't show any other things

That picture shows the Arch live ISO image.


Jin, Jîyan, Azadî

Offline

#17 2021-03-20 10:30:55

u666sa
Member
Registered: 2020-08-01
Posts: 70

Re: Grub don't show any other things

Be sure to install os-prober

Offline

#18 2021-03-20 10:41:57

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Grub don't show any other things

The OP already has os-prober installed. Please read the thread before replying.

I suspect they are trying to generate a menu entry for the ISO image but the language barrier is confusing things.

@OP: if you do want a menu entry for the live image then see https://wiki.archlinux.org/index.php/Mu … ly_release (place the stanza at the end of /etc/grub.d/40_custom and run the grub-mkconfig command to add it to the menu).


Jin, Jîyan, Azadî

Offline

Board footer

Powered by FluxBB