Welcome
Welcome to refracta

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!

Boot from local disk failed - Debian

Ask your questions here.

Re: Boot from local disk failed - Debian

Postby raymerjacque » 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...
raymerjacque
 
Posts: 105
Joined: Sun Nov 03, 2013 9:37 am

Re: Boot from local disk failed - Debian

Postby fsmithred » 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: Select all
label harddisk
   menu label Boot hard disk
   localboot 0x80
" > "$work_dir"/iso/isolinux/"$boot_menu"


To this
Code: Select all
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.
User avatar
fsmithred
 
Posts: 1987
Joined: Wed Mar 09, 2011 9:13 pm

Re: Boot from local disk failed - Debian

Postby raymerjacque » Sun Oct 19, 2014 1:09 pm

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

Code: Select all
/usr/lib/refractasnapshot/
/usr/lib/refractasnapshot/iso/
/usr/lib/refractasnapshot/iso/isolinux


Just went crazy and copied it to all three just incase.
raymerjacque
 
Posts: 105
Joined: Sun Nov 03, 2013 9:37 am

Re: Boot from local disk failed - Debian

Postby raymerjacque » Mon Oct 20, 2014 5:45 pm

changing the option to this :

Code: Select all
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: Select all
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.
raymerjacque
 
Posts: 105
Joined: Sun Nov 03, 2013 9:37 am

Re: Boot from local disk failed - Debian

Postby fsmithred » 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: Select all
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.
User avatar
fsmithred
 
Posts: 1987
Joined: Wed Mar 09, 2011 9:13 pm

Re: Boot from local disk failed - Debian

Postby raymerjacque » 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.
raymerjacque
 
Posts: 105
Joined: Sun Nov 03, 2013 9:37 am

Re: Boot from local disk failed - Debian

Postby fsmithred » 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/
User avatar
fsmithred
 
Posts: 1987
Joined: Wed Mar 09, 2011 9:13 pm

Previous

Return to Help

Who is online

Users browsing this forum: No registered users and 0 guests

suspicion-preferred