Bug 950 - "Boot from harddisk" does not work when using a classical iso or usb key as install medium
Summary: "Boot from harddisk" does not work when using a classical iso or usb key as i...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard: 4final (MGA2)
Keywords:
: 180 5957 11887 12459 (view as bug list)
Depends on:
Blocks: 11704
  Show dependency treegraph
 
Reported: 2011-04-23 11:30 CEST by Wolfgang Bornath
Modified: 2015-03-08 09:01 CET (History)
15 users (show)

See Also:
Source RPM: syslinux
CVE:
Status comment:


Attachments

Description Wolfgang Bornath 2011-04-23 11:30:30 CEST
Description of problem:
The option in the boot menue "Boot from harddisk" does not work when you use a usb key as install medium. Possible cause: usb key is regarded as harddisk, so the system boots from this medium again.


Version-Release number of selected component (if applicable):
Installer of Beta2 ISO
Comment 1 Marianne Lombard 2011-04-23 11:33:21 CEST
Same for me. With the dvd install iso put on a USB stick, the option "boot from harddisk" put me back every time to the boot menu.

CC: (none) => marianne

Comment 2 AL13N 2011-04-23 11:37:03 CEST
for me, it worked, except that i used a real DVD.

CC: (none) => maarten.vanraes

Comment 3 Magnus Rasche 2011-04-23 18:35:42 CEST
I have tested it on two machines. on both the usb-stick is regarded as harddisk (not as removable device).
So it's normal, that a "boot from harddisk" boots the stick.

CC: (none) => magnus.mud

Comment 4 Ahmad Samir 2011-04-23 19:46:33 CEST
I think Magnus is right, "boot from harddisk" means boot from the first bootable-HD...

But maybe gfxboot logic should be adapted to work even in that case? (though it mayn't be possible as GRUB thinks "first bootable HD" in this case).

CC: (none) => boklm, mageia, pterjan
Component: Installation => RPM Packages
Source RPM: (none) => mageia-gfxboot-theme
Severity: normal => enhancement

Comment 5 Pascal Terjan 2011-04-23 21:02:08 CEST
Yes this is "normal" as the bios will list the usb device as first hard disk

isolinux config is set to "localboot 0x80" for the harddisk entry

Reading the doc I found this:

With ISOLINUX, the "type" specifies the local drive number to boot from; 0x00 is the primary floppy drive and 0x80 is the primary hard drive. The special value -1 causes ISOLINUX to report failure to the BIOS, which, on recent BIOSes, should mean that the next device in the boot sequence should be activated.

It means giving -1 should work but I am scared by the "recent bios" thing
Comment 6 AL13N 2011-04-24 00:31:16 CEST
perhaps it can be adjusted to get the next one if the first one is the one you just booted from?
Comment 7 Pascal Terjan 2011-04-24 00:41:58 CEST
Feel free to patch isolinux :)
Comment 8 AL13N 2011-04-24 01:06:42 CEST
:-(

well, i don't use usbstick installs, so i don't care... someone else can fix it.
Comment 9 Pascal Terjan 2011-04-24 01:23:47 CEST
I actually had a look at the (asm) code, this -1 uses int 18h to mark the current boot device as failed so that bios jumps to the next one. I don't know how many years ago this "recent bios" mention appears but I would expect it to be supported by very old BIOS...

http://en.wikipedia.org/wiki/BIOS_interrupt_call#.E2.80.8BINT_18h.E2.80.8B:_execute_BASIC

Code is http://git.kernel.org/?p=boot/syslinux/syslinux.git;a=blob;f=core/localboot.inc;h=1fe3102df9bc12d13f19d26f09e31ed94106abb3;hb=HEAD

As you can see there is currently no logic there, except the test for -1

I think using -1 instead of 0x80 should be quite safe
Comment 10 AL13N 2011-04-24 01:27:40 CEST
except if you had another CDrom in it? or you installed from cdrom, but had an usb stick in it as well? maybe.

but nice thinking... sounds like a good idea?
Comment 11 Anne Nicolas 2011-04-24 10:07:53 CEST
Duplicate bug

*** This bug has been marked as a duplicate of bug 180 ***

Status: NEW => RESOLVED
CC: (none) => ennael1
Resolution: (none) => DUPLICATE

Comment 12 Ahmad Samir 2011-04-25 02:30:58 CEST
This bug has more info.

Status: RESOLVED => REOPENED
Resolution: DUPLICATE => (none)

Comment 13 Ahmad Samir 2011-04-25 02:31:04 CEST
*** Bug 180 has been marked as a duplicate of this bug. ***

CC: (none) => shikamaru

Comment 14 Samuel Verschelde 2011-10-01 04:08:04 CEST
Assigning to maintainer now that our maintainers database has an entry for
this package. Please assign back to bugsquad@mageia.org in case of a mistake
from me.

CC: (none) => stormi
Assignee: bugsquad => balcaen.john

John Balcaen 2011-10-01 04:08:47 CEST

CC: (none) => balcaen.john
Assignee: balcaen.john => watersnowrock

Comment 15 Marja Van Waes 2012-01-03 22:32:00 CET
pinging. because nothing happened to this report since more than 3 months ago, and it still has the status NEW or REOPENED


@ Donald
Please set status to ASSIGNED if you think this bug was assigned correctly. If for work flow reasons you can't do that, then please put OK on the whiteboard instead.

CC: (none) => marja11

Comment 16 Donald 2012-01-04 12:32:22 CET
I was sure that I had commented on this but I guess not....

If someone who had the technical know how, ie Pascal as I don't, then by all means change 0x80 to -1 and see if it fixes the issue.

I would appreciate any help with maintaining the more technical sides of this package, as i am more interested in the artwork side of it.

I will be the assigne for now, unless someone else feels that they want it.

Status: REOPENED => ASSIGNED

Manuel Hiebel 2012-01-27 16:50:28 CET

Blocks: (none) => 4299

Comment 17 Manuel Hiebel 2012-04-25 23:16:03 CEST
(

Blocks: 4299 => (none)

Comment 18 Manuel Hiebel 2012-05-17 17:31:23 CEST
*** Bug 5957 has been marked as a duplicate of this bug. ***

CC: (none) => eeeemail

Comment 19 Manuel Hiebel 2012-05-17 17:32:47 CEST
syslinux/gfxboot bug more technical than with the artwork iirc

Status: ASSIGNED => NEW
Assignee: watersnowrock => bugsquad
Severity: enhancement => normal

Comment 20 Marja Van Waes 2012-05-26 13:02:52 CEST
Hi,

This bug was filed against cauldron, but we do not have cauldron at the moment.

Please report whether this bug is still valid for Mageia 2.

Thanks :)

Cheers,
marja

Keywords: (none) => NEEDINFO

Comment 21 Marja Van Waes 2012-06-11 15:39:19 CEST
Duplicate 5957 was against pre 2 final. I take it this bug was still valid for 2 final

Keywords: NEEDINFO => (none)
Whiteboard: (none) => (MGA2)

Comment 22 claire robinson 2012-06-11 15:46:46 CEST
Yes, it is marja.
claire robinson 2012-09-03 13:28:56 CEST

Whiteboard: (MGA2) => (MGA2) 3alpha1

Comment 23 claire robinson 2012-09-03 13:30:19 CEST
Valid mga3 alpha1
Comment 24 claire robinson 2012-10-01 11:34:19 CEST
valid mga3 alpha2

Whiteboard: (MGA2) 3alpha1 => (MGA2) 3alpha1 3alpha2

claire robinson 2012-12-13 13:26:35 CET

Whiteboard: (MGA2) 3alpha1 3alpha2 => 3alpha1 3alpha2 3alpha3 3beta1 (MGA2)

Comment 25 claire robinson 2013-01-15 18:07:04 CET
valid 3beta2

Whiteboard: 3alpha1 3alpha2 3alpha3 3beta1 (MGA2) => 3alpha1 3alpha2 3alpha3 3beta1 3beta2 (MGA2)

Comment 26 AL13N 2013-05-05 14:06:28 CEST
confirmed on RC (from 2013-05-04)
claire robinson 2013-09-30 11:10:45 CEST

Whiteboard: 3alpha1 3alpha2 3alpha3 3beta1 3beta2 (MGA2) => 4alpha3 3alpha1 3alpha2 3alpha3 3beta1 3beta2 (MGA2)

Comment 27 Manuel Hiebel 2013-12-05 21:34:04 CET
*** Bug 11887 has been marked as a duplicate of this bug. ***

CC: (none) => dvgevers

Manuel Hiebel 2013-12-05 21:34:45 CET

Whiteboard: 4alpha3 3alpha1 3alpha2 3alpha3 3beta1 3beta2 (MGA2) => 4beta2 3alpha1 (MGA2)

Comment 28 Dick Gevers 2014-01-07 11:22:57 CET
If https://bugs.mageia.org/show_bug.cgi?id=11887 is a duplicate, the subject is wrong.

Moreover, I would suggest that is blocks bug #11704 !

Summary: "Boot from harddisk" does not work when using a usb key as install medium => "Boot from harddisk" does not work when using a classical iso or usb key as install medium
Whiteboard: 4beta2 3alpha1 (MGA2) => 4RC (MGA2)

Comment 29 Dick Gevers 2014-01-20 10:23:40 CET
Maybe this is a stupid remark, but it works from Live disks, so why cannot same be applied to classical disks?
Comment 30 Erwan VELU 2014-01-21 17:26:39 CET
I've been looking at this problem and found a solution.

That's solved by revision 567352.

Can anyone start a rebuild of the syslinux package ?

Cheers,

Status: NEW => RESOLVED
CC: (none) => erwanaliasr1
Resolution: (none) => FIXED

Comment 31 Dick Gevers 2014-01-23 06:59:49 CET
Sorry but the iso containing syslinux-6.02-4.mga4 does not boot from hd via the boot menu option.

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)
Whiteboard: 4RC (MGA2) => 4final (MGA2)

Comment 32 Dick Gevers 2014-01-23 07:01:48 CET
To complete the info: I tried from DVD (not usb)
Comment 33 Dick Gevers 2014-01-26 20:09:56 CET
If it cannot be fixed I would propose to remove the option from the final iso's (better invisible than broken)

Blocks: (none) => 11704

Comment 34 Erwan VELU 2014-01-27 22:02:45 CET
(In reply to Dick Gevers from comment #33)
> If it cannot be fixed I would propose to remove the option from the final
> iso's (better invisible than broken)

Can you describe the behavior you have on the latest syslinux ?
Comment 35 Pascal Terjan 2014-01-27 22:18:39 CET
I believe comment #5 explains why this is expected.
Config should be changed if we want a different behaviour.
Comment 36 Dick Gevers 2014-01-27 23:31:15 CET
@erwanaliasr1 re #c34

>Can you describe the behavior you have on the latest syslinux ?

Use one of the classical isos and as soon as I select "Boot from hard disk" and press Enter the screen goes black and on the top is printed one line reading:

Booting from local disk...

and nothing else happens. 

Machine can now only be hard reset.
Comment 37 Sander Lepik 2014-01-28 10:55:43 CET
*** Bug 12459 has been marked as a duplicate of this bug. ***

CC: (none) => andybiker

Comment 38 Dick Gevers 2014-01-28 16:48:26 CET
Solved in this afternoon's classical DVD. Thanks

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED

Comment 39 Erwan VELU 2014-01-28 17:24:32 CET
Glad to see my patch worked \o/ that will allow to stay on 6.02 + patch for the release.
Nicolas Vigier 2014-05-08 18:05:05 CEST

CC: boklm => (none)

Comment 40 Manuel Hiebel 2014-07-10 20:02:37 CEST
Erwan, looks broken again on cauldron https://bugs.mageia.org/show_bug.cgi?id=13680

Version: Cauldron => 4
Source RPM: mageia-gfxboot-theme => syslinux

Manuel Hiebel 2014-07-10 20:03:37 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=13680

Comment 41 Ben McMonagle 2015-03-08 09:01:47 CET
evident in Mageia-5-rc-LiveCD-KDE4-en-i586-CD

CC: (none) => westel


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