Bug 26849 - error message using a USB ( 3.x ) only install
Summary: error message using a USB ( 3.x ) only install
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia tools maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-23 03:16 CEST by William Kenney
Modified: 2020-12-02 16:56 CET (History)
3 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description William Kenney 2020-06-23 03:16:26 CEST
Description of problem:

Dell Laptop
Turn off the SATA channel in BIOS
enable USB boot

Plug into a USB port:

Mageia-8-alpha1-Live-Plasma-x86_64.iso
bf47a72f923a915a561c410349690f31 06/22/20

or

Mageia-8-alpha1-x86_64.iso
ceec76764dc08ff68fc1c2909e7086e2 06/22/20

Boot to a desktop install menus with the Live-DVD or CI menus
Plug a fat32 formatted 128GB USB in another USB port
Dolphin sees the 128GB USB drive ( Live-DVD )

So now you have a Live-DVD live desktop and a blank usb drive
There is no SATA HD
Start the install process.
Almost immediately the following error is displayed:

                        An error occured
Can't call method "first_usable_sector" on unblessed reference.

Your never asked what the target of the install is.

I don't think you need a working SATA drive to execute an install.
I've done usb only installs many times before.
Comment 1 Lewis Smith 2020-06-23 21:45:42 CEST
Thanks for the report, Bill.
It seems weird installing to a USB; does it end up as a 'live' system?
> I've done usb only installs many times before
Assigning to Mageia tools for Installer, CC the ISO team.

CC: (none) => isobuild
Assignee: bugsquad => mageiatools

Comment 2 William Kenney 2020-06-23 21:52:08 CEST
(In reply to Lewis Smith from comment #1)
> It seems weird installing to a USB; does it end up as a 'live' system?

To answer your question directly installing from a Live media, CI or even
a netinstall all really end up in the same place. That's what I have seen
through the many versions of Mageia.
Comment 3 Pascal Terjan 2020-06-23 21:55:19 CEST
My guess from the error would be that it is upset that there is no partition table, but usually FAT32 formatted USB keys have one with a single partition.

Can you check if the USB key has some partition or the whole key is formatted as FAT32?

Actually, are you sure this is FAT32? I thought FAT32 could not be larger than 32GB and usually things use EXFAT for larger volumes.

CC: (none) => pterjan

Comment 4 William Kenney 2020-06-23 22:03:27 CEST
(In reply to Pascal Terjan from comment #3)
> My guess from the error would be that it is upset that there is no partition
> table...

Thanks Pascal. I continue to test this issue even though I seem to have found
a fix. See the following Comment
Comment 5 William Kenney 2020-06-23 22:04:33 CEST
Further testing today I found that starting with a completely
blank USB drive cleared this error. If you use Gparted one of
the format options is "cleared". That seems to have prevented
the "An error occured....." message and the install continued
normally.
Comment 6 Pascal Terjan 2020-06-23 22:05:49 CEST
Thanks, we should still fix it but it confirms it didn't like how the key was formatted
Comment 7 William Kenney 2020-06-23 22:17:31 CEST
Successful USB install here using a Gparted "cleared"
128GB USB drive and:

Mageia-Cauldron-netinstall-x86_64.iso

The resulting USB drive successfully booted to a working
Xfce desktop. The DE was fully usable. The primary drive
on the 2020 Dell Laptop is a 256GB M.2 PCIe NVMe SSD
that is formatted to run Windows 10. With the bootable
M6 Xfce USB drive inserted into a USB port at boot
and repeatedly depressing F12 to get you to the boot
menu you can select either Win10 or Mageia M8 Xfce.
If you do not call the boot menu ( F12 ) the laptop
defaults to booting Windows 10.

The USB flash drive I'm using is a Samsung FIT Plus
USB 3.1 Flash Drive 128GB. The USB Port is 3.1.
Performance is quite impressive.
Comment 8 Pascal Terjan 2020-06-23 22:27:28 CEST
Trying to reproduce with a disk, it even got worse :(


[root@mageia drakx (master)]# mkfs.vfat /dev/sdc
mkfs.fat 4.1 (2017-01-24)

[root@mageia drakx (master)]# diskdrake 
Can't locate partition_table/loop.pm in @INC (you may need to install the partition_table::loop module) (@INC contains: /usr/lib/libDrakX /usr/local/lib64/perl5 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/lib/libDrakX/partition_table.pm line 287.
Perl's trace:
drakbug::bug_handler() called from /usr/lib/libDrakX/partition_table.pm:287
partition_table::initialize() called from /usr/lib/libDrakX/partition_table/raw.pm:227
partition_table::raw::zero_MBR() called from /usr/lib/libDrakX/fsedit.pm:265
fsedit::get_hds() called from /usr/libexec/diskdrake:74

Looking at the code, "loop" is what libparted gives us when there is directly a file system without a partition table, we should handle that but that also means this was not your problem as you got a different error.
Comment 9 Pascal Terjan 2020-06-23 22:55:14 CEST
I have committed a fix for my problem (https://gitweb.mageia.org/software/drakx/commit/?id=429fded33a34ff63e37af5c32aa5f7f9b38e052c) but still don't know what is causing yours :(
Comment 10 William Kenney 2020-06-23 23:13:09 CEST
(In reply to Pascal Terjan from comment #9)
> but still don't know what is
> causing yours :(
My biggest worry was during the Magiea install from whatever media
that when writing boot that would blow up the Win 10 on the
internal 256GB M.2 PCIe NVMe SSD. Turning that off in the BIOS
really truly turned it off and the Mageia install never sees it.
Whew!
Morgan Leijström 2020-12-02 16:56:21 CET

CC: (none) => fri


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