How to boot Debian 10 from usb stick without BIOS support?

Help with issues regarding installation of Debian

How to boot Debian 10 from usb stick without BIOS support?

Postby khelben1979 » 2019-10-30 12:36

I have a HP laptop over here which I bought 4 years ago, I cannot boot Debian 10 live usb stick using my BIOS settings. From the Grub command menu by pressing the c key, what do I type from there in order to be able to boot from the usb stick?
/Bear Spirit

Computer: HP Pavilion 15-ab102no ( Debian 8 )
User avatar
khelben1979
 
Posts: 213
Joined: 2008-02-26 14:59
Location: Sweden

Re: How to boot Debian 10 from usb stick without BIOS suppor

Postby arochester » 2019-10-30 12:41

Why can't you change the BIOS to boot from the USB stick first - before the Hard Drive?

Can't you use Boot Order? Normally on an HP, after you install the USB stick, press f10 when you see the HP logo.
arochester
 
Posts: 1562
Joined: 2010-12-07 19:55

Re: How to boot Debian 10 from usb stick without BIOS suppor

Postby khelben1979 » 2019-10-30 12:58

My BIOS does not support booting from usb sticks, only usb cd / dvd-roms or usb harddisk. It even supports usb floppy drive. I already changed the boot order for it to access all the alternatives before the GRUB menu, and I also checked if the usb stick has a valid boot flag, and it does.
/Bear Spirit

Computer: HP Pavilion 15-ab102no ( Debian 8 )
User avatar
khelben1979
 
Posts: 213
Joined: 2008-02-26 14:59
Location: Sweden

Re: How to boot Debian 10 from usb stick without BIOS suppor

Postby v&n » 2019-10-30 16:45

Did you try any of the grub chainloading tricks? https://superuser.com/a/811142
v&n
 
Posts: 621
Joined: 2015-02-04 02:57

Re: How to boot Debian 10 from usb stick without BIOS suppor

Postby Deb-fan » 2019-10-30 17:02

PLop ... a piece of software which does (or at least used to do what you're asking about.)

Just to be overly helpful/anal. Found the link to the thing, yeppers, looks like it's still being actively developed. Didn't read the site enough to know if it's still free though.
Deb-fan
 
Posts: 445
Joined: 2012-08-14 12:27

Re: How to boot Debian 10 from usb stick without BIOS suppor

Postby p.H » 2019-10-30 18:36

IIRC on HP PC's F10 opens the setup. F9 opens the boot menu.

Any HP PC I have used since the Pentium 4 generation was able to boot from USB. But ok, let's assume you are right.
Some UEFI/BIOS firmwares expose all USB storage devices regardless of the active boot device. Some expose only a USB device when it is the active boot device. Usually, they expose only devices which they are able to boot from. You can check exposed devices with "ls" at the GRUB command line. If your firmware falls into the first category, you can try to chainload the bootloader on the USB stick from GRUB using the "chainloader" command. The argument depends on whether the system boots in BIOS or EFI mode.

Does the laptop and GRUB boot in EFI or BIOS/legacy mode ?

If the firmware does not expose the USB stick, you may try to load GRUB's native drivers for USB with the command "nativedisk". Make sure you load all required modules before. Use at your own risks. Alternatively, you can copy the boot files (vmlinuz, initrd, grub.cfg) from the USB stick to the internal drive, and boot them from GRUB.
Last edited by p.H on 2019-10-30 21:42, edited 1 time in total.
p.H
 
Posts: 1158
Joined: 2017-09-17 07:12

Re: How to boot Debian 10 from usb stick without BIOS suppor

Postby andre@home » 2019-10-30 18:55

This may also help:
https://askubuntu.com/questions/235393/ ... xtremely-s

Subject: Boot from Live CD, then install from USB stick? (because CDROM drive extremely slow/faulty)
I ended up copying the content of the USB stick to a local hard drive using dd:

Code: Select all
dd if=/dev/sdd of=/dev/sdb oflag=direct

Where sdd is the USB stick and sdb the local hard drive. Then I removed the CD, rebooted, and installation went fine.

This works only if you have two local hard drives (one as the install media, one as the target system). I guess you could do the same with fdisk and partitions, but somehow when I tried it did not work.

Even though this solution worked, I accept jeroen's solution as it works even when you don't have two local hard drives
andre@home
 
Posts: 347
Joined: 2011-10-02 08:00

Re: How to boot Debian 10 from usb stick without BIOS suppor

Postby khelben1979 » 2019-10-31 20:55

I put some images together here which shows my boot BIOS settings and also the devices listed from the GRUB menu using the ls command: https://photos.app.goo.gl/1Y8XEWjf2NuqiBD16
/Bear Spirit

Computer: HP Pavilion 15-ab102no ( Debian 8 )
User avatar
khelben1979
 
Posts: 213
Joined: 2008-02-26 14:59
Location: Sweden

Re: How to boot Debian 10 from usb stick without BIOS suppor

Postby arochester » 2019-10-31 21:32

Doesn't USB Diskette on key mean the same thing as a USB stick?
Also known as a thumb drive, pen drive, gig stick, flash stick, jump drive, disk key, disk on key (after the original M-Systems DiskOnKey drive from 2000),[1] flash-drive, memory stick (not to be confused with the Sony Memory Stick), USB key, USB stick or USB memory. For an incomplete list of alternative names, see the list of redirects to this article.
Source - https://en.wikipedia.org/wiki/USB_flash ... cite_ref-2

CD-Rom Boot is also enabled...
arochester
 
Posts: 1562
Joined: 2010-12-07 19:55

Re: How to boot Debian 10 from usb stick without BIOS suppor

Postby p.H » 2019-11-01 07:30

lt shows three drives : hd0, hd1, hd2. I guess hd1 with all the GPT partitions is the boot+system drive, which means UEFI boot (confirm with "set"). With BIOS/legacy boot, the boot drive would be hd0. Now you have to find out what are hd0 and hd2 and whether one is the USB stick. ls does not show any partitions on hd0 and hd2, for the possible following reasons :
- they do not contain media (e.g. empty card readers) ;
- they do not contain a partition table ; if they contain a filesystem, you can try to read its contents with "ls (hd0)/" ;
- they contain a DOS/MBR partition table but the driver is not loaded ; load it with "insmod part_msdos" and run "ls" again.

You can also unplug the USB stick, reboot, run "ls" again and compare the outputs.
Last edited by p.H on 2019-11-06 19:07, edited 1 time in total.
p.H
 
Posts: 1158
Joined: 2017-09-17 07:12

[SOLVED] Re: How to boot Debian 10 from usb stick

Postby khelben1979 » 2019-11-06 13:35

I have to make a short update over here! Earlier today I used the dd command to write the .iso file to the usb memory, and when I booted the computer, it was able to boot from it! All other graphical programs that I previously used for this had failed, and that made me think I could not boot from the usb flash memory. It did turn out that I can! As I clicked [ESC] at startup, I could then click [F9] and it said "no valid operating system" or something like that.

It seems the main issue were that the other programs wanted to use FAT32 instead of FAT16 when they created the start disk, and for some reason, my BIOS didn't like that! They also must have either failed or added a wrong type of boot flag. Using the dd command worked perfectly, but it's a shame there were no GUI which could help me with this task, but it is what it is. :)
/Bear Spirit

Computer: HP Pavilion 15-ab102no ( Debian 8 )
User avatar
khelben1979
 
Posts: 213
Joined: 2008-02-26 14:59
Location: Sweden

Re: How to boot Debian 10 from usb stick without BIOS suppor

Postby trinidad » 2019-11-06 15:24

You can't believe your eyes if your imagination is out of focus.
trinidad
 
Posts: 76
Joined: 2016-08-04 14:58

Re: How to boot Debian 10 from usb stick without BIOS suppor

Postby CwF » 2019-11-06 16:25

Instead of writing one image to many sticks, is there a utility to write multiple iso's to the same stick with a boot loader choice of iso?
CwF
 
Posts: 501
Joined: 2018-06-20 15:16

Re: How to boot Debian 10 from usb stick without BIOS suppor

Postby Head_on_a_Stick » 2019-11-06 18:59

CwF wrote:is there a utility to write multiple iso's to the same stick with a boot loader choice of iso?

It's possible to store the ISO images on a partition on the USB stick and then configure GRUB to boot them:

https://wiki.archlinux.org/index.php/Mu ... _USB_drive

See my website page for an example of a GRUB menuentry stanza for a Debian ISO image.
Don't break DebianHow to report bugs

SharpBang GNU/Linux — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10613
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: How to boot Debian 10 from usb stick without BIOS suppor

Postby p.H » 2019-11-06 19:12

Head_on_a_Stick wrote:It's possible to store the ISO images on a partition on the USB stick and then configure GRUB to boot them:

Not all ISO images natively support this. AFAIK, Debian installation images don't.
p.H
 
Posts: 1158
Joined: 2017-09-17 07:12

Next

Return to Installation

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable