Ask your questions here.
Post a reply
raymerjacque

- raymerjacque
- Posts: 111
- Joined: Sun Nov 03, 2013 9:37 am

## Re: Boot from local disk failed - Debian

Thu Oct 16, 2014 5:21 pm

one problem i have is that when i edit my live.cfg in /usr/lib/refractasnapshot/ folder, it does not save my entry in menu, it always defaults back to localboot 0x80 when ISO is built...
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Boot from local disk failed - Debian

Thu Oct 16, 2014 5:40 pm

In the latest versions of refractasnapshot, the boot menu is hard-coded into the script. I did that so that you could change the name of the distribution listed in the boot menu. Go into the Setup at the beginning of the gui script, or go into the config file, and set "edit_boot_menu" to "yes". The boot menu will open in a text editor before the filesystem is squashed, and you can change it.
Or, you could edit the script. It's the section around line 629. Change this

Code:
  `label harddisk
  menu label Boot hard disk
  localboot 0x80
  " > "$work_dir"/iso/isolinux/"$boot_menu"`

To this

Code:
  `label harddisk
  menu label Boot hard disk
  chain.c32 hd0,0
  " > "$work_dir"/iso/isolinux/"$boot_menu"`

I will change that in a future version, probably the next one. And chain.c32 will be included in /usr/lib/refractasnapshot/iso/isolinux. Any other modules that should be added?
OK, thanks for bringing this up. I just realized that there's another bug. If you set the config file to use a different iso_dir, and your custom iso directory uses live.cfg for the boot menu, your boot menu will be replaced with the default. Oops. I'll fix that, too.
Edit: And if you changed the boot_menu setting in the config file to point to your custom boot menu, it'll still get clobbered.
raymerjacque

- raymerjacque
- Posts: 111
- Joined: Sun Nov 03, 2013 9:37 am

## Re: Boot from local disk failed - Debian

Sun Oct 19, 2014 1:09 pm

i copied the chain.c32 file to the following directories :

Code:
  `/usr/lib/refractasnapshot/
  /usr/lib/refractasnapshot/iso/
  /usr/lib/refractasnapshot/iso/isolinux`

Just went crazy and copied it to all three just incase.
raymerjacque

- raymerjacque
- Posts: 111
- Joined: Sun Nov 03, 2013 9:37 am

## Re: Boot from local disk failed - Debian

Mon Oct 20, 2014 5:45 pm

changing the option to this :

Code:
  `label harddisk
  menu label Boot hard disk
  chain.c32 hd0,0
  " > "$work_dir"/iso/isolinux/"$boot_menu"`

Does NOT work.
You have to change it to this :

Code:
  `label chain.c32 hd0,0
  menu label Boot hard disk
  chain.c32 hd0,0
  " > "$work_dir"/iso/isolinux/"$boot_menu"`

That works, i have tested and can confirm it works.
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Boot from local disk failed - Debian

Tue Oct 21, 2014 3:06 pm

That's weird. Normally, the label only matters if you want to call that entry from the empty "boot: " prompt, and not from the menu. Even then, the label can be anything, and you just type the label name at the prompt.
My boot menu entry looks like this, and it works fine:

Code:
  `label harddisk
  menu label Boot hard disk
  chain.c32 hd0,0
  `

It works if I just choose the menu entry, it works if I hit TAB and replace "harddisk" with "chain.c32 hd0,0" and it works if I go into the help pages and use the plain "boot: " prompt, but only if I type "chain.c32 hd0,0" and NOT if I type "harddisk". I also noticed that memtest doesn't work, no matter how I call it. I'll have to test that again with a newer version of memtest86+.bin.
Other labels do work at the boot prompt.
raymerjacque

- raymerjacque
- Posts: 111
- Joined: Sun Nov 03, 2013 9:37 am

## Re: Boot from local disk failed - Debian

Tue Oct 21, 2014 8:40 pm

All i know is when i set the label to harddisk i got error, when i set it to chain.c32 hd0,0 it works. I have built a dozen copies in the last day or so and the same goes for each one.
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Boot from local disk failed - Debian

Thu Oct 23, 2014 5:17 am

Well, when I put my menu entry into a snapshot, it didn't boot the hard disk. I ended up having to put the command in the label, just like you did. It's now in the new version of refractasnapshot. Thanks for helping.
https://sourceforge.net/projects/refrac ... s/testing/
Post a reply
Jump to:

Powered by phpBB © phpBB Group.

phpBB Mobile / SEO by Artodia.