[IMPORTANT] Boot loader for next release.

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: [IMPORTANT] Boot loader for next release.

Post#46 by Hamza » 08 Feb 2011, 19:12

Great Idea , an All-In-One Script !
NjVFQzY2Rg==

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: [IMPORTANT] Boot loader for next release.

Post#47 by fanthom » 08 Feb 2011, 20:39

@Falcony
great job! if there will be no issues with your Win7/Vista bat file then we should be able to switch to G4D + LILO (or normal Grub) + PLOP.
nice gfxmenu would be necessary (could be shared between G4D and Grub).

@brokenman
please let me know when you check this bat against Win7 successfully. I can take implementation of G4D on my shoulders as i have done some work in this subject before.
Please add [Solved] to your thread title if the solution was found.

Falcony
Full of knowledge
Full of knowledge
Posts: 237
Joined: 01 Jan 2011, 12:44
Location: Russia

Re: [IMPORTANT] Boot loader for next release.

Post#48 by Falcony » 09 Feb 2011, 06:14

@fantom,

there is some issues with path checks

and with detecting drive:

this is code also have to be checked

Code: Select all

%BCDEDIT% /create /d "FIDOSlax Linux" /application bootsector |  %SED% s/^.*{/{/ | %SED% s/}.*$/}/ >%TEMP%\grub4dos.id
for /f %%A in (%TEMP%\grub4dos.id) do set guid=%%A

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: [IMPORTANT] Boot loader for next release.

Post#49 by brokenman » 09 Feb 2011, 22:01

No joy on win7 for me. It gave errors about not being able to find the drive. I was at work so i will run it some boxes at home and reproduce, then post the errors.
Using 'start grub2win7.bat gave strange error.
Using './grub2win7.bat ' started the file, but that is when the errors occured.
How do i become super user?
Wear your underpants on the outside and put on a cape.

att
Contributor
Contributor
Posts: 137
Joined: 28 Dec 2010, 17:09

Re: [IMPORTANT] Boot loader for next release.

Post#50 by att » 25 May 2011, 10:43

May I make a suggestion? Since we already have Plop boot loader integrated, I thought it would be a nice extra to also integrate a FreeDOS boot option.
One FreeDOS is already being used in the Linux distro GRML, that is where I got it from (www.grml.org), it only needs "memdisk" (20.068 bytes) and a DOS image called "balder10.imz (or img)" which is the size of a floppy disk (1.4 MB).

The changes in boot/slax.cfg are as follows:

Code: Select all

LABEL FREEDOS
MENU LABEL Run Free DOS
KERNEL /boot/dos2/memdisk
APPEND initrd=/boot/dos2/balder10.img


TEXT HELP
                                          More about currently selected:

                                          Boot a FREEDOS with USB and Ramdisk A:
                                          
ENDTEXT 
I use it all the time for Norton Ghost - DOS mode or for some firmware updates that only work under DOS, etc.

User avatar
82issa
DOC Team
DOC Team
Posts: 127
Joined: 13 Apr 2011, 17:24
Location: USA, NC

Re: [IMPORTANT] Boot loader for next release.

Post#51 by 82issa » 25 May 2011, 13:59

Even if they don't implement. I will implement for my personal homebrew porteus.
Sorry guys... I got to go. My girlfriend just casted "get your dirty ass into the shower" on me.
Oh and here is some naked grandpa pictures too.

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: [IMPORTANT] Boot loader for next release.

Post#52 by brokenman » 25 May 2011, 14:07

I thought it would be a nice extra to also integrate a FreeDOS boot option.
What would the advantage be for justifying this extra 1.4Mb?
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: [IMPORTANT] Boot loader for next release.

Post#53 by fanthom » 25 May 2011, 19:08

@att
Porteus (as a live cd) provides linux OS and not FREE DOS.
i dont think many people uses DOS nowadays so i would drop this feature request.
Anyway it would be nice to have it in our HOWTO's section: Porteus integrated with FREE DOS boot option.

please post instruction how to create porteus live cd + Free Dos over there.
Please add [Solved] to your thread title if the solution was found.

att
Contributor
Contributor
Posts: 137
Joined: 28 Dec 2010, 17:09

Re: [IMPORTANT] Boot loader for next release.

Post#54 by att » 25 May 2011, 20:07

fanthom: I thought my instructions were understandable and clear?
So, let me rephrase it again, how I did it:
a) get GRML ISO from http://www.grml.org, any version will do, for example: grml64_2010.04.iso
b) from the /boot/addons directory of the ISO, get the following files:
allinone.img 1.474.560 bytes
balder10.imz 911.929 bytes
memdisk 20.304 bytes

c) copy the files to your SLAX, sorry, PORTEUS distribution, anywhere you want but preferably in the /boot directory,
better yet, make a directory called DOS2 there, so you have /boot/DOS2 on your Porteus drive

Optional: decompress the balder10.imz -> you get a "balder10.img" -> add any DOS programs there that you need for your DOS boot disk. (I use Windows, sorry, I mean WINE, and TotalCommander for this task)

d) change the boot loader of Porteus by adding another section in /boot/slax.cfg:

Code: Select all

LABEL FREEDOS
MENU LABEL Run Free DOS
KERNEL /boot/dos2/memdisk
APPEND initrd=/boot/dos2/balder10.img

TEXT HELP
                                          More about currently selected:

                                          Boot a FREEDOS with USB and Ramdisk A:
                                          
ENDTEXT 

Having FreeDOS is very useful when it comes to running (maintenance) programs that only work with DOS, for example:
* old Norton Ghost 11.5,
* Firmware updates for your Harddisk, CDRom, VGA-Card, etc.

Sometimes, booting DOS over PXE is very convenient, for example, when you have to do 100 Firmware DOS updates on 100 computers and you do not want to run to every computer with a floppy disk and boot from that disk.
In this case, you can modify the PXE default section in Porteus or Slax:

Change /boot/pxelinux.cfg in your Porteus installation so it looks like this: (This is just an EXAMPLE:)

Code: Select all

PROMPT 1

LABEL linux
MENU LABEL Run linux over PXE
KERNEL /vmlinuz
IPAPPEND 1
APPEND vga=769 initrd=/initrd.gz ramdisk_size=6666 root=/dev/ram0 rw autoexec=xconf;startx

LABEL memtest86
MENU LABEL Run Memtest utility
KERNEL /mt86p

LABEL dos
MENU LABEL Run FreeDOS
KERNEL /dos2/memdisk
APPEND initrd=/dos2/balder10.imz

LABEL dos2
MENU LABEL Run FreeDOS modded
KERNEL /dos2/memdisk
APPEND initrd=/dos2/balder10.img
 

Explanation: "Prompt 1" means you can actually type something in on the PXE-booted machine, and thus select what you want to load over PXE. In this example "dos", "dos2", "memtest86" and "linux" are your options. "plop" over PXE might be another useful option - your mileage may vary.
In this example, if you type in "dos2" and press return, a FreeDOS bootdisk will be loaded over PXE. Very useful for doing lots of firmware updates on lots of machines.

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: [IMPORTANT] Boot loader for next release.

Post#55 by Ahau » 25 May 2011, 20:21

@att - thanks for putting these isntructions together! When I have time, I'll prep this for posting to the main site. I'll post a draft to the HOWTO section of the forum for your review and approval, and credit you as the author, if this works for you.
Please take a look at our online documentation, here. Suggestions are welcome!

att
Contributor
Contributor
Posts: 137
Joined: 28 Dec 2010, 17:09

Re: [IMPORTANT] Boot loader for next release.

Post#56 by att » 02 Jun 2011, 12:48

Sorry, I mistyped something :
Change /boot/pxelinux.cfg in your Porteus installation so it looks like this: (This is just an EXAMPLE:)
I meant to say: Change /boot/pxelinux.cfg/default (!!) ; that is the actual filename which contains all the PXE boot options.

Yours
ATT

Post Reply