Grub4DosConfig

Miscellaneous tools
Message
Author
User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Re: safe mode fails

#316 Post by shinobar »

The menu advanced.lst

Code: Select all

# /menu-advanced.lst  produced by grub4dosconfig-v1.8.9

title Back to the main menu
  configfile /menu.lst
  commandline

title Puppy slacko 5.6.0 (sda3/slacko5.6.0frugal) Safe mode (without X)\nTry 'xorgwizard' after bootup succeed to start graphic mode.
  uuid 3f9de134-a95d-4a9d-9d42-cd5e98895ac6
  kernel /slacko5.6.0frugal/vmlinuz  pmedia=atahd psubdir=slacko5.6.0frugal pfix=ram,nox acpi=off apm=off nosmp noapic nodma nopcmcia
  initrd /slacko5.6.0frugal/initrd.gz

title Puppy slacko 5.6.0 (sda3/slacko5.6.0frugal) RAM mode\nBoot up Puppy without pupsave
  uuid 3f9de134-a95d-4a9d-9d42-cd5e98895ac6
  kernel /slacko5.6.0frugal/vmlinuz  pmedia=atahd psubdir=slacko5.6.0frugal pfix=ram
  initrd /slacko5.6.0frugal/initrd.gz
Confirmed. Need to remove 'nodma nopcmcia'.

Code: Select all

  kernel /slacko5.6.0frugal/vmlinuz  pmedia=atahd psubdir=slacko5.6.0frugal pfix=ram,nox acpi=off apm=off nosmp noapic
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

grub4dos v1.9

#317 Post by shinobar »

grub4dos-0.4.4.v1.9.pet (2013-09-26)
#17may13 v1.8.9: multiple Windows in the advanced menu, porteus
#25sep13 v1.9: do not use uuid for removable media, fix was failed safe mode (thanks to bigpup), fix the top puppy
http://shino.pos.to/linux/puppy/
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

simargl5

#318 Post by simargl5 »

Hi shinobar

I'm trying to make grub4dos config recognize frugal installation of alphaos now that is based on Linux Live Kit from Tomas M. and Slax, but this script has so many variables I can't find where this suppose to go.

This is list of files in frugal installation- top directory of sda6 partition

Code: Select all

alphaos
alphaos/alpha_12.sb
alphaos/changes.fs4
alphaos/extra_12.sb
alphaos/boot
alphaos/boot/vmlinuz
alphaos/boot/initrfs.img
alphaos/modules
....
Here is what's needed addition for a working menu.lst

Code: Select all

title alphaos (sda6/alphaos)
  uuid f6cfd2a9-cfed-483c-85c9-6904637405dd
  kernel /alphaos/boot/vmlinuz
  initrd /alphaos/boot/initrfs.img

simargl5

#319 Post by simargl5 »

These two entries both work, and from boot code should always be used, without difference if it's hard disk or usb installation to avoid potential problem i.e. loading system data from wrong directory.

Code: Select all

title alphaos (sda6/alphaos)
  uuid f6cfd2a9-cfed-483c-85c9-6904637405dd
  kernel /alphaos/boot/vmlinuz from=/alphaos
  initrd /alphaos/boot/initrfs.img

title alphaos (sda6/alphaos)
  find --set-root --ignore-floppies --ignore-cd /alphaos/boot/initrfs.img
  kernel /alphaos/boot/vmlinuz from=/alphaos
  initrd /alphaos/boot/initrfs.img

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

alphaOS support

#320 Post by shinobar »

simargl5 wrote:I'm trying to make grub4dos config recognize frugal installation of alphaos now that is based on Linux Live Kit from Tomas M. and Slax, but this script has so many variables I can't find where this suppose to go.

This is list of files in frugal installation- top directory of sda6 partition

Code: Select all

alphaos
alphaos/alpha_12.sb
alphaos/changes.fs4
alphaos/extra_12.sb
alphaos/boot
alphaos/boot/vmlinuz
alphaos/boot/initrfs.img
alphaos/modules
....
1. Current grub4dosconfig does not find 'initrfs.img'.
2. Current grub4dosconfig does not search deeper 'boot' directory.
If you want to hack, find the code for Wubi and slitaz in the script. They can be a help.

BTW, most recent alphaOS_12.1-20121019.iso has these files:

Code: Select all

alpha_12.sfs
boot.cat
extra_12.sfs
initrd.gz
isolinux.bin
syslinux.cfg
vmlinuz
These can be found by the current grub4dosconfig when they are frugal installed in a sub-directory. The grub4dosconfig doesn't know what is the alphaOS, and takes 'Extra-12' for the title.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

gcmartin

Re: alphaOS support

#321 Post by gcmartin »

shinobar wrote:
simargl5 wrote: ... This is list of files in frugal installation- top directory of sda6 partition

Code: Select all

alphaos
alphaos/alpha_12.sb
alphaos/changes.fs4
alphaos/extra_12.sb
alphaos/boot
alphaos/boot/vmlinuz
alphaos/boot/initrfs.img
alphaos/modules
....
1. Current grub4dosconfig does not find 'initrfs.img'.
2. Current grub4dosconfig does not search deeper 'boot' directory.
If you want to hack, find the code for Wubi and slitaz in the script. They can be a help.

BTW, most recent alphaOS_12.1-20121019.iso has these files:

Code: Select all

alpha_12.sfs
boot.cat
extra_12.sfs
initrd.gz
isolinux.bin
syslinux.cfg
vmlinuz
These can be found by the current grub4dosconfig when they are frugal installed in a sub-directory. The grub4dosconfig doesn't know what is the alphaOS, and takes 'Extra-12' for the title.
Shinobar, are you sharing that grub4dos will NOT search 3 levels deep for the kernel-init needs or are you sharing that all things need be in a single directory?
Trying to understand which.

Thanks in advance.

simargl5

#322 Post by simargl5 »

Edit: Ignore this post

I've fixed (partially) grub4dosconfig to recognize alphaos frugal installation (based on linux live)
file: http://alphaos.tuxfamily.org/forum/down ... .php?id=44
diffs:

Code: Select all

@@ -252,6 +252,7 @@
   io.sys) DISTRO_NAME="Windows 9x/Me";;
   plpbt.bin) DISTRO_NAME="PLOP_boot_manager";;
   rootfs*.gz) DISTRO_NAME="Slitaz Linux";;
+  initrfs.img) DISTRO_NAME="alphaOS";;
   initrd) DISTRO_NAME="Fatdog64";;
   puppy.sfs) # frugal installed Puppy with simple file name
     DISTRO_IDSTRING=$(tail -c 16 $TOPDIR$KEYFILE)
@@ -290,7 +291,7 @@
    [ -f $TOPDIR/etc/DISTRO_SPECS ] && source $TOPDIR/etc/DISTRO_SPECS
    [ "$DISTRO_VERSION" != "" ] && DISTRO_NAME="$DISTRO_NAME $DISTRO_VERSION"
    [ "$DISTRO_NAME" ] && echo "$DISTRO_NAME" && return
-
+ 
   # other linux
    if [ "$DISTRO_NAME" = "" ]; then
      if [ -f $TOPDIR/etc/vine-release ] ; then
@@ -972,6 +973,18 @@
     fi
     break
   done
+
+  # alphaos
+  for D in alphaos alphaOS Alphaos AlphaOS alphaos.usb alphaos-usb; do
+    if [ -f $TOPDIR/$D/boot/vmlinuz -a -f $TOPDIR/$D/alpha*sb ];then
+      LINUXOPTIONS="$LINUXOPTIONS from=/$D"
+      KEYFILE="/$D/boot/initrfs.img,/$D/boot/vmlinuz"
+      ITEM="$PART$KEYFILE|$(read_distro_specs $TOPDIR)"
+      FULLINSTS="$FULLINSTS
+      $ITEM"
+    fi
+  done
+ 
   # Wubi
   if [ -f $TOPDIR/ubuntu/disks/boot/grub/menu.lst ];then # ununtu on Windows
     KEYFILE=/ubuntu/disks/boot/grub/menu.lst
problem: in case two frugal installation are on the same disk, in will add from=/dir1 from=/dir2 for both entries...
Last edited by simargl5 on Thu 07 Nov 2013, 08:10, edited 1 time in total.

simargl5

#323 Post by simargl5 »

shinobar, do you consider this as a bug - fact that Grub4DosConfig is not being able to find alphaos frugal installation, and not just alphaos, it also can't boot Slax, one of distributions with highest reputation and long tradition. If yes what's status of that bug: need more info, wontfix, pending...

simargl5

#324 Post by simargl5 »

I mark this bug as SOLVED

... not upstream, but doesn't matter - will use my patch.

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

enhancment request

#325 Post by gyro »

Many current puppies , (at least the ones I have installed) support frugal installs down 2 directories, as per the following menu.lst entry:

Code: Select all

title squeeze 5.X.3.4.12
  uuid 160b47eb-a8de-4fa1-ac7e-8f795e7bbe8d
  kernel /puppy/squeeze/vmlinuz   psubdir=puppy/squeeze pmedia=atahd pfix=fsck
  initrd /puppy/squeeze/initrd.gz
Will Grub4DosConfig's search facility ever be changed so that it will find these?

gyro

EdD
Posts: 197
Joined: Tue 10 Dec 2013, 00:10
Location: Southside Virginia

#326 Post by EdD »

nooby wrote:Oops sorry. maybe the name is EasyBCD and NeoGrub is the name of a program within the EBCD program.
nooby, thanks for the link. just found this old thread in my quest to learn about grub and the page you linked has a good tutorial on syntax, which is what was suggested to me earlier by mikeb.

Regards,
Ed

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#327 Post by 01micko »

Hello shinobar,

If you are interested, woof-CE has deprecated the 'mini-icons' in favour of svg icons. This breaks the images in the grub4dos-config gui. We have also deprecated the 24 icons in the icon-themes. I have made a patch which should be backward compatible against v1.9.1

Code: Select all

diff -ru a/usr/sbin/grub4dosconfig b/usr/sbin/grub4dosconfig
--- a/usr/sbin/grub4dosconfig	2014-01-08 00:29:03.000000000 +1000
+++ b/usr/sbin/grub4dosconfig	2014-02-11 09:58:27.713443548 +1000
@@ -192,6 +192,9 @@
   which $PROG >/dev/null && HELPVIEWER=$PROG && break
 done
 ICONS="/usr/local/lib/X11/mini-icons"
+icon=mini-clock.xpm
+width=
+[ -d /usr/share/pixmaps/puppy ] && ICONS="/usr/share/pixmaps/puppy" icon=clock.svg width="<width>16</width>"
 
 splash() {
   ACTION="$1"
@@ -199,7 +202,7 @@
   if [ "$ACTION" = "start" ]
   then
   	DIALOG="<window title=\"$_Title\"><hbox>
-  	  <pixmap><input file>$ICONS/mini-clock.xpm</input></pixmap>
+  	  <pixmap><input file>$ICONS/$icon</input>$width</pixmap>
   	  <text><input>echo -en \"$MSG\"</input></text>
 </hbox></window>"
   	$GTKDIALOG -p DIALOG  -c &>/dev/null &
@@ -2042,7 +2045,7 @@
    <text><label>$_Unmount</label></text>"
 fi
  [ "$FLOPPY" != "" ] &&  mount /dev/fd0 /mnt/fd0
- EDITADVANCED="<button><input file>/usr/local/lib/X11/pixmaps/edit24.png</input>
+ EDITADVANCED="<button><input file stock=\"gtk-edit\"></input>
  <label>\"$_Edit_Advanced\"</label><action>defaulttexteditor $TOPDIR$ADVANCEDMENU &</action></button>"
  [ "$ONEPAGE_MENU" = 'true' ] && EDITADVANCED=""
  DIALOG="<window title=\"$_Title - Success\"><vbox>
@@ -2050,10 +2053,10 @@
   <text use-markup=\"true\"><label>\"$_Success $_Fairwell1 $FILES $_Fairwell2 <b>$TOPDIR</b>. $_Fairwell3\"</label></text>
   $MORE
   <hbox>
-    <button><input file>/usr/local/lib/X11/pixmaps/edit24.png</input>
+    <button><input file stock=\"gtk-edit\"></input>
     <label>\"$_Edit\"</label><action>defaulttexteditor $TOPDIR/menu.lst &</action></button>
     $EDITADVANCED
-    <button><input file>/usr/local/lib/X11/pixmaps/file24.png</input><label>$(gettext 'See log')</label>
+    <button><input file stock=\"gtk-file\"></input><label>$(gettext 'See log')</label>
    <action>defaulttextviewer $MYLOG &</action></button>
    </hbox>
   <hbox>
Puppy Linux Blog - contact me for access

gcmartin

#328 Post by gcmartin »

Hi @Shinobar
This was posted about GRUB4DOS.

Has there been any changes in BIOS support?

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#329 Post by bigpup »

The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

step
Posts: 1349
Joined: Fri 04 May 2012, 11:20

version 1.9.1 'unknown' entries

#330 Post by step »

I installed and ran version 1.9.1 on Quirky Tahr 6.0.5. It found the exact NUMBER of frugal installs on my hhd but all menu.lst entries where labelled 'unknown' and resolved to /vmlinuz initrd=/initrd.gz.
I then uninstalled version 1.9.1 and installed version 1.8.0. It found the exact number of installs and built a complete, correct menu.lst file.
So there seems to be a problem in the way 1.9.1 builds menu.lst.

menu.lst the good one
(

the bad one looks the same but all entries are:

title unknown (sdb1)
kernel /vmlinuz
initrd /initrd.gz

)

Code: Select all

# menu.lst produced by grub4dosconfig-v1.8.0
color blue/cyan yellow/blue white/black cyan/black
#splashimage=/splash.xpm
timeout 10
default 0

# Frugal installed Puppy

title Flp 013 (sdb1/fluppy)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /fluppy/vmlinuz   psubdir=fluppy pmedia=atahd pfix=fsck
  initrd /fluppy/initrd.gz

title Puppy carolite 1.2 (sdb1/puppy-carolite)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /puppy-carolite/vmlinuz   psubdir=puppy-carolite pmedia=atahd pfix=fsck
  initrd /puppy-carolite/initrd.gz

title Saluki printer scanner 001 (sdb1/puppy)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /puppy/vmlinuz   psubdir=puppy pmedia=atahd pfix=fsck
  initrd /puppy/initrd.gz

title Puppy lina 1.1 (sdb1/puppy-lina)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /puppy-lina/vmlinuz   psubdir=puppy-lina pmedia=atahd pfix=fsck
  initrd /puppy-lina/initrd.gz

title Puppy lxpup 13.10 (sdb1/puppy-lxpup1310)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /puppy-lxpup1310/vmlinuz   psubdir=puppy-lxpup1310 pmedia=atahd pfix=fsck
  initrd /puppy-lxpup1310/initrd.gz

title Puppy lxpup 13.04 (sdb1/puppy-lxpup13)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /puppy-lxpup13/vmlinuz   psubdir=puppy-lxpup13 pmedia=atahd pfix=fsck
  initrd /puppy-lxpup13/initrd.gz

title Puppy lxpup 12.12 (sdb1/puppy-lxpup)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /puppy-lxpup/vmlinuz   psubdir=puppy-lxpup pmedia=atahd pfix=fsck
  initrd /puppy-lxpup/initrd.gz

title Xfce 4.10 (sdb1/puppy-precise)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /puppy-precise/vmlinuz   psubdir=puppy-precise pmedia=atahd pfix=fsck
  initrd /puppy-precise/initrd.gz

title Saluki printer scanner 001 (sdb1/puppy-saluki)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /puppy-saluki/vmlinuz   psubdir=puppy-saluki pmedia=atahd pfix=fsck
  initrd /puppy-saluki/initrd.gz

title Puppy xprecise 5.7.1 (sdb1/puppy-X-precise)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /puppy-X-precise/vmlinuz   psubdir=puppy-X-precise pmedia=atahd pfix=fsck
  initrd /puppy-X-precise/initrd.gz

# Full installed Linux

title Linux Mint 13 Maya (sdb1)
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  kernel /vmlinuz root=/dev/sdb1 ro
  initrd /initrd.img

title Linux (sdc1)
  uuid A8EE-83EE
  kernel /vmlinuz root=/dev/sdc1 ro

# Windows

title Windows
  map (hd3) (hd0)
  map (hd0) (hd3)
  map --hook
  uuid 9f5d11ff-714b-48b1-860c-84924f0e9ece
  chainloader /bootmgr

# Advanced Menu
title Advanced menu
  configfile /menu-advanced.lst
  commandline
menu.lst and MBR saved to /dev/sdd1 USB key.

Code: Select all

# blkid
/dev/sdd1: LABEL="PUP" UUID="9024-4D2D" TYPE="vfat"
/dev/mmcblk0p1: LABEL="RDYBST   " UUID="E806B96D0C36BE46" TYPE="ntfs"
/dev/sdc1: LABEL="ZIP16" UUID="A8EE-83EE" TYPE="vfat"
/dev/sdb5: UUID="81b9917a-974c-4c8e-8740-e91411253526" TYPE="swap"
/dev/sdb3: LABEL="DATA" UUID="08557d54-76ce-490c-9615-c47f2378b6c9" TYPE="ext3"
/dev/sdb2: LABEL="WIN" UUID="1CAA7CBBAA7C92CE" TYPE="ntfs"
/dev/sdb1: LABEL="LINUX" UUID="9f5d11ff-714b-48b1-860c-84924f0e9ece" TYPE="ext4"
/dev/sda8: LABEL="BOOT" UUID="1676-EF88" TYPE="vfat"
/dev/sda7: LABEL="SWAP" UUID="9cf61a01-225c-4313-8e3e-488ac04d0b16" TYPE="swap"
/dev/sda6: LABEL="WIN" UUID="25DAB16455F2E4C2" TYPE="ntfs"
/dev/sda5: LABEL="LINUX" UUID="4dc99106-5b4d-47d2-b04b-7031455e1cd8" TYPE="f2fs"
/dev/sda1: TYPE="vfat"

step
Posts: 1349
Joined: Fri 04 May 2012, 11:20

version 1.9.1 'unknown' entries

#331 Post by step »

(double post deleted)

gcmartin

#332 Post by gcmartin »

@Shinobar

As I know you offer Precise in 2 versions; one of which is Precise-571JP, I offer this idea for booting into the 2 languages you currently support.

Open the attached file in a text editor AS IS!

Hope this helps
Attachments
syslinux cfg from PartedMagic.txt.png
This is a text file. DO NOT CONVERT!!! Open, as is, in a text editor (geany)!
(26.72 KiB) Downloaded 461 times

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

grub4dos-0.4.4.v1.9.2

#333 Post by shinobar »

UPDATE: grub4dos-0.4.4.v1.9.2.pet (2014-07-20)
http://shino.pos.to/linux/puppy/
#20Jul14 v1.9.2: grub2, titles, bootable mbr detection
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#334 Post by don570 »

I installed the newest version.
A full install of Quirky tahr by Barry Kauler . The result --->

Image

I include the terminal output if you're interested.

It did work with Tahrpup and Racy distros.

____________________________________________________

I have a suggestion:

I have a lot of frugal installations so the list of operating systems
available is very long and I can't see the OK button at the end of the list.
I have to use alt key. So I suggest putting the OK button at the top or side of window.

____________________________________________
Attachments
grub4dos-output.tar.gz
terminal output
(2.65 KiB) Downloaded 413 times

User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

Too many Frugals here too

#335 Post by davids45 »

G'day shinobar,

I was about to go searching this thread but don570 has exactly my problem.

I was trying to rescue an old hard drive, which had more than 20 Frugal Puppies plus about ten Puppy Fulls. I was removing old Windows & Ubuntu partitions through which the hard drive had been booting.

I installed a new Pup to sda1 but when I tried to set up Grub4Dos, the Puppy list (box) went off the bottom of the screen and I could not 'Move' or 'Resize' the box to see the 'OK' button.

A scroll bar for the listing would be good so all the possible Puppies could be seen, but if that is too difficult or time-consuming, I too would appreciate the 'OK' button at the top of the dialog box.

Thanks & regards,
David S.

Post Reply