Bug 26742 - pcmemtest from grub menu returns error: can't find command `linux32'
Summary: pcmemtest from grub menu returns error: can't find command `linux32'
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-08 17:41 CEST by Rolf Pedersen
Modified: 2020-06-08 19:35 CEST (History)
1 user (show)

See Also:
Source RPM: pcmemtest-1.1-2.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Rolf Pedersen 2020-06-08 17:41:29 CEST
First, I'm running MGA7 and thought to try to gently install this package since, as I wrote here: https://bugs.mageia.org/show_bug.cgi?id=25232#c20

I've never got any memtest to work from the boot menu and tried this (removed what memtest I could see was installed):

sudo urpme memtester

sudo urpmi http://mirrors.kernel.org/mageia/distrib/cauldron/x86_64/media/core/release/pcmemtest-1.1-2.mga8.x86_64.rpm

sudo update-grub

Rebooted and chose the Pcmemtest entry but got an error: can't find command linux32

Martin asked for this:

[rolf@x570i ~]$ rpm -qa | grep grub2
grub2-common-2.02.0-15.mga7
grub2-mageia-theme-2.02.0-15.mga7
grub2-2.02.0-15.mga7
grub2-efi-2.02.0-15.mga7
[rolf@x570i ~]$

and bonus inxi output follows.  
Thanks.

[root@x570i rolf]# inxi -F
System:    Host: x570i Kernel: 5.6.14-desktop-2.mga7 x86_64 bits: 64 Console: tty 0 Distro: Mageia 7 mga7 
Machine:   Type: Desktop Mobo: ASUSTeK model: ROG STRIX X570-I GAMING v: Rev X.0x serial: 200164285700247 
           UEFI: American Megatrends v: 1405 date: 11/19/2019 
CPU:       Topology: Quad Core model: AMD Ryzen 5 3400G with Radeon Vega Graphics bits: 64 type: MT MCP 
           L2 cache: 2048 KiB 
           Speed: 3787 MHz min/max: 1400/3800 MHz Core speeds (MHz): 1: 3787 2: 3789 3: 3788 4: 3792 5: 3781 6: 3769 
           7: 3788 8: 3786 
Graphics:  Device-1: Conexant Systems CX23887/8 PCIe Broadcast Audio and Video Decoder with 3D Comb driver: cx23885 
           v: 0.0.4 
           Device-2: Conexant Systems CX23887/8 PCIe Broadcast Audio and Video Decoder with 3D Comb driver: cx23885 
           v: 0.0.4 
           Device-3: Advanced Micro Devices [AMD/ATI] Picasso driver: amdgpu v: kernel 
           Display: server: Mageia X.org 1.20.8 driver: amdgpu,v4l resolution: 1: 1600x900~60Hz 2: 1920x1080~60Hz 
           OpenGL: renderer: AMD RAVEN (DRM 3.36.0 5.6.14-desktop-2.mga7 LLVM 8.0.0) v: 4.6 Mesa 20.0.7 
Audio:     Device-1: Conexant Systems CX23887/8 PCIe Broadcast Audio and Video Decoder with 3D Comb driver: cx23885 
           Device-2: Conexant Systems CX23887/8 PCIe Broadcast Audio and Video Decoder with 3D Comb driver: cx23885 
           Device-3: Advanced Micro Devices [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio driver: snd_hda_intel 
           Device-4: Advanced Micro Devices [AMD] Family 17h HD Audio driver: snd_hda_intel 
           Device-5: C-Media C-Media USB Audio Device type: USB driver: hid-generic,snd-usb-audio,usbhid 
           Sound Server: ALSA v: k5.6.14-desktop-2.mga7 
Network:   Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi 
           IF: wlp7s0 state: up mac: 50:eb:71:f7:04:09 
           Device-2: Intel I211 Gigabit Network driver: igb 
           IF: enp8s0 state: up speed: 1000 Mbps duplex: full mac: d4:5d:64:51:25:e0 
           IF-ID-1: docker0 state: down mac: 02:42:e3:50:2e:d4 
           IF-ID-2: vboxnet0 state: down mac: 0a:00:27:00:00:00 
Drives:    Local Storage: total: 5.92 TiB used: 1.94 TiB (32.7%) 
           ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 PRO 512GB size: 476.94 GiB 
           ID-2: /dev/sda vendor: Western Digital model: WDS200T2B0B size: 1.82 TiB 
           ID-3: /dev/sdb vendor: Western Digital model: WD20SPZX-22UA7T0 size: 1.82 TiB 
           ID-4: /dev/sdc vendor: Seagate model: ST2000LX001-1RG174 size: 1.82 TiB 
Partition: ID-1: / size: 50.09 GiB used: 44.67 GiB (89.2%) fs: reiserfs dev: /dev/nvme0n1p1 
           ID-2: /home size: 1.68 TiB used: 1.11 TiB (65.8%) fs: reiserfs dev: /dev/sda1 
Swap:      ID-1: swap-1 type: partition size: 4.00 GiB used: 0 KiB (0.0%) dev: /dev/nvme0n1p2 
Sensors:   System Temperatures: cpu: 63.0 C mobo: N/A gpu: amdgpu temp: 63 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 322 Uptime: 56m Memory: 13.64 GiB used: 6.50 GiB (47.6%) Shell: bash inxi: 3.1.01 
[root@x570i rolf]#
Comment 1 Martin Whitaker 2020-06-08 18:15:01 CEST
Ah, Mageia 7...

If you are using a legacy PC BIOS, pcmemtest can be booted in either 16-bit mode or 32-bit mode, but if you are using a UEFI BIOS, it can only be booted in 32-bit mode. So I made the GRUB configuration for pcmemtest use 32-bit mode, as that works for both.

The Mageia grub2 packages include a lot of patches from Fedora. In cauldron, the latest Fedora patch set removes the standard GRUB 'linux' command (which boots the OS in 32-bit mode) and makes 'linux' an alias to either 'linux16' (which boots the OS in 16-bit mode) or 'linuxefi' (which boots in EFI bypass mode). So I added another patch, to restore the original 'linux' command, but renamed it to 'linux32' to avoid interfering with the Fedora changes.

In Mageia 7, none of those changes have been made, so you just need to use 'linux' instead of 'linux32'. Change it in the file /etc/grub.d/20_pcmemtest, which will only be overwritten if you install a new version of pcmemtest.

CC: (none) => mageia

Comment 2 Rolf Pedersen 2020-06-08 19:35:02 CEST
Thanks, Martin.  The edit and update-grub got the entry to load the tester and I let it run through one pass.  Sorry to add to your load unnecessarily.
Rolf

Resolution: (none) => INVALID
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.